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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p