BibTeX, biblatex and biberHow to use multibib...?

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Medova
Posts: 28
Joined: Thu Nov 06, 2008 4:20 pm

How to use multibib...?

Post by Medova »

Could anyone please describe to me how to use multibib. I have read the documentation, however it leaves me with some unanswered questions.
The additional bibliography does not show - I get the warnings:

Package natbib Warning: Citation 'reference' on page xx undefined

I am using documentclass{report}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

How to use multibib...?

Post by localghost »

Build a minimal working example (MWE) that shows your recent efforts. Nevertheless the multibib manual clearly shows what to do (Section 2 - Example, p. 4). It couldn't be explained any better by someone else. Translate this to your document.


Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Medova
Posts: 28
Joined: Thu Nov 06, 2008 4:20 pm

How to use multibib...?

Post by Medova »

I have made this as compact as possible. You should be able to see what I am doing wrong - have tried one more time to follow the example, but get the same warning and no additional bibliography.
Main file:

Code: Select all

Code, edit and compile here:
\documentclass[a4paper,11pt,twoside,openright,english,fleqn]{report}
\usepackage[numbers]{natbib}
\usepackage{multibib}
\newcites{dk}{Litteratur}
\begin{document}
\part{First part with bib.}
\chapter{Header I}
Some random text for part I. According to \citedk{1}
\bibliographystyledk{plain}
\bibliographydk{litteratur}
\part{Second part with bib.}
\chapter{Header II}
Some random text for part II. \cite{Galbraith}
\renewcommand{\refname}{Bibliography}
\bibliographystyle{plain}
\bibliography{litteratur}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
litteratur.bib :

Code: Select all

@article{1,
author={A. Haufe and D. Lorenz and K. Roll and P. Bogon},
year={2008},
title={Concepts to take elastic {Tool} {Deformations} in {Sheet} {Metal} {Forming} into account},
journal = {10$^{th}$ International LS-DYNA$^{\text{\textregistered}}$\ Users Conference},
pages={19--26},
note = {Metal Forming(1)},
}
@Manual{Galbraith,
author="Chris Galbraith",
title ="{Sheet Metal Forming Simulation Using {LS-DYNA}}",
organization ="\\Metal Forming Analysis Corporation",
year ="2001",
note ="Course notes",}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

How to use multibib...?

Post by gmedina »

Hi,

in a .bib file you cannot use math mode commands (such as "$" and "^"). Change your bib database to

Code: Select all

@article{1,
author={A. Haufe and D. Lorenz and K. Roll and P. Bogon},
year={2008},
title={Concepts to take elastic {Tool} {Deformations} in {Sheet} {Metal} {Forming} into account},
journal = {10\textsuperscript{th} International LS-DYNA\textsuperscript{\textregistered}\ Users Conference},
pages={19--26},
note = {Metal Forming(1)}
}
@Manual{Galbraith,
author="Chris Galbraith",
title ="{Sheet Metal Forming Simulation Using {LS-DYNA}}",
organization ="\\Metal Forming Analysis Corporation",
year ="2001",
note ="Course notes"}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Delete all the .bbl auxiliar files previously generated and compile your document again as indicated in the multibib manual.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Medova
Posts: 28
Joined: Thu Nov 06, 2008 4:20 pm

Re: How to use multibib...?

Post by Medova »

Thx, but that did not help using multibib (and normally that seems to work fine for me) - so that seems not to be the problem.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

How to use multibib...?

Post by gmedina »

Well, it works OK in my system; I attach the pdf I obtained after compilation of your example code with the modifications I suggested for the bib database.

Please, process your code (I'll refer to it as test.tex) in the standard way, using the .bib database modified as I suggested:

Code: Select all

(pdf)latex test
bibtex test
bibtex dk
(pdf)latex test
(pdf)latex test
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
and post here, as an attachment, the .log file obtained.
Attachments
test.pdf
(75.61 KiB) Downloaded 1463 times
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Medova
Posts: 28
Joined: Thu Nov 06, 2008 4:20 pm

Re: How to use multibib...?

Post by Medova »

I got it to work (nice on a monday morning), however I needed to split the bib-database into two files and compile them seperately. The example in the multibib documentation shows that the same bib-database (lit.bib) is used - would be convenient If they could stay in the same file.
Are u using a two-file bib-database or just one like in the documentation?
Furthermore, I have defined TWO new bibs (in the example only one extra is defined), eventhough I only need one extra - otherwise I could not compile the bib-file.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

How to use multibib...?

Post by gmedina »

Medova wrote:...Are u using a two-file bib-database or just one like in the documentation?..
My previous reply was crystal clear. I only used one bibliographical database.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Medova
Posts: 28
Joined: Thu Nov 06, 2008 4:20 pm

Re: How to use multibib...?

Post by Medova »

well... that for sure does not work for me. Two bib-databases is apparently my solution.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: How to use multibib...?

Post by gmedina »

Please post here a MWE showing clearly that (after my suggestions) your problem persists.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply