babel+biber+biblatex를 사용하여 참고 문헌의 영국 영어 기본 날짜 형식에서 "st", "nd" 및 "th"를 삭제하는 방법은 무엇입니까?

babel+biber+biblatex를 사용하여 참고 문헌의 영국 영어 기본 날짜 형식에서 "st", "nd" 및 "th"를 삭제하는 방법은 무엇입니까?

에 따르면캠브리지 문법, 날짜를 작성하는 가장 일반적인 방법은 다음과 같습니다.

1993년 1월 20일

그리고는 아니다

1993년 1월 20일

그러나 "th"는 여전히 기본적으로 biber+biblatex에 의해 생성됩니다.

\documentclass[british]{article}
\usepackage{babel}
\usepackage[backend=biber]{biblatex}
\begin{filecontents}{\jobname.bib}
  @book{mybook,
    author      =   {Author},
    date        =   {1993-01-20},
    title       =   {Wonderful Tiny Fact (WTF)}
  }
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{mybook}
\printbibliography
\end{document}

결과는 아래와 같습니다. pdflatex-biber-pdflatex 루프를 실행한 결과

나는 "Jan" 뒤에 마침표를 붙이는 것을 찬성하거나 반대하는 것이 아니지만, "th"를 사용하는 것이 가장 널리 퍼진 스타일에 반대한다는 점을 주장하고 있습니다. 위의 문법 링크 외에도 다음을 참조하세요.바스 대학교의 편집 스타일, 명시적으로 금지합니다. 나의 영국 영어 선생님도 그것이 틀렸다고 명시적으로 생각합니다.

물론 "th"를 생략하는 기술적인 해결책이 있을 수도 있습니다.LaTeX의 날짜 형식본문의 경우).

  1. 참고문헌의 날짜에서 접미사("st", "nd" 및 "th")를 생략하는 방법은 무엇입니까?

  2. 현재는 가능합니까?기본"th" 인쇄 설정이 실제로 버그로 분류됩니까?

답변1

dateabbrev=false1월 대신 1월을 사용하도록 옵션을 설정합니다 . 호주 스타일에서는 서수를 사용하지 않습니다. 따라서 다음과 같이 australian.lbx에서 날짜 정의를 복사할 수 있습니다.

\documentclass[british]{article}
\usepackage{babel}
% dateabbrev=false will stop abbreviation of months
\usepackage[backend=biber,dateabbrev=false]{biblatex}
\begin{filecontents}{\jobname.bib}
  @book{mybook,
    author      =   {Author},
    date        =   {1993-01-20},
    title       =   {Wonderful Tiny Fact (WTF)}
  }
\end{filecontents}
\addbibresource{\jobname.bib}
% Taken from australian.lbx which does not use ordinal numbers
\DefineBibliographyExtras{british}{%
  \protected\def\mkbibdatelong#1#2#3{%
    \iffieldundef{#3}
      {}
      {\stripzeros{\thefield{#3}}%
       \iffieldundef{#2}{}{\nobreakspace}}%
    \iffieldundef{#2}
      {}
      {\mkbibmonth{\thefield{#2}}%
       \iffieldundef{#1}{}{\space}}%
    \iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\stripzeros{\thefield{#1}}}}%
  \protected\def\mkbibseasondateshort#1#2{%
    \mkbibseason{\thefield{#2}}%
    \iffieldundef{#1}{}{\space}%
    \mkyearzeros{\thefield{#1}}}%
  \protected\def\mkbibseasondatelong#1#2{%
    \mkbibseason{\thefield{#2}}%
    \iffieldundef{#1}{}{\space}%
    \mkyearzeros{\thefield{#1}}}%
}
\pagestyle{empty}
\begin{document}
\cite{mybook}
\printbibliography
\end{document}

여기에 이미지 설명을 입력하세요

관련 정보