Skip to content
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

Merged
merged 15 commits into from
Mar 23, 2023
Merged

Add German support #38

merged 15 commits into from
Mar 23, 2023

Conversation

AlexaraWu
Copy link
Collaborator

添加德语模板,新增选项 lang=de

@AlexaraWu AlexaraWu marked this pull request as ready for review March 21, 2023 13:35
Copy link
Contributor

@LogCreative LogCreative left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MLA 的格式并不是标准的,一些特性尚未实现。

Comment on lines +13 to +21
% 变更为自订的引用样式 (Kafka: 67)
\DeclareDelimFormat{postnotedelim}{\addcolon\space}
\renewbibmacro*{postnote}{%
\iffieldundef{postnote}%
{}
{\setunit{\printdelim{postnotedelim}}%%
\ifbool{cbx@hyperpages}%
{\printtext[bibhyperref]{\printfield[ibidpostnote]{postnote}}}%
{\printfield[ibidpostnote]{postnote}}}}%
Copy link
Contributor

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 进行修改。

Comment on lines +22 to +25
% 调整引用标题,不使用 Works Cited
\AtBeginDocument{
\renewcommand{\bibname}{Literaturverzeichnis}
}
Copy link
Contributor

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

Comment on lines +7 to +8
% \usepackage[ngerman]{babel}
\usepackage{ngerman}
Copy link
Contributor

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

Copy link
Contributor

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}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用 ngerman 主要使该宏包识别语言,如果不用假文,可以去除 ngerman

sjtutex/support/common-achievements-de.tex Outdated Show resolved Hide resolved
@AlexaraWu AlexaraWu merged commit 9346189 into v2 Mar 23, 2023
@AlexaraWu AlexaraWu deleted the v2-lang-de branch March 23, 2023 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants