BibTeX, biblatex and biberRemove square brackets in bibliography only (biblatex)

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
fifo
Posts: 3
Joined: Fri Apr 24, 2020 12:09 pm

Remove square brackets in bibliography only (biblatex)

Post by fifo »

Dear community,


this is my first question in this forum ever, after having a lot of problems solved by your solutions :) By now I generate my bibliography and all inline citations with biblatex as follows.

Code: Select all

\documentclass{scrbook}

\usepackage[utf8]{inputenc}
\usepackage[
   backend=biber,
   style=alphabetic,
   sorting=anyt,
   minalphanames=1,
   maxalphanames=1,
]{biblatex}

\addbibresource{MWE.bib}

\begin{document}

This is an example text with an inline citation of \textcite{Hounsfield.1973}. 

\printbibliography

\end{document}
This results in the reference label (I don't know the exact expression for it, I mean the [Hou73]) being enclosured in square brackets in inline citations as well as in the bibliography. I try to achieve that square brackets are removed from the reference label in the bibliography only. Hence, the square brackets must remain in the inline citation.

After spending hours of searching I did not come up with a working solution for biblatex yet. So I kindly ask for your support :)
Attachments
MWE-I.tex
Minimal Working Example
(392 Bytes) Downloaded 337 times
MWE.bib
Bibliography
(835 Bytes) Downloaded 221 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Remove square brackets in bibliography only (biblatex)

Post by Bartman »

At least you have to change labelalphawidth using the \DeclareFieldFormat command. If i am wrong, you would also have to make the second change in the linked source.
fifo
Posts: 3
Joined: Fri Apr 24, 2020 12:09 pm

Remove square brackets in bibliography only (biblatex)

Post by fifo »

Thank you very much!

Code: Select all

\DeclareFieldFormat{labelalphawidth}{#1}
did the trick.
Post Reply