splitbib 示例导致失控的争论

splitbib 示例导致失控的争论

我正在尝试将一个简单的参考书目分成两部分,用于不同类型的来源。 splitbib 包应该很容易做到这一点。不幸的是,文档中的最小示例(http://tug.ctan.org/macros/latex/contrib/splitbib/splitbib.pdf) 以及以下 MWE 导致失控参数错误,其中编译器以某种方式找不到第一个双位项的结尾:

\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{splitbib}

\title{Splitbib MWE}
\author{Scipio}

\begin{category}[A]{First Category}
\SBentries{T,S}
\end{category}
\begin{category}[B]{Second Category}
\SBentries{W,X}
\end{category}

\begin{document}
\maketitle
\tableofcontents
\section{Here we cite stuff}
Obviously \cite{T} because of \cite{W}. Considering\cite{X} we conclude\cite{S}


\begin{thebibliography}{42}
\bibitem{T} Some Author, Some Paper, 1975
\bibitem{S} Some other Author, Some Book, 1964
\bibitem{W} Some Website, 12.06.2018
\bibitem{X} Some other Website 14.07.2017
\end{thebibliography}
\end{document}

答案1

包代码要求每个 bibitem 后都有一个空行(这似乎是一个相当脆弱的要求)

\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{splitbib}

\title{Splitbib MWE}
\author{Scipio}

\begin{category}[A]{First Category}
\SBentries{T,S}
\end{category}
\begin{category}[B]{Second Category}
\SBentries{W,X}
\end{category}

\begin{document}
\maketitle
\tableofcontents
\section{Here we cite stuff}
Obviously \cite{T} because of \cite{W}. Considering\cite{X} we conclude\cite{S}

\makeatletter
\begin{thebibliography}{42}
\bibitem{T} Some Author, Some Paper, 1975

\bibitem{S} Some other Author, Some Book, 1964

\bibitem{W} Some Website, 12.06.2018

\bibitem{X} Some other Website 14.07.2017

\end{thebibliography}
\end{document}

相关内容