Latex style guide

  1. How to put a figure
    \begin{figure}
    \begin{center}
    \includegraphics[width=0.8\textwidth]{figure.eps}
    \caption{This is a figure}
    \label{fig:figlabel}
    \end{center}
    \end{figure}
    
  2. Always use \textwidth to specify figure size.
  3. NEVER specify both width and height, unless you have a really good reason to do so.
  4. Use tabular within figure to put several figures side-by-side
    \begin{figure}
    \begin{center}
    \begin{tabular}{cc}
    \includegraphics[width=0.48\textwidth]{fig1.eps} &
    \includegraphics[width=0.48\textwidth]{fig2.eps} \\
    (a) & (b)
    \end{tabular}
    \caption{This is a figure: (a) pressure, (b) Mach}
    \label{fig:figlabel}
    \end{center}
    \end{figure}
    
    The sum of widths must not exceed one.
  5. How to put a table
    \begin{table}
    \begin{center}
    \begin{tabular}{|c|c|c|}
    \hline
    % other stuff
    \hline
    \end{tabular}
    \caption{This is a table}
    \label{tab:tablabel}
    \end{center}
    \end{table}
    
  6. Do not use [h] or [ht] for tables and figures; they must be allowed to float.
  7. Do not use \hspace and \vspace.
  8. Do not put explicit line break using \\ unless you have a really good reason to do so.
  9. A blank line creates a new paragraph. Put a blank line only if you need a new paragraph.
  10. Do not use bold font unless really needed to highlight an important point.
  11. Equation, figure and table labels must be of the form \label{eq:foo}, \label{fig:foo}, \label{tab:foo}, respectively.
  12. A un-numbered equation can be put as
    \[
    a = b + c
    \]
    
    or
    \begin{equation*}
    a = b + c
    \end{equation*}