如何得到年份周围的方括号?

如何得到年份周围的方括号?

我有一个参考书目条目:

@book{rvsheppard,
    title={R v Sheppard and Whittle},
    year={2010},
    publisher={EWCA Crim 65}
}

我引用一下:

\textcite{rvsheppard}

这些给出:

R v Sheppard and Whittle (2010). EWCA Crim 65.

R v Sheppard and Whittle (2010)

对于我的大部分参考文献来说这都是可以的,但对于这些(涉及法律案件)来说则不行。

我想:

R v Sheppard and Whittle [2010] EWCA Crim 65.

R v Sheppard and Whittle [2010] EWCA Crim 65.

任何帮助深表感谢。

代码为:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{bibentry} 
\usepackage[style=authoryear-ibid,firstinits,backend=biber,sorting=nyt,natbib=true, maxbibnames=99,maxcitenames=2, uniquelist=false, uniquename=false]{biblatex}
\DeclareNameAlias{sortname}{family-given}
\addbibresource{refs.bib} %Imports bibliography file
\title{min}

\date{November 2017}

\begin{document}

\maketitle

\section{Introduction}
\textcite{rvsheppard}
\addcontentsline{toc}{chapter}{Bibliography}

% % Actually generates your bibliography.
% \bibliography{example}
\printbibliography
\end{document
}

答案1

biblatex标准格式实际上并没有为法律引用提供全面的支持。鉴于问题的复杂性以及法律体系的多样性,世界各地的合法引用实践标准风格不支持英国(英语?)系统的具体特点,这并不太令人惊讶。

看看我的回答的第一部分对于法律以外的学科,使用 Biblatex/Biber 处理法律资源的最佳做法是什么?这里我列出了几种对法律引用有适当支持的风格。

您可以将类型@jurisdiction用于案例。使用biblatex-ext您只能更改该类型的年份周围的括号。

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[style=ext-authoryear-ibid, giveninits=true, backend=biber,
            maxbibnames=99, maxcitenames=2, uniquelist=false, uniquename=false]{biblatex}
\DeclareNameAlias{sortname}{family-given}

% biblatex-ext feature: Format of the labelyear in the bibliography
\DeclareFieldFormat{biblabeldate}{%
  \ifentrytype{jurisdiction}
    {\mkbibbrackets{#1}\nopunct}
    {\mkbibparens{#1}}}

% biblatex-ext feature: brackets around the year for \textcite
\DeclareInnerCiteDelims{textcite}
  {\ifentrytype{jurisdiction}{\bibopenbracket}{\bibopenparen}}
  {\ifentrytype{jurisdiction}{\bibclosebracket}{\bibcloseparen}}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@jurisdiction{rvsheppard,
  title        = {R v Sheppard and Whittle},
  date         = {2010},
  howpublished = {EWCA Crim 65}
}
\end{filecontents}

\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}

\begin{document}
\textcite{rvsheppard} but \textcite{sigfridsson}

\printbibliography
\end{document}

在此处输入图片描述

答案2

book不会直接这么做。

无需重新编程样式(但知道如何做是好的):

正如评论中所提到的,对于文本中少量的案例材料,请将jurisdictionbib 条目类型与oxnotesbiblatex 样式之一结合使用。

将整个中等中性引用放入该number字段中。

@jurisdiction{rvsheppard2,
  title        = {R v Sheppard and Whittle},
  number = {[2010] EWCA Crim 65},
  institution = {CCA},
}

在文中使用autocite,以便案例引用进入脚注。

如果需要在文中引用案例名称(为什么?),请使用citetitle

要将案例引用拉入文本,请使用fullcite

用于textcite书籍。

如果您特别喜欢冒险,您可以选择纸质打印报告条目的字段jurisdiction来正确显示 MNC,并使用date、、、字段和设置。journaltitlepagesoptions = {year-essential=true}

date = {2010},
journaltitle = {EWCA},
pages = {65},
options = {year-essential=true}

梅威瑟:

\RequirePackage{filecontents}
    \begin{filecontents}{\jobname.bib}
@jurisdiction{rvsheppard,
  title        = {R v Sheppard and Whittle - xxx},
  date         = {2010},
  howpublished = {EWCA Crim 65}
}
@book{av,
  title        = {Aardvarks},
  date         = {2010},
  author = {A Author},
  punlisher ={XYZ Books},
}
@book{zz,
  title        = {Zebras},
  date         = {2016},
  author = {Z Zuthor},
  punlisher ={XYZ Books},
}
@jurisdiction{rvsheppard2,
  title        = {R v Sheppard and Whittle},
  number = {[2010] EWCA Crim 65},
  institution = {CCA},
}
@jurisdiction{rvsheppard3,
  title        = {R v Sheppard and Whittle},
keywords = {en},
date = {2010},
journaltitle = {EWCA},
pages = {65},
institution = {Court of Criminal Appeal},
options = {year-essential=true}
}
\end{filecontents}


\documentclass{article}
\usepackage[
    style=oxnotes-ibid,
    firstinits,
    backend=biber,
    sorting=nyt,
    natbib=true, 
    maxbibnames=99,
    maxcitenames=2, 
    uniquelist=false, 
    uniquename=false
        ]{biblatex}

\addbibresource{\jobname.bib}%refs.bib} %Imports bibliography file

\begin{document}
\section{Introduction}
\textcite{rvsheppard}

textcite: \textcite{rvsheppard2};  autocite\autocite{rvsheppard2}; and fullcite:\fullcite{rvsheppard2}; citetitle: \citetitle{rvsheppard2}.

\textcite{rvsheppard3}

\textcite{av} and \textcite{zz}


\printbibliography
\end{document}

结果:

方括号

编辑: 一夜之间有了主意。

这是另一种方法,无需改变样式或深度编码:只需将整个案例参考放在字段中title,然后使用\emph{}\mkbibemph{}删除斜体。

\textcite{}但从结果来看,它的功能毫无用处。

@book{rvsheppard2,
  title        = {R v Sheppard and Whittle-v2\emph{[2010] EWCA Crim 65}},
}
@book{rvsheppard3,
  title        = {R v Sheppard and Whittle-v3\mkbibemph{[2010] EWCA Crim 65}},

梅威瑟:

\RequirePackage{filecontents}
    \begin{filecontents}{\jobname.bib}
@book{rvsheppard,
  title        = {R v Sheppard and Whittle-xxx},
  date         = {2010},
  howpublished = {EWCA Crim 65}
}
@book{rvsheppard2,
  title        = {R v Sheppard and Whittle-v2\emph{[2010] EWCA Crim 65}},
}
@book{rvsheppard3,
  title        = {R v Sheppard and Whittle-v3\mkbibemph{[2010] EWCA Crim 65}},
}
\end{filecontents}


\documentclass{article}
\usepackage[
    style=oxnotes-ibid,
    firstinits,
    backend=biber,
    sorting=nyt,
    natbib=true, 
    maxbibnames=99,
    maxcitenames=2, 
    uniquelist=false, 
    uniquename=false
        ]{biblatex}

\addbibresource{\jobname.bib}%refs.bib} %Imports bibliography file

\begin{document}
\section{Introduction}
\textbackslash \texttt{Textcite}s: \begin{itemize}\item original entry: \textcite{rvsheppard}; \item with \textbackslash \texttt{emph}: \textcite{rvsheppard2}; \item and with \textbackslash \texttt{mkbibemph}: \textcite{rvsheppard3}.\end{itemize}

As can be seen with \textbackslash \texttt{textcite}, doubling-up occurs, since the same reference is in the text (as title) and also in the footnote (as reference). 
\begin{itemize}
    \item So, for inline use 
        \begin{itemize}
            \item Use \textbackslash \texttt{fullcite}: \fullcite{rvsheppard3} 
            \item or \textbackslash \texttt{citetitle}: \citetitle{rvsheppard3} 
            \end{itemize}
    \item And for footnote use
        \begin{itemize}
            \item Use \textbackslash \texttt{footcite}: some text\footcite{rvsheppard3} 
            \item or \textbackslash \texttt{autocite} if it is set to footnote mode: some text\autocite{rvsheppard3}
        \end{itemize}
\end{itemize}.

\printbibliography
\end{document}

结果:

简单的方式

某种程度上,随着参考文献数量的增加,使用专用的样式/条目类型组合会更加高效。您可能还想做其他事情,例如索引等。

相关内容