引用 URL:將“檢索自”更改為“在此處可用”

引用 URL:將“檢索自”更改為“在此處可用”

我的參考資料中有一些網址。當使用 時\usepackage[ngerman]{babel},“從 [some URL] 檢索”會變成“Zugriff auf [some URL]”,例如

「取自」的德文翻譯

我想將“Zugriff auf”更改為“Verfügbar unter”。我怎樣才能做到這一點?這是一個 MWE

\documentclass[11pt, oneside, a4paper]{book}
\usepackage[ngerman]{babel}
\usepackage[tocbib, natbibapa, nosectionbib]{apacite}
\renewcommand{\doiprefix}{\ignorespaces}
\usepackage{doi}
\usepackage{hyperref}
\hypersetup{colorlinks, citecolor=black, filecolor=black, linkcolor=black, urlcolor=black}
\AtBeginDocument{\urlstyle{APACsame}}

\begin{filecontents}{test.bib}
@misc{A,
    title = {dplyr: A Grammar of Data Manipulation ({Version} 0.3.0.2)},
    author = {Hadley Wickham and Romain Francois},
    year = {2014},
    type = {\bibcomputersoftware},
    url = {http://CRAN.R-project.org/package=dplyr}
    }
}
\end{filecontents}

\begin{document}
\citet{A}.
\bibliographystyle{apacite}
\bibliography{test} 

\end{document}

答案1

該定義包含在檔案中german.apc,給出如下

\renewcommand{\BRetrievedFrom}{Zugriff auf\ }%

所以你只需要發出類似的\renewcommand \begin{document}:

樣本輸出

\documentclass[11pt, oneside, a4paper]{book}
\usepackage[ngerman]{babel}
\usepackage[tocbib, natbibapa, nosectionbib]{apacite}
\renewcommand{\doiprefix}{\ignorespaces}
\usepackage{doi}
\usepackage{hyperref}
\hypersetup{colorlinks, citecolor=black, filecolor=black, linkcolor=black, urlcolor=black}
\AtBeginDocument{\urlstyle{APACsame}}

\begin{filecontents}{test.bib}
@misc{A,
    title = {dplyr: A Grammar of Data Manipulation ({Version} 0.3.0.2)},
    author = {Hadley Wickham and Romain Francois},
    year = {2014},
    type = {\bibcomputersoftware},
    url = {http://CRAN.R-project.org/package=dplyr}
    }
}
\end{filecontents}

\begin{document}

\renewcommand{\BRetrievedFrom}{Verf\"ugbar unter\ }

\citet{A}.
\bibliographystyle{apacite}
\bibliography{test} 

\end{document}

請注意,該文件還包含

\renewcommand{\BRetrieved}[1]{Zugriff am {#1} auf\ }%

lastchecked當提供字段時使用它。還有

\renewcommand{\BAvailFrom}{Verf\"ugbar unter\ }%

但文檔說這已被\BRetrievedFrom.

相關內容