Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating PDF from LaTeX through make (Origin: bugzilla #668010) #4534

Closed
doxygen opened this Issue Jul 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@doxygen
Copy link
Owner

doxygen commented Jul 2, 2018

status RESOLVED severity enhancement in component build for ---
Reported in version 1.7.6.1 on platform Other
Assigned to: Dimitri van Heesch

On 2012-01-16 12:59:00 +0000, Stefan wrote:

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

On 2012-01-18 10:40:07 +0000, Stefan wrote:

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

On 2012-01-18 10:45:08 +0000, Stefan wrote:

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

On 2012-02-16 20:03:26 +0000, Dimitri van Heesch wrote:

Hi Stefan,

Thanks for the batch file. I'll include it in the next update.

On 2012-02-25 15:37:44 +0000, Dimitri van Heesch wrote:

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.

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.