0

I want to insert a letter (eg. "S") before citations both in text and in the bibliography. I've found a similar question here:

How to add a letter before the number of citation in the text?

However:

  • I want to do it for only a refsection,
  • with the using of biblatex/biber.

But I have no idea how. My MWE:

\documentclass{article}

\usepackage[sorting=none,backref=false]{biblatex} \bibliography{\jobname.bib}

\begin{document}

\section{Considered as refsection 0} This is a normal citation: \cite{NiInt_3}.

\section{Refsection1} \begin{refsection} I want to cite this \cite{NiInt_1} as [S1] here and in the bibliography.

\printbibliography[keyword=withletter, title={With letter}] \end{refsection}

\printbibliography[title={Without letter}]

\end{document}

enter image description here

Tom Solid
  • 839

1 Answers1

2

You can use \newrefcontext[labelprefix=S] in a refcontext:

\documentclass{article}

\usepackage{filecontents} \begin{filecontents}{\jobname.bib} @book{lamport1994latex, title={LATEX: a document preparation system: user's guide and reference manual}, author={Lamport, Leslie}, year={1994}, publisher={Addison-wesley} } @book{mittelbach2004latex, title={The LATEX companion}, author={Mittelbach, Frank and Goossens, Michel and Braams, Johannes and Carlisle, David and Rowley, Chris}, year={2004}, publisher={Addison-Wesley Professional} } \end{filecontents} \usepackage[sorting=none,backref=false]{biblatex} \bibliography{\jobname.bib}

\begin{document}

\section{Considered as refsection 0} This is a normal citation: \cite{mittelbach2004latex}.

\section{Refsection1}

\begin{refsection} \newrefcontext[labelprefix=S] I want to cite this \cite{lamport1994latex} as [S1] here and in the bibliography.

\printbibliography[title={With letter}] \end{refsection}

\printbibliography[title={Without letter}]

\end{document}

enter image description here

DG'
  • 21,727