% -*-latex-*- % Document name: /u/sy/beebe/tex/bst/test-x-plain.ltx % Creator: Nelson H F Beebe [beebe@delta-trueos.math.utah.edu] % Creation Date: Wed Apr 5 20:34:15 2017 \documentclass{article} % \usepackage{bibnames} \newcommand{\BibTeX}{\textsc{Bib}\kern-.08em\TeX} \newcommand{\myfontfamily}{tgschola} \newcommand{\mybibstyle}{x-plain} \usepackage{\myfontfamily} % \renewcommand{\ttdefault}{DejaVuSansMono-TLF} \usepackage[scaled = 0.9]{DejaVuSansMono} \usepackage{cite} \usepackage{color} \usepackage{graphicx} \usepackage{microtype} \usepackage{x-bst} \input{test-front-matter} \begin{document} \input{test-common} \nocite{*} %%% -------------------------------------------------------------------- \thebibliographyhook{% This bibliography is formatted in style \texttt{\mybibstyle}. There are small changes to the formatting of \texttt{DOI}, \texttt{ISBN}, \texttt{ISBN-13}, \texttt{LCCN}, and \texttt{vol\-ume} field values through private definitions of the \cmd{showXXX} commands to illustrate such customizations. In addition, the bibliography is set with an expanded right margin, to leave space for the margin paragraph generated by a private definition of the \cmd{showBIBTYPE} command, and to better test line breaking.% \label{annotated-bibliography} } \newcommand {\showDOI} { doi:\penalty 0 \small \color{blue}} \newcommand {\showISBN} [1] {ISBN {\bf #1}} \newcommand {\showISBNXIII} [1] {ISBN-13 {\bf #1}} \newcommand {\showLCCN} [1] {LCCN \texttt{#1}} \newcommand {\showVOLUME} [1] {\textbf{#1}} \showDOIPERIODfalse % \showCODENfalse % \showISBNfalse % \showISSNfalse % \showISSNtrue % \showBIBTYPEfalse \bibliographystyle{\mybibstyle} \hfuzz = 10cm \overfullrule = 0cm \renewcommand{\refname}{Annotated references} \addcontentsline{toc}{section}{\refname} \begin{list}{}{\leftmargin = 0ex \rightmargin = \bibrightmargin} \item \bibliography{bst} \end{list} \renewcommand {\showBIBTYPE} [2]{} \renewcommand {\bibliography} [1] {\input{\jobname.bbl}} %% avoid \BibTeX{} complaints about multiple \bibdata{} commands %%% -------------------------------------------------------------------- \renewcommand{\refname}{Wide references} \thebibliographyhook{% This bibliography is formatted in style \texttt{\mybibstyle}. There are small changes to the formatting of \texttt{DOI}, \texttt{ISBN}, \texttt{ISBN-13}, \texttt{LCCN}, and \texttt{vol\-ume} field values through private definitions of the \cmd{showXXX} commands to illustrate such customizations. } \addcontentsline{toc}{section}{\refname} \bibliography{bst} %%% -------------------------------------------------------------------- \twocolumn[\centerline{\highlightcolor \normalfont \LARGE \bfseries Two-column typesetting}\bigskip] \renewcommand{\refname}{Narrow references} \thebibliographyhook{% \sloppypar This bibliography is formatted in style \texttt{\mybibstyle}. There are small changes to the formatting of \texttt{DOI}, \texttt{ISBN}, \texttt{ISBN-13}, \texttt{LCCN}, and \texttt{vol\-ume} field values through private definitions of the \cmd{showXXX} commands to illustrate such customizations. } \addcontentsline{toc}{section}{\refname} \bibliography{bst} %%% -------------------------------------------------------------------- \onecolumn \centerline{\highlightcolor \normalfont \LARGE \bfseries One-column typesetting} \hideOPTIONAL \renewcommand {\refname} {Wide minimal references} \newcommand {\showAUTHOR} [1] {{\sc #1}} \newcommand {\showEDITOR} [1] {{\sc #1}} \renewcommand {\showVOLUME} [1] {{\bf #1}} \thebibliographyhook{% This bibliography is formatted in style \texttt{\mybibstyle}. There are small changes to the formatting of \texttt{author}, \texttt{editor}, and \texttt{vol\-ume} field values through private definitions of corresponding \cmd{showXXX} commands to illustrate such customizations. In addition, all of the conditionals are set to false with the single command \cmd{hideOPTIONAL}, suppressing typesetting of the extended fields. } \addcontentsline{toc}{section}{\refname} \bibliography{bst} \end{document}