Useful tips for Latex

  • Load multiple .bib files
    •  \bibliography{file1,file2}
Using subfig
\documentclass{article}

\usepackage{graphicx}
\usepackage{subfig}

\begin{document}

\begin{figure}[!tbp]
  \centering
  \subfloat[Flower one.]{\includegraphics[width=0.4\textwidth]{flower1.jpg}\label{fig:f1}}
  \hfill
  \subfloat[Flower two.]{\includegraphics[width=0.4\textwidth]{flower2.jpg}\label{fig:f2}}
  \caption{My flowers.}
\end{figure}

\end{document}

  • "<" and ">" in the text
    • \textless and \textgreater

  • Table related
    • add double vertical line: \begin{tabular}{|c|c||c|c|c|c|c|c|c|c|c|}
    • resize table box : \renewcommand{\arraystretch}{<factor>}

No comments:

Post a Comment