====== LaTeX Snippets ======
Here are some snippets that can be useful for those writing articles or thesis in LaTeX:
===== Inserting comments =====
This is a "inline" version, will post the "side note" version later.
\newcommand{\nb}[2]{
{
{\color{red}{
\small\fbox{\bfseries\sffamily\scriptsize#1}
{\sffamily\small$\triangleright~${\it\sffamily\small #2}$~\triangleleft$}
}}}
}
\newcommand\rr[1]{\nb{RR}{#1}}
% add here macros for other reviewers
%------
% use in the text as follows
This is a sentence with a remark \rr{This sentence needs to be reviewed}.
===== Inserting a figure =====
\newcommand{\myfig}[3] %label, caption, filename
{
\begin{figure}[h!]
\centering
\includegraphics[width=\linewidth]{pics/#3}
\caption{#2}
\label{fig:#1}
\end{figure}
}