summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/codepage/codepage.drv
blob: 0720ff1bbb1cc8eb34edc6a55b8cc3d4fcd9250e (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
\documentclass{article}
\usepackage{doc}

%
%-------------------------------------------Macro used by the documentaion-----------------------------
%
\makeatletter
\def\CarSmaller{\ifx\@currsize\normalsize
                        \small
                   \else
                     \ifx\@currsize\small
                        \footnotesize
                     \else
                        \ifx\@currsize\footnotesize
                            \scriptsize
                        \else
                           \ifx\@currsize\scriptsize
                               \tiny % we cannot have less
                           \fi
                        \fi
                     \fi
                   \fi
                   \ifx\@currsize\large
                      \normalsize
                   \else
                    \ifx\@currsize\Large
                         \large
                      \else
                         \ifx\@currsize\LARGE
                             \Large
                         \else
                            \ifx\@currsize\huge
                               \LARGE
                            \else
                               \ifx\@currsize\Huge
                                  \huge
                               \fi
                            \fi
                         \fi
                      \fi
                   \fi
                 }% \CarSmaller
\makeatother

\let\iffrench=\iffalse
\let\ifenglish=\iftrue

\chardef\Circonflexe="5E
\chardef\TildeChar="7E
\chardef\bslash='134
\let\ft=\footnote
\def\Fich#1{{\CarSmaller\sf #1}} % write a file name
\def\Comm#1{{\CarSmaller\tt\bslash #1}}

%
%------------------------------------------Page dimensions---------------------------------------------
%
% Suppression of the standard TeX offset
\hoffset=-1in
\voffset=-1in

\setlength{\parindent}{0pt}
\setlength{\oddsidemargin}{4.5cm}
\setlength{\marginparwidth}{4cm}
\setlength{\textwidth}{15cm}
\setlength{\textheight}{24cm}
%
%----------------------------------------------Doc package parameters-----------------------------------
%
%\OnlyDescription %Only the description of package, not the implementation will be printed
\DisableCrossrefs   % no full index
\CodelineIndex     % by line number
\RecordChanges     % make change history


\begin{document}
\DocInput{codepage.dtx} \PrintIndex \PrintChanges
\end{document}