diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/templates/master/nomake.cmd')
-rw-r--r-- | Master/texmf-dist/doc/latex/disser/templates/master/nomake.cmd | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/templates/master/nomake.cmd b/Master/texmf-dist/doc/latex/disser/templates/master/nomake.cmd index 8ed500ecaa6..902f2a22ab2 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/master/nomake.cmd +++ b/Master/texmf-dist/doc/latex/disser/templates/master/nomake.cmd @@ -32,6 +32,7 @@ set arc=rar set arcflags=a -r -x%target%.pdf -x%target%.prj set tex=%texmf%\miktex\bin\latex +set pdftex=%texmf%\miktex\bin\pdflatex set texflags=-src-specials set bibtex=%texmf%\miktex\bin\bibtex8 @@ -54,6 +55,7 @@ set suffix=$$ if %1/==/ ( :make + chcp 1251 %tex% %target%.tex %bibtex% %bibtexflags% %target% %tex% %target%.tex @@ -65,13 +67,17 @@ if %1/==/ goto :eof if %1/==pdf/ ( :pdf - set tex=pdflatex - call :make + chcp 1251 + %pdftex% %target%.tex + %bibtex% %bibtexflags% %target% + %pdftex% %target%.tex + %pdftex% %texflags% %target%.tex +goto :eof ) +rem Make source distribution if %1/==srcdist/ ( :srcdist - echo Making source distribution... if not exist %clsdir% mkdir %clsdir% xcopy %clssrc% %clsdir% /S xcopy %bstsrc%\%bstfile% . /S @@ -96,9 +102,9 @@ if %1/==cleansvn/ ( goto :end ) +rem Fix bounding boxes of EPS files if %1/==fixbb/ ( :fixbb - echo Fixing bounding boxes of EPS files... for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :fix %%n goto :end :fix @@ -108,9 +114,9 @@ goto :end goto :eof ) +rem Convert EPS to PDF if %1/==epstopdf/ ( :epstopdf - echo Converting EPS to PDF... for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :conv %%n goto :end :conv @@ -143,13 +149,6 @@ if %1/==djvu/ ( %pdftodjvu% %pdftodjvuflags% %target%.pdf goto :end ) -rem Create OCRed DjVu file -if %1/==ocr/ ( -:ocr - if not exist %target%.djvu call :djvu - %djvuocr% %djvuocrflags% %target%.djvu %target%-ocr.djvu -goto :end -) rem Create backup if %1/==backup/ ( :backup @@ -158,6 +157,7 @@ if %1/==backup/ ( goto :end ) +echo Don't know how to make %1 :end shift & goto :start |