abenori / jlreq

Other
125 stars 18 forks source link

BibLaTeX の numeric スタイルと併用した際、ラベル後の余白が極端に狭い #128

Open pecorarista opened 10 months ago

pecorarista commented 10 months ago

事象

jlreq クラスと BibLaTeX の style=numeric を併用した際に、 文献番号と文献情報の間の空白がかなり狭くなってしまいます。 ltjsbook など、他のクラスでは発生しませんでした。

\documentclass{jlreq}
\usepackage[backend=biber,style=numeric]{biblatex}
\bibliography{references.bib}
\begin{document}
\textcite{kunen-set-theory}
\printbibliography
\end{document}

image

やってみたこと

biblatex パッケージ内の numeric.bbx を参考に \setlength{\labelsep}{\biblabelsep} の部分を \setlength{\labelsep}{1\zw} に変更した bibliography の環境を定義したところ、 以下のように期待する出力が得られました。

\defbibenvironment{bibliography}
  {\list
     {\printtext[labelnumberwidth]{%
        \printfield{labelprefix}%
        \printfield{labelnumber}}}
     {\setlength{\labelwidth}{\labelnumberwidth}%
      \setlength{\leftmargin}{\labelwidth}%
      % \setlength{\labelsep}{\biblabelsep}%
      \setlength{\labelsep}{1\zw}%
      \addtolength{\leftmargin}{\labelsep}%
      \setlength{\itemsep}{\bibitemsep}%
      \setlength{\parsep}{\bibparsep}}%
      \renewcommand*{\makelabel}[1]{\hss##1}}
  {\endlist}
  {\item}

image

大きな問題ではないと思いますが、念のためご報告いたしました。

abenori commented 9 months ago

\labelsepを0ptにしているせいかと思いますが,ところで\biblabelsepの値を設定するのではまずいのでしょうか?