summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ltxdockit/ltxdockit.cfg
blob: ddc36789cc480fb2fb26cfc4f6f5b3f4f0845ead (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
% $Id: ltxdockit.cfg,v 1.2a 2010/02/12 20:20:16 lehman stable $

\ProvidesFile{ltxdockit.cfg}
[\ltd@rcsid $Id: ltxdockit.cfg,v 1.2a 2010/02/12 20:20:16 lehman stable $
 ltxdockit configuration (DFSG-free)]

\RequirePackage{lmodern}

\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*{\xetex}{Xe\tex}
\newrobustcmd*{\latex}{La\kern-0.07em TeX\xspace}
\newrobustcmd*{\xelatex}{Xe\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*{\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