논문 템플릿의 참조 스타일 수정

논문 템플릿의 참조 스타일 수정

참조 스타일을 수정하려고 합니다.캠브리지 공학 논문 템플릿지도교수의 요청에 따라 AIP와 같은 스타일로 참고문헌을 참고문헌에 표시합니다. 템플릿의 기본 참고문헌 옵션은 다음과 같습니다.

\RequirePackage[backend=biber, style=numeric-comp, citestyle=numeric, sorting=nty, natbib=True]{biblatex}
\addbibresource{References/references}

\begin{document}
...
\bibliographystyle{unsrt}
\bibliography
 
...
\end{document}

현재 이는 논문 제목은 있지만 저널 이름은 없는 참고 자료를 생성합니다(AIP 스타일과의 차이점).

style=numeric-comp로 변경해 보았 style=phys으나 참고문헌에는 영향을 미치지 않습니다.

위의 내용을 다음과 같이 변경해 보았습니다.

\usepackage[backend=biber,style=phys]{biblatex}
\addbibresource{References/references.bib}

\begin{document}
...
\printbibliography
...
\end{document}

그러나 첫 번째 컴파일 실행에서는 내 문서가 참고문헌 없이 컴파일되고 텍스트 내 모든 인용이 숫자 참조나 인용 키가 아닌 인용 키(예: [ji2009])로 표시됩니다.??, 그리고 두 번째 컴파일 실행에서 PDF 생성에 실패합니다. (나는 overleaf를 사용하고 있지만 Texmaker를 사용하여 별도의 biber 및 pdflatex 컴파일을 시도했을 때 마찬가지로 컴파일에 실패했습니다.) 참고문헌 키가 'name2009a' 형식인 경우에는 실패한 것처럼 보였지만(예를 들어 'li2019'로는 괜찮지만 'li2009'와 'li2009a'가 모두 포함되면 실패함) 우연일 수도 있습니다.

phys옵션을 사용하거나 참고문헌에 표시된 필드를 수정하도록 이를 변경할 수 있는 방법이 있습니까 ?

아래 내용은 .cls 파일에도 포함되어 있습니다. custombib클래스 옵션에서 사용하고 있습니다.

% ******************************* Bibliography *********************************
\newif\ifsetBib\setBibfalse                   % Custom Bibliography = true/false
\newif\ifsetBiBLaTeX\setBiBLaTeXfalse         % BiBLaTeX = True / False

\newif\ifPHD@biblatex\PHD@biblatexfalse       % BiBLaTeX
\DeclareOption{biblatex}{
  \ifsetBib
    \ClassWarning{PhDThesisPSnPDF}{Bibliography selection conflict: A
      bibliography style aleady specified. Please check the document class
      options in case you have defined two bibliography styles.}
  \else
    \PHD@biblatextrue
  \fi
}

\newif\ifPHD@authoryear\PHD@authoryearfalse   % Author-Year citation
\DeclareOption{authoryear}{
  \ifsetBib
    \ClassWarning{PhDThesisPSnPDF}{Bibliography selection conflict: A
      bibliography style aleady specified. Please check the document class
      options in case you have defined two bibliography styles.}
  \else
    \PHD@authoryeartrue
    \setBibtrue
  \fi
}

\newif\ifPHD@numbered\PHD@numberedfalse       % Numbered citiation
\DeclareOption{numbered}{
  \ifsetBib
    \ClassWarning{PhDThesisPSnPDF}{Bibliography selection conflict: A
      bibliography style aleady specified. Please check the document class
      options in case you have defined two bibliography styles.}
  \else
    \PHD@numberedtrue
    \setBibtrue
  \fi
}

\newif\ifuseCustomBib\useCustomBibfalse     % Custom Bibliography
\DeclareOption{custombib}{
  \ifsetBib
    \ClassWarning{PhDThesisPSnPDF}{Bibliography selection conflict: A
      bibliography style aleady specified. Please check the document class
      options in case you have defined two bibliography styles.}
  \else
    \ifPHD@biblatex
        \ClassWarning{PhDThesisPSnPDF}{Bibliography selection conflict: A
          bibliography style aleady specified. Please check the document class
          options in case you have defined two bibliography styles.}
    \else
      \useCustomBibtrue
      \setBibtrue
    \fi
  \fi
}

답변1

마침내 컴파일 문제의 근본 원인을 찾았습니다. 나중에 다른 사람이 비슷한 것을 검색할 경우를 대비해 여기에 추가하세요!

CUED(Cambridge University Eng Dept) 논문 템플릿 .cls 파일에는 참고문헌과 참고문헌을 다루는 두 개의 섹션이 있습니다. 모든 템플릿 기본값을 제거하고 자체 설정으로 교체해야 하는 경우 제거하거나 주석 처리하세요.둘 다.cls 파일의 하위 섹션!

기본 참조를 AIP/ phys스타일 참조로 바꾸려면 다음을 수행하십시오.

  1. 제거됨둘 다.cls 파일의 참고문헌/참고문헌과 관련된 하위 섹션

  2. 프리앰블 파일에서 참조에 대한 모든 설정을 제거하고 다음으로 대체했습니다.\usepackage[backend=biber,style=phys]{biblatex} \addbibresource{References/references.bib}

  3. 다음 클래스 설정만 유지됩니다. \documentclass[a4paper,12pt,times]{PhDThesisPSnPDF}

다른 참조(특히 URL이 포함된 참조)가 실패하게 만드는 문제는 @online내가 설정한 사용자 정의 명령과 관련이 있습니다. 방정식 이외의 첨자를 매우 자주 사용하므로 초기에 다음 단축키를 설정했습니다.

\let\sb\textsubscript

\sb참고문헌/URL 형식/을 인쇄하는 역할을 하는 명령이 있는 것으로 나타났습니다.무엇참조 에서 @online.

을(를) 제거하기 위해 모든 하위 문서에서 찾기 및 바꾸기 검색을 많이 한 후 \sb마침내 모든 것이 원활하게 작동했습니다. 문제를 재구성하고 힘들게 검색하는 데 몇 주가 걸렸으며 이것이 내 사용자 정의 바로가기와 매우 관련이 있다는 것을 깨달았지만 이것이 누군가의 시간을 절약할 수 있기를 바랍니다!

(문맥 상 기본 템플릿 설정에서 스타일로 변경한 이유는 phys내 상사의 사양이었습니다)

관련 정보