summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/changes/changes.drv
blob: 4f1265b633fc8f5b39efcdbe511e874990757e15 (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
%%%
% driver file of changes package

\documentclass[twoside, titlepage, parskip=half, toc=flat, cleardoublepage=empty, captions=nooneline, origlongtable, english]{scrartcl}

% code definition and documentation
\usepackage{doc}

% basis layout
\usepackage[font=charter]{basis}

% language selection
\selectlanguage{english}

% use change management ;)
\usepackage{changes}
\definechangesauthor[name={Ekkart Kleinod}, color=orange]{EK}
\setremarkmarkup{(#2)}

% improve list layout
\usepackage{enumitem}
\setlist{noitemsep}

% full index
\EnableCrossrefs

% with line numbers
\CodelineIndex

% formatting
\newcommand{\chpackage}[1]{\textsl{#1}}
\newcommand{\choption}[1]{\texttt{#1}}
\newcommand{\chfile}[1]{\texttt{#1}}
\newcommand{\chcommand}[1]{\texttt{\textbackslash{}#1}}

% makro headings
\makeatletter
\def\Describe@Macro#1{%
 \endgroup%
 \fbox{\PrintDescribeMacro{#1}}\par%
 \SpecialUsageIndex{#1}\@esphack\ignorespaces%
}
\def\Describe@Env#1{%
 \endgroup%
 \fbox{\PrintDescribeEnv{#1}}\par%
 \SpecialEnvIndex{#1}\@esphack\ignorespaces
}
\makeatother

% catchall - english
\newif\ifENGLISH
\ENGLISHtrue

% german
\newif\ifGERMAN
\GERMANfalse
\iflanguage{ngerman}{\GERMANtrue\ENGLISHfalse}{}
\iflanguage{german}{\GERMANtrue\ENGLISHfalse}{}

% new language example: french
% \newif\ifFRENCH
% \FRENCHfalse
% \iflanguage{french}{\FRENCHtrue\ENGLISHfalse}{}

% example environment
\newenvironment{chusage}{
	\small
	\begin{tabbing}
		m\=\kill
		\usagecall
}{%
	\end{tabbing}
}
\newcommand{\usagecall}{
	\ifENGLISH
		\textsl{Call}\\
	\fi
	\ifGERMAN
		\textsl{Aufruf}\\
	\fi
}
\newcommand{\usageexample}{
	\ifENGLISH
		\textsl{Examples}\\
	\fi
	\ifGERMAN
		\textsl{Beispiele}\\
	\fi
}

% document title
\ifENGLISH
	\title{The \chpackage{changes}-package}
	\subtitle{Manual change markup --- version 2.0.4}
\fi
\ifGERMAN
	\title{Das \chpackage{changes}-Paket}
	\subtitle{Manuelle Änderungsmarkierung -- Version 2.0.4}
\fi

\author{Ekkart Kleinod}
\email{ekleinod@edgesoft.de}

% only description part?
%\OnlyDescription

% content
\begin{document}

	\DocInput{changes.dtx}

\end{document}