#!/bin/tcsh # TeXShop Engine file to handle XeLaTeX, including glossaries # # Belongs in Library/TeXShop/Engines # # Version 1.01 # # Designed for use with MultiMarkdown generated LaTeX, but should be useful # for other files as well. # # by Fletcher T. Penney # http://fletcherpenney.net/ # # Copyright (C) 2007 Fletcher T. Penney # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the # Free Software Foundation, Inc. # 59 Temple Place, Suite 330 # Boston, MA 02111-1307 USA # This runs the commands to generate a glossary for memoir (which is different than the command # used to create a glossary for other classes. Overall, this script should work for either.) set path = ($path /usr/textbin /usr/local/teTeX/bin/powerpc-apple-darwin-current /usr/local/bin) set basefile = `basename "$1" .tex` xelatex "$1" # Glossary command makeindex -t "${basefile}.glg" -o "${basefile}.gls" -s "${basefile}.ist" "${basefile}.glo" # Glossary command for memoir package makeindex -s `kpsewhich basic.gst` -o "${basefile}.gls" "${basefile}.glo" xelatex "$1" xelatex "$1" xelatex "$1" xelatex "$1"