Introduction To LaTeX
Introduction To LaTeX
Design 2
Introduction to LaTeX
9 March 2018
Introduction
• LaTeX is not a word processor! Instead, LaTeX encourages authors not to
worry too much about the appearance of their documents but to concentrate
on getting the right content. For example, consider this document:
Cartesian closed categories and the price of eggs
Jane Doe
September 1994
Hello world!
\caption{Some caption.}
\label{fig:fig1}
\end{figure}
• Subfigures:
\begin{figure}
\centering
\subfigure[Fig 2a Caption]{\label{fig:fig2a}
\includegraphics[width=0.56\columnwidth]{fig/fig2a.pdf}}
\subfigure[Fig 2b Caption]{\label{fig:fig2b}
\includegraphics[width=0.43\columnwidth]{fig/fig2b.pdf}}
\caption{General Caption.}
\label{fig:fig2}
\end{figure} Adam Teman, 2018
Bibliography
• To add a citation in the text:
• \cite{citationref}
• Then, at the end of the paper (where you want the bibliography to appear):
• \bibliographystyle{IEEEtran}
• \bibliography{.bib file name}
• .bib file:
@article{meinerzhagen2013exploration,
title={Exploration of Sub-{VT} and Near-{VT} {2T} Gain-Cell Memories for
Ultra-Low Power Applications under Technology Scaling},
author={Meinerzhagen, Pascal and Teman, Adam and Giterman, Robert and others}
journal={MDPI JLPEA},
volume={3},
number={2},
pages={54--72},
year={2013},
publisher={Multidisciplinary Digital Publishing Institute}
}
% myconfig.tex:
\newcommand{\enicsPath}{<my GIT path>/Enics_common/}
Adam Teman, 2018
What kind of “macros” do we use?
• In order to reference figures, tables, etc.:
• Instead of Fig.~\ref{fig:myfigure}
• We can just write \figref{myfigure}
• Always add type to labels:
• E.g.: \label{fig:myfig}, \label{sec:introduction}
\renewcommand{\eqref}[1]{(\ref{#1})}
\newcommand{\secref}[1]{\mbox{Section~\ref{#1}}}
\newcommand{\appref}[1]{\mbox{Appendix~\ref{#1}}}
\newcommand{\chapref}[1]{\mbox{Chapter~\ref{#1}}}
\newcommand{\figref}[1]{\mbox{Figure~\ref{#1}}}
\newcommand{\tblref}[1]{\mbox{Table~\ref{#1}}}
\newcommand{\algref}[1]{\mbox{Algorithm~\ref{#1}}}