BibLateX-将速记放在引用字符串的引号内

BibLateX-将速记放在引用字符串的引号内

我在论文中使用biblatex-chicago。由于我需要引用大量法律法规,因此我使用“速记”条目来缩写某些法案(例如,第 17.336 号知识产权法,以下简称“IPRA”)。

问题是我只想在第一个引用中将简写放在引号“IPRA”内,但我不知道该怎么做。

我的第一个近似方法是编辑“citeas”字符串。事实上,我只是为了修复西班牙语的速记简介而进行的编辑

\DefineBibliographyStrings{spanish}{citedas = {en adelante}}

为了有引号,我必须修改这个字符串吗?(例如,直接修改为“IPRA”)

编辑:这是 MWE

\documentclass[a4paper]{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{libertine}
\usepackage[spanish]{babel}
\usepackage[libertine]{newtxmath}
\usepackage{csquotes}
\usepackage[notes,backend=biber]{biblatex-chicago}
\usepackage{filecontents}
\begin{filecontents}{sample.bib}
@misc{LPC,
address = {},
author = {{Congreso Nacional}},
number = {4},
pages = {1--12},
publisher = {Diario Oficial},
shorthand = {LPC},
title = {{Ley 19.496 sobre Protección a los Derechos de los Consumidores}},
year = {1997}
}
\end{filecontents}
\bibliography{sample}
\DefineBibliographyStrings{spanish}{citedas = {en adelante}}
\begin{document}
\title{Medios de Pago}
\author{\textsc{Víctor Andrade R}.\thanks{J.D. Universidad de Chile}}
\maketitle
\begin{abstract}
Esto es una prueba

\end{abstract}
\section{Introducción}
Según señala  \autocite{LPC}


\printbibliography[nottype=misc, title =Referencias]
\printbibliography[type=misc,title=Normas Citadas]

\end{document}

问候,

答案1

biblatexte-chicago相关的宏是cms:shorthandintro

\DeclareFieldFormat{shorthandintro}{\mkbibquote{#1\isdot}}

\renewbibmacro*{cms:shorthandintro}{% For changing the citedas phrase
  \iffieldundef{shorthand}%
  {}%
  {\iffieldundef{shorthandintro}%
    {%\addspace%\setunit{\addspace}% Fix for after postnote field
      \printtext[parens]{%
        \bibstring{citedas}\space%
        \printfield[shorthandintro]{shorthand}}}%
    {%\addspace%\setunit{\addspace}% Ditto
      \printfield{shorthandintro}}}}

对于biblatex的标准样式(例如verbose-family),我们需要修改shorthandintro

\DeclareFieldFormat{shorthandintro}{\mkbibquote{#1\isdot}}

\newbibmacro*{shorthandintro}{%
  \iffieldundef{shorthandintro}
    {\iffieldundef{shorthand}
       {}
       {\setunit{\addspace}%
        \printtext[parens]{%
          \bibstring{citedas}\space
          \printfield[shorthandintro]{shorthand}}}}
    {\setunit{\addspace}%
     \printtext[parens]{\printfield{shorthandintro}}}}

相关内容