yochju / latex-makefile

Automatically exported from code.google.com/p/latex-makefile
Other
0 stars 0 forks source link

Multibib support #103

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

The current version only compiles the "main" bib file but not the secondary or 
third literature bib etc...

As such a batch file to compile all files is needed:

pdflatex file.tex
pdflatex file.tex
bibtex bib1
bibtex bib2
.
.
.
latex texfile
pdflatex file.tex
pdflatex file.tex
pdflatex file.tex

Would it be possible to include such support in the makefile?
thanks 

Original issue reported on code.google.com by akis.kar...@gmail.com on 15 Dec 2010 at 12:29

GoogleCodeExporter commented 9 years ago
Can you give me some more detail on what is not working properly?  A sample 
(minimal) document with supporting bib files that does not work correctly would 
be a good start.

Original comment by shiblon on 20 Dec 2010 at 6:09

GoogleCodeExporter commented 9 years ago
Yeap, here it comes ...

Original comment by akis.kar...@gmail.com on 5 Jan 2011 at 7:17

Attachments:

GoogleCodeExporter commented 9 years ago
I see.  Is there any reason that you have to use multibib for this?  You could 
just have multiple bib files specified in your \bibliography command for this 
use case, I think...

I mean, I am going to look at this, but if you are doing something more 
complicated than you need to, then fixing that might be the easiest way to deal 
with it.

Original comment by shiblon on 5 Jan 2011 at 4:17

GoogleCodeExporter commented 9 years ago
OK, this is somewhat tricky.  It looks like the bib stuff is creating its own 
.aux files, which is different than normal bib inclusion does things.  It 
represents a big enough change to the dependency logic that I'm very hesitant 
to look too deeply into it right now.

So, if just specifying multiple bibliography files works for you, I'd go that 
route and skip multibib altogether.

Original comment by shiblon on 5 Jan 2011 at 4:27

GoogleCodeExporter commented 9 years ago
I use this to have separate references e.g. at the end of a chapter, or format 
differently parts of the references. Using multiple bib files probably wont 
work (I am not sure I can address/print a subset of them).

I thought it might be easy doing a compilation of all bibtex files in the loop 
(e.g. putting even the names in the Makefile so that at some point all of the 
get compiled with bibtex), thats why I posted this feature request. 

Maybe sometime in the fuure -- thanks for the reply :)

Original comment by akis.kar...@gmail.com on 6 Jan 2011 at 8:00

GoogleCodeExporter commented 9 years ago
That is a very legitimate use case.  I am leaving this bug open because I would 
really like to make it happen at some point.

I can't guarantee that I'll have time soon, though.  I need to get my brain 
wrapped around what is going on with multibib and how to detect that it is in 
use.

It looks like the .fls file contains lines like this:

OUTPUT biba.aux
OUTPUT bibb.aux
OUTPUT bibc.aux

I might be able to use that to detect multibib and then produce proper 
compilation rules.  I'll give this some more thought.

Meanwhile if you're feeling brave, enjoy exploring the twisted logic of the 
makefile :)

Original comment by shiblon on 3 Feb 2011 at 5:35

GoogleCodeExporter commented 9 years ago
have there been any developments in adding multibib support to the makefile?

Original comment by subs.z...@gmail.com on 1 Jul 2012 at 10:36

GoogleCodeExporter commented 9 years ago
No developments.  My paying job has completely taken over, so I haven't had 
(and won't likely have for a while) much time to look at this.

Original comment by shiblon on 2 Jul 2012 at 8:59