代码拉取完成,页面将自动刷新
###
# @Author: Shuangchi He / Yulv
# @Email: yulvchi@qq.com
# @Date: 2022-02-13 15:36:15
# @Motto: Entities should not be multiplied unnecessarily.
# @LastEditors: Shuangchi He
# @LastEditTime: 2022-04-01 23:07:16
# @FilePath: \Master-Thesis-Template-of-SZU\wordcount.sh
# @Description: 使用latex自带的texcount程序来统计文章字符数。
###
excludeFile=("Acknowledgements.tex" "Appendix.tex" "Abstract.tex" "Publications.tex") # 统计正文时
# excludeFile=("Publications.tex") # 统计全文时
# 遍历./Tex中的.tex文件
totalStr=" "
for file in ./Tex/*; do
if [[ "${file##*.}" == "tex" ]]; then
flag=0
# 排除excludeFile中的文件
for excfile in ${excludeFile[@]}; do
if [[ $file == "./Tex/${excfile}" ]]; then
flag=1
break
fi
done
if [[ $flag == 0 ]]; then
totalStr="${totalStr} ${file}"
fi
fi
done
# 使用texcount统计分别这些文件中的字符,并计算总字符
texcount $totalStr
read -s -n1 -p "Press any key to continue ..."
echo ""
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。