Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers 2

up vote 7 down vote accepted

You just need this one line

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

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.}}

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

enter image description here

share|improve this answer
    
This is certainly the best way to go. +1. –  karlkoeller Apr 15 at 13:46
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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