Verschiedene Zitierstile in modernCV

Verschiedene Zitierstile in modernCV

Ich habe in meinem Lebenslauf verschiedene Arten von Publikationen und möchte für alle ein anderes Format verwenden. Dies kann ich mit dem Paket printbibliography tun, aber die Zitate selbst sehen gleich aus.

Das gewünschte Verhalten besteht darin, dass Konferenzveröffentlichungen als C1, C2, C3 ... und Zeitschriften als J1, J2, J3 ... aufgelistet werden. Wenn ich sie dann zitiere, möchte ich, dass sie als [C1], [J2] usw. bezeichnet werden, aber das funktioniert nicht.

Hier ist ein MWE:

\documentclass[10pt,roman,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')

\nocite{*}
\usepackage[maxbibnames=99,defernumbers=true,sorting=ydnt]{biblatex}
\addbibresource{publications.bib}

\moderncvstyle{classic}                     
\moderncvcolor{red}                         
\name{Sparky}{McSparkface}

\begin{document}
\makecvtitle

\section{Publications}
\DeclareFieldFormat{labelnumberwidth}{C#1.}
\printbibliography[title = Refereed Conference Publications,keyword = conference]
\DeclareFieldFormat{labelnumberwidth}{J#1.}
\printbibliography[title = Journal Publications, keyword = journal,resetnumbers = true]
\DeclareFieldFormat{labelnumberwidth}{U#1.}
\printbibliography[title = Technical Reports and Preprints, keyword = unpub,resetnumbers = true]

I want to cite the conference using \texttt{cite} like this C1, but it does this: \cite{conf1}. 


\end{document}

Ich verwende die folgende BIB-Datei:

@misc{unpubA,
year = {2024},
author = {Albus Dumbeldore and Severus Snape},
title = {How to Discipline Young Wizards},
note= {In Submission},
keywords = {unpub}
}

@misc{unpubB,
year = {2024},
author = {Charles Xavier and Erik Lenscherr},
title = {Mind Over Matter: Empirical and Theoretical Analysis},
keywords = {unpub},
note = {In Submission}
}


@inproceedings{conf1,
    author    = {Tony Stark and Bruce Banner},
    title     = {Creating Embodied Artificial Intelligence: Risks and Lessons Learned},
    booktitle   = {In Proceedings of the 31st Conference on Artificial Intelligence},
    year      = {2024},
    keywords ={conference}
}



@article{jour1,
author = {Bruce Wayne and Clark Kent},
title = {Money, Power and Flight},
year = {2023},
issue_date = {June 2023},
volume = {1},
number = {1},
journal = {Transactions on Capitalism},
month = {jun},
articleno = {7},
keywords ={journal}
}

Antwort1

Für die korrekte Handhabung von Präfixen für Zitationsbezeichnungen sollten Sie refcontexts und deren labelprefixOption verwenden. Dies könnte wie folgt aussehen

\documentclass[10pt,roman,a4paper,sans]{moderncv}

\usepackage[maxbibnames=99,defernumbers=true,sorting=ydnt]{biblatex}
\nocite{*}

\moderncvstyle{classic}
\moderncvcolor{red}
\name{Sparky}{McSparkface}

\begin{filecontents}{\jobname.bib}
@misc{unpubA,
  year     = {2024},
  author   = {Albus Dumbeldore and Severus Snape},
  title    = {How to Discipline Young Wizards},
  note     = {In Submission},
  keywords = {unpub},
}
@misc{unpubB,
  year     = {2024},
  author   = {Charles Xavier and Erik Lenscherr},
  title    = {Mind Over Matter: Empirical and Theoretical Analysis},
  keywords = {unpub},
  note     = {In Submission},
}
@inproceedings{conf1,
  author    = {Tony Stark and Bruce Banner},
  title     = {Creating Embodied Artificial Intelligence: Risks and Lessons Learned},
  booktitle = {In Proceedings of the 31st Conference on Artificial Intelligence},
  year      = {2024},
  keywords  = {conference},
}
@article{jour1,
  author     = {Bruce Wayne and Clark Kent},
  title      = {Money, Power and Flight},
  year       = {2023},
  issue_date = {June 2023},
  volume     = {1},
  number     = {1},
  journal    = {Transactions on Capitalism},
  month      = {jun},
  articleno  = {7},
  keywords   = {journal},
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
\makecvtitle

\section{Publications}
\newrefcontext[labelprefix=C]
\printbibliography[title = Refereed Conference Publications,keyword = conference]
\newrefcontext[labelprefix=J]
\printbibliography[title = Journal Publications, keyword = journal,resetnumbers = true]
\newrefcontext[labelprefix=U]
\printbibliography[title = Technical Reports and Preprints, keyword = unpub,resetnumbers = true]

I want to cite the conference using \texttt{cite} like this C1, but it does this: \cite{conf1}.


\end{document}

Publikationsliste mit Zitaten im gewünschten Format

verwandte Informationen