TeX - LaTeX Asked on January 7, 2021
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:
refsection
,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}
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}
Correct answer by DG' on January 7, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP