biblatex + biber + babel:波兰语和参考书目样式的配置(缺少 polish.sty)

biblatex + biber + babel:波兰语和参考书目样式的配置(缺少 polish.sty)

这个问题可能微不足道,但对我来说非常重要。我花了几个小时寻找解决方案,却找不到它。

biblatex我的 LaTeX 文档与、biber和配合得很好babel,但我无法实现波兰书籍/文章/论文中书目的样子。通常它看起来像英语(默认),但不确定。

一些额外的错误:

Package csquotes Warning: Load 'inputenc' before 'csquotes' on input line XXX.
Package csquotes Info: Checking for multilingual support...
Package csquotes Info: ... found 'babel' package.
Package csquotes Info: Adjusting default style.
Package csquotes Warning: No style for language 'polish'.

我的最小例子

主文本

\documentclass[a4paper,twoside,openright]{report}
...
\usepackage[polish]{babel}
\usepackage{polski}
\usepackage{csquotes}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[
  style=numeric, % numeric, alphabetic, authoryear, ect.
  sorting=nty,
  isbn=false,
  backend=biber,]{biblatex}
\addbibresource{bibliography.bib}
...
\begin{document}

% include some chapters
\include{chap_prolog}
...

\printbibliography
\end{document}

参考书目

@Book{KrysWlod99,
  author = {Włodzimierz Krysicki and Lech Włodarski},
  title = {Analiza matematyczna w zadaniach},
  publisher = {Wydawnictwo Naukowe PWN},
  year = {1999},
  part={1},
  address = {Warszawa},
  isbn = {83-01-01460-1}
}

@Article{Popper84,
  author = {Popper K. R.},
  title = {Literatura na świecie},
  journaltitle = {Epistemologia bez podmiotu poznającego},
  year = {1984},
  number = {12}
}

输出

书目打印件

...但它应该看起来像这样:

[ 1 ] 沃齐米日·克里西茨基和莱赫·沃达尔斯基数学分析与分析,Wydawnictwo Naukowe PWN,华沙 1999 年,第 1 页。

[ 2 ] Popper KR,认识论是无可争议的,,,Literatura na świecie'' 1984 年第 12 期。

如何打开或声明biberbiblatex波兰风格的书目?

或者如何为 biblatex 和 biber 编写自己的波兰语书目风格?

我在例子中做错了什么吗?

附言:我知道我可以使用thebibliography,但这不是自动参考书目的解决方案。

答案1

实际上,至少对于第一级引文,其润色风格与 相同croatian,后者在 中定义csquotes。对于其余问题,可以使用 biblatex 的一些补丁来解决它们(您需要加载包xpatch):

    \documentclass[a4paper,twoside,openright,polish]{report}
    \usepackage[utf8]{inputenc}
    \usepackage[T1]{fontenc}
    \usepackage{lmodern}

    \usepackage{babel}
    \usepackage{csquotes}
    \DeclareQuoteAlias{croatian}{polish}
    \usepackage[%
    style=numeric, % numeric, alphabetic, authoryear, ect.
    sorting=nty,
    isbn=false,
    abbreviate = false,
    backend=biber,]{biblatex}
    \addbibresource{polbiblio.bib}

    \renewcommand*{\newunitpunct}{\addcomma\space}
    \renewbibmacro*{in:}{}

    \usepackage{xpatch}

    \xpatchbibdriver{book}{%
    \newunit
    \iffieldundef{maintitle}
    {\printfield{volume}%
    \printfield{part}}
    {}%
    }
    {%
    }{}{}

    \xpatchbibdriver{book}{%
    \usebibmacro{publisher+location+date}%
    }
    {%
    \usebibmacro{publisher+location+date}%
    \newunit
    \printfield{volume}%
    \printfield{part}
    \usebibmacro{finentry}
    }{}{}

    \DeclareFieldFormat{journaltitle}{\mkbibquote{#1}}
    \DeclareFieldFormat[article,periodical]{number}{nr.  #1}% number of a journal

    \DeclareFieldFormat
    [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
    {title}{\mkbibemph{#1}}
    %
    \renewbibmacro*{journal+issuetitle}{%
    \usebibmacro{journal}%
    \setunit*{\addspace}%
    \iffieldundef{series}
    {}
    {\newunit
    \printfield{series}%
    \setunit{\addspace}}%
    \usebibmacro{issue+date}%
    \setunit{\addspace}%
    \usebibmacro{issue}%
    \setunit{\addspace}%
    \usebibmacro{volume+number+eid}%
    \newunit}

    \renewbibmacro*{issue+date}{%
    \iffieldundef{issue}
    {\usebibmacro{date}}
    {\printfield{issue}%
    \setunit*{\addspace}%
    \usebibmacro{date}}%
    \newunit}

    \renewbibmacro*{publisher+location+date}{%
    \printlist{publisher}%
    \iflistundef{publisher}
    {\setunit*{\addcomma\space}}
    {\setunit*{\addcomma\space}}%
    \printlist{location}%
    \setunit*{\addspace}%
    \usebibmacro{date}%
    \newunit}

    \begin{document}

    \nocite{*}

    \printbibliography

    \end{document} 

在此处输入图片描述

答案2

以下是为 定义波兰引号样式的方法。我以中csquotes的代码为基础 ,但对引号符号进行了适当的更改。正如我在上面的评论中提到的那样csquotes.defgerman自定义 biblatex 样式的指南应该可以帮助您开始配置biblatex样式,我就不在这里讨论了。

示例文本

样本围兜

\documentclass[a4paper,twoside,openright]{report}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[polish]{babel}
\usepackage{polski}

\usepackage{csquotes}
\DeclareQuoteStyle[quotes]{polish}
  {\quotedblbase}
  {\textquotedblright}
  [0.05em]
  {\quotesinglbase}
  {\fixligatures\textquoteright}
\DeclareQuoteAlias[quotes]{polish}{polish}
\DeclareQuoteOption{polish}

\usepackage[
  style=numeric, % numeric, alphabetic, authoryear, ect.
  sorting=nty,
  isbn=false,
  backend=biber,]{biblatex}
\addbibresource{bibliography.bib}
\begin{document}

\enquote{Najstarsze zdanie w języku polskim \enquote{Day, ut ia pobrusa, a ti poziwai} zapisano w 1270 roku\dots}

\nocite{*}

\printbibliography
\end{document}

相关内容