Footcite를 사용할 때 반복되는 참고 문헌 항목을 결합하는 방법은 무엇입니까?
Dec 10 2020
동일한 출처를 연속적으로 여러 번 인용하면 동일한 항목으로 구성된 참고 문헌 목록이 생성됩니다.
- 저자, 제목
- 저자, 제목
\begin{filecontents}{database.bib}
@Misc{key,
author = {author},
title = {title},
}
\end{filecontents}
\documentclass{article}
\usepackage[autocite=footnote,style=authortitle]{biblatex}
\bibliography{database.bib}
\begin{document}
\begin{itemize}
\item one point\autocite{key}
\item another one\autocite{key}
\end{itemize}
\end{document}
각주의 목록을 다음과 같이 압축하려면 어떻게해야합니까?
1,2 저자, 제목
답변
1 R.N Dec 18 2020 at 21:36
각주 목록을 압축하지 않고 페이지 당 한 번만 각주를 인쇄하는 솔루션을 제안합니다.
아이디어는라는 인용 명령을 재정의하는 것입니다 \footcite
. 그런 다음 autocite
biblatex 의 옵션에 동의하지만 biblatex.cfg
이 질문 에 따라 파일에 넣고 이름을 myfootnote
.
그리고는 \footcite
호출 될 때 항상 \footnotemark
키의 레이블 번호를 사용하여 생성합니다 . 그런 다음,이에 따라 질문 이 경우, \footcite
이 페이지의 처음이라고, 그것도를 생성 \footnotetext
.
결과 MWE는 다음과 같습니다.
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{biblatex.cfg}
\ProvidesFile{biblatex.cfg}
\DeclareCiteCommand{\footcite}%
{\usebibmacro{prenote}}%
{%
% \renewcommand{\thefootnote}{\arabic{footnote}}% Switch to footnote with numbers
\footnotemark[\thefield{labelnumber}]% Add the mark corresponding to the number entry%
\iffirstonpage{
\footnotetext[\thefield{labelnumber}]{% Add the footnote text with same number entry.
%\printfield{labelnumber}
\printnames{labelname}% The name
\setunit{\printdelim{nametitledelim}}% separator
\printfield[citetitle]{labeltitle}% The title
\setunit{\addperiod\space}% separator
\printfield{year}% The year
}
}{}% if not first on page
% \renewcommand{\thefootnote}{\alph{footnote}}% Switch back to footnote with letters.
}%
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareAutoCiteCommand{myfootnote}{\footcite}{\footcite}
\endinput
\end{filecontents}
\begin{filecontents}{database.bib}
@Misc{key,
author = {author},
title = {title},
}
\end{filecontents}
\usepackage[autocite=myfootnote, style=numeric, pagetracker=true, backend=biber]{biblatex}
\bibliography{database.bib}
\begin{document}
\begin{itemize}
\item one point\autocite{key}
\item another one\autocite{key}
\end{itemize}
\newpage
\begin{itemize}
\item one point\autocite{key}
\item another one\autocite{key}
\end{itemize}
\end{document}
내가하는 방법을 모르는 한 가지 가능한 개선은이 해킹이 다른 턱받이 스타일과 호환되도록 만드는 것입니다. 실제로 누군가 스타일을 alphabetic
예를 들어 전환 하면 컴파일 오류가 발생합니다. missing number
; 이후 footnotemark
수 있지만, 주어진 텍스트를받지 않습니다 \thefield{labelnumber}
.