shiblon / latex-makefile

A Makefile for LaTeX - drop it in, type make, and magic happens.
Other
185 stars 30 forks source link

Multibib support #116

Open shiblon opened 8 years ago

shiblon commented 8 years ago

Originally reported on Google Code with ID 103


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 

Reported by akis.karnouskos on 2010-12-15 12:29:32

shiblon commented 8 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.

Reported by shiblon on 2010-12-20 18:09:03

shiblon commented 8 years ago
Yeap, here it comes ...

Reported by akis.karnouskos on 2011-01-05 07:17:01


shiblon commented 8 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.

Reported by shiblon on 2011-01-05 16:17:16

shiblon commented 8 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.

Reported by shiblon on 2011-01-05 16:27:13

shiblon commented 8 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 :)

Reported by akis.karnouskos on 2011-01-06 08:00:19

shiblon commented 8 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
:)

Reported by shiblon on 2011-02-03 17:35:26

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

Reported by subs.zero on 2012-07-01 10:36:11

shiblon commented 8 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.

Reported by shiblon on 2012-07-02 08:59:24