将非编号的参考书目压缩为一行

将非编号的参考书目压缩为一行

我想要做的事情基本上与这里(几乎)回答的相同: https://tex.stackexchange.com/a/5574/39336

不同之处在于我使用了不同的bibstyle。这bibstyle将创建thebibliography我复制到此 MWE 中的:

\documentclass{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage[colorlinks=true,citecolor=blue,]{hyperref}
\usepackage{natbib}
\bibpunct{(}{)}{;}{a}{,}{,}
\setlength{\bibsep}{0.0cm}

\begin{document}

Let us cite \citet{Author:1976} \citep[but also][]{Someone:2000}.

\begin{thebibliography}{93}
\expandafter\ifx\csname natexlab\endcsname\relax\def\natexlab#1{#1}\fi

\bibitem[{Author {et~al.}(1976)Author, Other, \&
  Yetanother}]{Author:1976}
Author, F., Other, S., \& Yetanother, T. 1976, Obscure Journal, 25, 314

\bibitem[{Someone {et~al.}(2000)Someone, Someother, \& Thirdone}]{Someone:2000}
Someone, F., Someother, S., \& Thirdone, T. 2000, Otherjournal, 321, 42
\end{thebibliography}

\end{document}

这给出了如下书目

Author, F., Other, S., & Yetanother, T. 1976, Obscure Journal, 25, 314
Someone, F., Someother, S., & Thirdone, T. 2000, Otherjournal, 321, 42

但我想获得一个没有换行符的项目符号分隔列表(可能使用paralist包,类似于上面链接中的枚举列表),例如:

Author, F., Other, S., & Yetanother, T. 1976, Obscure Journal, 25, 314 • Someone, F., Someother, S., & Thirdone, T. 2000, Otherjournal, 321, 42

同时超链接仍然有效。有什么想法吗?

答案1

inparaitem是的,这可以通过 的环境来完成paralist

将以下几行添加到你的序言中。

\usepackage{paralist}
\renewenvironment{thebibliography}[1]{\let\par\relax%
  \section*{\refname}\inparaitem}{\endinparaitem}
\let\oldbibitem\bibitem
\renewcommand{\bibitem}{\item[\textbullet]\oldbibitem}

完成 MWE:

\documentclass{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage[colorlinks=true,citecolor=blue,]{hyperref}
\usepackage{natbib}
\bibpunct{(}{)}{;}{a}{,}{,}
\setlength{\bibsep}{0.0cm}

\usepackage{paralist}
\renewenvironment{thebibliography}[1]{\let\par\relax%
  \section*{\refname}\inparaitem}{\endinparaitem}
\let\oldbibitem\bibitem
\renewcommand{\bibitem}{\item[\textbullet]\oldbibitem}

\begin{document}

Let us cite \citet{Author:1976} \citep[but also][]{Someone:2000}.

\begin{thebibliography}{93}
\expandafter\ifx\csname natexlab\endcsname\relax\def\natexlab#1{#1}\fi

\bibitem[{Author {et~al.}(1976)Author, Other, \&
  Yetanother}]{Author:1976}
Author, F., Other, S., \& Yetanother, T. 1976, Obscure Journal, 25, 314

\bibitem[{Someone {et~al.}(2000)Someone, Someother, \& Thirdone}]{Someone:2000}
Someone, F., Someother, S., \& Thirdone, T. 2000, Otherjournal, 321, 42
\end{thebibliography}

\end{document} 

输出:

在此处输入图片描述

当然,超级引用不再起作用了......

相关内容