\newcommand{\mycite}[2][]{\autocite{#2} #1}
我已经定义了允许我将上标引用与括号页码引用相结合的命令:
参见Sloterdijk 1(第 84-85 页)。 ✓
natbib
这恢复了within的行为biblatex
。现在我想知道我是否可以做一些聪明的事情:有没有办法让页码堆叠在上标的正下方?
这并没有给出正确的视觉效果(带有fixltx2e
):
Sloterdijk\supercite{sloterdijk2013change}\textsubscript{(pp. 84--85)}
下面实现了我在视觉上想到的效果,但它根本没有使用参考书目系统:
Sloterdijk$^1_{\mathrm{(pp.\ 84-85)}}$.
也许如果我使用实际的 postcite 参数而不是我自己的 hack,我可以做到这一点,但我还没有弄清楚如何让“真正的”postcite 与上标数字引用一起工作。
\documentclass{article}
\usepackage{filecontents}
\usepackage[hyperref=true,
articletitle=true,
url=true,
style=nature,
sorting=nyt,
autocite=superscript,
backref=false,
backend=biber]{biblatex}
\newcommand{\mycite}[2][]{\autocite{#2} #1}
\usepackage{hyperref}
\begin{filecontents}{references.bib}
@book{sloterdijk2013change,
title={You Must Change Your Life},
author={Sloterdijk, P.},
publisher={Polity Press},
year={2013}
}
\end{filecontents}
\bibliography{references.bib}
\begin{document}
Cf. Sloterdijk\mycite[(pp. 84--85)]{sloterdijk2013change}.
\printbibliography
\end{document}
答案1
作为一个丑陋的建议,您可以重新定义\supercite
通常不使用的postnote
字段:
\newbibmacro*{postnotesub}{%
\iffieldundef{postnote}%
{}
{\printfield{postnote}}%
}
\newrobustcmd{\mkbibsubscript}[1]{%
\unspace\allowhyphens\textsubscript{%
\begingroup
\protected\long\def\mkbibsuperscript##1{%
\blx@warning{Nested subscript}%
\mkbibbrackets{##1}}%
\mkbibparens{#1}\endgroup}}
\DeclareCiteCommand{\supercite}[]
{\usebibmacro{cite:init}%
\let\multicitedelim=\supercitedelim%
\iffieldundef{prenote}
{}
{\BibliographyWarning{Ignoring prenote argument}}
}
{%
\iffieldundef{postnote}%
{\mkbibsuperscript{\usebibmacro{citeindex}\usebibmacro{cite:comp}}}%
{%
\mkbibsuperscript{\rlap{\usebibmacro{citeindex}\usebibmacro{cite:comp}}}%
}%
}%
{}
{%
\iffieldundef{postnote}%
{}%
{%
\mkbibsubscript{\usebibmacro{postnotesub}}%
}%
\usebibmacro{cite:dump}%
}
与您的示例相关\autocite[84--85]{sloterdijk2013change}
将产生:
fixltx2e
这是我加载和更改\bibliography
的完整 MWE \addbibresource
(有关更多信息,请参阅文档)
\documentclass{article}
\usepackage{filecontents}
\usepackage[hyperref=true,
articletitle=true,
url=true,
style=nature,
sorting=nyt,
autocite=superscript,
backref=false,
backend=biber]{biblatex}
\newcommand{\mycite}[2][]{\rlap{\autocite{#2}}\textsubscript{#1}}
\usepackage{fixltx2e}
\usepackage{hyperref}
\begin{filecontents}{references.bib}
@book{sloterdijk2013change,
title={You Must Change Your Life},
author={Sloterdijk, P.},
publisher={Polity Press},
year={2013}
}
\end{filecontents}
\addbibresource{references.bib}
\newbibmacro*{postnotesub}{%
\iffieldundef{postnote}%
{}
{\printfield{postnote}}%
}
\newrobustcmd{\mkbibsubscript}[1]{%
\unspace\allowhyphens\textsubscript{%
\begingroup
\protected\long\def\mkbibsuperscript##1{%
\blx@warning{Nested subscript}%
\mkbibbrackets{##1}}%
\mkbibparens{#1}\endgroup}}
\DeclareCiteCommand{\supercite}[]
{\usebibmacro{cite:init}%
\let\multicitedelim=\supercitedelim%
\iffieldundef{prenote}
{}
{\BibliographyWarning{Ignoring prenote argument}}
}
{%
\iffieldundef{postnote}%
{\mkbibsuperscript{\usebibmacro{citeindex}\usebibmacro{cite:comp}}}%
{%
\mkbibsuperscript{\rlap{\usebibmacro{citeindex}\usebibmacro{cite:comp}}}%
}%
}%
{}
{%
\iffieldundef{postnote}%
{}%
{%
\mkbibsubscript{\usebibmacro{postnotesub}}%
}%
\usebibmacro{cite:dump}%
}
\begin{document}
Cf. Sloterdijk\autocite[84--85]{sloterdijk2013change}
\printbibliography
\end{document}
\usepackage[inline]{enumitem}
\usepackage[table]{xcolor}
\definecolor{orange}{HTML}{FFC296}
\begin{document}
\SetLabelAlign{rightbox}{\hss\llap{#1\quad}}
\setlist[description,1]{align=rightbox,labelsep=0pt,leftmargin=0pt}
\section{Student 93b427156c}
\begin{description}
\item[number] 93b4s27156c
\item[name] Note that this analysis of a formative as a pair of sets of features is necessary
to impose an interpretation on an important distinction in language use.
\end{description}
\end{document}