LaTeX Tips and Tricks Collection
This post summarizes some common useful tips in LaTeX editing.
Figures
- Horizontal alignment of subfigures
subfloat
insubfig
Bibliography
- How do I run bibtex after using the -output-directory flag with pdflatex, when files are included from subdirectories?
- biblatex simple usage
Graphics
- Graphics path
- Use other file extensions:
Table and Tabular
- threeparttable: Use footnote in tabular
Theorem, Definition
- New definition/theorem
- Useful packages:
- ntheorem
- amsthm
Fonts
Packages
- csvsimple: can automatically read csv and create tabular.
- algpseudocode: the most updated algorithm / code environment, need to sit inside
with
algorithm
package. - biblatex: provides better control for Bibliography.
- multirow: provides
\multirow
and\multicolumn
. - url: provides
\url
. - xspace: prevent a command eating space.
- flushend: provides
\flushend
, balance two columns.
Controlling space
- reduce space between float and text
- geometry: control the margins at top, bottom, left and right
-
enumitem: control the spacing related to
enumerate
anditemize
. - LaTeX Tips n Tricks for Conference Papers
- Latex: Squeezing the Vertical White Space
- Squeezing Space in LaTeX
Commands and tools:
- latexmk: automatically compile multiple times to resolve reference.
- biber: replacement for bibtex for
biblatex
- texdoc: use
texdoc <package>
to search for a manual.
IEEE
- proof: use
\IEEEproof
- multiple equations: use
\IEEEeqnarray
orarray
.
Comments