Some LaTeX tips to improve productivity
- Nguyen Vinh Phu
- Aug 9, 2017
- 1 min read
I have found these useful LaTeX packages and commands in the internet and decided to put them in one place for future use.
1. Clever cross references
In the past I had to use, e.g, Fig.~\ref{fig1} to refer to the figure whose label is fig1. In a similar manner, Eq.~\ref{eq1} to the equation of which label is eq1. With the cleveref package, things are much simplified. The usage is simple:
In the preamble, put the following
\usepackage[capitalise]{cleveref}
\crefname{figure}{Fig.}{Figs.}
\crefname{equation}{Equation}{Equations}
Then, some examples are
\cref{fig1}
2. Todo list
\usepackage[textsize=tiny]{todonotes}
\listoftodos
\todo{This way of H0 does not work with the cubic degradation function!!!}
Recent Posts
See AllWe (Stephane Bordas, Alban de Vaucorbeil and me) wrote a paper (link) presents ways to write good scientific papers in the field of...
This note documents steps to make a newly fresh Mac OS machine a computing environment for computational mechanicians. First, install...