尾註標題中的斜體文字(屬/種)會導致編譯失敗

尾註標題中的斜體文字(屬/種)會導致編譯失敗

我想用斜體智人在我的尾註中引用的參考文獻中。統一化效果很好。新增 \textit{} 編譯失敗。

最小無效測試.bib:

@online{sib_swiss_institute_of_bioinformatics_q8wz42_nodate,
    title = {Q8WZ42 ({TITIN}\_HUMAN) \textit{Homo sapiens} (Human)},
    url = {https://swissmodel.expasy.org/repository/uniprot/Q8WZ42},
    author = {{SIB Swiss Institute of Bioinformatics}},
    urldate = {2024-01-04},
}

如果參考標題欄位中未使用 \textit{} ,則效果很好:

\documentclass[a4paper]{article}
    
\usepackage[notes,notetype=endonly,isbn=false,doi=false,url=false,backend=biber]{biblatex-chicago}
\usepackage{endnotes}
    
\addbibresource{test.bib}
    
\begin{document}
    
    Lorem ipsum dolor\autocite{sib_swiss_institute_of_bioinformatics_q8wz42_nodate}
    
    \theendnotes
        
\end{document}

答案1

我建議使用enotez,但問題是一樣的;有一個解決方法可用,

\begin{filecontents*}[overwrite]{\jobname.bib}
@online{sib_swiss_institute_of_bioinformatics_q8wz42_nodate,
    title = {Q8WZ42 ({TITIN}\_HUMAN) \textit{Homo sapiens} (Human)},
    url = {https://swissmodel.expasy.org/repository/uniprot/Q8WZ42},
    author = {{SIB Swiss Institute of Bioinformatics}},
    urldate = {2024-01-04},
}
\end{filecontents*}

\documentclass[a4paper]{article}
    
\usepackage[
  notes,
  notetype=endonly,
  isbn=false,
  doi=false,
  url=false,
  backend=biber
]{biblatex-chicago}
\usepackage{enotez}
    
\addbibresource{\jobname.bib}

\NewCommandCopy{\latextextit}{\textit}
\RenewDocumentCommand{\textit}{m}{\latextextit{#1}}

\begin{document}
    
Lorem ipsum dolor\autocite{sib_swiss_institute_of_bioinformatics_q8wz42_nodate}
    
\printendnotes
        
\end{document}

在此輸入影像描述

但也endnotes有一些作品。

\begin{filecontents*}[overwrite]{\jobname.bib}
@online{sib_swiss_institute_of_bioinformatics_q8wz42_nodate,
    title = {Q8WZ42 ({TITIN}\_HUMAN) \textit{Homo sapiens} (Human)},
    url = {https://swissmodel.expasy.org/repository/uniprot/Q8WZ42},
    author = {{SIB Swiss Institute of Bioinformatics}},
    urldate = {2024-01-04},
}
\end{filecontents*}

\documentclass[a4paper]{article}
    
\usepackage[
  notes,
  notetype=endonly,
  isbn=false,
  doi=false,
  url=false,
  backend=biber
]{biblatex-chicago}
\usepackage{endnotes}
    
\addbibresource{\jobname.bib}

\NewCommandCopy{\latextextit}{\textit}
\RenewDocumentCommand{\textit}{m}{\latextextit{#1}}

\begin{document}
    
Lorem ipsum dolor\autocite{sib_swiss_institute_of_bioinformatics_q8wz42_nodate}
    
\theendnotes
        
\end{document}

然而,我總是得到

Package biblatex Warning: Please (re)run Biber on the file:
(biblatex)                paulend
(biblatex)                and rerun LaTeX afterwards.

在此輸入影像描述

相關內容