modernCV의 다양한 인용 스타일

modernCV의 다양한 인용 스타일

내 이력서에 다양한 유형의 출판물이 있는데 모든 출판물에 대해 다른 형식을 사용하고 싶습니다. printbibliography 패키지를 사용하여 이 작업을 수행할 수 있지만 인용 자체는 동일해 보입니다.

원하는 동작은 컨퍼런스 출판물을 C1, C2, C3...으로 나열하고 저널을 J1, J2, J3...으로 나열하는 것입니다. 그런 다음 인용할 때 [C1], [J2]로 표시하고 싶습니다. ] 등을 시도했지만 작동하지 않습니다.

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}

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

답변1

refcontext인용 라벨의 접두사를 적절하게 처리하려면 s와 해당 옵션을 사용하는 것이 좋습니다 labelprefix. 이는 다음과 같이 보일 수 있습니다.

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

원하는 형식의 인용이 포함된 출판물 목록

관련 정보