| 1 |
%% mciteplus_doc.tex |
| 2 |
%% V1.2 |
| 3 |
%% 2013/09/13 |
| 4 |
%% Copyright (c) 2008 by Michael Shell |
| 5 |
%% See: |
| 6 |
%% http://www.michaelshell.org/ |
| 7 |
%% for current contact information. |
| 8 |
%% |
| 9 |
%% This is the documentation for the mciteplus.sty package. |
| 10 |
%% |
| 11 |
%% Support sites: |
| 12 |
%% http://www.michaelshell.org/tex/mciteplus/ |
| 13 |
%% http://www.ctan.org/tex-archive/macros/latex/contrib/mciteplus/ |
| 14 |
%% |
| 15 |
%%************************************************************************* |
| 16 |
%% Legal Notice: |
| 17 |
%% This code is offered as-is without any warranty either expressed or |
| 18 |
%% implied; without even the implied warranty of MERCHANTABILITY or |
| 19 |
%% FITNESS FOR A PARTICULAR PURPOSE! |
| 20 |
%% User assumes all risk. |
| 21 |
%% In no event shall IEEE or any contributor to this code be liable for |
| 22 |
%% any damages or losses, including, but not limited to, incidental, |
| 23 |
%% consequential, or any other damages, resulting from the use or misuse |
| 24 |
%% of any information contained here. |
| 25 |
%% |
| 26 |
%% All comments are the opinions of their respective authors and are not |
| 27 |
%% necessarily endorsed by the IEEE. |
| 28 |
%% |
| 29 |
%% This work is distributed under the LaTeX Project Public License (LPPL) |
| 30 |
%% ( http://www.latex-project.org/ ) version 1.3, and may be freely used, |
| 31 |
%% distributed and modified. A copy of the LPPL, version 1.3, is included |
| 32 |
%% in the base LaTeX documentation of all distributions of LaTeX released |
| 33 |
%% 2003/12/01 or later. |
| 34 |
%% Retain all contribution notices and credits. |
| 35 |
%% ** Modified files should be clearly indicated as such, including ** |
| 36 |
%% ** renaming them and changing author support contact information. ** |
| 37 |
%% |
| 38 |
%% File list of work: mciteplus.sty, mciteplus_doc.pdf, mciteplus_doc.tex, |
| 39 |
%% mciteplus_code.txt, apsrevM.bst, apsrmpM.bst, |
| 40 |
%% IEEEtranM.bst, IEEEtranMN.bst |
| 41 |
%%************************************************************************* |
| 42 |
|
| 43 |
\documentclass[10pt,letterpaper]{article} |
| 44 |
|
| 45 |
|
| 46 |
% tweak article.cls |
| 47 |
\makeatletter |
| 48 |
|
| 49 |
\newcommand\tableofcontentssectiononly{% |
| 50 |
\section*{\contentsname |
| 51 |
\@mkboth{% |
| 52 |
\MakeUppercase\contentsname}{\MakeUppercase\contentsname}}} |
| 53 |
\newcommand\tableofcontentsstarttoc{\@starttoc{toc}} |
| 54 |
|
| 55 |
|
| 56 |
\def\@maketitle{% |
| 57 |
\newpage |
| 58 |
\null |
| 59 |
\vspace{-3em}% |
| 60 |
\begin{center}% |
| 61 |
\let \footnote \thanks |
| 62 |
{\LARGE \@title \par}% |
| 63 |
\vskip 1em% |
| 64 |
{\large |
| 65 |
\lineskip .5em% |
| 66 |
\begin{tabular}[t]{c}% |
| 67 |
\@author |
| 68 |
\end{tabular}\par}% |
| 69 |
\vskip 1em% |
| 70 |
{\large \@date}% |
| 71 |
\end{center} |
| 72 |
\par |
| 73 |
\vskip 1em} |
| 74 |
|
| 75 |
\makeatother |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
\usepackage{multicol} |
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
\parskip 1ex plus 1ex minus 0.75ex |
| 84 |
|
| 85 |
\parindent 1.0em |
| 86 |
|
| 87 |
\topmargin -49.0pt |
| 88 |
\headheight 12pt |
| 89 |
\headsep 0.25in |
| 90 |
\footskip 0.4in |
| 91 |
|
| 92 |
% want 1in margins |
| 93 |
\setlength{\topmargin}{-\headsep}% |
| 94 |
\addtolength{\topmargin}{-\headheight}% |
| 95 |
% we want 1in side margins regardless of paper type |
| 96 |
\oddsidemargin 0in |
| 97 |
\evensidemargin 0in |
| 98 |
% set the text width |
| 99 |
\setlength{\textwidth}{\paperwidth}% |
| 100 |
\addtolength{\textwidth}{-2.0in}% |
| 101 |
\setlength{\textheight}{\paperheight}% |
| 102 |
\addtolength{\textheight}{-2.0in}% |
| 103 |
% digitize textheight to be an integer number of lines. |
| 104 |
% this may cause the bottom margin to be off a tad |
| 105 |
\addtolength{\textheight}{-1\topskip}% |
| 106 |
\divide\textheight by \baselineskip% |
| 107 |
\multiply\textheight by \baselineskip% |
| 108 |
\addtolength{\textheight}{\topskip}% |
| 109 |
|
| 110 |
|
| 111 |
\newcommand{\MYdocversion}{1.1} |
| 112 |
|
| 113 |
\usepackage{type1ec} |
| 114 |
%\usepackage{type1cm} |
| 115 |
\usepackage[T1]{fontenc} |
| 116 |
|
| 117 |
\usepackage{ifpdf} |
| 118 |
\usepackage{notoccite} |
| 119 |
|
| 120 |
%\usepackage[retainorgcmds]{IEEEtrantools} |
| 121 |
% use roman url style |
| 122 |
\usepackage{url} |
| 123 |
|
| 124 |
\csname url@rmstyle\endcsname |
| 125 |
\ifpdf |
| 126 |
\usepackage[pdftex]{graphicx} |
| 127 |
\graphicspath{{.}} |
| 128 |
\DeclareGraphicsExtensions{.pdf} |
| 129 |
\else |
| 130 |
\usepackage[dvips]{graphicx} |
| 131 |
\graphicspath{{.}} |
| 132 |
\DeclareGraphicsExtensions{.eps} |
| 133 |
\fi |
| 134 |
|
| 135 |
\ifpdf |
| 136 |
\usepackage[pdftex]{thumbpdf} |
| 137 |
\else |
| 138 |
\usepackage[dvips]{thumbpdf} |
| 139 |
\fi |
| 140 |
|
| 141 |
\newcommand\MYhyperrefoptions{hypertexnames=false,bookmarks=true, |
| 142 |
bookmarksnumbered=true, pdfpagemode={UseOutlines},plainpages=false, |
| 143 |
pdfpagelabels=true,colorlinks=true,linkcolor={darkred}, |
| 144 |
citecolor={darkgreen},urlcolor={darkblue}, |
| 145 |
pdftitle={Mciteplus: Enhanced Multicitations}, |
| 146 |
pdfsubject={Typesetting}, |
| 147 |
pdfauthor={Michael D. Shell}, |
| 148 |
pdfkeywords={bibliography, BibTeX, collapsed entries, LaTeX, mcite, |
| 149 |
mciteplus, multicitations, physics journals, references, typesetting}} |
| 150 |
\ifpdf |
| 151 |
\usepackage[\MYhyperrefoptions,pdftex]{hyperref} |
| 152 |
\else |
| 153 |
\usepackage[\MYhyperrefoptions,dvips]{hyperref} |
| 154 |
\usepackage{breakurl} |
| 155 |
\fi |
| 156 |
|
| 157 |
\usepackage{color} |
| 158 |
\definecolor{darkred}{rgb}{0.8,0.0,0.0} |
| 159 |
\definecolor{darkgreen}{rgb}{0.0,0.5,0.0} |
| 160 |
\definecolor{darkblue}{rgb}{0.0,0.0,0.7} |
| 161 |
|
| 162 |
|
| 163 |
\providecommand{\texorpdfstring}[2]{#1} |
| 164 |
|
| 165 |
|
| 166 |
% Improved \textunderscore to provide a much better fake _ when used with |
| 167 |
% OT1 encoding. Under OT1, detect use of pcr or cmtt \ttfamily and use |
| 168 |
% available true _ glyph for those two typewriter fonts. |
| 169 |
\makeatletter |
| 170 |
\def\@MYstringptm{ptm} % Times Roman family |
| 171 |
\def\@MYstringppl{ppl} % Palatino Roman family |
| 172 |
\def\@MYstringphv{phv} % Helvetica Sans Serif family |
| 173 |
\def\@MYstringpcr{pcr} % Courier typewriter family |
| 174 |
\def\@MYstringcmtt{cmtt} % Computer Modern typewriter family |
| 175 |
\DeclareTextCommandDefault{\textunderscore}{\leavevmode |
| 176 |
\ifx\f@family\@MYstringpcr\string_\else |
| 177 |
\ifx\f@family\@MYstringcmtt\string_\else |
| 178 |
\ifx\f@family\@MYstringptm\kern 0em\vbox{\hrule\@width 0.5em\@height 0.5pt\kern -0.3ex}\else |
| 179 |
\ifx\f@family\@MYstringppl\kern 0em\vbox{\hrule\@width 0.5em\@height 0.5pt\kern -0.3ex}\else |
| 180 |
\ifx\f@family\@MYstringphv\kern -0.03em\vbox{\hrule\@width 0.62em\@height 0.52pt\kern -0.33ex}\kern -0.03em\else |
| 181 |
\kern 0.09em\vbox{\hrule\@width 0.6em\@height 0.44pt\kern -0.63pt\kern -0.42ex}\kern 0.09em\fi\fi\fi\fi\fi\relax} |
| 182 |
\makeatother |
| 183 |
|
| 184 |
\makeatletter |
| 185 |
\def\bstctlcite{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}} |
| 186 |
\def\@bstctlcite[#1]#2{\@bsphack |
| 187 |
\@for\@citeb:=#2\do{% |
| 188 |
\edef\@citeb{\expandafter\@firstofone\@citeb}% |
| 189 |
\if@filesw\immediate\write\csname #1\endcsname{\string\citation{\@citeb}}\fi}% |
| 190 |
\@esphack} |
| 191 |
\makeatother |
| 192 |
|
| 193 |
\makeatletter |
| 194 |
%% ***** Start ZAX defs ***** |
| 195 |
%% based on unreleased zax.sty, not ready yet for formal use |
| 196 |
%% V0.9 |
| 197 |
%% 2005/05/02 |
| 198 |
%% Copyright (c) 2005 by Michael Shell |
| 199 |
%% see http://www.michaelshell.org/contact.html |
| 200 |
%% for current contact information. |
| 201 |
% |
| 202 |
% |
| 203 |
% Showing LaTeX source code poses some difficulties. I probably could have |
| 204 |
% done things with \verbatim. But, I don't like it for a number of reasons. |
| 205 |
% For me, the main drawbacks are: |
| 206 |
% |
| 207 |
% 1. hyphenates words |
| 208 |
% 2. does not perfectly left and right justify the \ttfamily text |
| 209 |
% 3. does not allow the use of active LaTeX commands within the displayed |
| 210 |
% code |
| 211 |
% |
| 212 |
% Basically, I wanted a little more control. |
| 213 |
% |
| 214 |
% So, I developed a set of commands that will display LaTeX code. |
| 215 |
% The \ZAXlong and \ZAXshort commands allow the direct |
| 216 |
% display of LaTeX commands. The difference between the two is that |
| 217 |
% \ZAXlong will retain spaces and allows the inter-letter spacing |
| 218 |
% to expand slightly so that the text will always be justified while |
| 219 |
% \ZAXshort ignores spaces and uses no inter-letter space. |
| 220 |
% Variations of these two can be created by the user to provide |
| 221 |
% fo different font sizes and styles. |
| 222 |
% |
| 223 |
% When one of these commands is issued: |
| 224 |
% |
| 225 |
% | becomes the control character: |relax |
| 226 |
% ( use |ZAXbar to get a | character) |
| 227 |
% |
| 228 |
% { } becomes like punctuation |
| 229 |
% (use |bgroup and |egroup instead) |
| 230 |
% |
| 231 |
% + prevents a break between the characters it appears between |
| 232 |
% (use |ZAXplus to get a + character) |
| 233 |
% |
| 234 |
% ~ nonbreaking spaces become visible tildes |
| 235 |
% |
| 236 |
% breaks are not allowed right after a "\" or a space |
| 237 |
% |
| 238 |
% For the long form, since normal spaces are not ignored: |
| 239 |
% & becomes an (ignored) space character for use after commands. |
| 240 |
% e.g., " |mbox|bgroup&Unbro|egroup&ken and " |
| 241 |
% |
| 242 |
% to stop the action of a \ZAX command, issue an |end. |
| 243 |
% |
| 244 |
% The trick is to read all the input characters and to insert a "sliver" |
| 245 |
% of hspace glue between them! TeX will be happy to make a break at any |
| 246 |
% glue, and it will never hyphenate at the break. With the long form, |
| 247 |
% this interletter glue is also allowed to stretch a very small amount - |
| 248 |
% because a long sequence could stretch across the entire column without |
| 249 |
% any spaces to break on. |
| 250 |
% When real spaces are encountered, we replace them with \hspace* commands |
| 251 |
% of the same nominal length, but that can stretch and shrink a fair |
| 252 |
% amount. The \hspace* form ensures that the space will not be lost |
| 253 |
% at the start/end of the lines. By using \penalty10000 at the end of |
| 254 |
% the artificial spaces, we ensure that TeX will not break right after a |
| 255 |
% space - the user will be able to explicitly see the space at the |
| 256 |
% beginning of the next line. |
| 257 |
% |
| 258 |
% This command family can be thought of as implementing a type of "backward" |
| 259 |
% line breaking world in which breaks are assumed to possible everywhere except |
| 260 |
% were indicated as prohibited. Furthermore, hyphenation is not used as spaces |
| 261 |
% are not implicit with line breaks, but must be carried to the start of the |
| 262 |
% next line. In other words, commands are not thought of as words, but rather |
| 263 |
% as sequences of letters. |
| 264 |
% |
| 265 |
% |
| 266 |
% Note: TeX parser tokenizes commands and special characters when acquiring |
| 267 |
% an argument for a command. Thus, when used within an argument to a command, |
| 268 |
% the code in the \ZAX never gets a chance to alter "\", "|", "{", "}", |
| 269 |
% etc., before TeX acquires the argument. For such use, the syntax is reversed, |
| 270 |
% i.e., call the commands using the "\" as one normally would. The "+", "~" will |
| 271 |
% still operate as described above: |
| 272 |
% \footnote{\ZAXlong this\ZAXplus is+a\ZAXbar big\_\ZAXbsl mbox% |
| 273 |
% \ZAXobrace~\ZAXcbrace\ test\end.} |
| 274 |
% Future versions of this code may use this latter approach exclusively so |
| 275 |
% as to unify the syntax (although entering LaTeX code will then take longer |
| 276 |
% command sequences in the main text). |
| 277 |
|
| 278 |
|
| 279 |
\def\ZAXplus{\mbox{+}} % a plus sign |
| 280 |
\def\ZAXbar{\mbox{|}} % a vert bar |
| 281 |
\def\ZAXvtilde{\~{}} % a visible tilde |
| 282 |
%\def\ZAXvtilde{\textasciitilde} % another form of a visible tilde |
| 283 |
|
| 284 |
% define \ZAXbsl which is a "\" character |
| 285 |
\catcode`\|=0 \catcode`\\=12 |
| 286 |
|edef|ZAXbsl{|mbox{\}} |
| 287 |
|catcode`|\=0 |catcode`||=12 |
| 288 |
|
| 289 |
% define \ZAXbslnobrk macro that gives an unbreakable backslash character |
| 290 |
% this is used only in \ZAXrun to prevent breaks around \ |
| 291 |
\catcode`\|=0\catcode`\\=12 |def|ZAXbslnobrk{\} |catcode`|\=0 |catcode`||=12 |
| 292 |
|
| 293 |
% define \ZAXobrace which is a "{" character |
| 294 |
\catcode`\$=1 \catcode`\{=12 |
| 295 |
\edef\ZAXobrace$\mbox${}} |
| 296 |
\catcode`\$=3 \catcode`\{=1 |
| 297 |
|
| 298 |
% define \ZAXcbrace which is a "}" character |
| 299 |
\catcode`\$=2 \catcode`\}=12 |
| 300 |
\edef\ZAXcbrace{\mbox{}$$ |
| 301 |
\catcode`\$=3 \catcode`\}=2 |
| 302 |
|
| 303 |
% define \ZAXmath which is the "$" math shift character |
| 304 |
\edef\ZAXmath{$} |
| 305 |
|
| 306 |
% makes spaces visible |
| 307 |
\def\ZAXvspon{\catcode`\ =12} |
| 308 |
% makes spaces invisible |
| 309 |
\def\ZAXvspoff{\catcode`\ =10} |
| 310 |
|
| 311 |
% \ZAXvsp is a macro that produces a visible space |
| 312 |
% can be used to show spaces within the short or long cmdword forms |
| 313 |
\ZAXvspon\def\ZAXvsp{ }\ZAXvspoff |
| 314 |
|
| 315 |
% \\ does not work in ZAX environments do to the change in |
| 316 |
% cat codes. We provide it here as \ZAXnl - this definition |
| 317 |
% is updated as ZAX starts. |
| 318 |
\let\ZAXnl=\\ |
| 319 |
|
| 320 |
% fat space nominal factor (multiplied by width of \ ) |
| 321 |
\def\ZAXfatspacenorm{1} |
| 322 |
% fat space stretch factor |
| 323 |
\def\ZAXfatspacestretch{0.43} |
| 324 |
% fat space shrink factor |
| 325 |
\def\ZAXfatspaceshrink{0.24} |
| 326 |
% slim space |
| 327 |
\def\ZAXslimspacelen{0pt plus 0.15pt minus 0pt} |
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
% these are determined in the start code, but provide dummys here so they are defined |
| 332 |
\def\ZAXfatspace{\hspace*{10pt}\penalty10000} |
| 333 |
\def\ZAXslimspace{\penalty0\hspace{0pt plus 0pt minus 0pt}} |
| 334 |
|
| 335 |
|
| 336 |
% flag to indicate if font was saved |
| 337 |
\newif\if@ZAXsavedfont \@ZAXsavedfontfalse |
| 338 |
|
| 339 |
% saves all the properties of the given font |
| 340 |
% use global in case font save is set within a group |
| 341 |
\def\ZAXsavefont{\global\let\@ZAXfontENCODINGsave\f@encoding% |
| 342 |
\global\let\@ZAXfontFAMILYsave\f@family\global\let\@ZAXfontSERIESsave\f@series% |
| 343 |
\global\let\@ZAXfontSHAPEsave\f@shape\global\let\@ZAXfontSIZEsave\f@size% |
| 344 |
\global\let\@ZAXfontBASELINESKIPsave\f@baselineskip\global\@ZAXsavedfonttrue} |
| 345 |
% restores font back to saved value |
| 346 |
\def\ZAXrestorefont{\fontencoding{\@ZAXfontENCODINGsave}\fontfamily{\@ZAXfontFAMILYsave}% |
| 347 |
\fontseries{\@ZAXfontSERIESsave}\fontshape{\@ZAXfontSHAPEsave}% |
| 348 |
\fontsize{\@ZAXfontSIZEsave}{\@ZAXfontBASELINESKIPsave}\selectfont} |
| 349 |
|
| 350 |
|
| 351 |
% lengths |
| 352 |
\newskip\@ZAXtemplen |
| 353 |
\newskip\@ZAXfatspacelen |
| 354 |
|
| 355 |
|
| 356 |
% Setup for the longcmdword form |
| 357 |
% make a stretchable fat spacer equal in length to the nominal space length |
| 358 |
% use penalty's to ensure easy breaks before and impossible breaks after spaces |
| 359 |
% allow the inter-letter slim "sliver" space to stretch a tad |
| 360 |
% make | the control character, & a space, and \{}, $ and blank characters |
| 361 |
% equal to punctuation |
| 362 |
\def\ZAXstartLong{\let\@ZAXnextbrk=0% no sliver before start |
| 363 |
\settowidth{\@ZAXfatspacelen}{\ }% |
| 364 |
\setlength{\@ZAXfatspacelen}{\ZAXfatspacenorm\@ZAXfatspacelen}% |
| 365 |
\setlength{\@ZAXtemplen}{\ZAXfatspacestretch\@ZAXfatspacelen}% |
| 366 |
\addtolength{\@ZAXfatspacelen}{0pt plus \the\@ZAXtemplen}% |
| 367 |
\setlength{\@ZAXtemplen}{\ZAXfatspaceshrink\@ZAXfatspacelen}% |
| 368 |
\addtolength{\@ZAXfatspacelen}{0pt minus \the\@ZAXtemplen}% |
| 369 |
\def\ZAXfatspace{\penalty0\hspace*{\@ZAXfatspacelen}\penalty10000}% |
| 370 |
\def\ZAXslimspace{\hspace{\ZAXslimspacelen}}% |
| 371 |
\let\ZAXnl=\\% |
| 372 |
\catcode`\|=0 \catcode`\\=12 \catcode`\{=12 \catcode`\}=12 \catcode`\ =12 \catcode`\&=10% |
| 373 |
\catcode`\^=12 \catcode`\$=12 \catcode`\#=12% |
| 374 |
\ZAXrun} |
| 375 |
|
| 376 |
|
| 377 |
% Setup for the shortcmdword form |
| 378 |
% make a stretchable fat spacer equal in length to the nominal space length |
| 379 |
% use penalty's to ensure impossible breaks after spaces |
| 380 |
% the inter-letter slim "sliver" space is rigid at 0pt |
| 381 |
% make | the control character and \{}, $, # and characters equal to punctuation |
| 382 |
\def\ZAXstartShort{\let\@ZAXnextbrk=0%% no sliver before start |
| 383 |
\settowidth{\@ZAXfatspacelen}{\ }% |
| 384 |
\setlength{\@ZAXtemplen}{\ZAXfatspacestretch\@ZAXfatspacelen}% |
| 385 |
\addtolength{\@ZAXfatspacelen}{0pt plus \the\@ZAXtemplen}% |
| 386 |
\setlength{\@ZAXtemplen}{\ZAXfatspaceshrink\@ZAXfatspacelen}% |
| 387 |
\addtolength{\@ZAXfatspacelen}{0pt minus \the\@ZAXtemplen}% |
| 388 |
\def\ZAXfatspace{\hspace*{\@ZAXfatspacelen}\penalty10000}% |
| 389 |
\def\ZAXslimspace{\hspace{0pt plus 0pt minus 0pt}}% |
| 390 |
\let\ZAXnl=\\% |
| 391 |
\catcode`\|=0 \catcode`\\=12 \catcode`\{=12 \catcode`\}=12 \catcode`\$=12 \catcode`\#=12% |
| 392 |
\ZAXrun} |
| 393 |
|
| 394 |
|
| 395 |
\def\ZAXrun#1{\ifx#1\end\catcode`\{=1 \catcode`\}=2 \catcode`\\=0% stop if we hit an |end |
| 396 |
\catcode`\|=12 \catcode`\ =10 \catcode`\&=4 \catcode`\^=7 \catcode`\$=3 \catcode`\#=6% |
| 397 |
\if@ZAXsavedfont\ZAXrestorefont\fi\global\@ZAXsavedfontfalse\let\@ZAXnext=\relax% |
| 398 |
\else% |
| 399 |
\def\@ZAXtokenout{#1}% save the token as a macro |
| 400 |
\let\@ZAXout=1\relax% assume we wish to output this character |
| 401 |
\let\@ZAXbrk=1\relax% assume this is a breakable point |
| 402 |
\ifx\@ZAXnextbrk0\let\@ZAXbrk=0\fi% unless prev char wants no break here |
| 403 |
\let\@ZAXnextbrk=1\relax% we assume this char will allow the next char to break |
| 404 |
\let\@ZAXoutspace=\ZAXslimspace% assume the output spacer is a sliver |
| 405 |
\ifx\@ZAXtokenout\ZAXvsp\let\@ZAXout=0\let\@ZAXoutspace=\ZAXfatspace\let\@ZAXnextbrk=0\fi% visible space, output the space instead |
| 406 |
\ifx#1\ \let\@ZAXout=0\let\@ZAXoutspace=\ZAXfatspace\let\@ZAXnextbrk=0\fi% control space, output the spacer instead |
| 407 |
\ifx#1+\let\@ZAXout=0\let\@ZAXbrk=0\let\@ZAXnextbrk=0\fi% a + means not to break here or at the next, discard token and no spacer |
| 408 |
\ifx\@ZAXtokenout\ZAXbslnobrk\let\@ZAXnextbrk=0\fi% we don't want breaks right after \ |
| 409 |
\ifx#1~\def\@ZAXtokenout{\ZAXvtilde}\fi% make nonbreaking spaces visible |
| 410 |
%\ifx#1\ZAXobrace\def\@ZAXtokenout{{\catcode`\{=1\{}}\typeout{obrace}\fi% |
| 411 |
%\ifx#1\ZAXcbrace\def\@ZAXtokenout{\}}\fi% |
| 412 |
\ifx\@ZAXbrk1\@ZAXoutspace\else\penalty10000\relax\@ZAXoutspace\fi% output spacer, stop breaks if needed |
| 413 |
\ifx\@ZAXout1\ifx\@ZAXbrk1\relax\@ZAXtokenout\relax\else\penalty10000\relax\@ZAXtokenout\relax\fi\fi% output the token if desired |
| 414 |
\let\@ZAXnext=\ZAXrun% ready to get next token |
| 415 |
\fi% now get the next token |
| 416 |
\@ZAXnext} |
| 417 |
|
| 418 |
|
| 419 |
\def\ZAXlong#1{\ZAXsavefont#1\ZAXstartLong} |
| 420 |
\def\ZAXshort#1{\ZAXsavefont#1\ZAXstartShort} |
| 421 |
|
| 422 |
|
| 423 |
% to define custom commands, do like: |
| 424 |
% \def\ZAXlongSTT{\ZAXsavefont\small\ttfamily\ZAXstartLong} |
| 425 |
|
| 426 |
|
| 427 |
%% ***** End ZAX defs ***** |
| 428 |
\makeatother |
| 429 |
|
| 430 |
|
| 431 |
% Bogus thebibliography for apsrev.bst extracts |
| 432 |
\makeatletter |
| 433 |
\newenvironment{MYapsrevthebibliography}[1]{\relax |
| 434 |
\list{\@biblabel{\@arabic\c@enumiv}}% |
| 435 |
{\settowidth\labelwidth{\@biblabel{#1}}% |
| 436 |
\leftmargin\labelwidth |
| 437 |
\advance\leftmargin\labelsep |
| 438 |
\@openbib@code |
| 439 |
\usecounter{enumiv}% |
| 440 |
\let\p@enumiv\@empty |
| 441 |
\renewcommand\theenumiv{\@arabic\c@enumiv}}% |
| 442 |
\sloppy |
| 443 |
\clubpenalty4000 |
| 444 |
\@clubpenalty \clubpenalty |
| 445 |
\widowpenalty4000% |
| 446 |
\sfcode`\.\@m\relax |
| 447 |
\expandafter\ifx\csname bibnamefont\endcsname\relax |
| 448 |
\def\bibnamefont##1{##1}\fi |
| 449 |
\expandafter\ifx\csname bibfnamefont\endcsname\relax |
| 450 |
\def\bibfnamefont##1{##1}\fi |
| 451 |
\expandafter\ifx\csname citenamefont\endcsname\relax |
| 452 |
\def\citenamefont##1{##1}\fi |
| 453 |
\expandafter\ifx\csname url\endcsname\relax |
| 454 |
\def\url##1{\texttt{##1}}\fi |
| 455 |
\expandafter\ifx\csname urlprefix\endcsname\relax\def\urlprefix{URL }\fi |
| 456 |
\providecommand{\bibinfo}[2]{##2}\relax |
| 457 |
\providecommand{\eprint}[2][]{\url{##2}}\relax |
| 458 |
\def\@MYapsrevbogusbibitem{\@ifnextchar[{\@@MYapsrevbogusbibitem}{\@@MYapsrevbogusbibitem[\relax]}}\relax |
| 459 |
\def\@@MYapsrevbogusbibitem[##1]##2{\item}\relax |
| 460 |
\let\bibitem\@MYapsrevbogusbibitem}{\endlist} |
| 461 |
\makeatother |
| 462 |
|
| 463 |
|
| 464 |
\def\BibTeX{{\rmfamily B\kern-.05em{\scshape i\kern-.025em b}\kern-.08em |
| 465 |
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} |
| 466 |
|
| 467 |
% needed only when not using the CM super fonts as they do not |
| 468 |
% have bold small caps needed for a bold \BibTeX |
| 469 |
%\newcommand{\MYfontfix}[1]{\textmd{#1}} |
| 470 |
% |
| 471 |
\newcommand{\MYfontfix}[1]{\relax #1} |
| 472 |
|
| 473 |
\newenvironment{MYlistblk}{\parindent=0pt\trivlist\item\relax\small}{\endtrivlist} |
| 474 |
|
| 475 |
\newcommand{\MYemdash}{\,---\,} |
| 476 |
|
| 477 |
\newcommand{\MYshortcmd}{\ZAXshort{\ttfamily\small}} |
| 478 |
\newcommand{\MYlongcmd}{\ZAXlong{\ttfamily\small}} |
| 479 |
|
| 480 |
\newcommand{\MYsmalltt}[1]{\texttt{\small #1}} |
| 481 |
|
| 482 |
\newcommand{\MYsecref}[1]{section~\ref{#1}} |
| 483 |
\newcommand{\MYSecref}[1]{Section~\ref{#1}} |
| 484 |
|
| 485 |
|
| 486 |
\pagestyle{headings} |
| 487 |
|
| 488 |
%\vskip -20em |
| 489 |
|
| 490 |
|
| 491 |
\title{Mciteplus: Enhanced Multicitations} |
| 492 |
\author{Michael Shell\thanks{See \url{http://www.michaelshell.org/} for |
| 493 |
current contact information.\hfil\break |
| 494 |
\indent\ Manuscript originally created on January 15, 2008; revised September 13, 2013. |
| 495 |
The latest version of this package can be obtained at \mbox{CTAN} \cite{ctan:mciteplus}. |
| 496 |
This work is distributed under the \LaTeX\ Project Public License (LPPL) |
| 497 |
( \url{http://www.latex-project.org/} ) |
| 498 |
version 1.3. A copy of the LPPL, version 1.3, is included in the base \LaTeX\ |
| 499 |
documentation of all distributions of \LaTeX\ released 2003/12/01 or later. |
| 500 |
The opinions expressed here are entirely that of the author. No warranty is expressed |
| 501 |
or implied. User assumes all risk.}\\ |
| 502 |
{\small\hfill\textit{with special thanks to Joseph Wright}\hfill\mbox{}}} |
| 503 |
|
| 504 |
\date{Version 1.2, September 13, 2013\\[0.5\baselineskip] |
| 505 |
{\normalfont\normalsize\url{http://www.michaelshell.org/tex/mciteplus/}}} |
| 506 |
|
| 507 |
|
| 508 |
\flushbottom |
| 509 |
|
| 510 |
\begin{document} |
| 511 |
|
| 512 |
\bstctlcite{BSTcontrol} |
| 513 |
|
| 514 |
\thispagestyle{empty} |
| 515 |
|
| 516 |
\maketitle |
| 517 |
\begin{abstract} |
| 518 |
This \LaTeXe{} package is an enhanced reimplementation of Thorsten Ohl's mcite package |
| 519 |
which provides support for the grouping of multiple citations together as is |
| 520 |
often done in physics journals. An extensive set of features provide for |
| 521 |
other applications such as reference sublisting. |
| 522 |
\end{abstract} |
| 523 |
|
| 524 |
\tableofcontentssectiononly |
| 525 |
\begin{multicols}{2} |
| 526 |
\tableofcontentsstarttoc |
| 527 |
\end{multicols} |
| 528 |
|
| 529 |
|
| 530 |
|
| 531 |
\section{Introduction} |
| 532 |
Mciteplus is a reimplementation of Thorsten Ohl's |
| 533 |
(\url{http://theorie.physik.uni-wuerzburg.de/~ohl/}) mcite \LaTeX\ package |
| 534 |
\cite{ctan:mcite}, which |
| 535 |
provides for ``collapsed'' citations (i.e., a grouping of multiple references |
| 536 |
under a single collective reference) as is often done in physics journals. |
| 537 |
Using Thorsten Ohl's example in the documentation for mcite: |
| 538 |
\begin{MYapsrevthebibliography}{3} |
| 539 |
\bibitem[{\citenamefont{Glashow}(1961)}]{Glashow} |
| 540 |
\bibinfo{author}{\bibfnamefont{S.~L.} \bibnamefont{Glashow}}, |
| 541 |
\bibinfo{journal}{Nucl. Phys.} \textbf{\bibinfo{volume}{22}}, |
| 542 |
\bibinfo{pages}{579} (\bibinfo{year}{1961}). |
| 543 |
|
| 544 |
\bibitem[{\citenamefont{Salam}(1968)}]{Salam} |
| 545 |
\bibinfo{author}{\bibfnamefont{A.}~\bibnamefont{Salam}}, in |
| 546 |
\emph{\bibinfo{booktitle}{Elementary Particle Theory}}, edited by |
| 547 |
\bibinfo{editor}{\bibfnamefont{N.}~\bibnamefont{Svartholm}} |
| 548 |
(\bibinfo{publisher}{Almquist and Wiksell}, \bibinfo{address}{Stockholm}, |
| 549 |
\bibinfo{year}{1968}), pp. \bibinfo{pages}{367--377}. |
| 550 |
|
| 551 |
\bibitem[{\citenamefont{Weinberg}(1967)}]{Weinberg} |
| 552 |
\bibinfo{author}{\bibfnamefont{S.}~\bibnamefont{Weinberg}}, |
| 553 |
\bibinfo{journal}{Phys. Rev. Lett.} \textbf{\bibinfo{volume}{19}}, |
| 554 |
\bibinfo{pages}{1264} (\bibinfo{year}{1967}). |
| 555 |
\end{MYapsrevthebibliography} |
| 556 |
becomes:\footnote{Formatting produced by the apsrevM.bst bibstyle.}\relax |
| 557 |
\begin{MYapsrevthebibliography}{1} |
| 558 |
\bibitem[{\citenamefont{Glashow}(1961)}]{Glashow} |
| 559 |
\bibinfo{author}{\bibfnamefont{S.~L.} \bibnamefont{Glashow}}, |
| 560 |
\bibinfo{journal}{Nucl. Phys.} \textbf{\bibinfo{volume}{22}}, |
| 561 |
\bibinfo{pages}{579} (\bibinfo{year}{1961}); |
| 562 |
\bibinfo{author}{\bibfnamefont{A.}~\bibnamefont{Salam}}, in |
| 563 |
\emph{\bibinfo{booktitle}{Elementary Particle Theory}}, edited by |
| 564 |
\bibinfo{editor}{\bibfnamefont{N.}~\bibnamefont{Svartholm}} |
| 565 |
(\bibinfo{publisher}{Almquist and Wiksell}, \bibinfo{address}{Stockholm}, |
| 566 |
\bibinfo{year}{1968}), pp. \bibinfo{pages}{367--377}; |
| 567 |
\bibinfo{author}{\bibfnamefont{S.}~\bibnamefont{Weinberg}}, |
| 568 |
\bibinfo{journal}{Phys. Rev. Lett.} \textbf{\bibinfo{volume}{19}}, |
| 569 |
\bibinfo{pages}{1264} (\bibinfo{year}{1967}). |
| 570 |
\end{MYapsrevthebibliography} |
| 571 |
|
| 572 |
|
| 573 |
\subsection{Features} |
| 574 |
Mciteplus offers the following features many of which are not available with the |
| 575 |
original mcite: |
| 576 |
\begin{itemize} |
| 577 |
\item Entry punctuation can be controlled by the bibstyle (.bst) as well as the user. |
| 578 |
\item No ``double periods'' when an entry already ends with a period (e.g., an |
| 579 |
abbreviated journal name). |
| 580 |
\item Support for sublists. |
| 581 |
\item Support for multiple bibliographies and/or auxiliary files. |
| 582 |
\item The bibliography sample label width is automatically updated to account for the changes |
| 583 |
in the numbering due to the grouped entries. Maximum label width information is |
| 584 |
available to user. |
| 585 |
\item Compatible with the natbib package. (The bibstyle must support both |
| 586 |
mciteplus as well as natbib.) |
| 587 |
\item Compatible with the REV\TeX4 class. (The bibstyle must support both |
| 588 |
mciteplus as well as natbib.) |
| 589 |
\item Support for the optional argument of \MYshortcmd\cite[]{}|end. |
| 590 |
\item Provides a means to allow users to use almost any cite command via custom command |
| 591 |
wrappers and the ability to manually disable all automatic internal hooks. |
| 592 |
\item Mciteplus compatible sorting bibstyles are possible via the use of a ``mcitetail'' |
| 593 |
field in the \BibTeX\ database entries. See \MYsecref{sec:sortingbibstyles} for details. |
| 594 |
\end{itemize} |
| 595 |
|
| 596 |
|
| 597 |
\subsection{File List} |
| 598 |
The files in this package are as follows: |
| 599 |
\begin{description} |
| 600 |
\item[\ttfamily mciteplus.sty] The mciteplus \LaTeX\ package. |
| 601 |
\item[\ttfamily mciteplus\_doc.pdf] The user manual (this document). |
| 602 |
\item[\ttfamily mciteplus\_doc.tex] The \LaTeX\ source of the user manual. |
| 603 |
\item[\ttfamily mciteplus\_code.txt] Selected .bst modification and other code listings. |
| 604 |
\item[\ttfamily apsrevM.bst] An mciteplus compatible version of REV\TeX4's apsrev.bst \cite{ctan:revtex}. |
| 605 |
\item[\ttfamily apsrmpM.bst] An mciteplus compatible version of REV\TeX4's apsrmp.bst \cite{ctan:revtex}. |
| 606 |
\textbf{Note: This is a sorting style. For it to work properly, you must set the |
| 607 |
``mcitetail'' \BibTeX\ database field for every tail entry as mentioned in |
| 608 |
\MYsecref{sec:sortingbibstyles}.} |
| 609 |
\item[\ttfamily IEEEtranM.bst] An mciteplus compatible version of IEEEtran.bst \cite{ctan:ieeetranbst}. |
| 610 |
\item[\ttfamily IEEEtranMN.bst] An mciteplus compatible version of IEEEtranN.bst (natbib compatible) \cite{ctan:ieeetranbst}. |
| 611 |
|
| 612 |
\end{description} |
| 613 |
|
| 614 |
|
| 615 |
|
| 616 |
\section{Basic Usage} |
| 617 |
|
| 618 |
|
| 619 |
\subsection{Bibstyle (.bst) Requirements} |
| 620 |
Mciteplus does require an mciteplus compatible bibstyle (.bst file). |
| 621 |
\textbf{Unfortunately, bibstyles designed for use with mcite will not |
| 622 |
work with mciteplus.} See \MYsecref{sec:bibstylemods} for |
| 623 |
information on how to convert existing bibstyles for use with mciteplus. |
| 624 |
|
| 625 |
|
| 626 |
\subsection{Package Loading and Options} |
| 627 |
Mciteplus is invoked in the standard \LaTeX\ way: |
| 628 |
\begin{MYlistblk} |
| 629 |
\MYlongcmd |
| 630 |
\usepackage[|itshape+options|upshape]{mciteplus}|end |
| 631 |
\end{MYlistblk} |
| 632 |
{\bfseries As mciteplus installs command wrappers over existing \MYshortcmd\cite|end\ commands, |
| 633 |
it should be loaded last, even after other packages that normally are loaded last such |
| 634 |
as hyperref \cite{ctan:hyperref}.} |
| 635 |
|
| 636 |
Be aware that LaTeX may have to be run twice in order for the correct label |
| 637 |
width to be calculated and used after entries are collapsed. When this happens, |
| 638 |
mciteplus will issue the warning |
| 639 |
``Rerun to ensure correct mciteplus label max width/count''. |
| 640 |
|
| 641 |
\subsubsection{Package Options} |
| 642 |
\label{sec:packageoptions} |
| 643 |
Valid options are: |
| 644 |
|
| 645 |
\indent\textbf{chapterbibrootbib}\MYemdash |
| 646 |
This option must be specified when using the rootbib option/mode of the chapterbib package |
| 647 |
\cite{ctan:chapterbib}. Mciteplus is not able to auto-detect the rootbib mode |
| 648 |
of chapterbib directly because when invoking that mode, the user must run \LaTeX\ a second time |
| 649 |
without the rootbib option. For all of these \LaTeX\ runs, keep this mciteplus option |
| 650 |
enabled (i.e., as long as there is, or is going to be, a jobname.bbl file under |
| 651 |
chapterbib). Beware of the possibility of an mciteplus status (i.e., head or tail) |
| 652 |
conflict in an overall bibliography if the same entry is cited differently in |
| 653 |
different parts of the document. See \MYsecref{sec:chapterbib} for more details on |
| 654 |
the use of chapterbib. |
| 655 |
|
| 656 |
\indent\textbf{debug}\MYemdash |
| 657 |
Invoking this option will cause mciteplus to issue debugging information |
| 658 |
to the console whenever it processes: (1) a citation list; (2) an mciteplus aware |
| 659 |
bibliography; and (3) entries within the mciteplus bibliography. This may be helpful to |
| 660 |
diagnose problems or to learn what tracking IDs, etc., mciteplus is using. |
| 661 |
|
| 662 |
\indent\textbf{nohooks}\MYemdash |
| 663 |
This option will prevent mciteplus from automatically hooking into \LaTeX's |
| 664 |
\MYshortcmd\cite|end\ internals and/or autodetecting and interfacing with |
| 665 |
external packages. The intended use is for advanced users who want to create |
| 666 |
their own mciteplus' \MYshortcmd\cite|end\ wrappers. When using this option, |
| 667 |
users will then have to manually define their own cite wrappers using the internal |
| 668 |
mciteplus engine (which is always available to users regardless of whether this |
| 669 |
option is selected or not). See \MYsecref{sec:customwrappers} for how to do this. |
| 670 |
Beware that this option can cause some packages to issue errors when used with |
| 671 |
mciteplus, especially those that alter the bibliography environments (e.g., |
| 672 |
citeref.sty, pageref.sty, etc.) |
| 673 |
|
| 674 |
|
| 675 |
\subsection{Cite Format} |
| 676 |
In the example given at the start of the introduction, the Glashow entry is |
| 677 |
known as the ``head'' entry and those of Salam and |
| 678 |
Weinberg are known as ``tails''. As with mcite, tails are declared within |
| 679 |
the \MYshortcmd\cite|end\ command immediately after their head entry by prefixing them with a *: |
| 680 |
\begin{MYlistblk} |
| 681 |
\MYlongcmd |
| 682 |
\cite{Glashow,*Salam,*Weinberg}|end |
| 683 |
\end{MYlistblk} |
| 684 |
Head entries may or may not have tails. However, every tail must have a head entry. |
| 685 |
The tail entries for a group must all be declared (without duplication) when their |
| 686 |
head entry is first cited. After that, the head entry may be recited as often as desired. |
| 687 |
It is possible, though bad practice, to redeclare the tails (or a subset thereof) when |
| 688 |
reciting the head. This allows for the case of overall bibliographies in which the |
| 689 |
same citation group is defined in multiple local bibliographies, all the entries |
| 690 |
of which are later combined into a single overall bibliography. |
| 691 |
However, new tails cannot be later added to an existing citation group. |
| 692 |
|
| 693 |
Thus, each of the following lines will generate an error as they are \textbf{invalid}: |
| 694 |
\begin{MYlistblk} |
| 695 |
\MYlongcmd |
| 696 |
\cite{*Salam} |% missing head declaration |\ |
| 697 |
| |\ |
| 698 |
\cite{Glashow,*Salam} \cite{Glashow,*Salam,*Weinberg} |% tails added after initial definition|\ |
| 699 |
| |\ |
| 700 |
\cite{Glashow,*Salam,*Salam} |% duplicate tails in initial definition|end |
| 701 |
\end{MYlistblk} |
| 702 |
Each of the following lines is \textbf{valid}: |
| 703 |
\begin{MYlistblk} |
| 704 |
\MYlongcmd |
| 705 |
\cite{Glashow,*Salam,*Weinberg,Smith,*Jones} |% multiple groups OK |\ |
| 706 |
| |\ |
| 707 |
\cite{Glashow,*Salam,*Weinberg} \cite{Glashow} |% head can be recited anytime |\ |
| 708 |
| |\ |
| 709 |
\cite{Glashow,*Salam,*Weinberg} \cite{Glashow,*Salam,*Weinberg} |% restate previous definition |\ |
| 710 |
| |\ |
| 711 |
\cite{Glashow,*Salam,*Weinberg} \cite{Glashow,*Weinberg} |% restate part of previous definition |\ |
| 712 |
| |\ |
| 713 |
\cite[page 580 of Glashow]{Glashow,*Salam} |% optional argument is supported |\ |
| 714 |
| |\ |
| 715 |
\nocite{*} |% BibTeX wildcard OK, but use with caution |end |
| 716 |
\end{MYlistblk} |
| 717 |
The \BibTeX\ ``wildcard'' entry ``*'' for \MYshortcmd\nocite|end\ is allowed. However, |
| 718 |
it is important to ensure that the entries \BibTeX\ will automatically add to the |
| 719 |
bibliography from its databases will not get ``in between'' any head/tail groupings. This |
| 720 |
will not be a problem with unsorted bibstyles as long as the head/tail groups are |
| 721 |
cited prior to the invocation of the wildcard entry or as long as the head/tail group |
| 722 |
entries are listed together and in the correct order in the \BibTeX\ databases. However, with |
| 723 |
sorting bibstyles extra care must be taken to keep the head/tail groups together in |
| 724 |
spite of the reordering process. See \MYsecref{sec:sortingbibstyles} for more information. |
| 725 |
|
| 726 |
By default, mciteplus will issue an error message if it encounters |
| 727 |
bibliography\footnote{Well, only those in a \texttt{mcitethebibliography} environment.} |
| 728 |
entries that it has no record of. This will almost certainly be the case if the |
| 729 |
\BibTeX\ wildcard entry is used. To disable the error messages and allow |
| 730 |
mciteplus to automatically assume that all unknown entries are heads, just issue |
| 731 |
the \TeX\ conditional: |
| 732 |
\begin{MYlistblk} |
| 733 |
\MYlongcmd |
| 734 |
\mciteErrorOnUnknownfalse|end |
| 735 |
\end{MYlistblk} |
| 736 |
before the bibliography it is to affect. Mciteplus will issue a warning message |
| 737 |
to the console as a reminder if it detects the use of the \BibTeX\ wildcard entry. |
| 738 |
|
| 739 |
|
| 740 |
\subsection{Punctuation Controls} |
| 741 |
There are three kinds of punctuation/spacing mciteplus uses in the formatting of entries |
| 742 |
in the bibliography: (1) Middle punctuation which is used between entries within a |
| 743 |
collapsed group (typically ``; ''); (2) End punctuation which is used at the end |
| 744 |
of each entry group (typically ``.''); and (3) separation punctuation/spacing |
| 745 |
which is inserted before each head entry after the very first. Separation |
| 746 |
punctuation/spacing is usually not used (it is typically ``\MYshortcmd\relax|end''), |
| 747 |
but it is provided for because some bibliography styles may require unusual spacing |
| 748 |
or a \MYshortcmd\par|end\ between the entries, but under mciteplus, bibstyles cannot |
| 749 |
directly insert such things as \BibTeX\ does not know at run time which |
| 750 |
entries are heads and which are tails. |
| 751 |
|
| 752 |
Mciteplus defines the package defaults of each as:\footnote{{\ttfamily\ZAXbsl providecommand} is |
| 753 |
used so that class files can declare their own mciteplus defaults.} |
| 754 |
\begin{MYlistblk} |
| 755 |
\MYlongcmd |
| 756 |
\providecommand{\mcitedefaultmidpunct}{;\space}|\ |
| 757 |
\providecommand{\mcitedefaultendpunct}{.}|\ |
| 758 |
\providecommand{\mcitedefaultseppunct}{\relax}|end |
| 759 |
\end{MYlistblk} |
| 760 |
However, both the bibstyle and the user can override the defaults with the user having |
| 761 |
the final say in the matter. |
| 762 |
|
| 763 |
Bibstyles can override the package defaults via issuing the command: |
| 764 |
\begin{MYlistblk} |
| 765 |
\MYlongcmd |
| 766 |
\mciteSetBstMidEndSepPunct{|bgroup|itshape+middle punctuation|egroup}{|bgroup|itshape+end punctuation|egroup}{|bgroup|itshape+separation punctuation|egroup}|end |
| 767 |
\end{MYlistblk} |
| 768 |
\MYshortcmd\mciteSetBstMidEndSepPunct|end\ must be issued at the end of the entry it is to |
| 769 |
affect (prior to the next \MYshortcmd\bibitem|end) and the values given will remain in effect |
| 770 |
until specified again. |
| 771 |
|
| 772 |
The user can override the bibstyle by issuing the command: |
| 773 |
\begin{MYlistblk} |
| 774 |
\MYlongcmd |
| 775 |
\mciteSetMidEndSepPunct{|bgroup|itshape+middle punctuation|egroup}{|bgroup|itshape+end punctuation|egroup}{|bgroup|itshape+separation punctuation|egroup}|end |
| 776 |
\end{MYlistblk} |
| 777 |
before the bibliography it is to affect. However, this poses a problem because |
| 778 |
the bibstyle may or may not specify end punctuation for each entry (e.g., such |
| 779 |
as when an entry ends with a URL or an abbreviated journal name). To provide for |
| 780 |
this, mciteplus provides a \TeX\ conditional \MYshortcmd\ifmciteBstWouldAddEndPunct|end, |
| 781 |
that a bibstyle can set to true if and only if \BibTeX\ would add end punctuation |
| 782 |
to the given entry. (See \MYsecref{sec:bibstylemods} for how bibstyle designers |
| 783 |
should implement this feature.) If the bibstyle provides this feature, and it is |
| 784 |
recommended that they do, then users can take advantage of this conditional in their use |
| 785 |
of \MYshortcmd\mciteSetMidEndSepPunct|end: |
| 786 |
\begin{MYlistblk} |
| 787 |
\MYlongcmd |
| 788 |
\mciteSetMidEndSepPunct{;\space}{\ifmciteBstWouldAddEndPunct.\else\fi}{\relax}|end |
| 789 |
\end{MYlistblk} |
| 790 |
and thus still avoid the ``double period'' problem under their |
| 791 |
own custom punctuation. |
| 792 |
|
| 793 |
After issuing a user defined \MYshortcmd\mciteSetMidEndSepPunct|end\ for a bibliography, |
| 794 |
a user can restore control back to the bibstyle for later bibliographies by issuing: |
| 795 |
\begin{MYlistblk} |
| 796 |
\MYlongcmd |
| 797 |
\mciteSetMidEndSepPunct{\mcitebstmidpunct}{\mcitebstendpunct}{\mcitebstseppunct}|end |
| 798 |
\end{MYlistblk} |
| 799 |
before the bibliography(ies) to be affected. |
| 800 |
|
| 801 |
|
| 802 |
|
| 803 |
\subsection{Counters} |
| 804 |
\label{sec:counters} |
| 805 |
Mciteplus provides two \LaTeX\ counters, \MYshortcmd+mcitebibitemcount|end\ and |
| 806 |
\MYshortcmd+mcitesubitemcount|end, which track the number of head, and tail entries |
| 807 |
for each head, respectively. At each head entry, \MYshortcmd+mcitebibitemcount|end\ is |
| 808 |
incremented and \MYshortcmd+mcitesubitemcount|end\ is reset, by/to one. |
| 809 |
At each tail entry (or sublisted head entry under sublist modes ``b'', ``f'' and ``h'' |
| 810 |
as described in \MYsecref{sec:sublistlabelbeginend}), \MYshortcmd+mcitesubitemcount|end\ |
| 811 |
is incremented by one after each subitem label is rendered. |
| 812 |
Be aware that \MYshortcmd+mcitebibitemcount|end\ is \emph{not} what is used to |
| 813 |
actually generate the entry labels in the bibliography as \LaTeX\ handles this |
| 814 |
the same way it normally does (typically using it's own counter, |
| 815 |
\MYsmalltt{enumiv}). |
| 816 |
|
| 817 |
These counters can be referenced by the user to generate sublist labels |
| 818 |
(\MYsecref{sec:sublistlabelbeginend}), to determine maximum label |
| 819 |
widths (\MYsecref{sec:maxwidths}) as well as to control |
| 820 |
other counters (e.g., \MYsecref{sec:mcitethebibliographyhooks}). |
| 821 |
|
| 822 |
|
| 823 |
\subsubsection{Bibitem Counter Reset} |
| 824 |
\label{sec:bibitemcounterreset} |
| 825 |
By default, mciteplus resets \MYshortcmd+mcitebibitemcount|end\ at the |
| 826 |
start of each bibliography. However, in some documents with multiple bibliographies, |
| 827 |
the entries are to be numbered consecutively throughout the document and, thus, |
| 828 |
the entry count should not reset at the start of each bibliography. For |
| 829 |
such cases, you can issue a: |
| 830 |
\begin{MYlistblk} |
| 831 |
\MYlongcmd |
| 832 |
\mciteResetBibitemCountfalse|end |
| 833 |
\end{MYlistblk} |
| 834 |
before a bibliography to disable the counter reset (so that the maximum |
| 835 |
label widths and counts will be correct, see \MYsecref{sec:labelwidths}). |
| 836 |
There is also a \MYshortcmd\mciteResetBibitemCounttrue|end\ which reenables the |
| 837 |
resetting of the counter. |
| 838 |
|
| 839 |
|
| 840 |
|
| 841 |
|
| 842 |
\subsection{Sublists} |
| 843 |
\label{sec:sublists} |
| 844 |
Sublisting within entry groups is supported by mciteplus. For example: |
| 845 |
\begin{MYapsrevthebibliography}{1} |
| 846 |
\bibitem[{\citenamefont{Glashow}(1961)}]{Glashow} |
| 847 |
\bibinfo{author}{\bibfnamefont{S.~L.} \bibnamefont{Glashow}}, |
| 848 |
\bibinfo{journal}{Nucl. Phys.} \textbf{\bibinfo{volume}{22}}, |
| 849 |
\bibinfo{pages}{579} (\bibinfo{year}{1961}); |
| 850 |
a) \bibinfo{author}{\bibfnamefont{A.}~\bibnamefont{Salam}}, in |
| 851 |
\emph{\bibinfo{booktitle}{Elementary Particle Theory}}, edited by |
| 852 |
\bibinfo{editor}{\bibfnamefont{N.}~\bibnamefont{Svartholm}} |
| 853 |
(\bibinfo{publisher}{Almquist and Wiksell}, \bibinfo{address}{Stockholm}, |
| 854 |
\bibinfo{year}{1968}), pp. \bibinfo{pages}{367--377}; |
| 855 |
b) \bibinfo{author}{\bibfnamefont{S.}~\bibnamefont{Weinberg}}, |
| 856 |
\bibinfo{journal}{Phys. Rev. Lett.} \textbf{\bibinfo{volume}{19}}, |
| 857 |
\bibinfo{pages}{1264} (\bibinfo{year}{1967}). |
| 858 |
\end{MYapsrevthebibliography} |
| 859 |
The sublist labels (e.g., ``a)'', ``b)'', etc.) are based on the mciteplus |
| 860 |
provided \LaTeX\ counter, |
| 861 |
\MYshortcmd+mcitesubitemcount|end, which is reset at the start |
| 862 |
of each head. |
| 863 |
|
| 864 |
\subsubsection{Sublist Modes} |
| 865 |
\label{sec:sublistmodes} |
| 866 |
The standard sublist mode ``s'' (as show above) is to |
| 867 |
begin numbering with the first tail. |
| 868 |
|
| 869 |
Mciteplus can begin numbering with the head entries, but |
| 870 |
omit the sublabel for the heads via sublist mode ``b'': |
| 871 |
\begin{MYapsrevthebibliography}{1} |
| 872 |
\bibitem[{\citenamefont{Glashow}(1961)}]{Glashow} |
| 873 |
\bibinfo{author}{\bibfnamefont{S.~L.} \bibnamefont{Glashow}}, |
| 874 |
\bibinfo{journal}{Nucl. Phys.} \textbf{\bibinfo{volume}{22}}, |
| 875 |
\bibinfo{pages}{579} (\bibinfo{year}{1961}); |
| 876 |
b) \bibinfo{author}{\bibfnamefont{A.}~\bibnamefont{Salam}}, in |
| 877 |
\emph{\bibinfo{booktitle}{Elementary Particle Theory}}, edited by |
| 878 |
\bibinfo{editor}{\bibfnamefont{N.}~\bibnamefont{Svartholm}} |
| 879 |
(\bibinfo{publisher}{Almquist and Wiksell}, \bibinfo{address}{Stockholm}, |
| 880 |
\bibinfo{year}{1968}), pp. \bibinfo{pages}{367--377}; |
| 881 |
c) \bibinfo{author}{\bibfnamefont{S.}~\bibnamefont{Weinberg}}, |
| 882 |
\bibinfo{journal}{Phys. Rev. Lett.} \textbf{\bibinfo{volume}{19}}, |
| 883 |
\bibinfo{pages}{1264} (\bibinfo{year}{1967}). |
| 884 |
\end{MYapsrevthebibliography} |
| 885 |
|
| 886 |
To sublabel the first entries of each group (heads) use |
| 887 |
the sublist mode ``f'': |
| 888 |
\begin{MYapsrevthebibliography}{1} |
| 889 |
\bibitem[{\citenamefont{Glashow}(1961)}]{Glashow} |
| 890 |
a) \bibinfo{author}{\bibfnamefont{S.~L.} \bibnamefont{Glashow}}, |
| 891 |
\bibinfo{journal}{Nucl. Phys.} \textbf{\bibinfo{volume}{22}}, |
| 892 |
\bibinfo{pages}{579} (\bibinfo{year}{1961}); |
| 893 |
b) \bibinfo{author}{\bibfnamefont{A.}~\bibnamefont{Salam}}, in |
| 894 |
\emph{\bibinfo{booktitle}{Elementary Particle Theory}}, edited by |
| 895 |
\bibinfo{editor}{\bibfnamefont{N.}~\bibnamefont{Svartholm}} |
| 896 |
(\bibinfo{publisher}{Almquist and Wiksell}, \bibinfo{address}{Stockholm}, |
| 897 |
\bibinfo{year}{1968}), pp. \bibinfo{pages}{367--377}; |
| 898 |
c) \bibinfo{author}{\bibfnamefont{S.}~\bibnamefont{Weinberg}}, |
| 899 |
\bibinfo{journal}{Phys. Rev. Lett.} \textbf{\bibinfo{volume}{19}}, |
| 900 |
\bibinfo{pages}{1264} (\bibinfo{year}{1967}). |
| 901 |
\end{MYapsrevthebibliography} |
| 902 |
Entries without tails (single heads) are not sublisted under sublist |
| 903 |
mode ``f''. To enable that, use sublist mode ``h''. |
| 904 |
|
| 905 |
As with punctuation, the sublist mode can be specified by both the bibstyle |
| 906 |
as well as the user with the latter overriding the former: |
| 907 |
\begin{MYlistblk} |
| 908 |
\MYlongcmd |
| 909 |
\mciteSetBstSublistMode{|itshape+mode|upshape} |% for use by bibstyles|\ |
| 910 |
| |\ |
| 911 |
\mciteSetSublistMode{|itshape+mode|upshape} |% for use by the user in the document|end |
| 912 |
\end{MYlistblk} |
| 913 |
where \textit{mode} is one of: |
| 914 |
\begin{enumerate} |
| 915 |
\item[\textbf{d}] \MYemdash ``Default'', do not alter whatever mode is currently in effect. |
| 916 |
For bibstyles, this is essentially a NOOP, but when invoked by the user, the bibstyle is |
| 917 |
allowed to alter the sublist mode. |
| 918 |
\item[\textbf{n}] \MYemdash No sublist, do not sublist the entries. |
| 919 |
\item[\textbf{s}] \MYemdash Sublist mode ``s'', sublist the tail entries. |
| 920 |
\item[\textbf{b}] \MYemdash Sublist mode ``b'', sublist the tail entries, start the count with their |
| 921 |
head, but omit labeling the head. |
| 922 |
\item[\textbf{f}] \MYemdash Sublist mode ``f'', sublist the tail entries including their head. |
| 923 |
\item[\textbf{h}] \MYemdash Sublist mode ``h'', implies sublist mode ``f'', but sublist all entries, |
| 924 |
even heads without tails. |
| 925 |
\end{enumerate} |
| 926 |
Unless specified otherwise, sublisting will not be done. |
| 927 |
|
| 928 |
\subsubsection{Sublist Label, Begin and End} |
| 929 |
\label{sec:sublistlabelbeginend} |
| 930 |
Mciteplus allows bibstyles and users to specify the sublist label form used, |
| 931 |
the code that gets executed at the start of the sublist and the code |
| 932 |
that ends a sublist. Mciteplus defines the package defaults of each as: |
| 933 |
\begin{MYlistblk} |
| 934 |
\MYlongcmd |
| 935 |
\providecommand{\mcitedefaultsublistlabel}{\alph{mcitesubitemcount})\space}|\ |
| 936 |
\providecommand{\mcitedefaultsublistbegin}{\relax}|\ |
| 937 |
\providecommand{\mcitedefaultsublistend}{\relax}|end |
| 938 |
\end{MYlistblk} |
| 939 |
The result of which is as shown in the previous examples. |
| 940 |
However, both the bibstyle and the user can override the defaults with the user having |
| 941 |
the final say in the matter. The sublist label/begin/end code can be specified by both |
| 942 |
the bibstyle as well as the user with the latter overriding the former: |
| 943 |
\begin{MYlistblk} |
| 944 |
\MYlongcmd |
| 945 |
\mciteSetBstSublistLabelBeginEnd{|itshape+label|upshape}{|itshape+begin|upshape}{|itshape+end|upshape} |% for use by bibstyles|\ |
| 946 |
| |\ |
| 947 |
\mciteSetSublistLabelBeginEnd{|itshape+label|upshape}{|itshape+begin|upshape}{|itshape+end|upshape} |% for use by the user in the document|end |
| 948 |
\end{MYlistblk} |
| 949 |
This flexibility provides a way to use customized environments for the sublists: |
| 950 |
\begin{MYlistblk} |
| 951 |
\MYlongcmd |
| 952 |
\mciteSetSublistMode{s}|\ |
| 953 |
\mciteSetSublistLabelBeginEnd{\item[\arabic{mcitebibitemcount}.\alph{mcitesubitemcount})]}{\begin{enumerate}}{\end{enumerate}}|end |
| 954 |
\end{MYlistblk} |
| 955 |
which yields: |
| 956 |
\begin{MYapsrevthebibliography}{1} |
| 957 |
\bibitem[{\citenamefont{Glashow}(1961)}]{Glashow} |
| 958 |
\bibinfo{author}{\bibfnamefont{S.~L.} \bibnamefont{Glashow}}, |
| 959 |
\bibinfo{journal}{Nucl. Phys.} \textbf{\bibinfo{volume}{22}}, |
| 960 |
\bibinfo{pages}{579} (\bibinfo{year}{1961}); |
| 961 |
\begin{enumerate} |
| 962 |
\item[1.a)] \bibinfo{author}{\bibfnamefont{A.}~\bibnamefont{Salam}}, in |
| 963 |
\emph{\bibinfo{booktitle}{Elementary Particle Theory}}, edited by |
| 964 |
\bibinfo{editor}{\bibfnamefont{N.}~\bibnamefont{Svartholm}} |
| 965 |
(\bibinfo{publisher}{Almquist and Wiksell}, \bibinfo{address}{Stockholm}, |
| 966 |
\bibinfo{year}{1968}), pp. \bibinfo{pages}{367--377}; |
| 967 |
\item[1.b)] \bibinfo{author}{\bibfnamefont{S.}~\bibnamefont{Weinberg}}, |
| 968 |
\bibinfo{journal}{Phys. Rev. Lett.} \textbf{\bibinfo{volume}{19}}, |
| 969 |
\bibinfo{pages}{1264} (\bibinfo{year}{1967}). |
| 970 |
\end{enumerate} |
| 971 |
\end{MYapsrevthebibliography} |
| 972 |
|
| 973 |
After issuing a user defined \MYshortcmd\mciteSetSublistLabelBeginEnd|end\ for a bibliography, |
| 974 |
a user can restore control back to the bibstyle for later bibliographies by issuing: |
| 975 |
\begin{MYlistblk} |
| 976 |
\MYlongcmd |
| 977 |
\mciteSetSublistLabelBeginEnd{\mcitebstsublistlabel}{\mcitebstsublistbegin}{\mcitebstsublistend}|end |
| 978 |
\end{MYlistblk} |
| 979 |
before the bibliography(ies) to be affected. |
| 980 |
|
| 981 |
|
| 982 |
|
| 983 |
\subsubsection{Referencing Sublist Labels} |
| 984 |
\label{sec:refsublistlabel} |
| 985 |
It is not possible to reference the tails using \MYshortcmd\cite|end: |
| 986 |
\begin{MYlistblk} |
| 987 |
\MYlongcmd |
| 988 |
\cite{Salam} |% invalid, tail redeclared as a head|\ |
| 989 |
\cite{*Salam} |% invalid, tail cannot be referenced|end |
| 990 |
\end{MYlistblk} |
| 991 |
and even if it were allowed, it would likely cause problems with packages |
| 992 |
that compress and sort citation numbers. |
| 993 |
|
| 994 |
However, mciteplus does provide two commands that work much like \MYshortcmd\ref|end\ |
| 995 |
and \MYshortcmd\pageref|end\ that can be used to reference the sublabeled entries |
| 996 |
and the page numbers they appear on: |
| 997 |
\begin{MYlistblk} |
| 998 |
\MYlongcmd |
| 999 |
\mciteSubRef[|itshape+track ID|upshape]{|itshape+cite key|upshape}|\ |
| 1000 |
\mciteSubPageRef[|itshape+track ID|upshape]{|itshape+cite key|upshape}|end |
| 1001 |
\end{MYlistblk} |
| 1002 |
where \textit{cite key} is a (single) citation key and \textit{track ID} is |
| 1003 |
the tracking ID (\MYsecref{sec:trackingandaux}) string which mciteplus uses |
| 1004 |
to uniquely identify bibliographies. Please note that these commands will not work |
| 1005 |
for entries that are not sublabeled (e.g., heads with tails if the sublist |
| 1006 |
mode is not ``f'' or ``h''). The tracking IDs used by each bibliography can be |
| 1007 |
displayed by loading mciteplus with the ``debug'' package option (\MYsecref{sec:packageoptions}). |
| 1008 |
For virtually all single bibliography documents, the default tracking ID should work |
| 1009 |
fine. However, when multiple bibliographies are in use, the tracking ID may |
| 1010 |
have to be specified so that mciteplus will know which bibliography entry to |
| 1011 |
reference. Some packages such as chapterbib, may even put the same citation |
| 1012 |
in multiple bibliographies. |
| 1013 |
|
| 1014 |
For the part/chapter bibliographies of chapterbib.sty, there is no need to specify a |
| 1015 |
tracking ID as mciteplus will automatically use the correct one within each part. |
| 1016 |
The tracking ID of the duplicate bibliographies of chapterbib (produced by |
| 1017 |
chapterbib's ``duplicate'' package option) is given by ``chapterbib\textit{inputfile}.bbl'', |
| 1018 |
where ``\textit{inputfile}'' is the include file the given citation occurred in. |
| 1019 |
For the rootbib bibliography (produced by chapterbib's ``rootbib'' package option), |
| 1020 |
the tracking ID is of the form ``chapterbib\textit{jobname}'', where |
| 1021 |
``\textit{jobname}'' is the name of the main .tex document file (without the .tex |
| 1022 |
suffix). |
| 1023 |
|
| 1024 |
For multibib.sty, the tracking ID is given by ``multibib\textit{secname}'', where |
| 1025 |
``\textit{secname}'' is the multibib bibliography section name (as declared |
| 1026 |
via \MYshortcmd\newcites|end). |
| 1027 |
|
| 1028 |
For multibbl.sty, the tracking ID is given by ``multibbl\textit{secname}'', where |
| 1029 |
``\textit{secname}'' is the multibbl bibliography section name. |
| 1030 |
|
| 1031 |
For bibunits.sty, mciteplus will automatically use the correct tracking ID within |
| 1032 |
each bibunit, but to reference an entry outside of a bibunit, the tracking ID of |
| 1033 |
each bibunit is given by ``bibunits\textit{unitname}'', where ``\textit{unitname}'' |
| 1034 |
is the name of the auxiliary file of the desired bibunit without the .aux suffix |
| 1035 |
(e.g., ``bu1'', ``bu2'', etc.). |
| 1036 |
|
| 1037 |
The form of the replacement text of \MYshortcmd\mciteSubRef|end\ is defined by |
| 1038 |
mciteplus as: |
| 1039 |
\begin{MYlistblk} |
| 1040 |
\MYlongcmd |
| 1041 |
\providecommand{\mcitesubrefform}{\arabic{mcitebibitemcount}.\alph{mcitesubitemcount}}|end |
| 1042 |
\end{MYlistblk} |
| 1043 |
which can be redefined (via \MYshortcmd\renewcommand|end) by the user as desired. |
| 1044 |
|
| 1045 |
|
| 1046 |
\subsubsection{Bibitem Argument Macros} |
| 1047 |
\label{sec:bibitemarguments} |
| 1048 |
When creating sublist labels (or the maximum width forms discussed in |
| 1049 |
\MYsecref{sec:maxwidths}), the user may wish to have access to the |
| 1050 |
argument(s) of the \MYshortcmd\bibitem|end\ of the entries. Mciteplus |
| 1051 |
provides these as macros. The required argument of the current |
| 1052 |
\MYshortcmd\bibitem|end, which is usually the citation key, is provided |
| 1053 |
as \MYshortcmd\mciteBibitemArgI|end. The optional argument of the current |
| 1054 |
\MYshortcmd\bibitem|end, which, if present, is provided as |
| 1055 |
\MYshortcmd\mciteBibitemOptArgI|end. There is also the \TeX\ conditional |
| 1056 |
\MYshortcmd\ifmciteBibitemOptArgI|end, which will evaluate true if the |
| 1057 |
optional argument to \MYshortcmd\bibitem|end\ is present. |
| 1058 |
|
| 1059 |
Lastly, there are \MYshortcmd\mciteCurheadBibitemArgI|end, |
| 1060 |
\MYshortcmd\mciteCurheadBibitemOptArgI|end\ and |
| 1061 |
\MYshortcmd\ifmciteCurheadBibitemOptArgI|end\ which contain the |
| 1062 |
same argument information, but for the head of the current entry |
| 1063 |
group. |
| 1064 |
|
| 1065 |
|
| 1066 |
|
| 1067 |
\subsection{Label Widths} |
| 1068 |
\label{sec:labelwidths} |
| 1069 |
|
| 1070 |
\textbf{Note: Problems with incorrect label widths will usually manifest themselves |
| 1071 |
as incorrect label spacing and/or bibliography entry text that is not properly |
| 1072 |
aligned, but often will not otherwise generate warning messages or errors.} |
| 1073 |
|
| 1074 |
|
| 1075 |
\subsubsection{The Bibliography Sample Label} |
| 1076 |
\label{sec:bibsamplelabel} |
| 1077 |
With most bibstyles, \BibTeX\ produces what is known as a ``sample label,'' |
| 1078 |
which is the widest label used by the bibliography entries. This sample label is |
| 1079 |
recorded as the argument to \MYshortcmd\thebibliography|end\ when \BibTeX\ creates |
| 1080 |
the .bbl bibliography file so as to provide a way for the \MYshortcmd\thebibliography|end\ |
| 1081 |
environment to know in advance how much space to reserve for the labels. |
| 1082 |
|
| 1083 |
For example, \BibTeX\ may produce something like this in the .bbl file for a |
| 1084 |
bibliography with ten entries:\footnote{Some bibstyles use a number equal to the |
| 1085 |
number of entries, others use a form such as ``1X'', where ``X'' is a number of zeros |
| 1086 |
such that the sample label length matches that of the number of entries (e.g., |
| 1087 |
``10'' if there are 10--99 entries). With most fonts, the numerical digits |
| 1088 |
all have the same width so ``10'' has the same width as ``99''.} |
| 1089 |
\begin{MYlistblk} |
| 1090 |
\MYlongcmd |
| 1091 |
\begin{thebibliography}{10}|end |
| 1092 |
\end{MYlistblk} |
| 1093 |
Mciteplus provides users access to the original \BibTeX-produced sample label |
| 1094 |
as the macro \MYshortcmd\mciteorgbibsamplelabel|end. |
| 1095 |
|
| 1096 |
A problem arises with the sample label system when mciteplus combines multiple entries in |
| 1097 |
that the \BibTeX\ generated sample label in the .bbl file will not be |
| 1098 |
correct after the tail entries are no longer counted as actual entries. With the |
| 1099 |
original mcite package, this would often result in incorrect label spacing. Mciteplus |
| 1100 |
addresses this problem by actively tracking the maximum width label used in each bibliography. |
| 1101 |
|
| 1102 |
The sample label form that mciteplus forwards to \MYshortcmd+thebibliography|end\ |
| 1103 |
is defined as: |
| 1104 |
\begin{MYlistblk} |
| 1105 |
\MYlongcmd |
| 1106 |
\def\mcitebibsamplelabel{\rule{\mcitemaxwidthbibitem sp}{0.2pt}}|end |
| 1107 |
\end{MYlistblk} |
| 1108 |
which is simply a rule with a width equal to the widest label as determined |
| 1109 |
by the maximum width system discussed in \MYsecref{sec:maxwidths}. |
| 1110 |
If necessary, this can be redefined by the user via \MYshortcmd\renewcommand|end. |
| 1111 |
|
| 1112 |
Most class files will not be bothered by the fact that a rule rather than |
| 1113 |
actual digits is being used for the sample label. However, if this becomes |
| 1114 |
a problem, something like: |
| 1115 |
\begin{MYlistblk} |
| 1116 |
\MYlongcmd |
| 1117 |
\renewcommand{\mcitebibsamplelabel}{\mcitemaxcountbibitem}|end |
| 1118 |
\end{MYlistblk} |
| 1119 |
can be tried where \MYshortcmd\mcitemaxcountbibitem|end\ will contain |
| 1120 |
the number of the last entry in the current bibliography as discussed |
| 1121 |
in \MYsecref{sec:maxcounts}. |
| 1122 |
|
| 1123 |
The \MYshortcmd+thebibliography|end\ environments of some \LaTeX\ classes |
| 1124 |
(e.g., REV\TeX) perform their own label width calculations and ignore the sample |
| 1125 |
label entirely making the issue a moot point. However, the most common \LaTeX\ |
| 1126 |
classes do depend on the sample label being accurate. |
| 1127 |
|
| 1128 |
|
| 1129 |
\subsubsection{Maximum Widths} |
| 1130 |
\label{sec:maxwidths} |
| 1131 |
The problem of knowing the widest of a group of labels in advance of their |
| 1132 |
actual rendering\footnote{Obviously, solving this problem requires more than one |
| 1133 |
\LaTeX\ pass as well as the use of the auxiliary file to store information about the |
| 1134 |
widest label which will be read during the second pass.} is commonly encountered |
| 1135 |
in \LaTeX\ (e.g., lists, section numbering within the table of contents, etc.) and |
| 1136 |
is an issue that, in this author's opinion, has not been dealt with adequately by |
| 1137 |
the base \LaTeX\ system.\footnote{Packages such as Scott Pakin's eqparbox.sty |
| 1138 |
\cite{ctan:eqparbox} are most welcome solutions to this type of problem.} With |
| 1139 |
regard to mciteplus bibliographies, not only is the width of the head entries (i.e., |
| 1140 |
the sample label) an issue, but potentially so are the sublist (tail) labels if |
| 1141 |
they are rendered in enumerated list form rather than inline. |
| 1142 |
|
| 1143 |
To assist the user in determining the required width of labels, mciteplus provides |
| 1144 |
its own maximum width and count tracking facilities. Both the bibitem (main entry) and |
| 1145 |
subitem (sublist entry) label widths can tracked independently of each other. |
| 1146 |
|
| 1147 |
In order to measure widths, mciteplus must know what exactly it is to measure. |
| 1148 |
This is specified by macros that contain the ``width forms'' which are simply |
| 1149 |
``text'' whose width will be measured for each bibitem or subitem. The package |
| 1150 |
defaults of each are defined as: |
| 1151 |
\begin{MYlistblk} |
| 1152 |
\MYlongcmd |
| 1153 |
\providecommand{\mcitedefaultmaxwidthbibitemform}{\arabic{mcitebibitemcount}}|\ |
| 1154 |
\providecommand{\mcitedefaultmaxwidthsubitemform}{\alph{mcitesubitemcount})}|end |
| 1155 |
\end{MYlistblk} |
| 1156 |
There are also the initial width forms that will be used only during the very first |
| 1157 |
\LaTeX\ run before the maximum label widths are actually known (i.e., when the |
| 1158 |
auxiliary file is absent): |
| 1159 |
\begin{MYlistblk} |
| 1160 |
\MYlongcmd |
| 1161 |
\providecommand{\mcitedefaultmaxwidthbibitemforminit}{\mciteorgbibsamplelabel}|\ |
| 1162 |
\providecommand{\mcitedefaultmaxwidthsubitemforminit}{a)}|end |
| 1163 |
\end{MYlistblk} |
| 1164 |
The initial width forms will be evaluated with the bibitem and subitem counters both set to one. |
| 1165 |
The purpose of the initial width forms is just to provide a rough guess as to the |
| 1166 |
label widths to try to avoid large formatting changes or errors within label |
| 1167 |
formatting code that cannot deal with unknown, or zero, widths. |
| 1168 |
|
| 1169 |
As with the punctuation and sublist controls, both the bibstyle and the user can |
| 1170 |
specify the width forms with the latter overriding the former: |
| 1171 |
\begin{MYlistblk} |
| 1172 |
\MYlongcmd |
| 1173 |
\mciteSetBstMaxWidthForm[|itshape+init|upshape]{|itshape+type|upshape}{|itshape+form|upshape} |% for use by bibstyles|\ |
| 1174 |
| |\ |
| 1175 |
\mciteSetMaxWidthForm[|itshape+init|upshape]{|itshape+type|upshape}{|itshape+form|upshape} |% for use by the user in the document|end |
| 1176 |
\end{MYlistblk} |
| 1177 |
where \textit{type} is ``\texttt{bibitem}'' or ``\texttt{subitem}''. The optional argument |
| 1178 |
\textit{init} is used to specify the initial width form that will be used. If it is not specified, |
| 1179 |
the current initial width form in use will not be altered. The code specified in the forms |
| 1180 |
should be self contained (i.e., not have commands which require an external environment |
| 1181 |
such as \MYshortcmd+\item|end) as well as allow reevaluation at any time (e.g., should |
| 1182 |
not do things such as alter counters). Note that these restrictions |
| 1183 |
do not apply to the actual sublist code (\MYsecref{sec:sublistlabelbeginend}) and is |
| 1184 |
one reason why mciteplus distinguishes between that which measures the width of the |
| 1185 |
a label (discussed in this section) and that which actually forms the label |
| 1186 |
(\MYsecref{sec:sublistlabelbeginend}). If desired, the current width forms (see below) |
| 1187 |
can be used within the actual sublist code. |
| 1188 |
|
| 1189 |
After issuing a user defined \MYshortcmd\mciteSetMaxWidthForm|end\ for a bibliography, |
| 1190 |
a user can restore control back to the bibstyle for later bibliographies by issuing: |
| 1191 |
\begin{MYlistblk} |
| 1192 |
\MYlongcmd |
| 1193 |
\mciteSetMaxWidthForm[\mcitebstmaxwidthbibitemforminit]{bibitem}{\mcitebstmaxwidthbibitemform}|\ |
| 1194 |
\mciteSetMaxWidthForm[\mcitebstmaxwidthsubitemforminit]{subitem}{\mcitebstmaxwidthsubitemform}|end |
| 1195 |
\end{MYlistblk} |
| 1196 |
before the bibliography(ies) to be affected. |
| 1197 |
|
| 1198 |
Please note that for bibstyles, there |
| 1199 |
is no use in specifying an initial width form via \MYshortcmd+\mciteSetBstMaxWidthForm[]|end\ |
| 1200 |
after the bibliography begins because, by that point, it is too late as the sample label |
| 1201 |
has already been forwarded. However, this is not a problem because by default, the initial |
| 1202 |
width form is the original sample label as given by the bibstyle.\footnote{Another |
| 1203 |
possible approach would be to specify the bibitem width form before the bibliography begins, |
| 1204 |
possibly surrounding the entire environment in a group to keep the changes local.} |
| 1205 |
This is not an issue for the normal bibitem width form or the subitem width forms as |
| 1206 |
they are not evaluated until the first \MYshortcmd\bibitem|end. |
| 1207 |
|
| 1208 |
The user has access to the currently used bibitem and subitem width forms and |
| 1209 |
their maximum widths as the macros: |
| 1210 |
\begin{MYlistblk} |
| 1211 |
\MYlongcmd |
| 1212 |
\mcitemaxwidthbibitemform |% current bibitem width form |\ |
| 1213 |
\mcitemaxwidthsubitemform |% current subitem width form |\ |
| 1214 |
\mcitemaxwidthbibitem |% the maximum width of the bibitem form|\ |
| 1215 |
\mcitemaxwidthsubitem |% the maximum width of the subitem form|end |
| 1216 |
\end{MYlistblk} |
| 1217 |
The maximum widths are macros containing an integer which is the width |
| 1218 |
in \TeX\ scaled points (sp).\footnote{In \TeX, a scaled point is the smallest |
| 1219 |
dimensional unit available and is equal to $\frac{1}{65536}$ of a point.} The |
| 1220 |
widths are not length commands (e.g., a dimension or skip register), but their |
| 1221 |
values can be assigned to a length command by appending a ``sp'' to the |
| 1222 |
length specification: |
| 1223 |
\begin{MYlistblk} |
| 1224 |
\MYlongcmd |
| 1225 |
\newlength{\MYlength}|\ |
| 1226 |
\setlength{\MYlength}{\mcitemaxwidthsubitem sp}|end |
| 1227 |
\end{MYlistblk} |
| 1228 |
|
| 1229 |
|
| 1230 |
\subsubsection{Maximum Counts} |
| 1231 |
\label{sec:maxcounts} |
| 1232 |
Also available are the macros: |
| 1233 |
\begin{MYlistblk} |
| 1234 |
\MYlongcmd |
| 1235 |
\mcitemaxcountbibitem|\ |
| 1236 |
\mcitemaxcountsubitem|end |
| 1237 |
\end{MYlistblk} |
| 1238 |
which contain the value of the highest count of the bibitem or subitem\footnote{For |
| 1239 |
subitems, it is the highest count that occurred \textit{during} the generation of the |
| 1240 |
sublist labels. Because the subitem counter is advanced by one \textit{after} each |
| 1241 |
sublist label is rendered, the actual counter itself does reach one count higher than |
| 1242 |
its maxcount, but that value was not actually used.} |
| 1243 |
counters, respectively, in the current bibliography. The maxcount |
| 1244 |
macros are not counters, but they can be used to set them, among other things. |
| 1245 |
There are no ``forms'' associated with the maxcounts and their initial values |
| 1246 |
(during the very first \LaTeX\ run in the absence of an auxiliary file) will be zero. |
| 1247 |
So, any code that references them should be able to handle (without error) the case |
| 1248 |
of zero. |
| 1249 |
|
| 1250 |
If, at the end of the bibliography, the correct maximum widths and counts |
| 1251 |
do not match what mciteplus used at the start of the run, mciteplus will issue |
| 1252 |
a package warning to request that \LaTeX\ be rerun. |
| 1253 |
|
| 1254 |
|
| 1255 |
\subsubsection{Non-Numerical Labels} |
| 1256 |
\label{sec:nonnumericallabels} |
| 1257 |
The maxwidth forms may have to be changed for some non-numerical bibstyles. |
| 1258 |
For example, under alpha.bst \cite{ctan:alphabst}, the entry labels are |
| 1259 |
carried within the optional arguments of the \MYshortcmd+bibitem|end, in |
| 1260 |
which case |
| 1261 |
\begin{MYlistblk} |
| 1262 |
\MYlongcmd |
| 1263 |
\mciteSetMaxWidthForm{bibitem}{\mciteBibitemOptArgI}|end |
| 1264 |
\end{MYlistblk} |
| 1265 |
would be appropriate when using such a bibstyle under mciteplus. Actually, |
| 1266 |
it is better to do such setup within the bibliography code of the |
| 1267 |
bibstyle (.bst) so that the maxwidth form will be correct by default |
| 1268 |
without any effort on the part of the user: |
| 1269 |
\begin{MYlistblk} |
| 1270 |
\MYlongcmd |
| 1271 |
\mciteSetBstMaxWidthForm{bibitem}{\mciteBibitemOptArgI}|end |
| 1272 |
\end{MYlistblk} |
| 1273 |
This should not be an issue with natbib compatible bibstyles, even |
| 1274 |
under the author-date mode, as natbib automatically does its own label |
| 1275 |
generation and management. |
| 1276 |
|
| 1277 |
|
| 1278 |
|
| 1279 |
\subsection{Example of Use} |
| 1280 |
\label{sec:exampleofuse} |
| 1281 |
Perhaps the maxwidth system is easiest to understand from an example: |
| 1282 |
\begin{MYlistblk} |
| 1283 |
\MYlongcmd |
| 1284 |
\mciteSetSublistMode{f}|% start numbering with the first item|\ |
| 1285 |
\mciteSetMaxWidthForm{subitem}{\scriptsize\textbf{\roman{mcitesubitemcount})}}|% small, bold, roman|\ |
| 1286 |
| |\ |
| 1287 |
\newcommand{\MYlistsetup}{\relax|\ |
| 1288 |
\setlength{\labelwidth}{\mcitemaxwidthsubitem sp}|% reserve room for widest label|\ |
| 1289 |
\setlength{\labelsep}{5pt}|% 5pt label/text separation|\ |
| 1290 |
\setlength{\itemindent}{0pt}% no indent|\ |
| 1291 |
\setlength{\leftmargin}{\labelwidth}|% text to left of label|\ |
| 1292 |
\addtolength{\leftmargin}{\labelsep}}|% and separation space|\ |
| 1293 |
| |\ |
| 1294 |
\mciteSetSublistLabelBeginEnd{\item}{\begin{list}{\hfill\mcitemaxwidthsubitemform}{\MYlistsetup}}{\end{list}}|end |
| 1295 |
\end{MYlistblk} |
| 1296 |
which produces a sublist via a customized list with small, bold and right aligned |
| 1297 |
roman numerals as labels and with block indented text. Note that in the list setup |
| 1298 |
code, we need to know the amount of room to reserve for the labels. Mciteplus provides this as |
| 1299 |
\MYshortcmd\mcitemaxwidthsubitem|end\ (to which the units ``sp'' must be appended when |
| 1300 |
assigning it to a length command). The maxwidth form itself, |
| 1301 |
\MYshortcmd\mcitemaxwidthsubitemform|end\ was used in the specification of the |
| 1302 |
labels within the list setup, but its definition (as used within |
| 1303 |
\MYshortcmd\mciteSetMaxWidthForm|end) could have been respecified in the list |
| 1304 |
setup code if desired. Once the list is setup, each sublabel is generated by a |
| 1305 |
simple call to \MYshortcmd\item|end. So, this example shows a case in which the code |
| 1306 |
actually used to produced the sublabels at run time (\MYshortcmd\item|end) |
| 1307 |
is not (directly) the same as that code which is used to measure the sublabel |
| 1308 |
widths. Indeed, as it is not self contained, \MYshortcmd\item|end\ cannot |
| 1309 |
even be used in the definition of a maxwidth form. |
| 1310 |
|
| 1311 |
|
| 1312 |
|
| 1313 |
|
| 1314 |
\section{Bibstyle (.bst) Modification} |
| 1315 |
\label{sec:bibstylemods} |
| 1316 |
Original mcite bibstyles cannot be used with mciteplus. They will have to be remodified |
| 1317 |
as described below. |
| 1318 |
|
| 1319 |
To modify a standard bibstyle (.bst) for use with mciteplus (unsrt.bst |
| 1320 |
is used as an example here), find the instances of \MYshortcmd\begin{thebibliography}|end\ |
| 1321 |
and \MYshortcmd\end{thebibliography}|end\ in the \MYshortcmd+begin.bib|end\ |
| 1322 |
and \MYshortcmd+end.bib|end\ functions and change them to use |
| 1323 |
\MYshortcmd+mcitethebibliography|end. It may also be a good idea to test for |
| 1324 |
the existence of \MYshortcmd+mcitethebibliography|end\ in case the user ever |
| 1325 |
forgets to load mciteplus.sty. |
| 1326 |
|
| 1327 |
{\bfseries Note: Many of the functions, |
| 1328 |
or parts of functions, shown below are listed in the included file \MYsmalltt{mciteplus\_code.txt}, |
| 1329 |
which can be used to cut and paste from. Beware of slight code differences between the different bibstyles. |
| 1330 |
For example, some use \MYshortcmd+longest.label|end\ like this example, but others may |
| 1331 |
use something else like \MYshortcmd+number.label| int.to.str$|end\ and/or may have extra code |
| 1332 |
after the \MYshortcmd\begin{mcitethebibliography}|end\ line. Leave these other things as they are.} |
| 1333 |
|
| 1334 |
Thus, |
| 1335 |
\begin{MYlistblk} |
| 1336 |
\MYlongcmd |
| 1337 |
FUNCTION {begin.bib}|\ |
| 1338 |
{ preamble$ empty$|\ |
| 1339 |
'skip$|\ |
| 1340 |
{ preamble$ write$ newline$ }|\ |
| 1341 |
if$|\ |
| 1342 |
"\begin{thebibliography}{" longest.label * "}" * write$ newline$|\ |
| 1343 |
}|\ |
| 1344 |
| |\ |
| 1345 |
.|\ |
| 1346 |
.|\ |
| 1347 |
| |\ |
| 1348 |
FUNCTION {end.bib}|\ |
| 1349 |
{ newline$|\ |
| 1350 |
"\end{thebibliography}" write$ newline$|\ |
| 1351 |
}|end |
| 1352 |
\end{MYlistblk} |
| 1353 |
becomes (change the string "unsrtM.bst" to the name of your new .bst file): |
| 1354 |
\begin{MYlistblk} |
| 1355 |
\MYlongcmd |
| 1356 |
FUNCTION {begin.bib}|\ |
| 1357 |
{ preamble$ empty$|\ |
| 1358 |
'skip$|\ |
| 1359 |
{ preamble$ write$ newline$ }|\ |
| 1360 |
if$|\ |
| 1361 |
"\ifx\mcitethebibliography\mciteundefinedmacro"|\ |
| 1362 |
write$ newline$|\ |
| 1363 |
"\PackageError{unsrtM.bst}{mciteplus.sty has not been loaded}"|\ |
| 1364 |
write$ newline$|\ |
| 1365 |
"{This bibstyle requires the use of the mciteplus package.}\fi"|\ |
| 1366 |
write$ newline$ |
| 1367 |
"\begin{mcitethebibliography}{" longest.label * "}" * write$ newline$|\ |
| 1368 |
}|\ |
| 1369 |
| |\ |
| 1370 |
.|\ |
| 1371 |
.|\ |
| 1372 |
| |\ |
| 1373 |
FUNCTION {end.bib}|\ |
| 1374 |
{ newline$|\ |
| 1375 |
"\end{mcitethebibliography}" write$ newline$|\ |
| 1376 |
}|end |
| 1377 |
\end{MYlistblk} |
| 1378 |
|
| 1379 |
You may also want to declare the sublist mode via a |
| 1380 |
\MYshortcmd\mciteSetBstSublistMode|end, as mentioned in \MYsecref{sec:sublists}, |
| 1381 |
just after the \MYshortcmd+mcitethebibliography|end\ environment |
| 1382 |
begins, that will be used if the user does not otherwise specify a sublist mode, |
| 1383 |
as well as other bibliography setup commands. |
| 1384 |
|
| 1385 |
For example: |
| 1386 |
\begin{MYlistblk} |
| 1387 |
\MYlongcmd |
| 1388 |
FUNCTION {begin.bib}|\ |
| 1389 |
{ preamble$ empty$|\ |
| 1390 |
'skip$|\ |
| 1391 |
{ preamble$ write$ newline$ }|\ |
| 1392 |
if$|\ |
| 1393 |
"\ifx\mcitethebibliography\mciteundefinedmacro"|\ |
| 1394 |
write$ newline$|\ |
| 1395 |
"\PackageError{unsrtM.bst}{mciteplus.sty has not been loaded}"|\ |
| 1396 |
write$ newline$|\ |
| 1397 |
"{This bibstyle requires the use of the mciteplus package.}\fi"|\ |
| 1398 |
write$ newline$|\ |
| 1399 |
"\begin{mcitethebibliography}{" longest.label * "}" * write$ newline$|\ |
| 1400 |
"\mciteSetBstSublistMode{b}"|\ |
| 1401 |
write$ newline$|\ |
| 1402 |
"\mciteSetBstMaxWidthForm{subitem}{\alph{mcitesubitemcount})}"|\ |
| 1403 |
write$ newline$|\ |
| 1404 |
"\mciteSetBstSublistLabelBeginEnd{\mcitemaxwidthsubitemform\space}"|\ |
| 1405 |
write$ newline$|\ |
| 1406 |
"{\relax}{\relax}"|\ |
| 1407 |
write$ newline$|\ |
| 1408 |
}|end |
| 1409 |
\end{MYlistblk} |
| 1410 |
will specify a \MYshortcmd+mcitethebibliography|end\ that defaults to using the sublist |
| 1411 |
``b'' mode and enumerates the subentries using letters. The middle and end punctuation |
| 1412 |
was not be specified via \MYshortcmd\mciteSetBstMidEndSepPunct|end\ and so the package |
| 1413 |
defaults will be used. In this example, the subitem maxwidth form is not so |
| 1414 |
important as the labels are rendered inline, but other types of lists may require it. |
| 1415 |
|
| 1416 |
Next, find the \MYshortcmd+fin.entry|end\ function: |
| 1417 |
\begin{MYlistblk} |
| 1418 |
\MYlongcmd |
| 1419 |
FUNCTION {fin.entry}|\ |
| 1420 |
{ add.period$|\ |
| 1421 |
write$|\ |
| 1422 |
newline$|\ |
| 1423 |
}|end |
| 1424 |
\end{MYlistblk} |
| 1425 |
and change it to (which you can cut and paste from \MYsmalltt{mciteplus\_code.txt}): |
| 1426 |
\begin{MYlistblk} |
| 1427 |
\MYlongcmd |
| 1428 |
|% mciteplus fin.entry|\ |
| 1429 |
|%|\ |
| 1430 |
|% pushes true (1), if add.period$ would add a period to the string on the stack|\ |
| 1431 |
|% pushes false (0), otherwise|\ |
| 1432 |
|% Uses text.length$ to avoid full string comparison and two copies of string.|\ |
| 1433 |
|% Requires one copy of string on stack.|\ |
| 1434 |
INTEGERS {would.add.period.textlen}|\ |
| 1435 |
FUNCTION {would.add.period}|\ |
| 1436 |
{ duplicate$|\ |
| 1437 |
add.period$|\ |
| 1438 |
text.length$|\ |
| 1439 |
'would.add.period.textlen :=|\ |
| 1440 |
duplicate$|\ |
| 1441 |
text.length$|\ |
| 1442 |
would.add.period.textlen =|\ |
| 1443 |
{ #0 }|\ |
| 1444 |
{ #1 }|\ |
| 1445 |
if$|\ |
| 1446 |
}|\ |
| 1447 |
| |\ |
| 1448 |
FUNCTION {fin.entry}|\ |
| 1449 |
{ would.add.period|\ |
| 1450 |
{ "\relax" * write$ newline$|\ |
| 1451 |
"\mciteBstWouldAddEndPuncttrue" write$ newline$|\ |
| 1452 |
"\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}"|\ |
| 1453 |
write$ newline$|\ |
| 1454 |
"{\mcitedefaultendpunct}{\mcitedefaultseppunct}\relax"|\ |
| 1455 |
}|\ |
| 1456 |
{ "\relax" * write$ newline$|\ |
| 1457 |
"\mciteBstWouldAddEndPunctfalse" write$ newline$|\ |
| 1458 |
"\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}"|\ |
| 1459 |
write$ newline$|\ |
| 1460 |
"{}{\mcitedefaultseppunct}\relax"|\ |
| 1461 |
}|\ |
| 1462 |
if$|\ |
| 1463 |
write$|\ |
| 1464 |
newline$|\ |
| 1465 |
"\EndOfBibitem" write$|\ |
| 1466 |
}|\ |
| 1467 |
|% end mciteplus fin.entry|end |
| 1468 |
\end{MYlistblk} |
| 1469 |
|
| 1470 |
The \MYshortcmd\mciteSetBstMidEndSepPunct|end\ line is broken into two lines (after the first argument) |
| 1471 |
to prevent \BibTeX\ from breaking what would be a long single line (over 80 |
| 1472 |
columns) at an unacceptable place. |
| 1473 |
|
| 1474 |
By providing a way for the .bst to tell mciteplus not to use an end period |
| 1475 |
if \BibTeX's \MYshortcmd+add.period$|end\ command would not, we avoid the double end period |
| 1476 |
problem. The \MYshortcmd\mciteBstWouldAddEndPuncttrue/false|end\ flag does not in itself |
| 1477 |
do anything. However, if set appropriately by the .bst, it can be employed |
| 1478 |
by the user in the definition custom punctuation via \MYshortcmd\mciteSetMidEndSepPunct|end. |
| 1479 |
|
| 1480 |
Other .bst files may hardcode values other than the defaults and/or use |
| 1481 |
more complex conditions as is needed for that particular bibstyle. |
| 1482 |
|
| 1483 |
The \MYshortcmd\EndOfBibitem|end\ is defined by mciteplus.sty as a macro containing |
| 1484 |
\MYshortcmd\relax|end. Although it does nothing at present, it's purpose is to make it |
| 1485 |
easier to identify the end of each bibliography entry for the purposes of inspection |
| 1486 |
or parsing. |
| 1487 |
|
| 1488 |
|
| 1489 |
\subsection{Sorting Bibstyles} |
| 1490 |
\label{sec:sortingbibstyles} |
| 1491 |
Perhaps surprisingly, it is possible to use mciteplus with sorting bibstyles. |
| 1492 |
The difficulty is that \BibTeX\ must keep an entry group together, in citation |
| 1493 |
order with the tails immediately following their respective head, despite |
| 1494 |
sorting the entries. This is possible with the use of special bibstyle code |
| 1495 |
if the user is willing and able to declare all the tails via a special entry |
| 1496 |
field ``mcitetail'', which should be set to ``yes'' for each tail, in the |
| 1497 |
\BibTeX\ database.\footnote{Thus, we have to specify the tails |
| 1498 |
twice\MYemdash once for \LaTeX\ and once for \BibTeX\ because there is no |
| 1499 |
other way to get the information to \BibTeX. This limitation |
| 1500 |
helped to inspire \LaTeX-based bibliography processing as is done with the |
| 1501 |
amsrefs \cite{ctan:amsrefs} and biblatex \cite{ctan:biblatex} packages.} Entries without this |
| 1502 |
field, or that have it set to ``no'', will be sorted normally (as head entries). |
| 1503 |
Of course, bibstyles that do not recognize the ``mcitetail'' field will silently ignore it. |
| 1504 |
|
| 1505 |
Thus, for the example used in the introduction, the database entries might look like: |
| 1506 |
\begin{MYlistblk} |
| 1507 |
\MYlongcmd |
| 1508 |
@article{Glashow,|\ |
| 1509 |
author = "Sheldon Lee Glashow",|\ |
| 1510 |
title = "Partial-symmetries of Weak Interactions",|\ |
| 1511 |
journal = "Nucl. Phys.",|\ |
| 1512 |
volume = "22",|\ |
| 1513 |
number = "4",|\ |
| 1514 |
month = feb,|\ |
| 1515 |
year = "1961",|\ |
| 1516 |
pages = "579-588"|\ |
| 1517 |
}|\ |
| 1518 |
| |\ |
| 1519 |
@incollection{Salam,|\ |
| 1520 |
author = "Abdus Salam",|\ |
| 1521 |
editor = "Nils Svartholm",|\ |
| 1522 |
title = "Weak and Electromagnetic Interactions",|\ |
| 1523 |
booktitle = "Elementary Particle Theory",|\ |
| 1524 |
publisher = "Almquist and Wiksell",|\ |
| 1525 |
address = "Stockholm",|\ |
| 1526 |
year = "1968",|\ |
| 1527 |
pages = "367-377",|\ |
| 1528 |
mcitetail = "yes"|\ |
| 1529 |
}|\ |
| 1530 |
| |\ |
| 1531 |
@article{Weinberg,|\ |
| 1532 |
author = "Steven Weinberg",|\ |
| 1533 |
title = "A Model of Leptons",|\ |
| 1534 |
journal = "Phys. Rev. Lett.",|\ |
| 1535 |
volume = "19",|\ |
| 1536 |
number = "21",|\ |
| 1537 |
month = nov,|\ |
| 1538 |
year = "1967",|\ |
| 1539 |
pages = "1264-1266",|\ |
| 1540 |
mcitetail = "yes"|\ |
| 1541 |
}|end |
| 1542 |
\end{MYlistblk} |
| 1543 |
The basic idea is for \BibTeX\ to use the sorting key of the head, |
| 1544 |
but with an appended tail count, as the sorting key for all the tails |
| 1545 |
of that head. If the bibstyle properly generates unique sorting keys, then the |
| 1546 |
entries in each group will be kept together and in order despite |
| 1547 |
the sorting process. For example, apsrmpM.bst uses the following |
| 1548 |
sort keys for the above three entries: |
| 1549 |
\begin{MYlistblk} |
| 1550 |
\MYlongcmd |
| 1551 |
glashow s l 1961 partial symmetries of weak interactions|\ |
| 1552 |
glashow s l 1961 partial symmetries of weak interactions|_|_0000000001|\ |
| 1553 |
glashow s l 1961 partial symmetries of weak interactions|_|_0000000002|end |
| 1554 |
\end{MYlistblk} |
| 1555 |
The sorting modification to the bibstyle consists of three parts which must be |
| 1556 |
done in addition to the mciteplus compatibility modifications previously |
| 1557 |
described. |
| 1558 |
|
| 1559 |
First of all, add an ``mcitetail'' field to the list of entry fields (usually |
| 1560 |
located near the beginning of the bibstyle): |
| 1561 |
\begin{MYlistblk} |
| 1562 |
\MYlongcmd |
| 1563 |
ENTRY|\ |
| 1564 |
{ address|\ |
| 1565 |
archive|\ |
| 1566 |
author|\ |
| 1567 |
booktitle|\ |
| 1568 |
.|\ |
| 1569 |
.|\ |
| 1570 |
key|\ |
| 1571 |
mcitetail|\ |
| 1572 |
month|\ |
| 1573 |
.|\ |
| 1574 |
.|end |
| 1575 |
\end{MYlistblk} |
| 1576 |
|
| 1577 |
Then, add the following code (which you can cut and paste from \MYsmalltt{mciteplus\_code.txt}) |
| 1578 |
somewhere near the start of the bibstyle code (after the first ``STRINGS'' |
| 1579 |
definition(s) is fine): |
| 1580 |
\begin{MYlistblk} |
| 1581 |
\MYlongcmd |
| 1582 |
|% mciteplus mcitetail field and sort key adjust support|\ |
| 1583 |
INTEGERS {mcitetailcnt is.mcitetail}|\ |
| 1584 |
STRINGS {mciteheadsortkey}|\ |
| 1585 |
|% convert the strings "yes" or "no" to |#1 or |#0 respectively|\ |
| 1586 |
FUNCTION {mciteplus.yes.no.to.int}|\ |
| 1587 |
{ "l" change.case$ duplicate$|\ |
| 1588 |
"yes" =|\ |
| 1589 |
{ pop$ |#1 }|\ |
| 1590 |
{ duplicate$ "no" =|\ |
| 1591 |
{ pop$ |#0 }|\ |
| 1592 |
{ "unknown boolean " quote$ * swap$ * quote$ *|\ |
| 1593 |
" in " * cite$ * warning$|\ |
| 1594 |
|#0|\ |
| 1595 |
}|\ |
| 1596 |
if$|\ |
| 1597 |
}|\ |
| 1598 |
if$|\ |
| 1599 |
}|\ |
| 1600 |
FUNCTION {mciteplustail.adj.sort.key}|\ |
| 1601 |
{ mcitetail|\ |
| 1602 |
empty$|\ |
| 1603 |
{ |#0 'is.mcitetail := }|\ |
| 1604 |
{ mcitetail|\ |
| 1605 |
mciteplus.yes.no.to.int|\ |
| 1606 |
'is.mcitetail :=|\ |
| 1607 |
}|\ |
| 1608 |
if$|\ |
| 1609 |
is.mcitetail|\ |
| 1610 |
{ |#1 mcitetailcnt +|\ |
| 1611 |
'mcitetailcnt :=|\ |
| 1612 |
mciteheadsortkey|\ |
| 1613 |
"|_|_" *|\ |
| 1614 |
"000000000"|\ |
| 1615 |
mcitetailcnt|\ |
| 1616 |
int.to.str$|\ |
| 1617 |
*|\ |
| 1618 |
|#-1 |#10 substring$|\ |
| 1619 |
*|\ |
| 1620 |
'sort.key$ :=|\ |
| 1621 |
}|\ |
| 1622 |
{ |#0 'mcitetailcnt :=|\ |
| 1623 |
sort.key$ 'mciteheadsortkey :=|\ |
| 1624 |
}|\ |
| 1625 |
if$|\ |
| 1626 |
}|\ |
| 1627 |
|% END mciteplus mcitetail field support|end |
| 1628 |
\end{MYlistblk} |
| 1629 |
|
| 1630 |
Lastly, you have to locate the place(s) where the |
| 1631 |
bibstyle makes the (final) assignment to \MYshortcmd+sort.key$|end\ |
| 1632 |
(typically of the form \MYshortcmd+'sort.key$| :=|end\ ) before |
| 1633 |
sorting is performed and add a call to \MYshortcmd+mciteplustail.adj.sort.key|end\ |
| 1634 |
(which will modify the sort keys of the tails as needed to keep the groups |
| 1635 |
together) just after it. With apsrmpM.bst, this is at the end of the |
| 1636 |
\MYshortcmd+FUNCTION {presort}|end: |
| 1637 |
\begin{MYlistblk} |
| 1638 |
\MYlongcmd |
| 1639 |
.|\ |
| 1640 |
.|\ |
| 1641 |
'sort.key$ :=|\ |
| 1642 |
mciteplustail.adj.sort.key|\ |
| 1643 |
}|end |
| 1644 |
\end{MYlistblk} |
| 1645 |
as well as at the end of \MYshortcmd+FUNCTION {bib.sort.order}|end. |
| 1646 |
|
| 1647 |
|
| 1648 |
|
| 1649 |
|
| 1650 |
\section{Advanced Usage} |
| 1651 |
The vast majority of users will not need to know the details of the internal |
| 1652 |
operation of mciteplus. However, the following information may be of use to |
| 1653 |
those who are interested in it or who need to interface other packages to mciteplus. |
| 1654 |
|
| 1655 |
Mciteplus consists of two main parts: (1) a part that intercepts and records the |
| 1656 |
status of entries the user has cited; and (2) a part that acts on this |
| 1657 |
information when formatting the entries in the bibliography. |
| 1658 |
|
| 1659 |
Upon the start of the \MYshortcmd\begin{document}|end, mciteplus stores the original |
| 1660 |
\MYshortcmd\cite|end\ and \MYshortcmd\nocite|end\ as \MYshortcmd\mciteOrgcite|end\ |
| 1661 |
and \MYshortcmd\mciteOrgnocite|end, respectively, and replaces the originals with |
| 1662 |
its own versions. The mciteplus versions of the citation commands: (1) process the citation |
| 1663 |
list, recording which entries are heads and which are tails; (2) writes out the |
| 1664 |
citation list to the auxiliary file, much like \MYshortcmd\nocite|end\ does, to ensure |
| 1665 |
that all the given entries will appear in the bibliography as well as being in the correct |
| 1666 |
order; and (3) forwards the list of heads in the citation list to the original cite |
| 1667 |
command. Thus, \LaTeX\ remains unaware that the tail entries were ever cited. |
| 1668 |
|
| 1669 |
The second part of mciteplus operates inside the |
| 1670 |
\MYshortcmd+mcitethebibliography|end\ environment where mciteplus: (1) intercepts |
| 1671 |
and adjusts the bibliography sample label as needed; (2) forwards to |
| 1672 |
the original \MYshortcmd+thebibliography|end; and (3) places a wrapper |
| 1673 |
around \MYshortcmd\bibitem|end, storing the original \MYshortcmd\bibitem|end\ as |
| 1674 |
\MYshortcmd\mciteOrgbibitem|end. For head entries, the mciteplus |
| 1675 |
\MYshortcmd\bibitem|end\ behaves in fairly normal fashion and forwards |
| 1676 |
to the original \MYshortcmd\bibitem|end. However, for tail entries, the |
| 1677 |
mciteplus \MYshortcmd\bibitem|end, does not forward them to the original |
| 1678 |
\MYshortcmd\bibitem|end. Thus, the tail entries become part of the |
| 1679 |
previous entry. To \LaTeX, it is as if the \MYshortcmd\bibitem|end\ of the |
| 1680 |
tails never happened. |
| 1681 |
|
| 1682 |
|
| 1683 |
\subsection{Tracking ID and Aux. Files} |
| 1684 |
\label{sec:trackingandaux} |
| 1685 |
Things get more complicated when a document has more than one bibliography. |
| 1686 |
To support multiple bibliographies, mciteplus uses a ``tracking ID'' which |
| 1687 |
is simply an identification string which is unique to each bibliography. |
| 1688 |
Thus, the same citation key can be used in different ways in different |
| 1689 |
bibliographies (e.g., serving as a head in one and a tail in another) |
| 1690 |
without conflict because each instance will be considered different |
| 1691 |
as their tracking IDs are different.\footnote{Of course, a ``status conflict'' |
| 1692 |
is still possible for ``overall'' bibliographies.} |
| 1693 |
|
| 1694 |
The standard tracking ID is simply the string ``main'' which is carried as: |
| 1695 |
\begin{MYlistblk} |
| 1696 |
\MYlongcmd |
| 1697 |
\def\mcitetrackID{main}|\ |
| 1698 |
\def\mcitebibtrackID{main}|end |
| 1699 |
\end{MYlistblk} |
| 1700 |
the former of which is used by the mciteplus citation commands and the |
| 1701 |
latter of which is used by the \MYshortcmd+mcitethebibliography|end\ environment. |
| 1702 |
However, these definitions may be automatically altered depending on the specific |
| 1703 |
needs of other \LaTeX\ packages that have been loaded |
| 1704 |
(\MYsecref{sec:externalpackages}). Some packages that provide support for |
| 1705 |
multiple bibliographies require that the tracking ID be closely coupled |
| 1706 |
with the individual citation commands. In such cases, mciteplus may not |
| 1707 |
even refer to \MYshortcmd\mcitetrackID|end\ or \MYshortcmd\mcitebibtrackID|end. |
| 1708 |
|
| 1709 |
For the normal part/chapter bibliographies of chapterbib.sty, the tracking ID form |
| 1710 |
``chapterbib\textit{inputfile}'' is used, where ``\textit{inputfile}'' is |
| 1711 |
the include file (without the .tex suffix) the given citation occurred in. |
| 1712 |
The tracking ID of the duplicate bibliographies of chapterbib (produced by |
| 1713 |
chapterbib's ``duplicate'' package option) is given by ``chapterbib\textit{inputfile}.bbl''. |
| 1714 |
For the rootbib bibliography (produced by chapterbib's ``rootbib'' package option), |
| 1715 |
the tracking ID is of the form ``chapterbib\textit{jobname}'', where |
| 1716 |
``\textit{jobname}'' is the name of the main .tex document file (without the |
| 1717 |
.tex suffix). |
| 1718 |
|
| 1719 |
For multibib.sty, the tracking ID is given by ``multibib\textit{secname}'', where |
| 1720 |
``\textit{secname}'' is the multibib bibliography section name (as declared |
| 1721 |
via \MYshortcmd\newcites|end). |
| 1722 |
|
| 1723 |
For multibbl.sty, the tracking ID is given by ``multibbl\textit{secname}'', where |
| 1724 |
``\textit{secname}'' is the multibbl bibliography section name. |
| 1725 |
|
| 1726 |
For bibunits.sty, the tracking ID of each bibunit is given by |
| 1727 |
``bibunits\textit{unitname}'', where ``\textit{unitname}'' is the name of the |
| 1728 |
auxiliary file of the desired bibunit without the .aux suffix |
| 1729 |
(e.g., ``bu1'', ``bu2'', etc.). Outside of the bibunits, where the global |
| 1730 |
bibliography is in effect, the tracking ID of ``main'' is used. |
| 1731 |
|
| 1732 |
Likewise, mciteplus must know which auxiliary file(s) to write its citation lists |
| 1733 |
and bibliography maximum widths and counts to. The standard auxiliary file handles, which |
| 1734 |
are simply integers that represent files \TeX\ has opened, are defined as: |
| 1735 |
\begin{MYlistblk} |
| 1736 |
\MYlongcmd |
| 1737 |
\def\mciteauxout{\@auxout}|\ |
| 1738 |
\def\mcitebibauxout{\@mainaux}|end |
| 1739 |
\end{MYlistblk} |
| 1740 |
the former of which is used by the mciteplus citation commands and the |
| 1741 |
latter of which is used by the \MYshortcmd+mcitethebibliography|end\ environment. |
| 1742 |
As with the tracking ID, these may be altered to support other packages |
| 1743 |
that have been loaded. Under some packages, such as chapterbib, \LaTeX\ may |
| 1744 |
reuse the same file handle number during the course of processing the document. |
| 1745 |
Thus, a given file handle number may not refer to the same file in |
| 1746 |
different parts of the document. |
| 1747 |
|
| 1748 |
Note that mciteplus writes all of its maximum width and count |
| 1749 |
information to the main auxiliary file even though multiple |
| 1750 |
auxiliary files may be in use because it is not certain |
| 1751 |
that the other auxiliary files will be read in during \LaTeX\ runs. |
| 1752 |
As the tracking ID is written along with the maximum width and count information, |
| 1753 |
there will be no confusion as to which bibliography the information pertains to. |
| 1754 |
|
| 1755 |
|
| 1756 |
\subsection{Custom Command Wrappers} |
| 1757 |
\label{sec:customwrappers} |
| 1758 |
Mciteplus provides two rather complex commands that allow users to define their |
| 1759 |
own mciteplus citation command wrappers: |
| 1760 |
\begin{MYlistblk} |
| 1761 |
\MYlongcmd |
| 1762 |
\mciteCiteA*{|itshape+aux out|upshape}{|itshape+track ID|upshape}{|itshape+prehandler|upshape}{|itshape+posthandler|upshape}{|itshape+fwd|upshape}*[|itshape+opt1|upshape][|itshape+opt2|upshape]{|itshape+cite list|upshape}|\ |
| 1763 |
\mciteCiteB*{|itshape+aux out|upshape}{|itshape+track ID|upshape}{|itshape+prehandler|upshape}{|itshape+posthandler|upshape}{|itshape+fwd|upshape}*[|itshape+opt1|upshape][|itshape+opt2|upshape]{|itshape+sec ID|upshape}{|itshape+cite list|upshape}|end |
| 1764 |
\end{MYlistblk} |
| 1765 |
Both of these are ``robust'' and can safely be called within footnotes, |
| 1766 |
etc. The difference between the two is that the ``B'' form supports citation commands |
| 1767 |
that use two arguments, as is the case with the \MYshortcmd\cite|end\ of |
| 1768 |
multibbl.sty. \MYshortcmd\mciteCiteA/B|end\ acquires all of the arguments |
| 1769 |
listed above (the ``*'' and ``[]'' are optional arguments), but those that appear |
| 1770 |
after the \textit{fwd} argument are forwarded (possibly with modification) |
| 1771 |
to the command named in the \textit{fwd} argument. The arguments before |
| 1772 |
\textit{fwd} are only seen and used by \MYshortcmd\mciteCiteA/B|end. |
| 1773 |
|
| 1774 |
The meaning of each of the options from left to right is as follows: |
| 1775 |
\begin{description} |
| 1776 |
\item[*] The star forms (e.g., \MYshortcmd\mciteCiteA/B*|end) disable automatic |
| 1777 |
internal processing (via \MYshortcmd\mciteDoList|end\ as discussed below). |
| 1778 |
The presence of the star form is indicated by the \TeX\ conditional |
| 1779 |
\MYshortcmd\ifmciteMacroStarForm|end. |
| 1780 |
\item[\textit{aux out}] The auxiliary file handle number to be used when |
| 1781 |
writing out the citation list. Use of the special string ``noauxwrite'' will |
| 1782 |
disable auxiliary writes.\footnote{As will the traditional \TeX\ conditional, |
| 1783 |
which is defined and used by \LaTeX, \texttt{\mbox{\ZAXbsl if@filesw}}, if it is false.} |
| 1784 |
This argument is stored in the macro \MYshortcmd\mciteCiteAuxArg|end. |
| 1785 |
\item[\textit{track ID}] The tracking ID to be used. This argument is |
| 1786 |
stored in the macro \MYshortcmd\mciteCiteTrackArg|end. |
| 1787 |
\item[\textit{prehandler}] The user's prehandler code which will be |
| 1788 |
executed before internal \MYshortcmd\mciteDoList|end\ processing. This |
| 1789 |
argument is stored in the macro \MYshortcmd\mciteCitePrehandlerArg|end. |
| 1790 |
The purpose of the prehandler code is to provide the user a way to alter |
| 1791 |
the arguments as needed before further processing. |
| 1792 |
\item[\textit{posthandler}] The user's posthandler code which will be |
| 1793 |
executed after internal \MYshortcmd\mciteDoList|end\ processing. This |
| 1794 |
argument is stored in the macro \MYshortcmd\mciteCitePosthandlerArg|end. |
| 1795 |
\item[\textit{fwd}] The citation command the later arguments will be forwarded |
| 1796 |
to. This argument is stored in the macro \MYshortcmd\mciteCiteFwdArg|end. |
| 1797 |
\item[*] The star for the star form of the forward command. |
| 1798 |
The presence of the star form is indicated by the \TeX\ conditional |
| 1799 |
\MYshortcmd\ifmciteCiteStarFwdArg|end. |
| 1800 |
\item[\textit{opt1}] The first optional argument of the forwarded citation |
| 1801 |
command. The presence of this optional argument is |
| 1802 |
indicated by the \TeX\ conditional \MYshortcmd\ifmciteMacroOptArgI|end. |
| 1803 |
This argument, if present, is stored in the macro \MYshortcmd\mciteCiteOptArgI|end. |
| 1804 |
\item[\textit{opt2}] The second optional argument of the forwarded citation |
| 1805 |
command. The presence of this optional argument is |
| 1806 |
indicated by the \TeX\ conditional \MYshortcmd\ifmciteMacroOptArgII|end. |
| 1807 |
This argument, if present, is stored in the macro \MYshortcmd\mciteCiteOptArgII|end. |
| 1808 |
\item[\textit{sec ID}] Only used for \MYshortcmd\mciteCiteB|end, this |
| 1809 |
is the first argument of two used by the forwarded citation command. |
| 1810 |
Under multibbl.sty, this contains the bibliography section name. |
| 1811 |
This argument is stored in the macro \MYshortcmd\mciteCiteSecIDArg|end. |
| 1812 |
\item[\textit{cite list}] This is the citation list and is |
| 1813 |
stored in the macro \MYshortcmd\mciteCiteListArg|end. It is important |
| 1814 |
to know that \MYshortcmd\mciteCiteListArg|end\ is \emph{not} forwarded |
| 1815 |
as-is, but rather only after the tails are removed. The forwarded |
| 1816 |
citation list is the macro \MYshortcmd\mciteFwdCiteListArg|end. |
| 1817 |
\end{description} |
| 1818 |
\subsubsection{The MciteDoList Engine} |
| 1819 |
\label{sec:mcitedolistengine} |
| 1820 |
After acquiring its arguments, \MYshortcmd\mciteCiteA/B|end\ executes |
| 1821 |
the prehandler code. This is to allow the prehandler code to alter the |
| 1822 |
arguments as needed, specifically if the contents of one argument need |
| 1823 |
to be based on another. For example, under multibbl.sty, the tracking |
| 1824 |
ID has to be based in part on \MYshortcmd\mciteCiteSecIDArg|end. |
| 1825 |
|
| 1826 |
After the prehandler, the \MYshortcmd\mciteDoList|end\ |
| 1827 |
command, which forms the core engine of mciteplus, is executed: |
| 1828 |
\begin{MYlistblk} |
| 1829 |
\MYlongcmd |
| 1830 |
\mciteDoList{|itshape+aux out|upshape}{|itshape+track ID|upshape}{|itshape+cite list|upshape}|end |
| 1831 |
\end{MYlistblk} |
| 1832 |
as: |
| 1833 |
\begin{MYlistblk} |
| 1834 |
\MYlongcmd |
| 1835 |
\mciteDoList{\mciteCiteAuxArg}{\mciteCiteTrackArg}{\mciteCiteListArg}|end |
| 1836 |
\end{MYlistblk} |
| 1837 |
\MYshortcmd\mciteDoList|end\ records the status of each of the entries, writes the |
| 1838 |
citations to the auxiliary file, and then creates \MYshortcmd\mciteheadlist|end\ |
| 1839 |
which contains only the head entries. A copy of \MYshortcmd\mciteheadlist|end\ |
| 1840 |
called \MYshortcmd\mciteFwdCiteListArg|end\ is made. This will be |
| 1841 |
the actual citation list that is forwarded to the \textit{fwd} command. |
| 1842 |
|
| 1843 |
Next, \MYshortcmd\mciteExtraDoLists|end\ is |
| 1844 |
called. This command is normally, just \MYshortcmd\relax|end, but it can be |
| 1845 |
used to create additional sets of entry status, such as when duplicate/global |
| 1846 |
bibliographies are being used. |
| 1847 |
|
| 1848 |
Then, the user's posthandler code is executed. |
| 1849 |
|
| 1850 |
Finally, the forward command is executed with the (rightmost) |
| 1851 |
\MYshortcmd\mciteCiteA/B|end\ arguments forwarded to it, but |
| 1852 |
using \MYshortcmd\mciteFwdCiteListArg|end\ for the citation list. |
| 1853 |
|
| 1854 |
As a practical example, a standard \MYshortcmd\cite|end\ wrapper can be |
| 1855 |
created via: |
| 1856 |
\begin{MYlistblk} |
| 1857 |
\MYlongcmd |
| 1858 |
\newcommand{\MYcite}{\mciteCiteA{\mciteauxout}{\mcitetrackID}{\relax}{\relax}{\mciteOrgcite}}|end |
| 1859 |
\end{MYlistblk} |
| 1860 |
If \MYshortcmd\MYcite|end\ is invoked as: |
| 1861 |
\begin{MYlistblk} |
| 1862 |
\MYlongcmd |
| 1863 |
\MYcite{Glashow,*Salam,*Weinberg}|end |
| 1864 |
\end{MYlistblk} |
| 1865 |
mciteplus will do a: |
| 1866 |
\begin{MYlistblk} |
| 1867 |
\MYlongcmd |
| 1868 |
\mciteCiteA{\mciteCiteAuxArg}{\mciteCiteTrackArg}{\relax}{\relax}{\mciteOrgcite}{\mciteCiteListArg}|end |
| 1869 |
\end{MYlistblk} |
| 1870 |
which is the same as: |
| 1871 |
\begin{MYlistblk} |
| 1872 |
\MYlongcmd |
| 1873 |
\mciteCiteA{\mciteauxout}{\mcitetrackID}{\relax}{\relax}{\mciteOrgcite}{Glashow,*Salam,*Weinberg}|end |
| 1874 |
\end{MYlistblk} |
| 1875 |
which in turn would call: |
| 1876 |
\begin{MYlistblk} |
| 1877 |
\MYlongcmd |
| 1878 |
\mciteDoList{\mciteauxout}{\mcitetrackID}{Glashow,*Salam,*Weinberg}|end |
| 1879 |
\end{MYlistblk} |
| 1880 |
which will create a \MYshortcmd\mciteheadlist|end\ and |
| 1881 |
\MYshortcmd\mciteFwdCiteListArg|end\ containing ``Glashow'', which |
| 1882 |
will then be forwarded to the original \LaTeX\ \MYshortcmd\cite|end: |
| 1883 |
\begin{MYlistblk} |
| 1884 |
\MYlongcmd |
| 1885 |
\mciteOrgcite{\mciteFwdCiteListArg}|end |
| 1886 |
\end{MYlistblk} |
| 1887 |
which is effectively the same as: |
| 1888 |
\begin{MYlistblk} |
| 1889 |
\MYlongcmd |
| 1890 |
\mciteOrgcite{Glashow}|end |
| 1891 |
\end{MYlistblk} |
| 1892 |
Mciteplus carefully builds up the forwarded arguments using token lists |
| 1893 |
so that the forward cite command isn't even aware that it has been |
| 1894 |
wrapped within an earlier command. Thus, even cite.sty's automatic |
| 1895 |
punctuation and spacing adjustments will work as normal. |
| 1896 |
|
| 1897 |
Note that command structures that result in ``double calls'' to the miteplus |
| 1898 |
engine (i.e., a cite command goes through mciteplus and then forwards to |
| 1899 |
another cite command that also goes through mciteplus) although undesirable, |
| 1900 |
will still work as intended without error. |
| 1901 |
|
| 1902 |
\subsection{Mcitethebibliography Hooks} |
| 1903 |
\label{sec:mcitethebibliographyhooks} |
| 1904 |
Mciteplus supplies the macros \MYshortcmd\mciteBIBdecl|end\ and |
| 1905 |
\MYshortcmd\mciteBIBenddecl|end\ |
| 1906 |
which are executed at the beginning and ending of the |
| 1907 |
\MYshortcmd+mcitethebibliography|end\ environment, respectively, before the the normal |
| 1908 |
\MYshortcmd+thebibliography|end\ environment is begun or ended. By default they are |
| 1909 |
both defined as macros containing only \MYshortcmd\relax|end, but a |
| 1910 |
user may redefine them as needed to alter the |
| 1911 |
\MYshortcmd+mcitethebibliography|end\ environment setup. |
| 1912 |
|
| 1913 |
There is also a \MYshortcmd\mcitefwdBIBdecl|end\ which is executed |
| 1914 |
just after the original \MYshortcmd+thebibliography|end\ has been |
| 1915 |
started (i.e., forwarded) by \MYshortcmd+mcitethebibliography|end. |
| 1916 |
This can be used to adjust the setup of \MYshortcmd+thebibliography|end\ |
| 1917 |
before the first bibliography entry. One potential application is |
| 1918 |
to sync the \MYshortcmd+thebibliography|end\ counter to |
| 1919 |
\MYshortcmd+mcitebibitemcount|end. This trick can be used to obtain |
| 1920 |
continuous numbering of the references under multibbl.sty even though |
| 1921 |
that package does not normally provide this feature: |
| 1922 |
\begin{MYlistblk} |
| 1923 |
\MYlongcmd |
| 1924 |
\documentclass{article}|\ |
| 1925 |
\usepackage{multibbl}|\ |
| 1926 |
\usepackage{mciteplus}|\ |
| 1927 |
\mciteResetBibitemCountfalse|\ |
| 1928 |
\renewcommand{\mcitefwdBIBdecl}{\setcounter{enumiv}{\value{mcitebibitemcount}}}|\ |
| 1929 |
\begin{document}|\ |
| 1930 |
.|\ |
| 1931 |
.|end |
| 1932 |
\end{MYlistblk} |
| 1933 |
|
| 1934 |
|
| 1935 |
|
| 1936 |
|
| 1937 |
\section{Use With External Packages} |
| 1938 |
\label{sec:externalpackages} |
| 1939 |
Unless the ``nohooks'' option is invoked, mciteplus will automatically |
| 1940 |
reconfigure itself and hook into the compatible packages it detects. |
| 1941 |
Mciteplus should be loaded after other packages so that it can detect |
| 1942 |
the other packages and to ensure that the definitions of the system |
| 1943 |
cite commands have been finalized before mciteplus installs its |
| 1944 |
wrappers at the beginning of the document. |
| 1945 |
|
| 1946 |
It is not possible to test or list all of the possible interactions |
| 1947 |
among all the various packages. Remember, just because the packages |
| 1948 |
below are compatible with mciteplus, does not mean they all are |
| 1949 |
compatible with each other, even in the absence of mciteplus. Here |
| 1950 |
are some notes regarding the compatibility |
| 1951 |
and use of mciteplus with some of the more common \LaTeX\ |
| 1952 |
bibliography related packages. |
| 1953 |
|
| 1954 |
|
| 1955 |
|
| 1956 |
\subsection{Bibunits} |
| 1957 |
\label{sec:bibunits} |
| 1958 |
Mciteplus is fully compatible with Thorsten Hansen's bibunits |
| 1959 |
package \cite{ctan:bibunits}. When using the global bibliography via |
| 1960 |
the ``globalcitecopy'' and/or the star form of \MYshortcmd\cite|end, |
| 1961 |
beware of the possibility of an mciteplus status (i.e., head or tail) |
| 1962 |
conflict if the same entry is cited differently in different parts of |
| 1963 |
the document. |
| 1964 |
|
| 1965 |
|
| 1966 |
\subsection{Chapterbib} |
| 1967 |
\label{sec:chapterbib} |
| 1968 |
Mciteplus is fully compatible with Donald Arseneau's chapterbib |
| 1969 |
package \cite{ctan:chapterbib} including the use of the chapterbib |
| 1970 |
``duplicate'' and ``rootbib'' package options. \textbf{When using the |
| 1971 |
``rootbib'' option, be sure and enable mciteplus' |
| 1972 |
``chapterbibrootbib'' option.} Mciteplus is not able to auto-detect |
| 1973 |
the rootbib mode of chapterbib directly because when invoking that mode, |
| 1974 |
the user must run \LaTeX\ a second time without the rootbib option. |
| 1975 |
For all of these \LaTeX\ runs, keep this mciteplus option enabled (i.e., |
| 1976 |
as long as there is, or is going to be, a jobname.bbl file under chapterbib). |
| 1977 |
When using the rootbib option, beware of the possibility of an mciteplus |
| 1978 |
status (i.e., head or tail) conflict if the same entry is cited differently |
| 1979 |
in different parts of the document. |
| 1980 |
|
| 1981 |
|
| 1982 |
\subsection{Cite} |
| 1983 |
\label{sec:cite} |
| 1984 |
Mciteplus is fully compatible with Donald Arseneau's cite |
| 1985 |
package \cite{ctan:citesty}, including cite's \MYshortcmd\citen|end, |
| 1986 |
\MYshortcmd\citenum|end\ and \MYshortcmd\citeonline|end\ |
| 1987 |
variants. |
| 1988 |
|
| 1989 |
|
| 1990 |
\subsection{Citeref} |
| 1991 |
\label{sec:citeref} |
| 1992 |
Mciteplus will work with Bj\"{o}rn Briel and Uni Oldenburg's citeref |
| 1993 |
package \cite{ctan:citeref}. |
| 1994 |
|
| 1995 |
|
| 1996 |
\subsection{Drftcite} |
| 1997 |
\label{sec:drftcite} |
| 1998 |
Mciteplus is fully compatible with Donald Arseneau's |
| 1999 |
drftcite package \cite{ctan:drftcite}, including drftcite's |
| 2000 |
\MYshortcmd\citen|end\ variant. To get block aligned entry text |
| 2001 |
in the bibliography, set the bibitem maximum width form |
| 2002 |
to use the citation keys drftcite uses for the bibliography labels: |
| 2003 |
\begin{MYlistblk} |
| 2004 |
\MYlongcmd |
| 2005 |
\mciteSetMaxWidthForm{bibitem}{\mciteBibitemArgI}|end |
| 2006 |
\end{MYlistblk} |
| 2007 |
which, in turn, will revise the bibliography sample label |
| 2008 |
accordingly. This is not done automatically by mciteplus because |
| 2009 |
drftcite does not update the bibliography sample label (even |
| 2010 |
in the absence of mciteplus). |
| 2011 |
|
| 2012 |
|
| 2013 |
\subsection{Hyperref/Backref} |
| 2014 |
\label{sec:hyperrefbackref} |
| 2015 |
Mciteplus should work fine with Sebastian Rahtz and Heiko Oberdiek's |
| 2016 |
hyperref package \cite{ctan:hyperref} including it's backref option. |
| 2017 |
|
| 2018 |
\subsection{Multibbl} |
| 2019 |
\label{sec:multibbl} |
| 2020 |
Mciteplus is fully compatible with Apostolos Syropoulos's |
| 2021 |
multibbl package \cite{ctan:multibbl}. |
| 2022 |
|
| 2023 |
|
| 2024 |
\subsection{Multibib} |
| 2025 |
\label{sec:multibib} |
| 2026 |
Mciteplus is fully compatible with Thorsten Hansen's multibib |
| 2027 |
package \cite{ctan:multibib}. Under mciteplus with natbib, |
| 2028 |
multibib is patched to support all of natbib's \MYshortcmd\cite|end\ |
| 2029 |
variants even though the original multibib only supported |
| 2030 |
\MYshortcmd\citep|end, \MYshortcmd\citet|end, \MYshortcmd\citealp|end\ and |
| 2031 |
\MYshortcmd\citealt|end. Multibib's internal command name list hook |
| 2032 |
\MYshortcmd\@mb@citenamelist|end\ is ignored. |
| 2033 |
|
| 2034 |
|
| 2035 |
\subsection{Natbib} |
| 2036 |
\label{sec:natbib} |
| 2037 |
Mciteplus is fully compatible with Patrick W. Daly's natbib package |
| 2038 |
\cite{ctan:natbib} as long as the bibstyle supports both. |
| 2039 |
All of natbib's \MYshortcmd\cite|end\ variants are supported |
| 2040 |
including: |
| 2041 |
\MYshortcmd\citenum|end, |
| 2042 |
\MYshortcmd\citep|end, \MYshortcmd\Citep|end, \MYshortcmd\citet|end, |
| 2043 |
\MYshortcmd\Citet|end, \MYshortcmd\citealp|end, \MYshortcmd\Citealp|end, |
| 2044 |
\MYshortcmd\citealt|end, \MYshortcmd\Citealt|end, \MYshortcmd\citeauthor|end, |
| 2045 |
\MYshortcmd\Citeauthor|end, \MYshortcmd\citeyear|end, \MYshortcmd\citeyearpar|end, |
| 2046 |
\MYshortcmd\citepalias|end\ and \MYshortcmd\citetalias|end. |
| 2047 |
|
| 2048 |
|
| 2049 |
\subsection{Notes2bib} |
| 2050 |
\label{sec:notes2bib} |
| 2051 |
Mciteplus is fully compatible with Joseph Wright's notes2bib package \cite{ctan:notes2bib}. |
| 2052 |
However, version 1.3 (January 2008) or later must be used for the notes2bib |
| 2053 |
``tail'' or ``head'' options to work with mciteplus. |
| 2054 |
|
| 2055 |
|
| 2056 |
\subsection{REV\TeX} |
| 2057 |
\label{sec:revtex} |
| 2058 |
Mciteplus is fully compatible with Arthur Ogawa and David Carlisle's REV\TeX\ (Version 4) |
| 2059 |
class \cite{ctan:revtex}, including support for end notes in the bibliography. |
| 2060 |
Note that to support this feature, REV\TeX\ uses its own internal bibliography sample |
| 2061 |
label and ignores the ones provided by \BibTeX\ and mciteplus. One annoyance is |
| 2062 |
that REV\TeX\ writes the footnote ``citations'' to the auxiliary file which causes |
| 2063 |
\BibTeX\ to complain that it can't find these ``entries'' in its database (e.g., |
| 2064 |
``\texttt{Warning--I didn't find a database entry for "endnote7"}''. To stop this |
| 2065 |
problem, add the following patch code (which you can cut and paste from \MYsmalltt{mciteplus\_code.txt}) |
| 2066 |
right after REV\TeX\ is loaded: |
| 2067 |
\begin{MYlistblk} |
| 2068 |
\MYlongcmd |
| 2069 |
|% Patch REVTeX to prevent BibTeX from seeing endnotes as citations|\ |
| 2070 |
|% Insert just after REVTeX is loaded|\ |
| 2071 |
\makeatletter|\ |
| 2072 |
\let\@ORGREVTEXendnotemark\@endnotemark|\ |
| 2073 |
\let\@ORGREVTEX@makefnmark@cite\@makefnmark@cite|\ |
| 2074 |
\def\@endnotemark{\bgroup\@fileswfalse\@ORGREVTEXendnotemark\egroup}|\ |
| 2075 |
\def\@makefnmark@cite{\bgroup\@fileswfalse\@ORGREVTEX@makefnmark@cite\egroup}|\ |
| 2076 |
\makeatother|end |
| 2077 |
\end{MYlistblk} |
| 2078 |
|
| 2079 |
|
| 2080 |
\subsection{Partially Supported Packages} |
| 2081 |
\label{sec:partiallysupportedpackages} |
| 2082 |
|
| 2083 |
\noindent\textbf{Footbib:} Eric Domenjoud's footbib package \cite{ctan:footbib} |
| 2084 |
``peacefully coexists'' with mciteplus in the sense that they do not interact. |
| 2085 |
At present, an mciteplus compatible bibstyle cannot be used for the footbibliography. |
| 2086 |
|
| 2087 |
|
| 2088 |
\subsection{Incompatible Packages} |
| 2089 |
\label{sec:incompatiblepackages} |
| 2090 |
Unfortunately, the following packages are currently known not to work with mciteplus. |
| 2091 |
Many of them clash with mciteplus on a fundamental level. However, others may be |
| 2092 |
supported in the future. |
| 2093 |
|
| 2094 |
\noindent\textbf{Amsrefs:} David Jones' amsrefs package \cite{ctan:amsrefs}. |
| 2095 |
|
| 2096 |
\noindent\textbf{Apacite:} Erik Meijer's apacite package \cite{ctan:apacite}. |
| 2097 |
|
| 2098 |
\noindent\textbf{Biblatex:} Philipp Lehman's biblatex package \cite{ctan:biblatex}. |
| 2099 |
Future versions of biblatex may well offer features like those of mciteplus. |
| 2100 |
|
| 2101 |
\noindent\textbf{Bibtopic:} Stefan Ulrich and Pierre Basso's bibtopic package \cite{ctan:bibtopic}. |
| 2102 |
|
| 2103 |
\noindent\textbf{Inlinebib:} Ren{\'e} Seindal's inlinebib package \cite{ctan:inlinebib}. |
| 2104 |
|
| 2105 |
\noindent\textbf{Jurabib:} Jens Berger's jurabib package \cite{ctan:jurabib}. |
| 2106 |
|
| 2107 |
\noindent\textbf{Opcit:} Federico Garcia's opcit package \cite{ctan:opcit}. |
| 2108 |
|
| 2109 |
\noindent\textbf{Splitbib:} Nicolas Markey's splitbib package \cite{ctan:splitbib}. |
| 2110 |
|
| 2111 |
|
| 2112 |
\section*{Acknowledgments} |
| 2113 |
\addcontentsline{toc}{section}{Acknowledgments} |
| 2114 |
First and foremost, the author would like to thank Joseph Wright. |
| 2115 |
Joseph beta tested prototype versions as well as provided many |
| 2116 |
ideas that improved the final architecture of mciteplus. |
| 2117 |
|
| 2118 |
Thorsten Ohl's mcite package identified the need for a \LaTeX\ |
| 2119 |
package that provides this type of bibliography handling and set |
| 2120 |
the standard for so doing. Although coded differently, mciteplus |
| 2121 |
uses the same basic approach to the problem (i.e., wrap the |
| 2122 |
citation command, drop the tails, forward the head list to the |
| 2123 |
original cite command, and selectively drop items in the |
| 2124 |
bibliography) as originally implemented in mcite.sty. |
| 2125 |
|
| 2126 |
|
| 2127 |
\newcommand{\BIBdecl}{\addcontentsline{toc}{section}{\refname}} |
| 2128 |
|
| 2129 |
|
| 2130 |
|
| 2131 |
%\bibliographystyle{IEEEtran} |
| 2132 |
%\bibliography{mciteplus_doc} |
| 2133 |
|
| 2134 |
|
| 2135 |
% Generated by IEEEtran.bst, version: 1.13 (2008/09/30) |
| 2136 |
\begin{thebibliography}{10} |
| 2137 |
\providecommand{\url}[1]{#1} |
| 2138 |
\csname url@samestyle\endcsname |
| 2139 |
\providecommand{\newblock}{\relax} |
| 2140 |
\providecommand{\bibinfo}[2]{#2} |
| 2141 |
\providecommand{\BIBentrySTDinterwordspacing}{\spaceskip=0pt\relax} |
| 2142 |
\providecommand{\BIBentryALTinterwordstretchfactor}{4} |
| 2143 |
\providecommand{\BIBentryALTinterwordspacing}{\spaceskip=\fontdimen2\font plus |
| 2144 |
\BIBentryALTinterwordstretchfactor\fontdimen3\font minus |
| 2145 |
\fontdimen4\font\relax} |
| 2146 |
\providecommand{\BIBforeignlanguage}[2]{{% |
| 2147 |
\expandafter\ifx\csname l@#1\endcsname\relax |
| 2148 |
\typeout{** WARNING: IEEEtran.bst: No hyphenation pattern has been}% |
| 2149 |
\typeout{** loaded for the language `#1'. Using the pattern for}% |
| 2150 |
\typeout{** the default language instead.}% |
| 2151 |
\else |
| 2152 |
\language=\csname l@#1\endcsname |
| 2153 |
\fi |
| 2154 |
#2}} |
| 2155 |
\providecommand{\BIBdecl}{\relax} |
| 2156 |
\BIBdecl |
| 2157 |
\renewcommand{\BIBentryALTinterwordstretchfactor}{4} |
| 2158 |
|
| 2159 |
\bibitem{ctan:mciteplus} |
| 2160 |
\BIBentryALTinterwordspacing |
| 2161 |
M.~Shell. (2013, Sep.) The mciteplus.sty package. [Online]. Available: |
| 2162 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/mciteplus/} |
| 2163 |
\BIBentrySTDinterwordspacing |
| 2164 |
|
| 2165 |
\bibitem{ctan:mcite} |
| 2166 |
\BIBentryALTinterwordspacing |
| 2167 |
T.~Ohl. (1996, Jan.) The mcite.sty package. [Online]. Available: |
| 2168 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/mcite/} |
| 2169 |
\BIBentrySTDinterwordspacing |
| 2170 |
|
| 2171 |
\bibitem{ctan:revtex} |
| 2172 |
\BIBentryALTinterwordspacing |
| 2173 |
A.~Ogawa and D.~Carlisle. (2010, Aug.) The {REV\TeX} package. [Online]. |
| 2174 |
Available: \url{http://www.ctan.org/tex-archive/macros/latex/contrib/revtex/} |
| 2175 |
\BIBentrySTDinterwordspacing |
| 2176 |
|
| 2177 |
\bibitem{ctan:ieeetranbst} |
| 2178 |
\BIBentryALTinterwordspacing |
| 2179 |
M.~Shell. (2008, Sep.) The {IEEE}tran {{\BibTeX}} style. [Online]. Available: |
| 2180 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/bibtex/} |
| 2181 |
\BIBentrySTDinterwordspacing |
| 2182 |
|
| 2183 |
\bibitem{ctan:hyperref} |
| 2184 |
\BIBentryALTinterwordspacing |
| 2185 |
S.~Rahtz and H.~Oberdiek. (2012, Nov.) The hyperref.sty package. [Online]. |
| 2186 |
Available: |
| 2187 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/} |
| 2188 |
\BIBentrySTDinterwordspacing |
| 2189 |
|
| 2190 |
\bibitem{ctan:chapterbib} |
| 2191 |
\BIBentryALTinterwordspacing |
| 2192 |
D.~Arseneau. (2010, Sep.) The chapterbib.sty package. [Online]. Available: |
| 2193 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/cite/} |
| 2194 |
\BIBentrySTDinterwordspacing |
| 2195 |
|
| 2196 |
\bibitem{ctan:eqparbox} |
| 2197 |
\BIBentryALTinterwordspacing |
| 2198 |
S.~Pakin. (2013, Mar.) The eqparbox.sty package. [Online]. Available: |
| 2199 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/eqparbox/} |
| 2200 |
\BIBentrySTDinterwordspacing |
| 2201 |
|
| 2202 |
\bibitem{ctan:alphabst} |
| 2203 |
\BIBentryALTinterwordspacing |
| 2204 |
O.~Patashnik. (2010, Dec.) The alpha.bst bibstyle. [Online]. Available: |
| 2205 |
\url{http://www.ctan.org/tex-archive/biblio/bibtex/base/} |
| 2206 |
\BIBentrySTDinterwordspacing |
| 2207 |
|
| 2208 |
\bibitem{ctan:amsrefs} |
| 2209 |
\BIBentryALTinterwordspacing |
| 2210 |
M.~Downes and D.~M. Jones. (2013, Mar.) The amsrefs package. [Online]. |
| 2211 |
Available: |
| 2212 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/amsrefs/} |
| 2213 |
\BIBentrySTDinterwordspacing |
| 2214 |
|
| 2215 |
\bibitem{ctan:biblatex} |
| 2216 |
\BIBentryALTinterwordspacing |
| 2217 |
P.~Lehman and P.~Kime. (2013, Jul.) The biblatex package. [Online]. Available: |
| 2218 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex} |
| 2219 |
\BIBentrySTDinterwordspacing |
| 2220 |
|
| 2221 |
\bibitem{ctan:bibunits} |
| 2222 |
\BIBentryALTinterwordspacing |
| 2223 |
T.~Hansen. (2004, May) The bibunits.sty package. [Online]. Available: |
| 2224 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/bibunits/} |
| 2225 |
\BIBentrySTDinterwordspacing |
| 2226 |
|
| 2227 |
\bibitem{ctan:citesty} |
| 2228 |
\BIBentryALTinterwordspacing |
| 2229 |
D.~Arseneau. (2010, Sep.) The cite.sty package. [Online]. Available: |
| 2230 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/cite/} |
| 2231 |
\BIBentrySTDinterwordspacing |
| 2232 |
|
| 2233 |
\bibitem{ctan:citeref} |
| 2234 |
\BIBentryALTinterwordspacing |
| 2235 |
B.~Briel and U.~Oldenburg. (1999, May) The citeref.sty package. [Online]. |
| 2236 |
Available: |
| 2237 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/citeref/citeref.sty} |
| 2238 |
\BIBentrySTDinterwordspacing |
| 2239 |
|
| 2240 |
\bibitem{ctan:drftcite} |
| 2241 |
\BIBentryALTinterwordspacing |
| 2242 |
D.~Arseneau. (2010, Sep.) The drftcite.sty package. [Online]. Available: |
| 2243 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/cite/} |
| 2244 |
\BIBentrySTDinterwordspacing |
| 2245 |
|
| 2246 |
\bibitem{ctan:multibbl} |
| 2247 |
\BIBentryALTinterwordspacing |
| 2248 |
A.~Syropoulos. (2004, Jul.) The multibbl.sty package. [Online]. Available: |
| 2249 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/multibbl/} |
| 2250 |
\BIBentrySTDinterwordspacing |
| 2251 |
|
| 2252 |
\bibitem{ctan:multibib} |
| 2253 |
\BIBentryALTinterwordspacing |
| 2254 |
T.~Hansen. (2008, Dec.) The multibib.sty package. [Online]. Available: |
| 2255 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/multibib/} |
| 2256 |
\BIBentrySTDinterwordspacing |
| 2257 |
|
| 2258 |
\bibitem{ctan:natbib} |
| 2259 |
\BIBentryALTinterwordspacing |
| 2260 |
P.~W. Daly. (2010, Sep.) The natbib.sty package. [Online]. Available: |
| 2261 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/} |
| 2262 |
\BIBentrySTDinterwordspacing |
| 2263 |
|
| 2264 |
\bibitem{ctan:notes2bib} |
| 2265 |
\BIBentryALTinterwordspacing |
| 2266 |
J.~Wright. (2013, Jul.) The notes2bib.sty package. [Online]. Available: |
| 2267 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/notes2bib/} |
| 2268 |
\BIBentrySTDinterwordspacing |
| 2269 |
|
| 2270 |
\bibitem{ctan:footbib} |
| 2271 |
\BIBentryALTinterwordspacing |
| 2272 |
E.~Domenjoud. (2010, Feb.) The footbib.sty package. [Online]. Available: |
| 2273 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/footbib/} |
| 2274 |
\BIBentrySTDinterwordspacing |
| 2275 |
|
| 2276 |
\bibitem{ctan:apacite} |
| 2277 |
\BIBentryALTinterwordspacing |
| 2278 |
E.~Meijer. (2013, Jul.) The apacite package. [Online]. Available: |
| 2279 |
\url{http://www.ctan.org/tex-archive/biblio/bibtex/contrib/apacite/} |
| 2280 |
\BIBentrySTDinterwordspacing |
| 2281 |
|
| 2282 |
\bibitem{ctan:bibtopic} |
| 2283 |
\BIBentryALTinterwordspacing |
| 2284 |
S.~Ulrich and P.~Basso. (2006, Sep.) The bibtopic.sty package. [Online]. |
| 2285 |
Available: |
| 2286 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/bibtopic/} |
| 2287 |
\BIBentrySTDinterwordspacing |
| 2288 |
|
| 2289 |
\bibitem{ctan:inlinebib} |
| 2290 |
\BIBentryALTinterwordspacing |
| 2291 |
R.~Seindal. (1999, Jul.) The inlinebib.sty package. [Online]. Available: |
| 2292 |
\url{http://www.ctan.org/tex-archive/biblio/bibtex/contrib/inlinebib/} |
| 2293 |
\BIBentrySTDinterwordspacing |
| 2294 |
|
| 2295 |
\bibitem{ctan:jurabib} |
| 2296 |
\BIBentryALTinterwordspacing |
| 2297 |
J.~Berger. (2004, Jan.) The jurabib.sty package. [Online]. Available: |
| 2298 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/jurabib/} |
| 2299 |
\BIBentrySTDinterwordspacing |
| 2300 |
|
| 2301 |
\bibitem{ctan:opcit} |
| 2302 |
\BIBentryALTinterwordspacing |
| 2303 |
F.~Garcia. (2007, Jun.) The opcit.sty package. [Online]. Available: |
| 2304 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/opcit/} |
| 2305 |
\BIBentrySTDinterwordspacing |
| 2306 |
|
| 2307 |
\bibitem{ctan:splitbib} |
| 2308 |
\BIBentryALTinterwordspacing |
| 2309 |
N.~Markey. (2005, Dec.) The splitbib.sty package. [Online]. Available: |
| 2310 |
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/splitbib/} |
| 2311 |
\BIBentrySTDinterwordspacing |
| 2312 |
|
| 2313 |
\end{thebibliography} |
| 2314 |
|
| 2315 |
|
| 2316 |
|
| 2317 |
|
| 2318 |
|
| 2319 |
\end{document} |