Rev | Line | |
---|
[136] | 1 | set Dir_Old=%cd%
|
---|
| 2 | cd /D %~dp0
|
---|
| 3 |
|
---|
| 4 | del /s /f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
|
---|
| 5 |
|
---|
| 6 | pdflatex refman
|
---|
| 7 | echo ----
|
---|
| 8 | makeindex refman.idx
|
---|
| 9 | echo ----
|
---|
| 10 | pdflatex refman
|
---|
| 11 |
|
---|
| 12 | setlocal enabledelayedexpansion
|
---|
| 13 | set count=8
|
---|
| 14 | :repeat
|
---|
| 15 | set content=X
|
---|
| 16 | for /F "tokens=*" %%T in ( 'findstr /C:"Rerun LaTeX" refman.log' ) do set content="%%~T"
|
---|
| 17 | if !content! == X for /F "tokens=*" %%T in ( 'findstr /C:"Rerun to get cross-references right" refman.log' ) do set content="%%~T"
|
---|
| 18 | if !content! == X goto :skip
|
---|
| 19 | set /a count-=1
|
---|
| 20 | if !count! EQU 0 goto :skip
|
---|
| 21 |
|
---|
| 22 | echo ----
|
---|
| 23 | pdflatex refman
|
---|
| 24 | goto :repeat
|
---|
| 25 | :skip
|
---|
| 26 | endlocal
|
---|
| 27 | makeindex refman.idx
|
---|
| 28 | pdflatex refman
|
---|
| 29 | cd /D %Dir_Old%
|
---|
| 30 | set Dir_Old=
|
---|
Note:
See
TracBrowser
for help on using the repository browser.