less than 1 minute read

Compile all tex files in a given directory

Reference

# cd /path/to/folder/
for fileName in *.tex
do
  echo "Compile $fileName"
  # redirect output
  latexmk -pdf "$fileName" > /dev/null
  # "latexmk -pdf" is equivalent to pdflatex

  myString=$(printf "%80s")
  echo ${myString// /_}
done

Types of parentheses

Command (in math mode) Meaning
\left( a + b \right) Parentheses
\left[ a + b \right] SquareBrackets
\left\{ a + b \right\} CurlyBrackets
here AbsoluteBrackets

here = \left| a + b \right|


----------------------------