Showing posts with label WIP. Show all posts
Showing posts with label WIP. Show all posts

05 April 2015

\usepackage{} -- Caption

\usepackage[hang, small,font=sf,labelfont=bf,up,rm,textfont=it,up]{caption} % Custom captions under/above floats in tables or figures  _NEED REF_

...

hang indicates hanging indent (I think, because I've not found this exact usage indicated in any documentation yet).

small indicates the relative font size.  Something somewhere mentioned that using relative font size is preferable to an absolute font size -- I'm not sure why, and I'm certain that some journals and thesis departments require a particular font size, e.g. 10pt.

font=sf defines the fonts for the labelfont and textfont entirely.
    sf is sans-serif. 

labelfont=bf,up,rm defines the label, number, and separator, e.g. Figure 1:
     They will be (in this case) bold, upright, and Roman.  Roman is the default, however since I defined my captions as sf, rm here makes the labelfont serif.

textfont=it,up defines the font of the caption text, in this case italic and upright.

04 April 2015

\cite{} for Citations

{~\cite[Fig.~7b]{Lname2000}}  ~ is a non-breaking space.  [Fig.~7b] is an [option] to include a specific element or page number from the reference. 

\emph{emphasized text} vs. \textit{italicized text}

\emph{emphasized text} vs. \textit{italicized text} -- If your captions are already italicized, \textit won't show any effect.  \emph can be nested such that an emphasized phrase within an italicized phrase will look like this. 
_NEED REF_

\captionof{element}{Caption text.} vs \caption{Caption text.}

\captionof{figure}{Caption text.} vs \caption{Caption text.} ... _NEED REF_ These have different purposes/effects. 
\captionof{table} or other elements work in this manner.