I currently try to write my own buildscript as perl is at the moment not an option (so no makeglossaries) to build multiple glossaries. When I try to pack everything in a single batch file, it seems that makeindex is not called (no gls files are created).
not working tex.bat:
@echo off
set document=%~n1
set miktexpath=C:/bin/programme/miktex/miktex/bin
start /wait %miktexpath%/pdflatex %document%.tex ^
&& ^
%miktexpath%/makeindex -s %document%.ist -t %document%.glg -o %document%.gls %document%.glo ^
&& ^
%miktexpath%/makeindex -s %document%.ist -t %document%.idx.glg -o %document%.idx.gls %document%.idx.glo ^
&& ^
%miktexpath%/pdflatex %document%.tex ^
&& ^
%miktexpath%/pdflatex %document%.tex ^
&& ^
%miktexpath%/SumatraPDF -reuse-instance %document%.pdf
If I put every makeindex-call into a several batch file, it works. But this is more ugly than it already is.
working tex.bat:
@echo off
set document=%~n1
set miktexpath=C:/bin/programme/miktex/miktex/bin
start /wait %miktexpath%/pdflatex %document%.tex ^
&& ^
call ./gls.bat %document% ^
&& ^
call ./gls_idx.bat %document% ^
&& ^
%miktexpath%/pdflatex %document%.tex ^
&& ^
%miktexpath%/pdflatex %document%.tex ^
&& ^
%miktexpath%/SumatraPDF -reuse-instance %document%.pdf
gls.bat:
@echo off
set document=%~n1
set miktexpath=C:/bin/programme/miktex/miktex/bin
%miktexpath%/makeindex -s %document%.ist -t %document%.glg -o %document%.gls %document%.glo
gls_idx.bat:
@echo off
set document=%~n1
set miktexpath=C:/bin/programme/miktex/miktex/bin
%miktexpath%/makeindex -s %document%.ist -t %document%.idx.glg -o %document%.idx.gls %document%.idx.glo
Why is that so and how do I write a single buildscript?
Another thing: makeindex also refuses to build files when I use file extensions other than .gls/.glo etc.
ERRORLEVEL, 3) assuming it's OK, run MakeIndex, 4) add loops as required. – Joseph Wright Sep 22 '14 at 12:08errorlevelI was able to do it within one single file. Thank you for editing – Buni Sep 22 '14 at 12:37glossariesyou can use theautomakepackage option. If the shell escape is enabled, this will execute the requiredmakeindexcommands during the LaTeX run (without the need for themakeglossariesPerl script). – Nicola Talbot Sep 24 '14 at 07:39