summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ltxdockit/ltxdockit.cfg
blob: 270f0e76bd2add9b1ea61dcc070dd8b1c0bc0c0b (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
% $Id: ltxdockit.cfg,v 1.2d 2011/03/25 20:33:14 lehman stable $

\ProvidesFile{ltxdockit.cfg}
[\ltd@rcsid $Id: ltxdockit.cfg,v 1.2d 2011/03/25 20:33:14 lehman stable $
 ltxdockit configuration (DFSG-free)]

\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage{helvet}
\RequirePackage{charter}

\catcode`\"=\active
\AtEndPreamble{%
  \@ifpackageloaded{babel}
    {\iflanguage{american}
       {\expandafter\initiate@active@char\expandafter{\string"}%
	\declare@shorthand{american}{"=}{\penalty\@M-\hskip\z@skip}%
	\addto\extrasamerican{\languageshorthands{american}\bbl@activate{"}}%
	\addto\noextrasamerican{\bbl@deactivate{"}}}
       {}}
    {}}
\catcode`\"=12

\newrobustcmd*{\tex}{TeX\xspace}
\newrobustcmd*{\etex}{\mbox{e-TeX}\xspace}
\newrobustcmd*{\pdftex}{pdf\-\tex}
\newrobustcmd*{\xetex}{Xe\-\tex}
\newrobustcmd*{\luatex}{Lua\-\tex}
\newrobustcmd*{\latex}{La\kern-0.07em TeX\xspace}
\newrobustcmd*{\pdflatex}{pdf\-\latex}
\newrobustcmd*{\xelatex}{Xe\-\latex}
\newrobustcmd*{\lualatex}{Lua\-\latex}
\newrobustcmd*{\bibtex}{Bib\kern-0.07em TeX\xspace}
\newrobustcmd*{\lppl}{\latex Project Public License\xspace}
\newrobustcmd*{\pdf}{\acr{PDF}\xspace}
\newrobustcmd*{\utf}{\mbox{\acr{UTF}-8}\xspace}
\newcommand*{\ie}{i.\,e.,\xspace}
\newcommand*{\eg}{e.\,g.,\xspace}

\pdfstringdefDisableCommands{%
  \def\tex{TeX\xspace}%
  \def\etex{e-TeX\xspace}%
  \def\xetex{XeTeX\xspace}%
  \def\latex{LaTeX\xspace}%
  \def\xelatex{XeLaTeX\xspace}%
  \def\bibtex{BibTeX\xspace}%
  \def\lppl{LaTeX Project Public License\xspace}%
  \def\pdf{PDF\xspace}%
  \def\utf{UTF-8\xspace}%
  \def\ie{i.e.,\xspace}%
  \def\eg{e.g.,\xspace}%
}

% tables

\newcommand*{\tablesetup}{%
  \let\verbatim@font\displayverbfont
  \footnotesize}

% layout

\setcounter{totalnumber}{1}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{2}
\AtBeginToc{\setcounter{tocdepth}{2}}
\AtEndToc{\setcounter{tocdepth}{5}}
\addtolength{\oddsidemargin}{1cm}
\setlength{\columnsep}{2em}
\setlength{\multicolsep}{0pt}
\clubpenalty6000\relax
\widowpenalty\@M

\renewcommand*{\labelenumi}{\theenumi.}
\renewcommand*{\labelenumii}{\theenumii)}

\renewcommand*{\verbatimfont}{\ttfamily}
\renewcommand*{\displayverbfont}{\ttfamily}
\renewcommand*{\marglistfont}{\spotcolor\sffamily\small}
\renewcommand*{\margnotefont}{\sffamily\small}
\renewcommand*{\optionlistfont}{\spotcolor\sffamily\displayverbfont}
\renewcommand*{\ltxsyntaxfont}{\ttfamily}
\renewcommand*{\ltxsyntaxlabelfont}{\spotcolor\displayverbfont}
\renewcommand*{\changelogfont}{\normalfont}
\renewcommand*{\changeloglabelfont}{\spotcolor\sffamily\bfseries}

% no-ops

\providecommand*{\textln}[1]{#1}

\endinput