| 1 |
% $Id: ltubguid.ltx 653 2025-08-08 16:26:06Z karl $ |
| 2 |
% ltubguid.ltx - documentation for ltugboat classes. |
| 3 |
% |
| 4 |
% Copyright 1994-2025 TeX Users Group. |
| 5 |
% |
| 6 |
% This file is part of the tugboat package. |
| 7 |
% |
| 8 |
% This work may be distributed and/or modified under the |
| 9 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 10 |
% of this license or (at your option) any later version. |
| 11 |
% The latest version of this license is in |
| 12 |
% http://www.latex-project.org/lppl.txt |
| 13 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 14 |
% version 2003/12/01 or later. |
| 15 |
% |
| 16 |
% This work has the LPPL maintenance status "maintained". |
| 17 |
% |
| 18 |
% The Current Maintainer of this work is the TeX Users Group |
| 19 |
% (https://tug.org/TUGboat). |
| 20 |
% |
| 21 |
% The list of all files belonging to the distribution is |
| 22 |
% given in the file `manifest.txt'. |
| 23 |
% |
| 24 |
% The list of derived (unpacked) files belonging to the distribution |
| 25 |
% and covered by LPPL is defined by the unpacking scripts (with |
| 26 |
% extension .ins) which are part of the distribution. |
| 27 |
|
| 28 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 29 |
% |
| 30 |
% tubguide.bib -- the bibliography for this paper (apart from the |
| 31 |
% references to TUGboat itself) |
| 32 |
% |
| 33 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 34 |
% |
| 35 |
\begin{filecontents}{tubguide.bib} |
| 36 |
% BibTeX bibliography file (originally generated by aux2bib) |
| 37 |
|
| 38 |
@Misc{pkg:fancyvrb, |
| 39 |
author = {Timothy Van Zandt and others}, |
| 40 |
title = {The {\tbcode{fancyvrb}} package}, |
| 41 |
url = {ctan.org/pkg/fancyvrb}, |
| 42 |
} |
| 43 |
|
| 44 |
@Misc{pkg:listings, |
| 45 |
author = {Carsten Heinz and others}, |
| 46 |
title = {The {\tbcode{listings}} package}, |
| 47 |
url = {ctan.org/pkg/listings}, |
| 48 |
} |
| 49 |
|
| 50 |
@Misc{Arseneau:url:1996, |
| 51 |
author = {Donald Arseneau}, |
| 52 |
title = {The {\tbcode{url}} package}, |
| 53 |
url = {ctan.org/pkg/url}, |
| 54 |
urlnewline = 1, |
| 55 |
} |
| 56 |
|
| 57 |
@Misc{Rahtz:hyperref:1997, |
| 58 |
author = {Sebastian Rahtz and Heiko Oberdiek and others}, |
| 59 |
title = {The {\tbcode{hyperref}} package}, |
| 60 |
url = {ctan.org/pkg/hyperref}, |
| 61 |
} |
| 62 |
|
| 63 |
@Book{Lamport:1994, |
| 64 |
author = {Leslie Lamport}, |
| 65 |
title = {{\LaTeX}: A Document Preparation System}, |
| 66 |
edition = {\nth{2}}, |
| 67 |
year = {1994}, |
| 68 |
publisher = {Addison-Wesley}, |
| 69 |
} |
| 70 |
|
| 71 |
@Misc{Schoepf:verbatim:1996, |
| 72 |
author = {Rainer Sch{\"{o}}pf}, |
| 73 |
title = {The {\tbcode{verbatim}} package}, |
| 74 |
url = {ctan.org/pkg/verbatim}, |
| 75 |
urlnewline = 1, |
| 76 |
} |
| 77 |
|
| 78 |
@Misc{Vieth:mflogo:1995, |
| 79 |
author = {Ulrik Vieth}, |
| 80 |
title = {The {\tbcode{mflogo}} package}, |
| 81 |
url = {ctan.org/pkg/mflogo}, |
| 82 |
urlnewline = 1, |
| 83 |
} |
| 84 |
|
| 85 |
@Article{Whitney:TB10-3-378, |
| 86 |
author = {Ron Whitney and Barbara Beeton}, |
| 87 |
title = {{{{\TUB} authors' guide}}}, |
| 88 |
journal = {{\TUB}}, |
| 89 |
year = {1989}, |
| 90 |
month = {November}, |
| 91 |
volume = {10}, |
| 92 |
number = {3}, |
| 93 |
pages = {378--385}, |
| 94 |
url = {ctan.org/pkg/tugboat-plain}, |
| 95 |
} |
| 96 |
|
| 97 |
\end{filecontents} |
| 98 |
% |
| 99 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 100 |
% |
| 101 |
% ctandir.sty -- an experimental style file to go with Donald |
| 102 |
% Arseneau's url.sty. Not recommended these days, better to use |
| 103 |
% https://ctan.org/pkg/..., but don't feel like rewriting. |
| 104 |
% |
| 105 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 106 |
% |
| 107 |
\begin{filecontents}{ctandir.sty} |
| 108 |
% |
| 109 |
% Experimental CTAN location information macros for use with Donald |
| 110 |
% Arseneau's |url.sty| |
| 111 |
% |
| 112 |
% we need url.sty; we can rely on it to demand anything it needs of |
| 113 |
% LaTeX. Not |
| 114 |
\IfFileExists{url.sty}% |
| 115 |
{\RequirePackage{url}}% |
| 116 |
{\PackageWarning{ctandir}{You should acquire a copy of url.sty}% |
| 117 |
\newcommand\urldef[3]{\def#1{\texttt{#3}}}% |
| 118 |
\let\url\texttt |
| 119 |
} |
| 120 |
% |
| 121 |
\newcommand\CTANdirectory[1]{\expandafter\urldef |
| 122 |
\csname CTAN@#1\endcsname\path} |
| 123 |
\newcommand\CTANfile[1]{\expandafter\urldef |
| 124 |
\csname CTAN@#1\endcsname\path} |
| 125 |
% |
| 126 |
% Use the standard label-referencing mechanism to get the warning for |
| 127 |
% an undefined label |
| 128 |
\newcommand\CTANref[1]{\expandafter\@setref\csname CTAN@#1\endcsname |
| 129 |
\relax{#1}} |
| 130 |
\end{filecontents} |
| 131 |
% |
| 132 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 133 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 134 |
% |
| 135 |
\documentclass[letterpaper]{ltugboat} |
| 136 |
\usepackage{graphics} % so letterpaper takes effect |
| 137 |
\usepackage{microtype} |
| 138 |
\usepackage{ctandir} |
| 139 |
\usepackage[hidelinks,pdfa]{hyperref} |
| 140 |
\IfFileExists{booktabs.sty}% |
| 141 |
{\usepackage{booktabs}}% |
| 142 |
{\let\midrule\hline} |
| 143 |
% |
| 144 |
\vbadness=10000 % imperfectly broken pages are ok |
| 145 |
\overfullrule=4pt % want to see |
| 146 |
% omit word "draft:" |
| 147 |
\def\rtitlenexttopage{\ifPrelimDraft \textsl{\small \Now}\fi} |
| 148 |
% |
| 149 |
% define CTAN addresses using the commands of the |ctandir| package |
| 150 |
\CTANdirectory{packages}{macros/latex/required} |
| 151 |
\CTANdirectory{tub-latex}{macros/latex/contrib/tugboat} |
| 152 |
% |
| 153 |
% ***** Commands provided by this paper ***** |
| 154 |
% |
| 155 |
% Typeset the name of an environment, class, package, option, program |
| 156 |
\providecommand\envname[1]{\tbcode{#1}} |
| 157 |
\providecommand\clsname[1]{\tbcode{#1}} |
| 158 |
\providecommand\pkgname[1]{\tbcode{#1}} |
| 159 |
\providecommand\optname[1]{\tbcode{#1}} |
| 160 |
\providecommand\progname[1]{\tbcode{#1}} |
| 161 |
% |
| 162 |
% A list of options for a package/class |
| 163 |
\newenvironment{optlist}{\begin{description}% |
| 164 |
\renewcommand\makelabel[1]{% |
| 165 |
\descriptionlabel{\mdseries\optname{##1}}}% |
| 166 |
\itemsep0.25\itemsep}% |
| 167 |
{\end{description}} |
| 168 |
% |
| 169 |
% A list of command names (using \mdwcmd, which as its name implies |
| 170 |
% comes from the work of Mark Wooding) |
| 171 |
\newenvironment{cmdlist}{\begin{description}% |
| 172 |
\renewcommand\makelabel[1]{% |
| 173 |
\descriptionlabel{\mdseries\mdwcmd##1}}% |
| 174 |
\itemsep0.25\itemsep}% |
| 175 |
{\end{description}} |
| 176 |
% |
| 177 |
\makeatletter |
| 178 |
\providecommand{\mdwcmd}[1]{% |
| 179 |
\expandafter\texttt\expandafter{\string#1}% |
| 180 |
\mdwcmd@i} |
| 181 |
\def\mdwcmd@i{\futurelet\@let@token\mdwcmd@ii} |
| 182 |
\def\mdwcmd@ii{% |
| 183 |
\let\@tempa\relax% |
| 184 |
\ifx\@let@token\bgroup% |
| 185 |
\def\@tempa##1{\texttt{\char`\{}\textit{##1}\texttt{\char`\}}\mdwcmd@i}% |
| 186 |
\fi% |
| 187 |
\ifx\@let@token[% |
| 188 |
\def\@tempa[##1]{\texttt{[}\textit{##1}\texttt{]}\mdwcmd@i}% |
| 189 |
\fi% |
| 190 |
\@tempa% |
| 191 |
} |
| 192 |
\makeatother |
| 193 |
\def\url{\tburl} % use our url macros |
| 194 |
% |
| 195 |
%%%%%%%%%%%%%%%% |
| 196 |
\begin{document} |
| 197 |
%%%%%%%%%%%%%%%% |
| 198 |
% |
| 199 |
\title{The \LaTeXe\ \TUB{} macros} |
| 200 |
\author{TUGboat editors} |
| 201 |
\EDITORnoaddress |
| 202 |
\netaddress{[email protected]} |
| 203 |
\personalURL{tug.org/TUGboat} |
| 204 |
\maketitle |
| 205 |
{\hyphenpenalty=10000\raggedright \tableofcontents} |
| 206 |
\count0=1 |
| 207 |
|
| 208 |
\section{Introduction} |
| 209 |
|
| 210 |
This is the documentation for the \LaTeXe\ macros to be used by \TUB{} |
| 211 |
authors. The macros represent a development of the earlier |
| 212 |
\clsname{ltugboat} and \clsname{ltugproc} styles that were written for |
| 213 |
use with \LaTeX~2.09; the main original author was Robin Fairbairns, |
| 214 |
with Sebastian Rahtz, Michel Goossens, Nico Poppelier and Johannes |
| 215 |
Braams. Many others have been involved in the years since, including |
| 216 |
Barbara Beeton, Karl Berry, Mimi Burbank, and the \LaTeX\ team. |
| 217 |
|
| 218 |
\subsection{Availability} |
| 219 |
|
| 220 |
The \TUB\ web pages are at:\par\smallskip |
| 221 |
\centerline{\url{https://tug.org/TUGboat}} |
| 222 |
\par\smallskip\noindent |
| 223 |
They provide \textbf{an article template}, information for authors and |
| 224 |
reviewers, and the complete run of all published \TUB\ issues, among |
| 225 |
other things. |
| 226 |
|
| 227 |
The macros are distributed via \CTAN{} |
| 228 |
(\url{https://ctan.org/pkg/tugboat}) in the usual \LaTeX{} way as files |
| 229 |
\path|tugboat.dtx| and \path|tugboat.ins|. When the \verb|.ins| file is |
| 230 |
processed by \LaTeX{}, the files \path|ltugboat.cls| and |
| 231 |
\path|ltugcomn.sty| (a melange of perhaps-useful macros, for |
| 232 |
documentation, etc.)\ are produced. (For compatibility, |
| 233 |
\path|ltugproc.cls| is also produced, but is no longer used for |
| 234 |
proceedings or anything else.) |
| 235 |
|
| 236 |
The\,\verb|.dtx| file may itself be processed by \LaTeX{} to |
| 237 |
produce a formatted (somewhat `literate') source listing for those |
| 238 |
interested in the implementation of the \TUB\ macros. |
| 239 |
|
| 240 |
\section{The general structure of a paper} |
| 241 |
|
| 242 |
The basic idea is to start your \LaTeX\ document with |
| 243 |
\path|\documentclass{ltugboat}|, which defines the appearance of \TUB\ |
| 244 |
articles. This uses the file \path|ltugboat.cls| as usual. |
| 245 |
|
| 246 |
Each paper, therefore, is written as a document that may stand on its |
| 247 |
own. It starts with a \cs{documentclass} command, and its body is |
| 248 |
enclosed in a \envname{document} environment. There are some options to |
| 249 |
the document class, described in the next section, but ordinarily the |
| 250 |
author needn't bother with them. The defaults are designed for creating |
| 251 |
proof copies of papers. |
| 252 |
|
| 253 |
The proof output differs from the final production output with respect |
| 254 |
to page numbers and other material. The changes required for final |
| 255 |
production are the responsibility of the \TUB{} editors; authors will |
| 256 |
see the final version in proof. |
| 257 |
|
| 258 |
In general, we have sought simply to keep to the spirit of \LaTeX\ in |
| 259 |
the commands provided by the \TUB\ class (\verb|ltugboat|). On the |
| 260 |
whole, the new \clsname{ltugboat} macros define \LaTeX{} commands and |
| 261 |
environments, or modify the definitions of \LaTeX{} standard commands. |
| 262 |
For those interested, section~\ref{sec:equiv} lists equivalences between |
| 263 |
macros defined by the `plain' package \cite{Whitney:TB10-3-378} and |
| 264 |
those defined by the new package. |
| 265 |
|
| 266 |
\subsection{Class options for \clsname{ltugboat}} |
| 267 |
\label{sec:boat-opts} |
| 268 |
|
| 269 |
The \clsname{ltugboat} class accepts many of the options of the |
| 270 |
\clsname{article} class (it suppresses the font-size selection and |
| 271 |
one/two-side options). Normally there is no need to use any document |
| 272 |
option. They are listed here for completeness. |
| 273 |
|
| 274 |
\begin{optlist} |
| 275 |
\item[draft] Set up for a draft copy of a paper (this is the default |
| 276 |
setting\Dash the author need not explicitly set it): page numbering |
| 277 |
starts at a high number, black marks for overfull boxes. |
| 278 |
\item[extralabel] Use the extra label-distinguishing mark in the body |
| 279 |
of the reference; see section~\ref{sec:biblio}. |
| 280 |
\item[final] Set up for the final copy of a paper: page numbering to |
| 281 |
come from elsewhere, no cropmarks. |
| 282 |
\item[harvardcite] Specify Harvard-style citation. Not |
| 283 |
recommended in general; see section~\ref{sec:biblio}. |
| 284 |
\item[noextralabel] Don't use the extra mark for distinguishing labels in |
| 285 |
the body of the reference; see section~\ref{sec:biblio-harvard}. |
| 286 |
\item[nonumber] Sections are not numbered; section heading |
| 287 |
layout is to be as in the `plain' \pkgname{tugboat} styles. |
| 288 |
\item[numbersec] Sections, subsections and subsubsections are to be |
| 289 |
numbered (this is the default setting\Dash the author need not |
| 290 |
explicitly set it). |
| 291 |
\item[onecolumn] Typeset article in one column. |
| 292 |
\item[preprint] Set up for a preprint. |
| 293 |
\item[rawcite] Explicitly specify the standard \LaTeX\ citation method, |
| 294 |
which is the default; see section~\ref{sec:biblio}. |
| 295 |
\item[runningfull] Information in both header and footer (default). |
| 296 |
\item[runningminimal] Information in header only. |
| 297 |
\item[runningoff] Information in neither header nor footer. |
| 298 |
\item[secondcolstart] Start the article in the second column. |
| 299 |
\end{optlist} |
| 300 |
|
| 301 |
\subsection{Use of packages} |
| 302 |
|
| 303 |
Being a \TeX\ journal, authors may use both standard and non-standard |
| 304 |
external packages for their articles. The overriding criterion is that |
| 305 |
articles need to be processable on the \TUB{} production computers |
| 306 |
(running current \TeX\ Live). A sensible mechanism for submitting |
| 307 |
personal packages is by use of the \envname{filecontents} environment. |
| 308 |
It's also fine to submit manuscript source with additional packages in a |
| 309 |
zip or other archive. |
| 310 |
|
| 311 |
In general, packages currently on \CTAN, and known to work with |
| 312 |
\emph{current} \LaTeX{} are likely to be fine. In particular, \TUB\ is |
| 313 |
happy to accept papers using packages that are supported by members of |
| 314 |
the \LaTeX\ team. |
| 315 |
|
| 316 |
\tug{} has a policy that macro packages described in \TUB{} should be |
| 317 |
available for readers to use. Since typing macros from printed sources |
| 318 |
is tedious, authors of publicly available packages are urged to submit |
| 319 |
their macros to \CTAN{}. If a package is only available under restricted |
| 320 |
terms, authors are requested to make this fact clear when first |
| 321 |
submitting an article to the editor. |
| 322 |
|
| 323 |
The \texttt{ltugboat} class loads the package \path|mflogo.sty| |
| 324 |
\cite{Vieth:mflogo:1995} for typesetting the \MF\ logo. If this package |
| 325 |
is not present by some mischance, \texttt{ltugboat} will emulate it. |
| 326 |
|
| 327 |
Although not necessarily recommended in all cases, many additional |
| 328 |
packages are commonly used. To mention a few: |
| 329 |
\begin{description} |
| 330 |
\item[microtype] can help reduce overfull boxes and improve appearance |
| 331 |
(\verb|\usepackage{microtype}|); |
| 332 |
\item[hyperref] supports live and internal hyperlinks, outlines, and |
| 333 |
much more\\(\verb|\usepackage[hidelinks,pdfa]{hyperref}|). |
| 334 |
\end{description} |
| 335 |
|
| 336 |
\subsection{Titles, addresses and so on} |
| 337 |
|
| 338 |
The title and author(s) of a paper are quoted using commands that are |
| 339 |
familiar (in syntax, at least) to most \LaTeX{} users; the \cs{title} |
| 340 |
command is exactly that used in the standard \LaTeX{} classes. There is |
| 341 |
also \cs{shortTitle\char`{\meta{your-short-title}\char`}} to define the form |
| 342 |
used in running heads or footers; similarly \cs{shortAuthor}. |
| 343 |
|
| 344 |
The \cs{author} command is used once for each co-author of the paper, |
| 345 |
and for each \cs{author} there should be a \cs{address} command that |
| 346 |
gives a (postal) correspondence address. In addition (wherever |
| 347 |
possible), \TUB{} likes to quote an email address for authors: for this, |
| 348 |
the \cs{netaddress} command is used. Each author may also mention a web |
| 349 |
page, using a \cs{personalURL} command, and an \acro{ORCID} (from |
| 350 |
\url{orcid.org}), using \cs{ORCID}. |
| 351 |
|
| 352 |
For example, the present paper has (approximately) this at its start: |
| 353 |
|
| 354 |
\begin{verbatim}[\small] |
| 355 |
\title{The \LaTeXe\ \TUB{} Macros} |
| 356 |
\author{TUGboat editors} |
| 357 |
\address{\TeX\ Users Group} |
| 358 |
\netaddress{[email protected]} |
| 359 |
\personalURL{https://tug.org/TUGboat} |
| 360 |
\maketitle |
| 361 |
\end{verbatim} |
| 362 |
|
| 363 |
Lines in the title information can get quite long. |
| 364 |
If the information being given is |
| 365 |
to be typeset as ordinary text (as in the case of the \cs{address} |
| 366 |
line above), it can be `wrapped' perfectly happily, as in normal text. |
| 367 |
If one of the verbatim items (\cs{netaddress} or \cs{personalURL} |
| 368 |
commands) is going to be too wide for the column, what is the author |
| 369 |
to do? (Abbreviating the text, as in the \cs{personalURL} above, is |
| 370 |
\emph{not} usually an acceptable option!) Unfortunately, the \verb|%| |
| 371 |
sign is an entirely acceptable element of both email addresses and |
| 372 |
\acro{URL}s, so that the normal `fall-back' isn't available. |
| 373 |
Therefore, the classes typeset these electronic addresses in an |
| 374 |
environment where some of the characters (notably `\verb|.|' and |
| 375 |
`\verb|/|') are treated as word-divisions for the purposes of laying |
| 376 |
out the line. |
| 377 |
|
| 378 |
If the paper is the result of more than one author's labours, a sequence of |
| 379 |
\cs{author}, \cs{address}, \cs{netaddress} and \cs{personalURL} |
| 380 |
commands may be given, as in the following, which comes from a paper |
| 381 |
given at \tug'95 (abbreviated): |
| 382 |
|
| 383 |
\begin{verbatim}[\small] |
| 384 |
\author{Michel Goossens} |
| 385 |
\address{CN Division, CERN\\ |
| 386 |
...} |
| 387 |
\netaddress{...} |
| 388 |
|
| 389 |
\author{Sebastian Rahtz} |
| 390 |
\address{Elsevier Science Ltd\\ |
| 391 |
...} |
| 392 |
\netaddress{...} |
| 393 |
... |
| 394 |
\end{verbatim} |
| 395 |
|
| 396 |
The class files will take care of arranging author names and addresses |
| 397 |
between the \cs{maketitle} and (possibly) \cs{makesignature} commands. |
| 398 |
|
| 399 |
\subsubsection{Compilation articles} |
| 400 |
|
| 401 |
Compilation articles are written as a set of contributed parts under the |
| 402 |
general editorship of the author(s) of the article. The author of the |
| 403 |
article is presented (using \cs{author}, etc.)\ in the |
| 404 |
usual way, and writes the introductory text. Each contributors' part |
| 405 |
then follows. The contributor's name is quoted in the \cs{contributor} |
| 406 |
command, which is an analogue of the \cs{author} command; contributors' |
| 407 |
\cs{address}, \cs{netaddress} or \cs{personalURL}. The \cs{contributor} |
| 408 |
command opens a group in which the contribution appears, and the |
| 409 |
contributor's signature (produced with a \cs{makesignature} command) |
| 410 |
closes the group. The general scheme looks like: |
| 411 |
\begin{verbatim}[\small\makeescape\|\makebgroup\[\makeegroup\]] |
| 412 |
\title{Example compilation article} |
| 413 |
\author{Robin Fairbairns} |
| 414 |
\address{University of Cambridge ...} |
| 415 |
\netaddress{...} |
| 416 |
... |textsl[introductory text] ... |
| 417 |
\makesignature |
| 418 |
|
| 419 |
\contributor{Betsy the Dog} |
| 420 |
\address{Romsey Town, Cambridge} |
| 421 |
... |textsl[Betsy's contribution] ... |
| 422 |
... |
| 423 |
\makesignature ... |
| 424 |
\end{verbatim} |
| 425 |
|
| 426 |
\subsection{Divisions of the paper} |
| 427 |
\label{sec:divs-paper} |
| 428 |
|
| 429 |
Papers in \TUB{} may be subdivided in the normal way of a \LaTeX{} |
| 430 |
article (the classes are defined in terms of \LaTeX{}'s |
| 431 |
\clsname{article} class). Thus the author may use \cs{section}, |
| 432 |
\cs{subsection}, \dots, \cs{paragraph} commands (but \cs{part} and |
| 433 |
\cs{subparagraph} from \clsname{article} are suppressed, and |
| 434 |
\cs{chapter}, which does not even appear in the parent class, receives |
| 435 |
the same treatment). |
| 436 |
|
| 437 |
Authors may note that the style of ordinary issues of \TUB{} makes |
| 438 |
no distinction between the titles of the divisions; the visual style |
| 439 |
relies on the section numbers to indicate where the divisions lie in |
| 440 |
the hierarchy. If you use \cs{paragraph}, consider ending the paragraph |
| 441 |
label with a period; sometimes it is helpful, sometimes not. |
| 442 |
|
| 443 |
For references to numbered sections, our style is to always use the word |
| 444 |
`Section' in the text, e.g.,\\ |
| 445 |
\verb|Section~\ref{sec:whatever}|\\ |
| 446 |
without worrying about whether it is technically a sub(sub)section. |
| 447 |
It's also ok to use the section sign~\S{}, if that suits the material |
| 448 |
better. |
| 449 |
|
| 450 |
Reference can also be made to the `title' of divisions of the paper, |
| 451 |
whether they are numbered or not. The \cs{nameref} command (which uses |
| 452 |
the technique developed for the \tbcode{hyperref} package |
| 453 |
\cite{Rahtz:hyperref:1997}) permits such references; for example, the |
| 454 |
present section was introduced by: |
| 455 |
\begin{verbatim}[\small] |
| 456 |
\section{Divisions of the paper} |
| 457 |
\label{sec:divs-paper} |
| 458 |
\end{verbatim} |
| 459 |
and the command \verb|\nameref{sec:divs-paper}| produces |
| 460 |
`\nameref{sec:divs-paper}'. However, as you can see here, reusing the |
| 461 |
literal text of section titles often results in awkward results. We |
| 462 |
recommend numbered references in general. |
| 463 |
|
| 464 |
\subsubsection{Abstracts} |
| 465 |
|
| 466 |
The \clsname{ltugboat} class provides two environments for abstracts. |
| 467 |
The \envname{abstract} environment simply typesets its body as an |
| 468 |
unnumbered section whose title is `Abstract'. The \envname{longabstract} |
| 469 |
environment typesets its body in small text, and separates the abstract |
| 470 |
from the rest of the paper with a decorative line; this is rarely used. |
| 471 |
|
| 472 |
Please write an abstract, however short. |
| 473 |
|
| 474 |
\subsubsection{Appendices} |
| 475 |
|
| 476 |
A paper may have appendices, which can be expressed in exactly the same |
| 477 |
way as they would be in the \LaTeX{} article class (confusing as that |
| 478 |
may be): |
| 479 |
|
| 480 |
\begin{verbatim}[\small] |
| 481 |
\appendix |
| 482 |
\section{This is appendix A} |
| 483 |
... |
| 484 |
\section{This is appendix B} |
| 485 |
\end{verbatim} |
| 486 |
Which will produce `section' headings similar to: |
| 487 |
\begin{quote} |
| 488 |
\textbf{A\quad This is appendix A} |
| 489 |
\end{quote} |
| 490 |
|
| 491 |
\TUB{} articles may have a small extension to this format using an |
| 492 |
\texttt{appendix} environment: |
| 493 |
|
| 494 |
\begin{verbatim}[\small] |
| 495 |
\begin{appendix} |
| 496 |
\section{This is the first one} |
| 497 |
... |
| 498 |
\end{appendix} |
| 499 |
\end{verbatim} |
| 500 |
which will produce `section' headings similar to: |
| 501 |
\begin{quote} |
| 502 |
\textbf{Appendix A\quad This is the first one} |
| 503 |
\end{quote} |
| 504 |
|
| 505 |
In both cases, the subsections are numbered as normal (i.e., as |
| 506 |
`A.\ensuremath{n}' in normal \TUB{} papers): |
| 507 |
|
| 508 |
\section{Floating inserts} |
| 509 |
|
| 510 |
The classes do not make any change to \LaTeX{}'s built-in provision for |
| 511 |
floating inserts, so that authors should write figures and tables as usual, |
| 512 |
|
| 513 |
The default is for floats to be the width of the column. To make a float |
| 514 |
which is the width of the whole page, use \envname{figure*} and |
| 515 |
\envname{table*}. |
| 516 |
|
| 517 |
Regarding caption placement, \TUB's convention is to put captions for |
| 518 |
figures below the figure, but captions for tables and listings above the |
| 519 |
table\slash listing. Please follow this convention unless there is a |
| 520 |
specific reason not to. |
| 521 |
|
| 522 |
As a reminder, \cs{label} commands should always follow the |
| 523 |
\cs{caption}. |
| 524 |
|
| 525 |
\section{Special-purpose typesetting} |
| 526 |
|
| 527 |
The classes define a rather large set of commands for special-purpose |
| 528 |
typesetting. |
| 529 |
|
| 530 |
\subsection{Assorted simple markup} |
| 531 |
|
| 532 |
A short list of commonly-needed special typesetting commands follows; a |
| 533 |
larger set of such commands is defined in the classes. Feel free to peruse. |
| 534 |
|
| 535 |
\begin{cmdlist}\raggedright |
| 536 |
\item[\cs{cmd}] Typeset a control sequence name:\\ |
| 537 |
\verb|\cs{fred}| produces \cs{fred}. |
| 538 |
|
| 539 |
\item[\Dash] Typeset an em-dash, ignoring preceding and following space, |
| 540 |
surrounded by thin spaces, only breakable after the dash; this |
| 541 |
is our preferred method of specifying an em-dash in running text, over |
| 542 |
\texttt{---} or (especially) the Unicode character(s). |
| 543 |
|
| 544 |
\item[\meta{var}] Typeset meta-syntactic text:\\ |
| 545 |
\verb|\meta{fred}| produces \meta{fred}. |
| 546 |
|
| 547 |
\item[\tbcode{text}] Literal text, such as class names, package names, |
| 548 |
filenames, environment variables, etc. The text is typeset in typewriter |
| 549 |
and is not breakable. |
| 550 |
|
| 551 |
\item[\tbcodebreak{text}] Like \cs{tbcode}, but breakable as with urls, |
| 552 |
e.g., at periods. Still not hyphenated. |
| 553 |
|
| 554 |
\item[\tubbraced{text}] Typeset typewriter text in typewriter |
| 555 |
braces: \verb|\tubbraced{fred}| produces \tubbraced{fred}. |
| 556 |
\end{cmdlist} |
| 557 |
For commands to typeset urls, see section~\ref{sec:urls}. |
| 558 |
|
| 559 |
\subsection{Acronyms and logos} |
| 560 |
|
| 561 |
The classes provide macros that produce `correct' representations of a |
| 562 |
large number of acronyms and logos; a small representative selection is |
| 563 |
shown in figure~\ref{fig:acro-logo}. The sample documents at |
| 564 |
\url{tug.org/TUGboat/location.html} have a more complete list, |
| 565 |
and of course the class sources are the ultimate reference. |
| 566 |
\begin{figure}[htbp!] |
| 567 |
\begin{center} |
| 568 |
\begin{tabular}{@{}ll@{}} |
| 569 |
\small\textsl{\tbcode{Macro}}&\small\textsl{\tbcode{Output}}\\ |
| 570 |
\midrule |
| 571 |
\verb|\ConTeXt| & \ConTeXt \\ |
| 572 |
\verb|\Cplusplus| & \Cplusplus \\ |
| 573 |
\verb|\CTAN| & \CTAN \\ |
| 574 |
\verb|\eTeX| & \eTeX\\ |
| 575 |
\verb|\FAQ| & \FAQ \\ |
| 576 |
\verb|\HTML| & \HTML \\ |
| 577 |
\verb|\ISBN| & \ISBN \\ |
| 578 |
\verb|\KOMAScript| & \KOMAScript \\ |
| 579 |
\verb|\LaTeXe| & \LaTeXe \\ |
| 580 |
\verb|\macOS| & \macOS \\ |
| 581 |
\verb|\MathML| & \MathML \\ |
| 582 |
\verb|\MF| & \MF \\ |
| 583 |
\verb|\PDF| & \PDF \\ |
| 584 |
\verb|\SGML| & \SGML \\ |
| 585 |
\verb|\TUB| & \TUB \\ |
| 586 |
\verb|\TUG| & \TUG \\ |
| 587 |
\verb|\tug| & \tug \\ |
| 588 |
\verb|\XML| & \XML \\ |
| 589 |
\end{tabular} |
| 590 |
\end{center} |
| 591 |
\caption{A few of the provided acronyms and logos} |
| 592 |
\label{fig:acro-logo} |
| 593 |
\end{figure} |
| 594 |
|
| 595 |
Authors are especially urged to note the \cs{acro} command, which is |
| 596 |
defined in the classes. The visual appearance of all-caps sequences |
| 597 |
among normal text is rather unpleasing in Computer Modern, |
| 598 |
unfortunately. Therefore, the \cs{acro} command typesets its argument |
| 599 |
one point size smaller than the surrounding text: compare `\acro{DANTE}' |
| 600 |
(\verb|\acro{DANTE}|) with `DANTE'\@. Many of the provided macros merely |
| 601 |
generate calls to \cs{acro}; two examples, \cs{CTAN} and \cs{tug} of the |
| 602 |
list in figure~\ref{fig:acro-logo} have already been used in the present |
| 603 |
paper. |
| 604 |
|
| 605 |
\subsection{Verbatim text} |
| 606 |
\label{sec:verbatim} |
| 607 |
|
| 608 |
For inline verbatim text, authors should ordinarily employ the |
| 609 |
facilities of \LaTeX{} itself, that is, the \cs{verb} macro. This macro, of |
| 610 |
course, is highly restricted as to its usage\Dash primarily, it may |
| 611 |
not appear in the argument of \emph{any} other macro, even |
| 612 |
\cs{footnote}. |
| 613 |
|
| 614 |
For displayed verbatim text, the classes add a small increment to |
| 615 |
the functionality of \LaTeX{}'s \envname{verbatim} environment, by |
| 616 |
introducing an optional argument. The optional argument may contain |
| 617 |
commands to be executed before starting the verbatim text; the set of |
| 618 |
commands which have useful effect is strictly limited, but the |
| 619 |
following are common: |
| 620 |
\begin{itemize} |
| 621 |
\item Font size selection commands: for example, all the display |
| 622 |
verbatim in the present paper starts with |
| 623 |
\verb|\begin{verbatim}[\small]|. |
| 624 |
|
| 625 |
\item The command \cs{ruled}, which is available \emph{only} in |
| 626 |
\envname{verbatim}'s optional argument, and specifies that a |
| 627 |
column-wide rule should be drawn before and after the verbatim |
| 628 |
text. (This is not the recommended style in general, but it's |
| 629 |
available for when it helps.) |
| 630 |
|
| 631 |
\item The command \cs{makevmeta}, also available only in |
| 632 |
\envname{verbatim}'s optional argument, and makes the construct |
| 633 |
\verb|!<...>| inside verbatim execute \verb|\meta{...}|. For example, |
| 634 |
\begin{verbatim}[\small] |
| 635 |
\begin{verbatim}[\small\makevmeta] |
| 636 |
The !<duration> is long ... |
| 637 |
\end{verbatim} |
| 638 |
produces: |
| 639 |
\begin{verbatim}[\small\makevmeta] |
| 640 |
The !<duration> is long ... |
| 641 |
\end{verbatim} |
| 642 |
The \verb|!| character is made a general escape character by |
| 643 |
\cs{makevmeta}, but \verb|<>| are not made grouping characters. |
| 644 |
|
| 645 |
\item More generally, one of the \cs{make*} commands,\footnote{\cs{makeescape}, |
| 646 |
\cs{makebgroup}, \dots, \cs{makecomment}; used, for example, as |
| 647 |
\cs{makeescape}\cs{|}.} which change the category code of |
| 648 |
characters within the verbatim text. This is (of course) a facility |
| 649 |
that should only be used with the utmost caution. |
| 650 |
|
| 651 |
\end{itemize} |
| 652 |
Two caveats about these optional arguments: |
| 653 |
\begin{itemize} |
| 654 |
\item The search for the optional argument can be confused by the |
| 655 |
appearance of a \verb|[| character as the first character of the displayed |
| 656 |
verbatim. An author who wishes to start verbatim text with a |
| 657 |
\verb|[| character should provide an empty optional argument (i.e., |
| 658 |
`\verb|[]|') to the \envname{verbatim} environment. |
| 659 |
\item The \TUB\ facility is lost when any package is loaded that also |
| 660 |
defines the \verb|verbatim| environment, as discussed next. |
| 661 |
\end{itemize} |
| 662 |
|
| 663 |
If the \TUB\ verbatim environment suffices, please use it. But if you |
| 664 |
need to use a more featureful verbatim package, such as |
| 665 |
\pkgname{listings}~\cite{pkg:listings} or |
| 666 |
\pkgname{fancyvrb}~\cite{pkg:fancyvrb}, this is ok (the \TUB\ |
| 667 |
optional-argument feature will not be available). We will almost always |
| 668 |
wish to print code listings in straight black, not colored or even |
| 669 |
grayscaled, so please avoid colorized listings if at all reasonable. |
| 670 |
|
| 671 |
If you use the \pkgname{listings} package, please set: |
| 672 |
\begin{verbatim}[\small] |
| 673 |
\lstset{columns=fullflexible, |
| 674 |
keepspaces=true, |
| 675 |
commentstyle=\slshape, |
| 676 |
basicstyle=\ttfamily |
| 677 |
\lst@ifdisplaystyle\small\fi,} |
| 678 |
\end{verbatim} |
| 679 |
Explanations: |
| 680 |
\begin{itemize} |
| 681 |
\item \texttt{columns=fullflexible}: |
| 682 |
The other values for the \verb|columns| option don't work well in \TUB; |
| 683 |
we want the program text to be typeset normally, not forcibly aligned |
| 684 |
into large character cells. |
| 685 |
|
| 686 |
\item \texttt{keepspaces=true}: |
| 687 |
However, having flexible columns makes spaces in the input not |
| 688 |
necessarily correspond to spaces in the output. That's usually desired, |
| 689 |
for alignment of the sources, hence \texttt{keepspaces}. |
| 690 |
|
| 691 |
\item \texttt{commentstyle=\cs{slshape}}: |
| 692 |
We prefer slanted to Computer Modern typewriter italic. |
| 693 |
Using regular upright typewriter for comments is fine (preferred) too. |
| 694 |
|
| 695 |
\item \texttt{basicstyle=...}: |
| 696 |
We usually prefer \cs{small} for displayed verbatim, but not inline |
| 697 |
verbatim, hence the conditional. |
| 698 |
|
| 699 |
\item \pkgname{listings} does not easily support \tbUTF-8 for code |
| 700 |
points above 255. If you need such characters, a different package is |
| 701 |
probably easier. See: |
| 702 |
pdf\LaTeX: \url{https://tex.stackexchange.com/q/24528};\\ |
| 703 |
Lua\LaTeX, |
| 704 |
\XeLaTeX: \url{https://tex.stackexchange.com/q/25391}. |
| 705 |
\end{itemize} |
| 706 |
|
| 707 |
\subsection{Typesetting urls} |
| 708 |
\label{sec:urls} |
| 709 |
|
| 710 |
In short: |
| 711 |
|
| 712 |
\begin{enumerate} |
| 713 |
\item Please load either the \texttt{url} or (preferably) the |
| 714 |
\texttt{hyperref} package so that reasonable line breaking of urls can |
| 715 |
happen. |
| 716 |
|
| 717 |
\item Add \verb|\def\url{\tburl}| to your preamble and use \cs{url} in your |
| 718 |
document as usual. (It seems too intrusive for the \TUB\ classes to |
| 719 |
redefine something as fragile and widespread as \cs{url}.) |
| 720 |
\end{enumerate} |
| 721 |
The rest of this section is more details about the above. |
| 722 |
|
| 723 |
The main reason for preferring the above is that for the printed |
| 724 |
(visible) \TUB\ page, nowadays we typically prefer to omit a leading |
| 725 |
\texttt{https://}. But for the link to actually work in the output \PDF\ |
| 726 |
or \HTML, the protocol is required (else the \PDF\ reader thinks it is |
| 727 |
a local filesystem path). Therefore the \texttt{ltugboat} class provides |
| 728 |
(as of 2023) the command \cs{tburl} for this.\footnote{This and related |
| 729 |
commands are wrappers around \cs{hyper@linkurl}. |
| 730 |
Thanks to Ulrike Fischer for doing the real work: |
| 731 |
\tburl{https://github.com/latex3/hyperref/issues/125}\raggedright} |
| 732 |
|
| 733 |
For example, the commands \verb|\tburl{tug.org}| and |
| 734 |
\verb|\tburl{https://tug.org}| both typeset the text `\texttt{tug.org}' |
| 735 |
(with the usual url line breaks possible) as a link to |
| 736 |
\url{https://tug.org}. |
| 737 |
|
| 738 |
Since so few web sites do not support https, |
| 739 |
\verb|\tburl{http://example.org}| typesets the full url as text |
| 740 |
`\texttt{http://example.org}' as a link to itself. If it's desirable to |
| 741 |
elide the http://, the variant \cs{tbhurl} can be used. |
| 742 |
|
| 743 |
Thus, as shown, the correct protocol can be explicitly specified, and |
| 744 |
will be stripped for display. Just use \cs{tburl}. |
| 745 |
|
| 746 |
In short, \cs{tburl} and related make live links and omit the protocol |
| 747 |
if \pkgname{hyperref} is loaded. We highly recommend this. |
| 748 |
|
| 749 |
Without \texttt{hyperref}, they are merely synonyms for \cs{url}. This |
| 750 |
is ok, and we still request that the protocol not be included; if live |
| 751 |
links are not being produced in the output, the printed url without the |
| 752 |
protocol suffices. (When a user copies/pastes url text into a browser, |
| 753 |
it will normally work.) |
| 754 |
|
| 755 |
In order to keep using \cs{url} in a document body, we suggest |
| 756 |
\verb|\def\url{\tburl}|. |
| 757 |
|
| 758 |
For \texttt{ftp}, \texttt{rsync}, and other protocols, it is best to |
| 759 |
always include them explicitly and use \cs{url}:\\ |
| 760 |
\verb|\url{ftp://tug.org}|,\\ \verb|\url{rsync://tug.org}|, etc. |
| 761 |
|
| 762 |
Finally, sometimes it is best to allow line breaks at hyphens in urls. |
| 763 |
We've found that this is not confusing in practice. To enable this and |
| 764 |
\pkgname{hyperref} at the same time, it's necessary to load |
| 765 |
\pkgname{url} explicitly and enable the \tbcode{hyphens} option: |
| 766 |
|
| 767 |
\begin{verbatim} |
| 768 |
\usepackage[hyphens]{url} |
| 769 |
\usepackage[hidelinks]{hyperref} |
| 770 |
\end{verbatim} |
| 771 |
|
| 772 |
\subsubsection{Url footnotes} |
| 773 |
\label{sec:urlfootnotes} |
| 774 |
|
| 775 |
The shortcut macro \cs{tburlfootnote} makes a ragged-right footnote |
| 776 |
using the \cs{tburl} command. We recognize that when writing url |
| 777 |
references, sometimes the best option is to put urls in footnotes. |
| 778 |
|
| 779 |
However, when it's sensible, we prefer to have urls as either |
| 780 |
parentheticals in the main text or in bibliography entries, to ease page |
| 781 |
breaking and reading flow. It is ideal to minimize\slash avoid footnotes |
| 782 |
in general. |
| 783 |
|
| 784 |
\subsubsection{Url shortcuts} |
| 785 |
\label{sec:urlshortcuts} |
| 786 |
|
| 787 |
A different aspect of urls: the \tug\ web server supports a shortcut url |
| 788 |
mechanism, \url{tug.org/l/}\meta{ident}, where \meta{ident} can be any |
| 789 |
tag, similar to \url{tinyurl.com} and similar sites. The idea is that |
| 790 |
\url{tug.org} shortcuts can be used in \TUB\ articles needing to link to |
| 791 |
excessively long and/or unstable web resources; then we update the |
| 792 |
shortcut if needed, and not worry that a commercial shortcut provider |
| 793 |
will disappear. |
| 794 |
|
| 795 |
The only way to create a \url{tug.org/l/} shortcut is by request, which |
| 796 |
we are happy to receive. |
| 797 |
|
| 798 |
\section{Bibliographies} |
| 799 |
\label{sec:biblio} |
| 800 |
|
| 801 |
In short: our basic recommendation for handling bibliographies is to use |
| 802 |
\BibTeX\ and the \pkgname{tugboat} bibliography style. No document |
| 803 |
options are needed or recommended. All that is required in the article |
| 804 |
source (as in the template available from \url{tug.org/TUGboat}) is the |
| 805 |
following: |
| 806 |
|
| 807 |
\begin{verbatim}[\small] |
| 808 |
\bibliographystyle{tugboat} |
| 809 |
\bibliography{yourbibfile} |
| 810 |
\end{verbatim} |
| 811 |
|
| 812 |
If you use \BibTeX, feel free to take advantage of the accumulated |
| 813 |
bibliography of \TUB{} itself |
| 814 |
(\url{mirror.ctan.org/info/biblio/tugboat.bib} on \CTAN, also in \TeX\ |
| 815 |
Live, etc.), and the other compilations by Nelson Beebe in that same |
| 816 |
directory. |
| 817 |
|
| 818 |
If you don't have \verb|tugboat.bst| (our \BibTeX\ style file), which |
| 819 |
was released in 2018, it's fine to use \pkgname{plain} or |
| 820 |
\pkgname{abbrv}. If you do have it, though, you may enjoy the following |
| 821 |
small but useful features: |
| 822 |
|
| 823 |
\begin{itemize} |
| 824 |
\item It is based on \pkgname{abbrvurl.bst} (see \url{ctan.org/pkg/urlbst}), |
| 825 |
|
| 826 |
\item and thus supports \tbcode{url} and \tbcode{doi} fields, among others. |
| 827 |
Please use \tbcode{url} instead of putting urls in the |
| 828 |
\tbcode{note} field, where possible. Also, please don't bother to |
| 829 |
include ``access date'' information for \TUB; we find that extraneous. |
| 830 |
|
| 831 |
\item The \tbcode{url} field is ignored if either the \tbcode{doi} or |
| 832 |
\tbcode{howpublished} field is present. In practice we observe that |
| 833 |
people put the same information in all those fields, and we don't want |
| 834 |
to typeset redundant information. |
| 835 |
|
| 836 |
\item Does even more abbreviating than \tbcode{abbrv}, such as |
| 837 |
printing only two author names (plus ``et~al.'')\ if there are more than |
| 838 |
four authors (thanks to Mico Loretan and Oren Patashnik). |
| 839 |
|
| 840 |
\item New field \tbcode{bookauthor} for the \tbcode{@incollection} and |
| 841 |
\tbcode{@inproceedings} allows for citing a part, written by author~X, |
| 842 |
of a publication written by author~Y, and not just edited by~Y. |
| 843 |
|
| 844 |
\item For the \tbcode{@misc} entry type, \tbcode{editor} is accepted as |
| 845 |
well as \tbcode{author}. |
| 846 |
|
| 847 |
\item Defines entry types \tbcode{@online} and \tbcode{@software} as |
| 848 |
aliases for \tbcode{@misc}. |
| 849 |
|
| 850 |
\item Defines an \tbcode{@ctan} entry type to reference packages on |
| 851 |
\CTAN, following the fields output by the \pkgname{ctanbib} script (in |
| 852 |
the package of the same name, \url{ctan.org/pkg/ctanbib}). |
| 853 |
|
| 854 |
\item For completeness only: \verb|tugboat.bst| provides several |
| 855 |
fields intended to be used by the editors: |
| 856 |
\begin{description}\raggedright |
| 857 |
\item[\sf journaltie] to output |
| 858 |
a tie instead of space after the \tbcode{journal} value, |
| 859 |
\item[\sf monthtie] for the same after \tbcode{month}, |
| 860 |
\item[\sf newpage] to force a page break after the current item, |
| 861 |
\item[\sf nowarning] to omit empty field warnings, \tbcode{prebibitem} to |
| 862 |
output material before \cs{bibitem} (e.g., a section heading), |
| 863 |
\item[\sf pagesnodashify] to avoid autoconverting \texttt{-} to |
| 864 |
\texttt{--} in the \texttt{pages} field, |
| 865 |
\item[\sf urlnewline] to force a line break before the \tbcode{url} value. |
| 866 |
\end{description} |
| 867 |
As editors, we've found that these presentation tweaks can be desirable |
| 868 |
for the final typeset output. Authors need not worry about them. |
| 869 |
|
| 870 |
\end{itemize} |
| 871 |
|
| 872 |
By the way, we recommending using commas to terminate all fields in |
| 873 |
\texttt{.bib} files, including the last one in an entry. That makes for |
| 874 |
one less thing to worry about when changing fields in the source. |
| 875 |
|
| 876 |
Bibliographies can be difficult to typeset at the best of times. |
| 877 |
\LaTeX{} sets \cs{sloppy} when typesetting the bibliography, but this |
| 878 |
typically leads to unpleasant output with \TUB's narrow columns. The |
| 879 |
author can specify typesetting parameters using the command |
| 880 |
\cs{SetBibJustification}. The classes remain \cs{sloppy} by default, but |
| 881 |
this can be changed with (for example), |
| 882 |
\begin{verbatim} |
| 883 |
\SetBibJustification{\raggedright} |
| 884 |
\end{verbatim} |
| 885 |
as the present article does, to often achieve somewhat better results. |
| 886 |
|
| 887 |
Multiple citations: when citing more than one item, please include them |
| 888 |
in a single \cs{cite} command, as in \verb|\cite{foo,bar}|. Also, please |
| 889 |
ensure that the result is in numerical order, so if \texttt{foo} ends up |
| 890 |
as reference `[2]' and \texttt{bar} as `[1]', use \verb|\cite{bar,foo}|. |
| 891 |
|
| 892 |
One more note on references: for \TUB\ issues, please use the format |
| 893 |
\textsl{volno\,:\,issno}, e.g., ``\TUB\ 32:1'' for volume~32, number~1. |
| 894 |
|
| 895 |
\subsection*{Non-recommended bibliography facilities} |
| 896 |
\label{sec:biblio-harvard} |
| 897 |
|
| 898 |
The preceding gives the bibliography recommendations for current \TUB\ |
| 899 |
articles. If, for whatever reason, you do not wish to follow those |
| 900 |
recommendations, this section is about some of the myriad historical and |
| 901 |
other possibilities. |
| 902 |
|
| 903 |
Notwithstanding that general recommendation for the \pkgname{tugboat} |
| 904 |
(falling back to \pkgname{plain}) \BibTeX\ style, \TUB's Harvard-style |
| 905 |
citation support may be selected by specifying \optname{harvardcite} as |
| 906 |
an option of the \cs{documentclass} command.\footnote{% |
| 907 |
The macros used derive rather directly from the `harvard' styles |
| 908 |
written by Glenn Paulley and later maintained by Peter Williams; the |
| 909 |
\BibTeX{} style derives from one developed by Patrick Daly.} |
| 910 |
If your article demands Harvard-style citations, you may prefer to load |
| 911 |
\pkgname{natbib} or similar instead of using \TUB's facilities; that's |
| 912 |
fine. |
| 913 |
|
| 914 |
This basic citation format is `author(s), year', but the macros are |
| 915 |
capable of many variations. This in turn places somewhat of a load on |
| 916 |
the author to use the correct citation macro. The macros available are |
| 917 |
shown in figure~\ref{fig:citation-macros}; the figure assumes an entry |
| 918 |
in the bibliography with authors Tom, Dick, and~Harry, and with a 1990 |
| 919 |
date. |
| 920 |
|
| 921 |
\begin{figure}[htbp!] |
| 922 |
\begin{center} |
| 923 |
\leavevmode |
| 924 |
\begin{tabular}{@{}ll@{}}% @{ $\rightarrow$ } between columns removed |
| 925 |
\small Macro & Output\\ |
| 926 |
\midrule |
| 927 |
\verb|\cite{key}| & (Tom, Dick, and Harry, 1990)\\ |
| 928 |
\verb|\citeA{key}| & (Tom, Dick, and Harry)\\ |
| 929 |
\verb|\citeNP{key}| & Tom, Dick, and Harry, 1990\\ |
| 930 |
\verb|\citeANP{key}| & Tom, Dick, and Harry\\ |
| 931 |
\verb|\citeN{key}| & Tom, Dick, and Harry (1990)\\ |
| 932 |
\verb|\shortcite{key}| & (Tom et al., 1990)\\ |
| 933 |
& [also has \texttt{A} and \texttt{NP} |
| 934 |
variants]\\ |
| 935 |
\verb|\citeyear{key}| & (1990)\\ |
| 936 |
& [also has an \texttt{NP} variant] |
| 937 |
\end{tabular} |
| 938 |
\end{center} |
| 939 |
\caption{The range of citations in \optname{harvard} style} |
| 940 |
\label{fig:citation-macros} |
| 941 |
\end{figure} |
| 942 |
|
| 943 |
Furthermore, if Tom, Dick, and Harry are a prolific team, there can |
| 944 |
easily be more than one reference to their work in one year. In such |
| 945 |
a case, the citations will be (Tom, Dick, and Harry, 1990a), (Tom, |
| 946 |
Dick, and Harry, 1990b), and so on. These extra `a', `b', etc., tags |
| 947 |
may also appear in the references section of the paper, attached to |
| 948 |
the year recorded for the reference: whether this indeed happens is |
| 949 |
controlled by the \optname{extralabel} and \optname{noextralabel} class |
| 950 |
options. The default state (option \optname{extralabel}) attaches the |
| 951 |
extra characters. |
| 952 |
|
| 953 |
As for \BibLaTeX: we don't recommend it for \TUB. If you feel you must |
| 954 |
use it, that is ok, but we may still change it to using the default |
| 955 |
\LaTeX\ and \BibTeX\ facilities in processing for publication if the |
| 956 |
output from \BibLaTeX\ is problematic, as we have often seen it to be. |
| 957 |
|
| 958 |
%\appendix |
| 959 |
\section{Equivalences between the `plain' and \LaTeX{} \TUB\ packages} |
| 960 |
\label{sec:equiv} |
| 961 |
|
| 962 |
A good proportion of the commands in the `plain' packages also appear |
| 963 |
(with the same meaning) in the \LaTeX{} classes. |
| 964 |
Figure~\ref{fig:plain-equiv} gives a brief summary of where the macros |
| 965 |
differ significantly. |
| 966 |
|
| 967 |
\begin{figure}[htbp] |
| 968 |
\begin{center} |
| 969 |
\leavevmode |
| 970 |
\begin{tabular}{@{}ll@{}} |
| 971 |
\small Plain macro & \small \LaTeX{} macro \\ |
| 972 |
\midrule |
| 973 |
\cs{head} & \cs{section} \\ |
| 974 |
\cs{subhead} & \cs{subsection} \\ |
| 975 |
\cs{subsubhead} & \cs{subsubsection} \\ |
| 976 |
\cs{list} & \envname{itemize}, \envname{enumerate}, etc., \\ |
| 977 |
& environments \\ |
| 978 |
\cs{verbatim} & \envname{verbatim} or \cs{verb} \\ |
| 979 |
\cs{figure} & \envname{figure} or \envname{figure*} environments \\ |
| 980 |
\end{tabular} |
| 981 |
\end{center} |
| 982 |
\caption{Equivalences between \pkgname{plain} and \LaTeX{} \TUB\ macros} |
| 983 |
\label{fig:plain-equiv} |
| 984 |
\end{figure} |
| 985 |
|
| 986 |
\LaTeX{} itself makes comprehensive provision for lists; the \TUB{} |
| 987 |
classes make no attempt to emulate the list facilities of the `plain' |
| 988 |
macros. |
| 989 |
|
| 990 |
The `plain' styles' provision for verbatim text is also somewhat |
| 991 |
different from the \LaTeX{} approach; the \TUB{} classes offer a small |
| 992 |
subset of the extra facilities that the `plain' styles provide; for more |
| 993 |
elaborate facilities, the user is referred to the \pkgname{verbatim}, |
| 994 |
\pkgname{listings}, and \pkgname{fancyvrb} packages (see |
| 995 |
section~\ref{sec:verbatim}). |
| 996 |
|
| 997 |
The syntax of commands given to the \LaTeX{} classes is different; |
| 998 |
arguments are (almost always) enclosed in braces instead of the various |
| 999 |
forms provided by the `plain' macros. |
| 1000 |
|
| 1001 |
\SetBibJustification{\raggedright} |
| 1002 |
\bibliographystyle{tugboat} |
| 1003 |
\bibliography{tubguide} |
| 1004 |
|
| 1005 |
\advance\signaturewidth by 8pt |
| 1006 |
\makesignature |
| 1007 |
|
| 1008 |
\end{document} |