After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668010 - Generating PDF from LaTeX through make
Generating PDF from LaTeX through make
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: build
1.7.6.1
Other Windows
: Normal enhancement
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-01-16 12:59 UTC by Stefan
Modified: 2012-02-25 15:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan 2012-01-16 12:59:00 UTC
Since not all users do have make.exe installed, it would be nice to have an alternative for Windows, like a command script.

Proposal for make_pdf.cmd:

REM---code start (watch for line wraps)

del /s /f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf

pdflatex  refman
makeindex refman.tex
pdflatex  refman

REM---code end

Sure checking the output and rerunning five times is missing, but this should be a start.

Thanks in advance,
Stefan
Comment 1 Stefan 2012-01-18 10:40:07 UTC
I have now added the ability to cycle until there is no more mention of a rerun of the PDF file or a certain number of reruns has been done.

Proposal for make_pdf.cmd:

REM---code start (watch for line wraps)

del /s /f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf

pdflatex  refman
echo ----
makeindex refman.tex
echo ----
pdflatex  refman

setlocal enabledelayedexpansion
set count=5
:repeat
    echo ----
    pdflatex  refman

    set content=X
    for /F "tokens=*" %%T in ( 'findstr /C:"Rerun LaTeX" refman.log' ) do set content="%%~T"
    if !content! == X for /F "tokens=*" %%T in ( 'findstr /C:"Rerun to get cross-references right" refman.log' ) do set content="%%~T"
    if !content! == X goto :skip
    set /a count-=1
    if !count! EQU 0 goto :skip
goto :repeat
:skip
endlocal

REM---code end

--
Stefan
Comment 2 Stefan 2012-01-18 10:45:08 UTC
I have now added the ability to cycle until there is no more mention of a rerun of the PDF file or a certain number of reruns has been done.

Proposal for make_pdf.cmd:

REM---code start (watch for line wraps)

del /s /f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf

pdflatex  refman
echo ----
makeindex refman.tex
echo ----
pdflatex  refman

setlocal enabledelayedexpansion
set count=5
:repeat
    set content=X
    for /F "tokens=*" %%T in ( 'findstr /C:"Rerun LaTeX" refman.log' ) do set content="%%~T"
    if !content! == X for /F "tokens=*" %%T in ( 'findstr /C:"Rerun to get cross-references right" refman.log' ) do set content="%%~T"
    if !content! == X goto :skip
    set /a count-=1
    if !count! EQU 0 goto :skip

    echo ----
    pdflatex  refman
goto :repeat
:skip
endlocal

REM---code end

--
Stefan
Comment 3 Dimitri van Heesch 2012-02-16 20:03:26 UTC
Hi Stefan,

Thanks for the batch file. I'll include it in the next update.
Comment 4 Dimitri van Heesch 2012-02-25 15:37:44 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.0. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.