13

I want BibLaTeX bibliography without square brackets, but without putting things all on one line, because that's what lncs requires.

That is, I have

\documentclass{article}

\usepackage{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}

@misc{B02,
  author = {Buthor, B.},
  year = {2002},
  title = {Bravo},
}

@misc{C03,
  author = {Cuthor, C.},
  year = {2003},
  title = {Charlie},
}
\end{filecontents}

\bibliography{\jobname}

\begin{document}

\nocite{*}

\printbibliography

\end{document}

And I want the same bibliography (multiple lines), just without the square brackets.

15

You just need this one line

\DeclareFieldFormat{labelnumberwidth}{\mkbibbold{#1\adddot}}

to print the label in bold without brackets followed by a dot.

MWE

\documentclass{article}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}

\DeclareFieldFormat{labelnumberwidth}{\mkbibbold{#1\adddot}}

\begin{document}
  \nocite{cicero,baez/article,baez/online,wilde}
  \printbibliography
\end{document}

enter image description here

  • This is certainly the best way to go. +1. – karlkoeller Apr 15 '14 at 13:46
6

Add the following lines in your preamble:

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

MWE:

\documentclass{article}

\usepackage{biblatex}

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

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}

@misc{B02,
  author = {Buthor, B.},
  year = {2002},
  title = {Bravo},
}

@misc{C03,
  author = {Cuthor, C.},
  year = {2003},
  title = {Charlie},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\nocite{*}

\printbibliography

\end{document} 

Output:

enter image description here

BTW: I've changed \bibliography to \addbibresource since the former is deprecated with biblatex.

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.