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

Makefile: count English characters if English template enabled #418

Merged
merged 1 commit into from
May 20, 2019
Merged

Makefile: count English characters if English template enabled #418

merged 1 commit into from
May 20, 2019

Conversation

yangfl
Copy link
Contributor

@yangfl yangfl commented May 19, 2019

允许学生用英文撰写毕业设计(论文),正文字数要求参照中文论文字数进行折算(每1万汉字对应4万英文印刷符号)。

Count English characters instead.

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks for your contribution!

@gaocegege gaocegege merged commit 0fd9c47 into sjtug:master May 20, 2019
@texcount $(THESIS).tex -inc -ch-only | awk '/total/ {getline; print "纯中文字数\t\t\t:",$$4}'
@texcount $(THESIS).tex -inc -chinese | awk '/total/ {getline; print "总字数(英文单词 + 中文字)\t:",$$4}'
wordcount: $(THESIS).tex
@if grep -v ^% $< | grep -qz '\\documentclass\[[^\[]*english'; then \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Linux 上的 GNU grep 没有问题,但是 macOS 自带的 BSD grep 没有 -z 这个选项。

qweraqq pushed a commit to qweraqq/SJTUThesis that referenced this pull request Sep 13, 2021
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