summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/changes/changes.drv
blob: cfd116554cc617eb69dafaad7e4da6cf606e39b8 (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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
%%%
% driver file of changes package

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

% code definition and documentation
\usepackage{doc}

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

% listings
\usepackage{listings}
\lstset{
	language=[AlLaTeX]TeX,
	float=hbp,
	numberstyle=\tiny\ttfamily,
	basicstyle=\ttfamily,
	identifierstyle=\color{DimGrey},
	morekeywords={
	},
	keywordstyle=\color{LightSlateBlue},
	commentstyle=\itshape\color{Thistle},
	backgroundcolor=\color{PapayaWhip},
	columns=fixed,
	tabsize=4,
	frame=single,
	extendedchars=true,
	showspaces=false,
	showstringspaces=false,
	numbers=none,
	breaklines=true,
	breakindent=3em,
	breakautoindent=true,
	captionpos=t,
	xleftmargin=1em,
	xrightmargin=1em,
	lineskip=0pt,
	numbersep=1em,
	classoffset=1,
	morekeywords={
		added,
		changes,
		color,
		comment,
		compactsummary,
		deleted,
		definechangesauthor,
		highlight,
		id,
		listofchanges,
		name,
		replaced,
		setsummarywidth,
		setsummarytowidth,
		settruncatewidth,
		style,
		xcolor,
	},
	keywordstyle=\color{Chocolate},
	moredelim=[s][\color{SlateGrey}]{<}{>},
	classoffset=0
}

% todo notes
\usepackage{todonotes}

% language selection
\selectlanguage{english}

% use change management ;)
\usepackage[commentmarkup=uwave]{changes}
%\usepackage{changes}
\definechangesauthor[name={Ekkart Kleinod}, color=orange]{EK}

% 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
\newcommand{\chexample}[1]{
	\input{userdoc/in_#1}

	\lstinputlisting{userdoc/ex_#1}
}
\newenvironment{chusage}{
	\small
	\begin{tabbing}
		m\=m\=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 3.0.0}
\fi
\ifGERMAN
	\title{Das \chpackage{changes}-Paket}
	\subtitle{Manuelle Änderungsmarkierung -- Version 3.0.0}
\fi

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

% only description part?
%\OnlyDescription

% content
\begin{document}

	\DocInput{changes.dtx}

\end{document}