我正在尝试稍微定制我的引用,但不知道如何实现我的目标。
梅威瑟:
\documentclass[
fleqn,
fontsize=11pt,
paper=a4,
bibliography=totoc,listof=totoc,BCOR=25mm,
english,
DIV = 12
]{scrreprt}
\usepackage[english]{babel}
\usepackage[style=alphabetic, autocite=footnote]{biblatex}
\usepackage[babel]{csquotes}
\usepackage{filecontents}
\begin{filecontents}{mybib.bib}
@online{test,
url = {http://test.test},
urldate = {2018-12-15},
title = {Test Bib},
label = {TB}
}
\end{filecontents}
\bibliography{mybib}
\begin{document}
This is the first example\autocite{test}.\\
This is the second example\footfullcite{test}.
\printbibliography
\end{document}
我的目标是将括号中的第一个示例和第二个示例的“脚注”合并起来,以便打印(1 应该带下标):
1 [结核病]测试号码布. URL: http://test.test
(访问日期:2018/12/15)
我使用 LuaLaTex 进行编译,
最好的,皮质
答案1
您可以定义一个新\cite...
命令,\footfullcite
该命令还可以打印字母标签
\documentclass[
fontsize=11pt,
paper=a4,
bibliography=totoc,listof=totoc,BCOR=25mm,
english,
DIV = 12
]{scrreprt}
\usepackage{babel}
\usepackage[autostyle]{csquotes}
\usepackage[style=alphabetic, autocite=footnote]{biblatex}
\DeclareCiteCommand{\footfullcitewithalphalabel}[\mkbibfootnote]
{\usebibmacro{prenote}}
{\printtext[labelalphawidth]{%
\printfield{labelprefix}%
\printfield{labelalpha}%
\printfield{extraalpha}}%
\printunit{\addspace}%
\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@online{test,
url = {http://test.test},
urldate = {2018-12-15},
title = {Test Bib},
label = {TB}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
This is the first example\autocite{test}.
This is the second example\footfullcitewithalphalabel{test}.
\printbibliography
\end{document}
我个人认为alphabetic
bibstyle 并不适合脚注引用。与numeric
标签一样alphabetic
,标签旨在直接在文本中使用,这就是为什么它们相当简短和紧凑。事实上,由于每个脚注都以新行开始,因此当您使用脚注而不是内联时,您可能会浪费更多空间alphabetic
。