书目 - 如何修复本地语言风格(将页面更改为 strony)

书目 - 如何修复本地语言风格(将页面更改为 strony)

我使用的papalike书目样式应该是apalike样式的改良版。不幸的是,在生成的书目中,单词“pages”被用在了“strony”上:

使用 pages word 代替 strony

根据维基百科,我在文档序言中添加了以下几行:

\usepackage[fixlanguage]{babelbib}
\selectbiblanguage{polish}

但它只会导致错误:软件包 babelbib 错误:babelbib 未知参考书目中的语言修饰。

因此,我想问一下是否可以在参考书目中重新定义这个词?

我的MWE如下:

\documentclass[twoside,12pt]{mwbk} 

    \usepackage{apalike}
        \let\bibhang\relax
    \usepackage[round]{natbib}
    \usepackage{amsmath, amssymb}
    \usepackage{floatrow}
        \floatsetup[table]{capposition=top}
        \floatsetup[figure]{capposition=bottom}

    \usepackage{polski}
     \usepackage[english, polish]{babel}
    \usepackage[T1]{fontenc}
    \usepackage[utf8]{inputenc}
    \usepackage[unicode, naturalnames, breaklinks]{hyperref}
        \def\UrlBreaks{\do\/\do-}

    \usepackage{longtable,booktabs, graphicx, pdfpages}
        \graphicspath{ {figures/} }

    \raggedbottom

    \usepackage[all]{nowidow}

    \usepackage[lang=english]{bicaption}

    \usepackage[a4paper,includeheadfoot, margin=2.5cm]{geometry}
        \linespread{1.3}

    \usepackage{times}
    \usepackage{mathptmx}
        \urlstyle{same}

\begin{document}

\section{Some text}

\subsection{Some subsection}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vulputate nisi dolor, vitae eleifend sem vehicula a. Nulla libero mi, scelerisque et dapibus at.

\begin{figure}[H]
    \includegraphics[width=0.5\textwidth]{Einrad}

    \bicaption{Polish caption ĄĆŹŚÓŁ with citation \cite{ScipalTripleCol}}{English caption just below with citation: \cite{ScipalTripleCol}}

    \label{Fig:FIgBicycle}
\end{figure}


\begin{table}[H]
    \centering
    \bicaption{Polish caption here with special letters: ĄĆŹŚÓŁ}{English caption just below}
    \label{my-label}
    \begin{tabular}{|l|l|}
        \hline
        1st col   & 2nd col \\ \hline
        some text & ---     \\ \hline
    \end{tabular}
\end{table}

    \bibliographystyle{papalike} %%% THIS should be a polish counterpart of apalike style
    {\footnotesize \bibliography{bibliografia}}

\end{document}

我的 .bib 文件如下所示:

@article{ScipalTripleCol,
    author={Mark Andrew and Thomas Wo and Jeremy Rex},
    booktitle={There is no such book},
    title = "{Sample Title}",
    year={2010},
    pages={333-1111},
    journal={Journal of LaTeX},
    month={July}
}

答案1

快速而粗略的解决方案是找到.bst样式文件并 grep 页面。你应该在里面看到类似这样的内容:

FUNCTION {bbl.pages}
{ "strony" }

FUNCTION {bbl.page}
{ "strona" }

答案2

我不确定它是否适用于 apastyle,但你可以polish.lbx/usr/share/texmf-dist/tex/latex/biblatex/lbxtex 文件旁边复制(至少在 arch linux 的情况下),然后就地编辑它。例如,更改行:

page             = {{strona}{s\adddot}},

相关内容