如何格式化特定類型的引文 (notecite) 以使用比預設 (12pt) 更小的字體列印?

如何格式化特定類型的引文 (notecite) 以使用比預設 (12pt) 更小的字體列印?

我在我的文本中使用了很多縮寫的引文註釋,並且為了獲得它們的列表,我使用 biblatex 並使用+\notecite樣式的速記縮寫。進展順利,但我希望引文(或技術上的引文前註和後注)較小,因為在文本中有很多引文,它們往往會壓倒實際的示例和文本。我想要的是定義看起來更小的方法,如下例所示: ABBREVIATIONexample.code\notecite注意舉出例子

我在最小的工作範例中使用了\footnotesize每個範例來獲得我想要的效果,但是對每個範例使用它會變得非常乏味,因為這些縮寫的引文註釋數量有數百個。\notecite這是一個最小的工作範例:

\documentclass[12pt]{book}

\begin{filecontents}{citelist.bib}

@book{REF,
    shorthand = {REF},
    pagination={none},
    year={1986},
    title = {Ensk-íslensk skólaorðabók},
    editor = {{Jón Skaptason}},
    publisher = {Örn og Örlygur},
    location = {Reykjavík}
    }  

@book{LUC,
    shorthand = {LUC},
    pagination={none},
    address = {Cambridge},
    year = {1997},
    booktitle = {Color Categories in Thought and Language},
    author = {John A. Lucy},
    location = {Cambridge}
    }
}

\end{filecontents}

\usepackage[LY1,T1]{fontenc} 
\usepackage[icelandic]{babel}
\usepackage{lmodern}


\usepackage[sortlocale=auto,backend=biber,style=authoryear,sorting=nyt,abbreviate=true]{biblatex}
\addbibresource{citelist.bib}


\begin{document}

normal: \\

For example \notecite[REF][f.1249.54]{REF}, (and also \notecite[LUC][f.16.235]{LUC}). \\

With footnotesize: \\

For example {\footnotesize\notecite[REF][f.1249.54]{REF}}, (and also {\footnotesize\notecite[LUC][f.16.235]{LUC}}). 

\end{document}

答案1

您可以\notecitebiblatex.def(二。 2218-2223在 v3.15a 中)。為了使該命令的輸出更小,我們可以添加一個包裝命令,其中包含將字體大小設為 的可選參數\footnotesize。其他引用命令不受影響。

\documentclass[12pt]{book}
\usepackage[LY1,T1]{fontenc} 
\usepackage[icelandic]{babel}
\usepackage{lmodern}


\usepackage[backend=biber, style=authoryear, abbreviate=true]{biblatex}

\newcommand*{\mkbibfootnotesize}[1]{{\footnotesize #1}}

\DeclareCiteCommand{\notecite}[\mkbibfootnotesize]
  {\printfield{prenote}%
   \setunit*{\printdelim{prenotedelim}}}
  {\nocite{\thefield{entrykey}}}
  {}
  {\printfield{postnote}}

\begin{filecontents}{\jobname.bib}
@book{REF,
  shorthand  = {REF},
  pagination = {none},
  year       = {1986},
  title      = {Ensk-íslensk skólaorðabók},
  editor     = {{Jón Skaptason}},
  publisher  = {Örn og Örlygur},
  location   = {Reykjavík},
}  
@book{LUC,
  shorthand  = {LUC},
  pagination = {none},
  address    = {Cambridge},
  year       = {1997},
  booktitle  = {Color Categories in Thought and Language},
  author     = {John A. Lucy},
  location   = {Cambridge},
}
\end{filecontents}
\addbibresource{\jobname.bib}


\begin{document}
For example \notecite[REF][f.1249.54]{REF}, (and also \notecite[LUC][f.16.235]{LUC})

With footnotesize:

For example {\footnotesize\notecite[REF][f.1249.54]{REF}}, (and also {\footnotesize\notecite[LUC][f.16.235]{LUC}}). 

\end{document}

註腳中的註釋大小

相關內容