我想将引文作为脚注,为此我使用\footfullcite
。对于正文中的引文,我使用\cite
。我刚刚发现style=authoryear-icomp
可以ibidem
替换相同的引文。但它似乎不起作用。
我希望在注释、authoryear
文内引用和ibidem
相同引用中有完整的引用。
我遗漏了什么或者使用错误了什么?
以下是我的序言:
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[
bibencoding=utf-8,
natbib=true,
style=authoryear-icomp,
backend=biber,
url=false,
doi=false,
isbn=false,
eprint=false,
]{biblatex}
\addbibresource{/home/enrico/Università/uni_bib.bib}
\usepackage[bottom]{footmisc}
\usepackage[inline]{enumitem}
\usepackage{hyperref}
\usepackage{array}
\usepackage{booktabs}
\usepackage[flushleft]{threeparttable}
\usepackage{amsmath}
\usepackage{svg}
\usepackage{graphicx}
\graphicspath{ {images/} }
\usepackage{tabularx}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry}
\usepackage[final]{microtype}
\usepackage{setspace}
\onehalfspacing
答案1
我想这是你喜欢的:
\begin{filecontents}[overwrite]{uni_bib.bib}
@article{author,
author = "A. Author",
title = "A Title",
journal = "A Journal",
volume = "1",
number = "2",
year = "2023"
}
@article{buthor,
author = "B. Buthor",
title = "B Title",
journal = "B Journal",
volume = "3",
number = "4",
year = "2022"
}
@article{cuthor,
author = "C. Cuthor",
title = "C Title",
journal = "C Journal",
volume = "4",
number = "5",
year = "2021"
}
\end{filecontents}
\documentclass[12pt]{report}
%\usepackage[utf8]{inputenc} no more needed
\usepackage[T1]{fontenc}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry}
\usepackage[bottom]{footmisc}
\usepackage[inline]{enumitem}
\usepackage{array}
\usepackage{booktabs}
\usepackage[flushleft]{threeparttable}
\usepackage{amsmath}
\usepackage{svg}
\usepackage{graphicx}
\graphicspath{ {images/} }
\usepackage{tabularx}
\usepackage{blindtext}
\usepackage[final]{microtype}
\usepackage{setspace}
\onehalfspacing
%\PassOptionsToPackage{ <---- Why this?
\usepackage[
bibencoding=utf-8,
natbib=true,
style=authoryear-ibid,
backend=biber,
url=false,
doi=false,
isbn=false,
eprint=false,
]{biblatex}
\DeclareCiteCommand{\footfullcite}[\mkbibfootnote]
{\usebibmacro{prenote}}
{\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
{\usebibmacro{cite:ibid}}
{\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\cite}
{\citetrackerfalse\usebibmacro{prenote}}
{\usebibmacro{cite}}
{\multicitedelim}
{\usebibmacro{postnote}\citetrackertrue}
\addbibresource{uni_bib.bib}
\usepackage{hyperref}% better loaded at last
\nocite{*}
\begin{document}
cite: \cite{author}
cite again: \cite{author}
foot full cite: \footfullcite{buthor}
foot full cite again: \footfullcite{buthor}
cite: \cite{cuthor}
foot full cite first: \footfullcite{cuthor}
foot full cite second: \footfullcite{cuthor}
cite: \cite{author}
foot full cite third: \footfullcite{cuthor}
foot full cite fouth: \footfullcite{cuthor}
\newpage
cite: \cite{author}
cite again: \cite{author}
foot full cite: \footfullcite{buthor}
foot full cite again: \footfullcite{buthor}
\printbibliography
\end{document}
第 1 页:
第2页:
参考书目: