
턱받이 파일의 표준 인용을 사용하여 이미지를 인용하는 이미지 크레딧 페이지가 있습니다. 라이센스 정보를 보고하려면 '메모' 필드를 사용합니다. 때로는 이 필드가 비어 있고 '라는 단어가 표시되는 경우도 있습니다.메모'가 내 참조 끝에 인쇄되어 있습니다.
이 필드가 비어 있고 아무것도 인쇄하지 않는 것을 캡처할 수 있는 방법이 있습니까?
나는 여러 가지 변형을 시도했습니다
\if\relax\citefield{sibswissinstituteofbioinformaticsQ8WZ42TITIN_HUMANHomo}{note}\relax
\else
\citefield{sibswissinstituteofbioinformaticsQ8WZ42TITIN_HUMANHomo}{note}
\fi
다른 순열 등의 두 번째 매개변수로 \empty, {note}를 포함하면 운이 전혀 없고 다음에 어디로 가야할지 모릅니다.
MWE:
\begin{filecontents*}[overwrite]{\jobname.bib}
@artwork{galbraithStandardModelPhysics,
title = {Standard model of physics},
url = {https://texample.net/tikz/examples/model-physics/},
author = {Galbraith, David and Burgard, Carsten},
note = {Adapted slightly from original. Used under the terms of the Creative Commons {CC} {BY} Deed 2.5 License},
}
@artwork{sibswissinstituteofbioinformaticsQ8WZ42TITIN_HUMANHomo,
title = {Q8WZ42 ({TITIN}\_HUMAN) Homo sapiens (Human)},
url = {https://swissmodel.expasy.org/repository/uniprot/Q8WZ42},
abstract = {note: added a period in "Extra" because something is needed here for {\textbackslash}citeimage to work properly, and this lines up with the ... dots following},
author = {{SIB Swiss Institute of Bioinformatics}},
urldate = {2024-01-04},
}
\end{filecontents*}
\documentclass[11pt,letterpaper,oneside,table]{memoir}
\usepackage[backend=biber]{biblatex-chicago}
\usepackage{endnotes}
\addbibresource{\jobname.bib}
% custom image credits list; file extension .imc
\newlistof{imagecredits}{imc}{Image Credits}
\newcommand{\addtoimagecredits}{\thechapter.\arabic{figure}}
\DeclareDocumentCommand \citeimage {o m} {%
\IfNoValueTF{#1}{%
\addcontentsline{imc}{figure}{\protect\numberline{\addtoimagecredits}\citetitle{#2} by \citename{#2}{author}, retrieved from \citeurl{#2}. \citefield{#2}{note}}
}{%
\addcontentsline{imc}{figure}{\protect\numberline{\addtoimagecredits}[#1] \citetitle{#2} by \citename{#2}{author}, retrieved from \citeurl{#2}. \citefield{#2}{note}}
}%
}
\begin{document}
\citeimage{sibswissinstituteofbioinformaticsQ8WZ42TITIN_HUMANHomo}
\citeimage{galbraithStandardModelPhysics}
\citefield{sibswissinstituteofbioinformaticsQ8WZ42TITIN_HUMANHomo}{note}
\citefield{galbraithStandardModelPhysics}{note}
\imagecredits
\end{document}
그런데 - enotez를 포함한 다른 미주 패키지를 사용해 보았지만 이것이 제가 사용하는 다른 패키지와 잘 작동하지 않습니다. 그리고 그것이 차이를 가져올지 모르겠습니다.