
У меня есть некоторые URL в моих ссылках. При использовании \usepackage[ngerman]{babel}
, "Извлечено из [какой-то URL]" превращается в "Zugriff auf [какой-то 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
.