LaTeX forum ⇒ 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...?

Postby Medova » Thu Nov 26, 2009 3:03 pm

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}

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Thu Nov 26, 2009 6:34 pm

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¹
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ 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

Postby Medova » Thu Nov 26, 2009 11:49 pm

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:
  1. \documentclass[a4paper,11pt,twoside,openright,english,fleqn]{report}
  2. \usepackage[numbers]{natbib}
  3. \usepackage{multibib}
  4. \newcites{dk}{Litteratur}
  5.  
  6. \begin{document}
  7. \part{First part with bib.}
  8. \chapter{Header I}
  9. Some random text for part I. According to \citedk{1}
  10. \bibliographystyledk{plain}
  11. \bibliographydk{litteratur}
  12.  
  13. \part{Second part with bib.}
  14. \chapter{Header II}
  15. Some random text for part II. \cite{Galbraith}
  16. \renewcommand{\refname}{Bibliography}
  17. \bibliographystyle{plain}
  18. \bibliography{litteratur}
  19. \end{document}

litteratur.bib :
  1. @article{1,
  2. author={A. Haufe and D. Lorenz and K. Roll and P. Bogon},
  3. year={2008},
  4. title={Concepts to take elastic {Tool} {Deformations} in {Sheet} {Metal} {Forming} into account},
  5. journal = {10$^{th}$ International LS-DYNA$^{\text{\textregistered}}$\ Users Conference},
  6. pages={19--26},
  7. note = {Metal Forming(1)},
  8. }
  9. @Manual{Galbraith,
  10. author="Chris Galbraith",
  11. title ="{Sheet Metal Forming Simulation Using {LS-DYNA}}",
  12. organization ="\\Metal Forming Analysis Corporation",
  13. year ="2001",
  14. note ="Course notes",}

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Postby gmedina » Fri Nov 27, 2009 12:26 am

Hi,

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

  1. @article{1,
  2. author={A. Haufe and D. Lorenz and K. Roll and P. Bogon},
  3. year={2008},
  4. title={Concepts to take elastic {Tool} {Deformations} in {Sheet} {Metal} {Forming} into account},
  5. journal = {10\textsuperscript{th} International LS-DYNA\textsuperscript{\textregistered}\ Users Conference},
  6. pages={19--26},
  7. note = {Metal Forming(1)}
  8. }
  9. @Manual{Galbraith,
  10. author="Chris Galbraith",
  11. title ="{Sheet Metal Forming Simulation Using {LS-DYNA}}",
  12. organization ="\\Metal Forming Analysis Corporation",
  13. year ="2001",
  14. note ="Course notes"}


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

Postby Medova » Fri Nov 27, 2009 10:03 am

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

Postby gmedina » Fri Nov 27, 2009 3:19 pm

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:

  1. (pdf)latex test
  2. bibtex test
  3. bibtex dk
  4. (pdf)latex test
  5. (pdf)latex test


and post here, as an attachment, the .log file obtained.
Attachments
test.pdf
(75.61 KiB) Downloaded 1204 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

Postby Medova » Mon Nov 30, 2009 10:28 am

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

Postby gmedina » Tue Dec 01, 2009 5:55 pm

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

Postby Medova » Tue Dec 01, 2009 6:20 pm

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

Postby gmedina » Tue Dec 01, 2009 6:25 pm

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,...


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 3 guests