3

Following typographic conventions, I'm using a three-em rule in dashed entries in my bibliography. I feel, however, that there is too little space between the rule and the following period.

As the following MWE shows, adding \space has no effect (I've also tried \addspace, \(add)thinspace, and \hspace{}, all without effect. How can I add space after the rule?

\documentclass{article}
\usepackage{filecontents}
\usepackage[style = authoryear, dashed = true]{biblatex}
\renewcommand*\bibnamedash{\rule[0.48ex]{3em}{0.14ex}\space\addperiod\space}
\begin{filecontents}{\jobname.bib}
@book{smith1965,
    AUTHOR = "Ian Smith",
    TITLE = "The great book about nothing",
    YEAR = "1965"}
@book{smith1972,
    AUTHOR = "Ian Smith",
    TITLE = "I have more to say about nothing",
    YEAR = "1972"}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}

enter image description here

  • 1
    Why the period? – egreg Aug 31 '15 at 19:17
  • @egreg I often use a style in which the entries are formatted like Smith, Ian. 1965. _Title_. – Sverre Aug 31 '15 at 19:20
2

As far as I can tell, \addperiod gobbles up preceding glue, so \space before it does nothing. On the other hand, \hspace* tricks it into thinking that no space was there, so I can propose

\renewcommand*\bibnamedash{\rule[0.48ex]{3em}{0.14ex}\hspace*{.2em}\addperiod\space}

which gives

enter image description here

Adjust to suit. If I use \hspace*{1em} (exaggerating the effect), I get

enter image description here

  • I would simply use a real dot . instead of \addperiod. – Ulrike Fischer Aug 31 '15 at 18:11
  • 2
    @UlrikeFischer Actually, I wouldn't use a period, there. – egreg Aug 31 '15 at 19:17
  • Why not? That's a fix output, there is no need to track punctuations or hidden spaces. – Ulrike Fischer Aug 31 '15 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.