Выделение текста курсивом (род/вид) в заголовке концевой сноски приводит к сбою компиляции

Выделение текста курсивом (род/вид) в заголовке концевой сноски приводит к сбою компиляции

Я хотел бы выделить курсивомHomo sapiensв цитируемой ссылке в моих примечаниях. Unitalicized работает отлично. Добавьте \textit{} и компиляция даст сбой.

Минимальный нерабочий test.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.

введите описание изображения здесь

Связанный контент