Skip to content

Instantly share code, notes, and snippets.

@delta4d
Last active December 27, 2015 08:59
Show Gist options
  • Save delta4d/7300734 to your computer and use it in GitHub Desktop.
Save delta4d/7300734 to your computer and use it in GitHub Desktop.
tex tips maybe..

some problems when I use latex, solution may work, but probably not the best

cross reference

\label{marker}: name a marker
\ref{marker}: ref a marker

enable subsubsubsection

\usepackage{titlesec}
\setcounter{secnumdepth}{4}
\titleformat{\paragraph}{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

table of content links

\usepackage{hyperref}
\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}

set paragraph spacing

\setlength{\parskip}{10pt}

display special characters like Ö

% using utf8 format
\usepackage[utf8]{inputenc}
\"{O}

to be continued

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment