![类 modernCV 带有德语书目 biblatex;相同作者被破折号替换](https://linux22.com/image/369103/%E7%B1%BB%20modernCV%20%E5%B8%A6%E6%9C%89%E5%BE%B7%E8%AF%AD%E4%B9%A6%E7%9B%AE%20biblatex%EF%BC%9B%E7%9B%B8%E5%90%8C%E4%BD%9C%E8%80%85%E8%A2%AB%E7%A0%B4%E6%8A%98%E5%8F%B7%E6%9B%BF%E6%8D%A2.png)
我找到了使用 modernCV 和 biblatex 的解决方案这里:
唯一的问题是:使用 biblatex 样式的“verbose-inote”时,破折号后面会有一些空格,当已经提到作者姓名时,这些空格会代替作者姓名。有没有办法正确显示没有空格的条目?谢谢。
\documentclass{moderncv}
\usepackage[style=verbose-inote,backend=biber]{biblatex}
\defbibenvironment{bibliography}
{\list
{\printtext[labelnumberwidth]{% label format from numeric.bbx
\printfield{labelprefix}%
\printfield{labelnumber}}}
{\setlength{\topsep}{0pt}% layout parameters from moderncvstyleclassic.sty
\setlength{\labelwidth}{\hintscolumnwidth}%
\setlength{\labelsep}{\separatorcolumnwidth}%
\leftmargin\labelwidth%
\advance\leftmargin\labelsep}%
\sloppy\clubpenalty4000\widowpenalty4000}
{\endlist}
{\item}
\moderncvstyle{classic}
\moderncvcolor{blue}
\firstname{John}
\familyname{Doe}
\addbibresource{biblatex-examples.bib}
\begin{document}
\makecvtitle
\nocite{companion,knuth:ct:a,knuth:ct:b}
\printbibliography[title={Publications}]
\end{document}
答案1
您需要重新定义\bibnamedash
,由于您的 \leftmargin 很大,默认定义会给出一个非常宽的框。
\documentclass{moderncv}
\usepackage[style=verbose-inote,backend=biber]{biblatex}
\defbibenvironment{bibliography}
{\list
{\printtext[labelnumberwidth]{% label format from numeric.bbx
\printfield{labelprefix}%
\printfield{labelnumber}}}
{\setlength{\topsep}{0pt}% layout parameters from moderncvstyleclassic.sty
\setlength{\labelwidth}{\hintscolumnwidth}%
\setlength{\labelsep}{\separatorcolumnwidth}%
\leftmargin\labelwidth%
\advance\leftmargin\labelsep}%
\sloppy\clubpenalty4000\widowpenalty4000}
{\endlist}
{\item}
\renewcommand*{\bibnamedash}{\mbox{\textemdash\space}}%
\moderncvstyle{classic}
\moderncvcolor{blue}
\firstname{John}
\familyname{Doe}
\addbibresource{biblatex-examples.bib}
\begin{document}
\makecvtitle
\nocite{companion,knuth:ct:a,knuth:ct:b}
\printbibliography[title={Publications}]
\end{document}