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

算法伪代码关键字翻译 #50

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

VictoriousRaptor
Copy link

@VictoriousRaptor VictoriousRaptor commented Apr 21, 2022

目前模板使用的是经过修改的algorithm2e宏包,支持伪代码关键字的中文翻译。但它会把for, if, while等常用关键字统统翻译成中文,读起来非常别扭。我修改了algorithm2e,把algorithm2e更新为5.2版本,加入了documentclass参数,可以选择全部翻译为中文,仅翻译“输入”、“输出”等而不翻译if else,全部不翻译保留英文。使用algo-cn-nokw参数选择仅翻译关键字,algo-en选择全部不翻译保留英文。默认与当前行为一致,即全部翻译为中文。

@wwyf
Copy link
Member

wwyf commented Apr 21, 2022

我晚点review下再看看怎么merge到主线

@VictoriousRaptor
Copy link
Author

看了一下,冲突和 #48 的提交有关,删掉95-110行应该就可以了

@1FCENdoge
Copy link
Contributor

为什么不用tex live自带的algorithm2e宏包?

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.

3 participants