我对 Latex 还不太熟悉,我正在尝试使用芝加哥风格的引文撰写文档。我使用了 Chicago-Biblatex 软件包来尝试实现这一点。
目前,一切运行良好,我正在对每个脚注使用 \autocite。但是,我有两个脚注引用了相同的引文,第一个脚注是完整引文,第二个脚注是缩写脚注。
缩写脚注为蓝色,因为它在 PDF 中可点击(带您到第一个脚注)。我想将此缩写脚注设为黑色和非斜体,并尽可能删除超链接。
这是我想制作的简短引文,将其设为普通文本(非斜体),并设为黑色
代码:
% !TEX TS–program = pdflatexmk
\documentclass[a4paper,12pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage{ftnxtra}
\usepackage{xcolor}
\hypersetup{
colorlinks,
linkcolor={red!50!black},
citecolor={blue!50!black},
urlcolor={blue!80!black}
}
\newcommand*{\footnotemarkcolor}{black}
\makeatletter
\renewcommand*{\@makefnmark}{\hbox{\@textsuperscript{%
\color{\footnotemarkcolor}\normalfont\@thefnmark}}}
\makeatother
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[notes,backend=biber]{biblatex-chicago}
\bibliography{mybib.bib}
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,
unpublished,techreport,misc,book]
{title}{\mkbibquote{#1}}
\begin{document}
\section{Part 1}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus at metus id ante hendrerit bibendum eget eu sapien.\autocite{citation1} Donec elit odio, placerat luctus turpis at, lobortis mollis massa.\autocite{citation2}
\section{Part 2}
Phasellus volutpat non urna eget imperdiet. Curabitur commodo eros sit amet odio facilisis efficitur. Nulla varius efficitur viverra. Morbi bibendum libero sit amet est euismod dignissim ut vitae odio. Sed sodales ante neque, eu condimentum velit varius ut. Donec pretium ullamcorper tincidunt.\autocite{citation1}
\printbibliography
\end{document}
mybib.bib 代码:
@misc{citation1,
author = {Wikipedia},
title = {Iniesta (footballer, born 1992)},
month = 01,
year = 2020,
url = {https://en.wikipedia.org/w/index.php?title=Iniesta_(footballer,_born_1992)&oldid=983077102},
urldate = {2019-02-05},
note = "Wikipedia, The Free Encyclopedia"
}
@misc{citation2,
author = {Wikipedia},
title = {Messi (footballer, born 1987)},
month = 02,
year = 2020,
url = {https://en.wikipedia.org/wiki/Lionel_Messi},
urldate = {2019-02-05},
note = "Wikipedia, The Free Encyclopedia"
}
答案1
用于这些简短引用的字段格式称为,因此我只是使用了您为citetitle
设置的相同格式,但您可以根据需要进行更改。title
citetitle
biblatex-chicago
我们可以通过禁用宏来禁用引用产生的链接\cmshyper
。(虽然我不会这么做,但这些链接真的很方便。)
\documentclass[a4paper,12pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{ftnxtra}
\usepackage{xcolor}
\usepackage{csquotes}
\usepackage[notes,backend=biber]{biblatex-chicago}
\usepackage{hyperref}
\hypersetup{
colorlinks,
linkcolor={red!50!black},
citecolor={blue!50!black},
urlcolor={blue!80!black}
}
\newcommand*{\footnotemarkcolor}{black}
\makeatletter
\renewcommand*{\@makefnmark}{\hbox{\@textsuperscript{%
\color{\footnotemarkcolor}\normalfont\@thefnmark}}}
\makeatother
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,
unpublished,techreport,misc,book]
{title}{\mkbibquote{#1}}
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,
unpublished,techreport,misc,book]
{citetitle}{\mkbibquote{#1}}
\renewrobustcmd*{\cmshyper}[1]{#1}%
\begin{filecontents}{\jobname.bib}
@misc{citation1,
author = {Wikipedia},
title = {Iniesta (footballer, born 1992)},
month = 01,
year = 2020,
url = {https://en.wikipedia.org/w/index.php?title=Iniesta_(footballer,_born_1992)&oldid=983077102},
urldate = {2019-02-05},
note = "Wikipedia, The Free Encyclopedia"
}
@misc{citation2,
author = {Wikipedia},
title = {Messi (footballer, born 1987)},
month = 02,
year = 2020,
url = {https://en.wikipedia.org/wiki/Lionel_Messi},
urldate = {2019-02-05},
note = "Wikipedia, The Free Encyclopedia"
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\section{Part 1}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus at metus id ante hendrerit bibendum eget eu sapien.\autocite{citation1} Donec elit odio, placerat luctus turpis at, lobortis mollis massa.\autocite{citation2}
\section{Part 2}
Phasellus volutpat non urna eget imperdiet. Curabitur commodo eros sit amet odio facilisis efficitur. Nulla varius efficitur viverra. Morbi bibendum libero sit amet est euismod dignissim ut vitae odio. Sed sodales ante neque, eu condimentum velit varius ut. Donec pretium ullamcorper tincidunt.\autocite{citation1}
\printbibliography
\end{document}