summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/biblatex-gost/ltxdockit.cfg
blob: 8d582bdccd7bc64dc428ce723b7a8ae33ace33e0 (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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
\ProvidesFile{ltxdockit.cfg}
%[ltxdockit configuration]

\RequirePackage[T1,T2A]{fontenc}
\RequirePackage[utf8]{inputenc}
%\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}
\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}

% title page

\renewrobustcmd*{\printtitlepage}{%
  \begingroup
  \centering\titlefont
  \begingroup\LARGE
    \ifundef\ltd@title@url
      {\ltd@title@title}
      {\href{\ltd@title@url}{\ltd@title@title}}%
    \par
  \endgroup
  \vspace{0.25\baselineskip}
  \begingroup\large
    \ltd@title@subtitle\par
  \endgroup
  \vspace{0.25\baselineskip}
  \begin{multicols}{2}
  \raggedleft
    \ltd@title@author\par
    \expandafter\email\expandafter{\ltd@title@email}\par
  \raggedright
    v\ltd@title@revision\par\printdateTeX{\ltd@title@date}
  \end{multicols}
  \endgroup}

\endinput