User Tools

Site Tools


tips:latex:start

LaTeX Tips

Style Nits

Units

Units should be digit<space>unit; the unit is not italicized or anything fancy. You should use the unit space (\,) in latex. Our paper template defines useful macros for all the “micro” units that will put correct, upright mu's in place – use them.

The system has 3.3\,V power supply, an average power of 10\,mW, and a sleep current of only 20\,\uA.

Citations

Citations go “inside” of the sentence, that is the period should follow the citations.

This sentence cites one work~\cite{ref1}.

To cite multiple references, use one cite command~\cite{ref1, ref2, ref3}.

Note the use of a non-breaking space (~) between the last word and the citation.

References

The cleveref package supplies the commands \Cref and \cref (start of a sentence? Cref). This command will include the word “Section, Table, Figure” as appropriate and makes the link target the whole string “Figure 1” instead of just the little “1” which is much kinder to the end user. It will also amalgamate things intelligently like “Figures 7a-c,f” if you put multiple, comma-separated references in the {}'s.

Usage:

A detailed comparison is shown in \cref{comparison}. \Cref{graph-1,graph-2,graph-5} show the initial setup and the final results.

Allows you to eliminate the block and recover the whitespace for text. Works by redefining the LaTeX macro for the ACM block. This allows one to keep the original style file intact. The following text can be inserted into the main tex file after the document preamble. Source: Timo Hönig.

\makeatletter
\renewcommand{\maketitle}{\par
 \begingroup
   \def\thefootnote{\fnsymbol{footnote}}
   \def\@makefnmark{\hbox
       to 0pt{$^{\@thefnmark}$\hss}}
     \twocolumn[\@maketitle]
\@thanks
 \endgroup
 \setcounter{footnote}{0}
 \let\maketitle\relax
 \let\@maketitle\relax
 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\gdef\@subtitle{}\let\thanks\relax
 }
\makeatother

Eliminate the word "References"

add

\renewcommand{\refname}{}

to the top

Adjust Vertical Space

A little bit hacky, but this can be very helpful:

 \vspace{-1em}

Add Page Numbers

With certain templates, add the preprint flag:

\documentclass[preprint]{sensys-proc}

Ubuntu Install

tips/latex/start.txt · Last modified: 2015/07/03 18:17 by ppannuto