summaryrefslogtreecommitdiff
path: root/graphics/mol2chemfig/docs/preamble.tex
blob: f2f1a575acdec7111a4e409bc60b60993ea8e3bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
\usepackage{
    enumitem,
    graphicx,
    listings,
    textcomp,
    xspace
}

\setlist[enumerate]{itemsep=0pt}
\setlist[itemize]{itemsep=0pt}

% use postscript fonts
\usepackage{courier,times}
\usepackage[scaled=0.92]{helvet}
\usepackage{sansmath}

\usepackage[x11names]{xcolor}
\usepackage[margin=1.0in]{geometry}
\usepackage[small]{titlesec}

% load mol2chemfig custom macros
\usepackage{mol2chemfig}

% set default input path
\makeatletter
\def\input@path{{examples/}}
\makeatother

% import live settings 
\input{hand-coded-tex/chemfig-settings}

\newlength{\fspc}
\setlength{\fspc}{5pt}

% customize code listings
\lstset{backgroundcolor=\color{LightSteelBlue1},
        basicstyle=\ttfamily\small,
        xleftmargin=\fspc,
        framexleftmargin=\fspc,
        framextopmargin=\fspc,
        frame=single,
        framerule=0pt,
        linewidth=\linewidth,
        breaklines=true,
        breakatwhitespace=true,
        showstringspaces=false,
}

\newcommand{\mcf}{\texttt{mol2chemfig}\xspace}
\newcommand{\chf}{\texttt{chemfig}\xspace}
\newcommand{\mf}{\texttt{molfile}\xspace}
\newcommand{\smiles}{\texttt{SMILES}\xspace}
\newcommand{\tkz}{\texttt{TiKZ}\xspace}
\newcommand{\rdkit}{\texttt{rdkit}\xspace}
\newcommand{\mcfplain}{\texttt{mol2chemfig.tex}\xspace}

\setlength{\parskip}{0.25\baselineskip}
\setlength{\parindent}{0pt}

% structures need a little space
\newcommand{\cfpic}[1]{\bigskip \par \input{#1} \par \bigskip}

% use hyperlinks
\usepackage[colorlinks,linkcolor=Blue3,urlcolor=Blue3]{hyperref}