author
특정 명령에서 biblatex 항목의 필드를 삭제하고 싶지만 \cite
(작성자가 전혀 없는 것처럼), 여전히 도서 목록에 나열되어 있습니다.
수치가 내 원본 작품이고 인용 자체에서 내 이름을 반복하는 것이 어색하기 때문에 이것이 필요합니다. 그래서 기본적으로:
\begin{figure}[!hbt]
\centering
\includegraphics[width=300px]{image.jpg}
\caption{\cite[]{the-biblatex-entry}} % *shouldn't* produce my name, only title, date, etc...
\end{figure}
\printbibliography % *should* produce my name, along with title, date, etc...
이외의 다른 명령을 사용해도 괜찮습니다 \cite
. \citenoauthor
만드는 방법만 알면 명령을 갖고 싶습니다 .
편집: 여기 MWE가 있습니다
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{example.bib}
@book{somebook,
title = {Book's title},
author = {Author, Some},
location = {The City},
publisher = {Publisher},
date = {2005},
}
\end{filecontents}
\usepackage[style=verbose,backend=bibtex]{biblatex} %backend tells biblatex what you will be using to process the bibliography file
\bibliography{example}
\begin{document}
\cite{somebook} % I'd like this to not include the author, only the other fields
\printbibliography % All the fields, please
\end{document}
답변1
문제 \caption
는 를 현명하게 사용하여 해결 하거나 ' ( 기본적으로 요구 및 로드 )를 \protect
사용하여 자신만의 '강력한' 명령을 정의할 수 있습니다 . 그건:etoolbox
\newrobustcmd
biblatex
etoolbox
\caption{%
\AtNextCitekey{\protect\clearname{author}}%
\cite{somebook}}
또는:
\newrobustcmd{\hlcite}[1]{%
\AtNextCitekey{\clearname{author}}%
\cite{#1}}
완전한 예:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{example.bib}
@book{somebook,
title = {Book's title},
author = {Author, Some},
location = {The City},
publisher = {Publisher},
date = {2005},
}
\end{filecontents}
\usepackage[style=verbose,backend=bibtex]{biblatex}
%\bibliography{example}% <-- deprecated
\addbibresource{example.bib}
\usepackage{caption}
\newrobustcmd{\hlcite}[1]{%
\AtNextCitekey{\clearname{author}}%
\cite{#1}}
\begin{document}
\begin{figure}
\rule{3cm}{3cm}
\caption{%
\AtNextCitekey{\protect\clearname{author}}%
\cite{somebook}}
\end{figure}
\begin{figure}
\rule{3cm}{3cm}
\caption{\hlcite{somebook}}
\end{figure}
\printbibliography
\end{document}