Changeset 3897
- Timestamp:
- 06/26/09 21:30:28 (5 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 modified
-
Fortify/example/example.tic (added)
-
bin/fortick (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/fortick
r3895 r3897 20 20 FORTRESS_HOME="`${0%fortick}fortress_home`" 21 21 22 if [ "x"$1 = "x-q" ] ; then 23 SILENCE="golden" 24 shift 25 fi 26 22 27 if [ $# -ne 1 ] ; then 23 echo "fortick somefile.suffix" 24 echo "Replaces backtick-delimited fortress with nicely formatted fortress." 25 echo "Writes to somefile.tex (will overwrite original if suffix = tex)" 28 echo "Usage: fortick [-q] somefile.suffix (one file, no more, no less)" 29 echo " Replaces backtick-delimited fortress with nicely formatted fortress." 30 echo " Writes to somefile.tex (will overwrite original if suffix = \"tex\")" 31 echo " Option -q suppresses some of the command output." 26 32 exit 1 27 33 fi 28 34 29 if grep -q "usepackage{ fortify}" $1 ; then35 if grep -q "usepackage{.*fortify.*}" $1 ; then 30 36 true 31 37 else 32 echo "WARNING: input file lacks \\usepackage{fortify}" 38 if [ -z "$SILENCE" ] ; then 39 echo "WARNING: input file lacks \\usepackage{fortify}" 40 fi 33 41 fi 34 42 … … 39 47 "${USE_EMACS}" -batch "$@" -l "$FORTRESS_HOME/Fortify/fortify.el" -f fortick 40 48 41 echo "Process with" 42 echo " TEXINPUTS=.:${FORTRESS_HOME}/Fortify: latex ${BASENAME}.tex" 49 if [ -z "$SILENCE" ] ; then 50 echo "Process with" 51 echo " TEXINPUTS=\".:${FORTRESS_HOME}/Fortify:\" latex \"${BASENAME}.tex\"" 52 echo "or (for pdf output) " 53 echo " TEXINPUTS=\".:${FORTRESS_HOME}/Fortify:\" pdflatex \"${BASENAME}.tex\"" 54 fi

