Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

i need a little of help here. Till now wat I now is that to compile a latex into a pdf with bibtex references i need to execute the next sequence:

1. pdflatex document.tex
2. bibtex document.tex
3. pdflatex document.tex
4. pdflatex document.tex

and for glossaries i need to:

5. pdflatex document.tex
6. makeglossaries document
7. pdflatex document
8. pdflatex document

and even in some places I've read that step 5 and 6 need to be repeated in some circumstances but i didn't understand them well, so my question are: what is the sequence of step to create the pdf with bibtex and with a glossary? I need to automate this so, in what specific circumstances, i need to re execute any of the step?

share|improve this question
1  
I think this question has already been answered on this site. For example, tex.stackexchange.com/questions/64/… –  TH. Dec 10 '10 at 1:16
    
that question don't consider glossaries, i want to know the best sequence of step including the Glossary generation –  mjsr Dec 10 '10 at 1:21

1 Answer 1

up vote 7 down vote accepted

It's not really as complicated as you think. Just do:

 1. pdflatex document
 2. bibtex document
 3. makeglossaries document
 4. pdflatex document
 5. pdflatex document

It doesn't matter if you do step 3 before step 2 either.

Next you might want to take a look at the link TH posted if you're looking for a tool to automate the workflow.

share|improve this answer
    
with this command sequence i ended up with wrong page references... –  jrast Jan 3 at 8:40
    
@jrast run pdflatex again to get the page references updated. –  LianTze Lim Jan 4 at 10:15
    
Actually I had to run this sequence: pdflatex -> bibtex -> makeglossaries -> pdflatex -> bibtex -> makeglossaries -> pdflatex -> pdflatex. Maybe because my glossarie is before the sections? –  jrast Jan 4 at 23:22
    
@jrast Pdflatex -> bibtex -> makeglossaries -> pdflatex -> pdflatex -> pdflatex (and at times yet another pdflatex...) would have done it just fine. –  LianTze Lim Jan 5 at 0:34
    
No, it don't matter how many times i run pdflatex at the end, the references stay the same (i gave up after 5 runs). And in my opinion they can't change because they are read out of the .gls file which is only written by makeglossaries. –  jrast Jan 5 at 12:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.