annika-w
9/7/2017 - 3:19 PM

Latex

All things related to Latex syntax and also Latex setup on Linux using vim and vimtex.

Basics

  • Non breaking space: i.~e.
  • New paragraph: \\ or \\\\
  • Footnote: \footnote{\url{www.hallo.com}}

Vimtex

Shortcuts from within vim:

  • \ll: Start/stop compiling continuously
  • \lc: Clean auxiliary files
  • \lC: Clean auxiliary files incl. PDFs

Acronym Package

Info

Uses suffix package from bigfoot package. (see CTAN) https://www.namsu.de/Extra/pakete/Acronym.html

Usage

\usepackage[printonlyused,withpage]{acronym}

\begin{acronym}
\setlength{\itemsep}{-0.3cm}
\acro{ACS}{Institute for Automation of Complex Power Systems}
\acro{IB}{InfiniBand}
\end{acronym}

Shortcuts in text

\ac{HP}     % normal
\acp{HP}    % for plural
\acf{HP}    % long and abbreviation
\acl{HP}    % only long version
\acs{HP}    % only short form

Package Installation

Update Tex Live Manager:

sudo /usr/local/texlive/2017/bin/x86_64-linux/tlmgr update --self

Automatic installation using Tex Live Manager:

sudo /usr/local/texlive/2017/bin/x86_64-linux/tlmgr install acronym

Manual installation if package not found in repo after extracting zip

# https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages#Installing_a_package
latex packagename.ins
sudo cp -r \
  ~/Downloads/packagename/styfilename.sty \
  /usr/local/texlive/texmf-local/texmf/tex/packagename
sudo texhash