Wiki - README‎ > ‎Programming‎ > ‎


fully embed fonts [link]
% find where file is located that stores font refs
> kpsewhich
% run pdffonts on pdf to get a list of the fonts used.
> pdffonts main.pdf
% create file
% search for each font in file and add these lines to
% on each line, change last < to <<
% add to main .tex file...

nicer url formatting [link]
% Inspired by
% but slightly less kern and shorter underscore
\def\Url@underscore{\nfss@text{\leavevmode \kern.06em\vbox{\hrule\@width.3em}}}

add \ignorespacesafterend when defining nested environments [link] [link]

embedding python in LaTeX [link]

basic formatting tools [link]

change font of url command [link]
\newcommand{\urlwofont}[1]{ \urlstyle{same}\url{#1} }

font catalog [link]

embedding videos and interactive 3d [link]

embed 2d/3d diagram into tex [link]

moving tables and figures [link]
"non-floating" floats [link]

ReStructuredText [link]

citing in figure captions [link]
\caption{A figure's caption \protect\cite{somereference}}

Custom List Styles (link) -- Nicely formated nested enumerations
\item Loop:
\item Command 1
\item Command 2
\item Command 3
\item Command 4

Poster (link) (link)

Convert TeX to HTML
htlatex texfile

Avoid eqnarray (link)

Various tips and tricks (link)

When compiling LaTeX with included PDFs, if warnings about page groups appear even though the PDF has only one page, do the following:
open the PDF in Okular.  File->Print.  Select Print to PDF.  Check the paper size!  Change output filename.  OK.  Use this new PDF, instead.

symbols (link)

TeX Resources on the Web (link)
Fonts (link)
mtpro2 (link)
TeX fonts (link), typewriter fonts (link)
Verbatim (link)


prettifying [link]
arrows, tkiz [link]

Poster theme and template (link)
Keynote styled Beamer theme (link)

themes [link]

no theme [link]
\setbeamertemplate{itemize item}{$\bullet$}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}[text line]{%

% Define some colors:

% Use the colors:
\setbeamercolor{normal text}{fg=Charcoal}
\setbeamercolor{block title}{fg=black,bg=Fern!25!white}
\setbeamercolor{block body}{fg=black,bg=Fern!25!white}
\setbeamercolor{alerted text}{fg=AlertColor}
\setbeamercolor{itemize item}{fg=Charcoal}

customizing latex (link)

useful LaTeX commands
% general spacing commands
\setlength{\parindent}{6mm} %sets indentation space for each paragraph
\setlength{\parskip}{1cm} %sets spacing between paragraphs
\setlength{\parskip}{1cm plus4mm minus3mm} %sets flexible spacing

% math commands with text underneath

% command to produce a_i,...,a_j (\subvec[a]{i}{j}), x_0,...,x_10 (\subvec{0}{10})

% ensure always in math mode
\newcommand{\inmath}{\ensuremath{this will always be in math mode!}}

Tip-and-Tricks for Conference Papers

two column layouts, rubber lengths, hyphenating, etc. (link)

Getting to Grips with LaTeX - Formatting (link)
Common LaTeX errors (link)


from: link
to change the column alignment for a single cell, use \multicolumn{1}:
            & \multicolumn{1}{c}{Year1} & \multicolumn{1}{c}{Year2} \\
  Travel    & 100,000 & 110,000 \\
  Equipment & 50,000 & 60,000


unpublished papers can be given an invisible date
year = "unpublished paper\setbox0=\hbox{2010}"