Debian Codegraph @

doc/ref_card.tex

raw
1 %%*** ref_card.tex ************************************************************
2 %%
3 %% This file is part of BibTool.
4 %% It is distributed under the Creative Commons Attribution-Share
5 %% Alike 3.0 License.
6 %%
7 %% (c) 1996-2020 Gerd Neugebauer
8 %%
9 %% Net: [email protected]
10 %%
11 %%-----------------------------------------------------------------------------
12 %% Usage: latex ref_card
13 %%*****************************************************************************
14
15 \documentclass[a4paper]{article}
16
17 \usepackage{multicol}
18 \usepackage[landscape]{geometry}
19 \usepackage[colorlinks=true,
20 linkcolor=blue,
21 urlcolor=blue,
22 filecolor=blue,
23 citecolor=blue]{hyperref}
24 \input{config.tex}
25
26 \hypersetup{pdftitle={BibTool Quick Reference Card}}
27 \hypersetup{pdfauthor={Gerd Neugebauer}}
28 \hypersetup{pdfsubject={Version \Version}}
29
30 \oddsidemargin = -10mm
31 \evensidemargin = -10mm
32 \topmargin = -10mm
33 \advance\textwidth 60mm
34 \advance\textheight 34mm
35 \headsep = 0pt
36 \headheight = 0pt
37 \parsep = 0pt
38 \parindent = 0pt
39 \parskip = 0pt
40
41 \pagestyle{empty}
42
43 \newcommand\BibTool{\textsc{Bib\hskip-.1em
44 T\hskip-.15emo\hskip-.05emo\hskip-.05eml}}
45 \newcommand\BibTeX{\textrm{B\kern-.05em\textsc{i\kern-.025em b}\kern-.08em
46 T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
47
48 \newenvironment{FlatList}{\begin{list}{}{%
49 \topsep=0pt\itemsep=0pt\parsep=0pt\let\makelabel=\flatlistlabel}}{\end{list}}%
50 \newcommand\flatlistlabel[1]{\descriptionlabel{\textsf{#1}}}
51 \newcommand\Arg[1]{\textrm{\{}\textsl{#1}\textrm{\}}}
52 \newcommand\ARG[1]{\textsl{#1}}
53 \newcommand\OnOff{\textsl{OnOff}}
54 \newcommand\Num{\textsl{n}}
55 \newcommand\Section[1]{\begin{center}\normalsize\bfseries
56 #1\end{center}\nobreak }
57 \newcommand\Lib[1]{\texttt{#1}}
58 \newcommand\mailto[1]{\href{mailto:#1}{\texttt{#1}}}
59 \newcommand\link[1]{\href{#1}{\texttt{#1}}}
60 \newcommand\NewPage{\end{multicols}
61 \vfill\vfill\vfill
62 \begin{center}\rule{.8\textwidth}{.1pt}\end{center}
63 \newpage
64 \begin{center}\rule{.8\textwidth}{.1pt}\end{center}\vfill
65 \begin{multicols}{4}
66 }
67
68 \begin{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
69
70 \begin{center}
71 \Large \BibTool{} Quick Reference Card
72 \\[.5ex]
73 \scriptsize for \BibTool{} version \Version{}
74 --- see also \link{http://www.gerd.neugebauer.de/software/TeX/BibTool/}
75 \\
76 \copyright\Year{} Gerd Neugebauer (\mailto{[email protected]})
77 \\
78 \rule{.80\textwidth}{.1pt}
79 \end{center}
80 \vfill
81 \footnotesize\rmfamily
82 \begin{multicols}{4}
83 \Section{Command line options}
84 \begin{FlatList}
85 \item [-{}- \ARG{rsc\_command}]\ \\
86 Perform resource command as if given in a file.
87 \item [-A \ARG{type}]\ \\
88 Determine key disambiguation. \ARG{type} in \texttt{0}, \texttt{a}, \texttt{A},
89 \item [-d\ ]\ \\
90 Check double entries.
91 \item [-f \ARG{key\_format}]\ \\
92 Generate keys according to \ARG{key\_format}
93 \item [-F\ ]\ \\
94 Enable key generation with free key format.
95 \item [-h\ ]\ \\
96 Print short help and exit.
97 \item [-i \ARG{input\_file}]\ \\
98 Mark a file to be processed later.
99 \item [-k\ ]\ \\
100 Make keys with the short format.
101 \item [-K\ ]\ \\
102 Make keys with the long format.
103 \item [-o \ARG{output\_file}]\ \\
104 Send the output to \ARG{output\_file}.
105 \item [-q\ ]\ \\
106 Suppress warning messages.
107 \item [-r \ARG{resource\_file}]\ \\
108 Read the resource file \ARG{resource\_file}.
109 \item [-R\ ]\ \\
110 Load the default resource file now.
111 \item [-s\ \ ]\ \\
112 Sort the result.
113 \item [-S\ ]\ \\
114 Sort the result in reverse order.
115 \item [-v\ \ ]\ \\
116 Turn on verbose messages about the actions performed.
117 \item [-x \ARG{aux\_file}]\ \\
118 Extract those entries mentioned in \ARG{aux\_file}.
119 \item [-X \ARG{regex}]\ \\
120 Extract entries matching \ARG{regex}.
121 \end{FlatList}
122 \columnbreak
123
124 \Section{General}
125 \begin{FlatList}
126 \item [resource.search.path = \Arg{dir$_1$:dir$_2$\ldots }]
127 \item [resource \Arg{file}]
128 \item [bibtex.search.path = \Arg{dir$_1$:dir$_2$\ldots }]
129 \item [bibtex.env.name = \Arg{ENV\_NAME}]
130 \item [env.separator = \Arg{c}]
131 \item [dir.file.separator = \Arg{c}]
132 \item [print \Arg{message}]
133 \item [quiet = \OnOff]
134 \item [verbose = \OnOff]
135 \end{FlatList}
136 \Section{Reading and Printing}
137 \begin{FlatList}
138 \item [input \Arg{bib\_file}]
139 \item [output.file = \Arg{file}]
140 \item [parse.exit.on.error = \OnOff]
141 \item [pass.comments = \OnOff]
142 \item [new.entry.type \Arg{type}]
143 \item [print.align = \Num]
144 \item [print.align.key = \Num]
145 \item [print.align.preamble = \Num]
146 \item [print.align.comment = \Num]
147 \item [print.braces = \OnOff]
148 \item [print.comma.at.end = \OnOff]
149 \item [print.deleted.entries = \OnOff]
150 \item [print.deleted.prefix = \Arg{prefix}]
151 \item [print.indent = \Num]
152 \item [print.line.length = \Num]
153 \item [print.newline = \Num]
154 \item [print.parentheses = \OnOff]
155 \item [print.terminal.comma = \OnOff]
156 \item [print.use.tab = \OnOff]
157 \item [print.wide.equal = \OnOff]
158 \item [suppress.initial.newline = \OnOff]
159 \item [new.field.type \Arg{new=old}]
160 \item [symbol.type = \ARG{type}]\ \\
161 upper, lower, cased
162 \end{FlatList}
163 \columnbreak
164 \Section{Sorting}
165 \begin{FlatList}
166 \item [sort = \OnOff]
167 \item [sort.cased = \OnOff]
168 \item [sort.reverse = \OnOff]
169 \item [sort.format = \Arg{format}]
170 \item [sort.order \Arg{\ldots }]
171 \item [sort.macros = \OnOff]
172 \end{FlatList}
173 \Section{Searching (Extraction)}
174 \begin{FlatList}
175 \item [tex.define \Arg{macro[arg]=text}]
176 \item [extract.file \Arg{file}]
177 \item [select \Arg{field$_1$\ldots field$_n$ "regex"}]
178 \item [select \Arg{type$_1$\ldots type$_n$ }]
179 \item [select.by.string \Arg{field$_1$\ldots field$_n$ "regex"}]
180 \item [select.by.string.ignore \Arg{chars}]
181 \item [select.case.sensitive = \OnOff]
182 \item [select.fields = \Arg{field$_1$,field$_2$,\ldots }]
183 \end{FlatList}
184 \Section{Field Manipulation}
185 \begin{FlatList}
186 \item [add.field \Arg{field="value"}]
187 \item [delete.field \Arg{field}]
188 \item [keep.field \Arg{field}]
189 \item [keep.field \Arg{field if field$_2$="pattern"}]
190 \item [rename.field \Arg{old=new}]
191 \item [rename.field \Arg{old=new if field="pattern"}]
192 \item [rewrite.rule \Arg{ pattern }]\ \\
193 delete all matching fields
194 \item [rewrite.rule \Arg{ pattern \# replacement}]\ \\
195 rewrite all fields
196 \item [rewrite.rule \Arg{f$_1$\ldots f$_n$ \# pattern \# replacement}]\ \\
197 rewrite some fields
198 \item [rewrite.case.sensitive = \OnOff]
199 \item [rewrite.limit = \Arg{n}]
200 \end{FlatList}
201 \columnbreak
202 \Section{Checks}
203 \begin{FlatList}
204 \item [check.double = \OnOff]
205 \item [check.do.delete = \OnOff]
206 \item [check.rule \Arg{field \# pattern \# message}]
207 \item [check.warning.rule \Arg{field \# pattern \# message}]
208 \item [check.error.rule \Arg{field \# pattern \# message}]
209 \item [check.case.sensitive = \OnOff]
210 \item [unique.field \Arg{field}]
211 \end{FlatList}
212 \Section{Strings}
213 \begin{FlatList}
214 \item [macro.file \Arg{file}]
215 \item [print.all.strings = \OnOff]
216 \item [expand.macros = \OnOff]
217 \end{FlatList}
218 \Section{Inheritance}
219 \begin{FlatList}
220 \item [crossref.map = \OnOff]
221 \item [clear.crossref.map \Arg{}]
222 \item [crossref.limit = \Arg{n}]
223 \item [expand.crossref = \OnOff]
224 \item [expand.xdata = \OnOff]
225 \end{FlatList}
226 \Section{\BibTeX1.0}
227 \begin{FlatList}
228 \item [apply.alias = \OnOff]
229 \item [apply.include = \OnOff]
230 \item [apply.modify = \OnOff]
231 \item [key.make.alias = \OnOff]
232 \end{FlatList}
233 \Section{Counting}
234 \begin{FlatList}
235 \item [count.all = \OnOff]
236 \item [count.used = \OnOff]
237 \end{FlatList}
238 \NewPage
239 \Section{Key Generation}
240 \begin{FlatList}
241 \item [preserve.keys = \OnOff]
242 \item [preserve.key.case = \OnOff]
243 \item [key.format = \Arg{format}]\ \\
244 special values: short, long, short.need, long.need, empty
245 \item [key.generation = \OnOff]
246 \item [default.key = \Arg{key}]
247 \item [key.base = \ARG{base}]\ \\
248 values: upper, lower, digit
249 \item [key.number.separator = \Arg{s}]
250 \item [key.expand.macros = \OnOff]
251 \item [fmt.name.title = \Arg{s}]
252 \item [fmt.title.title = \Arg{s}]
253 \item [fmt.name.name = \Arg{s}]
254 \item [fmt.inter.name = \Arg{s}]
255 \item [fmt.name.pre = \Arg{s}]
256 \item [fmt.et.al = \Arg{s}]
257 \item [fmt.word.separator = \Arg{s}]
258 \item [new.format.type = \Arg{n="spec"}]
259 \end{FlatList}
260 \Section{Name Formatting Specification}
261 Use \textit{n}\/ letters. Use \textit{m} name parts. Insert \textit{pre}\/
262 before, \textit{mid} between, and \textit{post} after the words.
263 Translate according to the s parameter ('+', '-', '*').
264 \begin{FlatList}
265 \item [\%\textit{s}\textit{n}.\textit{m}\/f{[\textit{mid}][\textit{pre}][\textit{post}]}]\ \\
266 format first names.
267 \item [\%\textit{s}\textit{n}.\textit{m}\/v{[\textit{mid}][\textit{pre}][\textit{post}]}]\ \\
268 format ``von'' part.
269 \item [\%\textit{s}\textit{n}.\textit{m}\/l{[\textit{mid}][\textit{pre}][\textit{post}]}]\ \\
270 format last name.
271 \item [\%\textit{s}\textit{n}.\textit{m}\/j{[\textit{mid}][\textit{pre}][\textit{post}]}]\ \\
272 format ``junior'' part.
273 \end{FlatList}
274 \Section{Format Specifications}
275 \textbf{Pseudo fields:}
276 \begin{FlatList}
277 \item [\$key]
278 \item [\$default.key]
279 \item [\$sortkey]
280 \item [\$source]
281 \item [\$type]
282 \item [@type]
283 \item [\$day]
284 \item [\$month]
285 \item [\$mon]
286 \item [\$year]
287 \item [\$hour]
288 \item [\$minute]
289 \item [\$second]
290 \item [\$user]
291 \item [\$hostname]
292 \end{FlatList}
293 \textbf{Formatting Fields:}
294 \begin{FlatList}
295 \item [\%$\pm $\textit{x}.\textit{y}\/ n(\textit{field}\/)]\ \\
296 format \textit{y}\/ characters of \textit{x}\/ last names.
297 \item [\%$\pm $\textit{x}.\textit{y}\/ N(\textit{field}\/)]\ \\
298 format \textit{y}\/ characters of \textit{x}\/ names.
299 \item [\%$\pm $\textit{x}.\textit{y}\/ p(\textit{field}\/)]\ \\
300 format \textit{x}\/ names according to the name format \textit{y}.
301 \item [\%$\pm $\textit{x}.\textit{y}\/ d(\textit{field}\/)]\ \\
302 format at most \textit{x}\/ digits of the \textit{y}$^{th}$ number.
303 \item [\%$\pm $\textit{x}.\textit{y}\/ D(\textit{field}\/)]\ \\
304 format \textit{x}\/ digits of the \textit{y}$^{th}$ number without truncation.
305 \item [\%$\pm $\textit{x}\/ s(\textit{field}\/)]\ \\
306 format \textit{x}\/ string characters.
307 \item [\%$\pm $\textit{x}.\textit{y}\/ t(\textit{field}\/)]\ \\
308 format \textit{x}\/ sentence words of length \textit{y}.
309 \item [\%$\pm $\textit{x}.\textit{y}\/ T(\textit{field}\/)]\ \\
310 format \textit{x}\/ sentence words of length \textit{y}. (Words ignored)
311 \item [\%$\pm $\textit{x}.\textit{y}\/ w(\textit{field}\/)]\ \\
312 format \textit{x}\/ words of length \textit{y}.
313 \item [\%$\pm $\textit{x}\/ W(\textit{field}\/)]\ \\
314 format \textit{x}\/ words of length \textit{y}. (Words ignored)
315 \item [\%$\pm $\textit{x}.\textit{y}\/ \#n(\textit{field}\/)]\ \\
316 test whether the number of names is between \textit{x}\/ and \textit{y}.
317 \item [\%$\pm $\textit{x}.\textit{y}\/ \#N(\textit{field}\/)]\ \\
318 test whether the number of names is between \textit{x}\/ and \textit{y}.
319 \item [\%$\pm $\textit{x}.\textit{y}\/ \#p(\textit{field}\/)]\ \\
320 test whether the number of names is between \textit{x}\/ and \textit{y}.
321 \item [\%$\pm $\textit{x}.\textit{y}\/ \#s(\textit{field}\/)]\ \\
322 test whether the number of characters is between \textit{x}\/ and \textit{y}.
323 \item [\%$\pm $\textit{x}.\textit{y}\/ \#t(\textit{field}\/)]\ \\
324 test whether the number of words is between \textit{x}\/ and \textit{y}.
325 \item [\%$\pm $\textit{x}.\textit{y}\/ \#T(\textit{field}\/)]\ \\
326 test whether the number of not ignored words is between \textit{x}\/
327 and \textit{y}.
328 \item [\%$\pm $\textit{x}.\textit{y}\/ \#w(\textit{field}\/)]\ \\
329 test whether the number of words is between \textit{x}\/ and \textit{y}.
330 \item [\%$\pm $\textit{x}.\textit{y}\/ \#W(\textit{field}\/)]\ \\
331 test whether the number of not ignored words is between \textit{x}\/
332 and \textit{y}.
333 \end{FlatList}
334
335 \columnbreak
336 \Section{Libraries}
337 \begin{tabular}{lp{.17\textwidth}}
338 \Lib{check\_y} & Check the value of the year.\\
339 \Lib{default} & All default settings.\\
340 \Lib{field} & Redefine field names.\\
341 \Lib{brace} & Use braces as delimiters.\\
342 \Lib{improve} & Apply improvements.\\
343 \Lib{iso2tex} & Translate ISO\,8859/1 characters.\\
344 \Lib{iso\_def} & Define ISO\,8859/1 characters for formatting.\\
345 \Lib{keep\_bibtex} & Keep only the fields of standard \BibTeX\ styles.\\
346 \Lib{keep\_biblatex} & Keep only the fields of standard bib\LaTeX\ styles.\\
347 \Lib{month} & Introduce strings for month names.\\
348 \Lib{opt} & Remove OPT in field names.\\
349 \Lib{sort\_fld} & Specify sort order for fields.\\
350 \Lib{tex\_def} & Define \TeX{} macros for formatting.\\
351 \Lib{biblatex} & Define entry types and fields known to bib\-\LaTeX.\\
352 \end{tabular}
353
354 \Section{Environment Variables}
355 \begin{tabular}{lp{.17\textwidth}}
356 \texttt{BIBTOOL} & Search path for rsc files\\
357 \texttt{BIBINPUTS} & Search path for bib files\\
358 \texttt{HOME} & Home directory for \texttt{.bibtoolrsc}\\
359 \end{tabular}
360
361 \end{multicols}
362 \vfill\vfill\vfill
363 \begin{center}\rule{.8\textwidth}{.1pt}\\
364 Source repository and issue tracker at \link{https://github.com/ge-ne/bibtool}
365 \end{center}
366 \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
367 %
368 % Local Variables:
369 % mode: latex
370 % TeX-master: nil
371 % End: