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