4

I am using the biblatex chicago package. It's producing dashes for a repeating author in the bibliography.

I tried different solution like, for example, including

\makeatletter
\AtEveryBibitem{%
  \global\undef\bbx@lasthash%
  \clearfield{extrayear}}
\makeatother

but that does not work. How can I avoid dashes?

  • 1
    Have you tried the ''dashed=false'' package option, as suggested in this answer. – Adam B. Dec 17 '13 at 8:08
  • @Adam yes that option does not work in biblatex-chicago package – user42754 Dec 17 '13 at 8:11
6

Overwrite the macro with an empty box:

\renewcommand*\bibnamedash{\makebox[\leftmargin]{}}

or if you want to repeat the author name:

\usepackage[dashed=false,...]{biblatex}

And if it does not work than your bibstyle dowsn't support it. The style authoryear does it. For biblatex-chicago try:

...
\usepackage{biblatex-chicago}
\renewbibmacro*{author}{%
  \ifboolexpr{
    test \ifuseauthor
    and
    not test {\ifnameundef{author}}
  }
    {\printnames{author}%
        \iffieldundef{authortype}
          {\setunit{\addspace}}
          {\setunit{\addcomma\space}}%
     \iffieldundef{authortype}
       {}
       {\usebibmacro{authorstrg}%
        \setunit{\addspace}}}%
    {\global\undef\bbx@lasthash
     \usebibmacro{labeltitle}%
     \setunit*{\addspace}}%
  \usebibmacro{date}}
 ...

which worked for me.

  • i want to print author name again for the repeated reference – user42754 Dec 17 '13 at 8:10
  • than simply use \usepackage[dashed=false,...]{biblatex} – user2478 Dec 17 '13 at 8:11
  • the problem is i m using biblatex-chicago which does not accept this. – user42754 Dec 17 '13 at 8:13
  • see my edited answer – user2478 Dec 17 '13 at 8:40
  • 1
    this code is generating year twice. if i remove data from last line then year is generated by the end of paper title. i want this by the end of author name – user42754 Jan 9 '14 at 8:06
3

If you just need to supress dashes try only

\makeatletter
\AtEveryBibitem{
  \global\undef\bbx@lasthash}
\makeatother

The part \clearfield{extrayear} is irrelevant to your problem. It should be removed.

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.