-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add German support #38
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MLA 的格式并不是标准的,一些特性尚未实现。
% 变更为自订的引用样式 (Kafka: 67) | ||
\DeclareDelimFormat{postnotedelim}{\addcolon\space} | ||
\renewbibmacro*{postnote}{% | ||
\iffieldundef{postnote}% | ||
{} | ||
{\setunit{\printdelim{postnotedelim}}%% | ||
\ifbool{cbx@hyperpages}% | ||
{\printtext[bibhyperref]{\printfield[ibidpostnote]{postnote}}}% | ||
{\printfield[ibidpostnote]{postnote}}}}% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
由于提供的文中引用的格式并不是标准的 MLA 格式,参考 https://tex.stackexchange.com/questions/478282/how-to-change-selectively-the-post-note-comma-in-a-citation-using-biblatex/478292#478292 进行修改。
% 调整引用标题,不使用 Works Cited | ||
\AtBeginDocument{ | ||
\renewcommand{\bibname}{Literaturverzeichnis} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
biblatex-mla
对于 \bibname
的处理比较奇怪,需要延迟至 \AtBeginDocument
之后进行。参考 https://tex.stackexchange.com/questions/306107/suppressing-large-text-works-cited-in-biblatex-mla-printbibliography
% \usepackage[ngerman]{babel} | ||
\usepackage{ngerman} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用 babel
会使得参考文献中的 and vol. p. 被翻译为德文,使用 ngerman
不会。参考:https://tex.stackexchange.com/questions/72893/whats-the-difference-between-usepackagengerman-and-usepackagengermanbabe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
当然主流应当使用 babel。
\input{common-package} | ||
% \usepackage[ngerman]{babel} | ||
\usepackage{ngerman} | ||
\usepackage[pangram]{blindtext} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用 ngerman
主要使该宏包识别语言,如果不用假文,可以去除 ngerman
。
添加德语模板,新增选项
lang=de
。