summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd')
-rw-r--r--Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd16
1 files changed, 10 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd b/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd
index 6a162d08b38..80ed92bfe9d 100644
--- a/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd
+++ b/Master/texmf-dist/doc/latex/disser/include/latex.nmk.cmd
@@ -9,6 +9,7 @@ if "%CMDEXTVERSION%"=="" (
)
if "%target%"=="" set target=thesis
+set bibfile=thesis.bib
if "%arch%"=="" set arch=7z
if "%bibtex%"=="" set bibtex=bibtex8
@@ -27,7 +28,9 @@ if "%l2rtf%"=="" set l2rtf=latex2rtf
if "%archext%"=="" set archext=zip
if "%archflags%"=="" set archflags=a -t%archext%
if "%archive%"=="" set archive=%target%.%archext%
+
if "%bibtexflags%"=="" set bibtexflags=-H -c cp1251
+
if "%l2hflags%"=="" (
set l2hflags=-dir html -iso_language RU.RU -split 3 -short_index ^
-numbered_footnotes -no_footnode -white -antialias ^
@@ -60,9 +63,9 @@ if "%1"=="" goto :eof
if "%1"=="dvi" (
:dvi
%latex% %latexflags% %target%.tex
- if exist %target%.bib (
- %bibtex% %bibtexflags% %target%
- %latex% %latexflags% %target%.tex
+ if exist %bibfile% (
+ for %%f in (*.aux) do %bibtex% %bibtexflags% %%f
+ %latex% %texflags% %target%.tex
) else (
echo Warning: Bibliography file does not exist
)
@@ -73,9 +76,11 @@ goto :eof
if "%1"=="pdf" (
:pdf
%pdflatex% %pdflatexflags% %target%.tex
- if exist %target%.bib (
- %bibtex% %bibtexflags% %target%
+ if exist %bibfile% (
+ for %%f in (*.aux) do %bibtex% %bibtexflags% %%f
%pdflatex% %pdflatexflags% %target%.tex
+ ) else (
+ echo Warning: Bibliography file does not exist
)
%pdflatex% %pdflatexflags% %target%.tex
goto :eof
@@ -185,4 +190,3 @@ goto :eof
if "%1" neq "" echo Don't know how to make %1
:end
shift & goto :start
-