Code: Select all
cd path/to/directory
makeindex filename.idx
makeindex filename.glo -s filename.ist -t filename.glg -o filename.gls
Code: Select all
cd path/to/directory
makeindex filename.idx
makeindex filename.glo -s filename.ist -t filename.glg -o filename.gls
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
set this_file to "myfilename"
set this_dir to choose folder
set mydir to POSIX path of this_dir
do shell script "cd " & mydir & ";
ls;
/usr/texbin/makeindex " & this_file & ".idx;
/usr/texbin/makeindex " & this_file & ".glo -s " & this_file & ".ist -t " & this_file & ".glg -o " & this_file & ".gls"
set frontName to "myfile.tex"
tell document frontName of application "TeXShop"
latexinteractive
repeat
delay 2
if taskdone then
exit repeat
end if
end repeat
bibtex
repeat
delay 2
if taskdone then
exit repeat
end if
end repeat
latex
repeat
delay 2
if taskdone then
exit repeat
end if
end repeat
latex
repeat
delay 2
if taskdone then
exit repeat
end if
end repeat
end tell
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis