TheNetAdmin / zjuthesis

Zhejiang University Graduation Thesis LaTeX Template
https://thenetadmin.github.io/zjuthesis
MIT License
2.69k stars 638 forks source link

将 overleaf 下载到本地后统计字数 #382

Closed chengzhongyi8 closed 8 months ago

chengzhongyi8 commented 8 months ago

操作系统

MacOS

TeX 套件

TeXLive 2019 或更早的版本

TeX Compiler

XeTeX

zjuthesis 版本号

v10.0.1

MajorFormat

general

Degree

graduate

Type

thesis

Period

final

BlindReview

false

GradLevel

doctor

问题描述

我在 overleaf 里写好后下载到本地,然后使用 latexmk -xelatex -outdir=out zjuthesis编译后想统计字数。但是运行 latexmk 后出现以下几个报错:

See the array package documentation for explanation. Type H for immediate help. ...

l.31 \end{tabular}}

?

! Package array Error: Illegal pream-token (1.35cm): `c' used.

See the array package documentation for explanation. Type H for immediate help. ...

l.31 \end{tabular}}

?

! Package array Error: Illegal pream-token (C): `c' used.

See the array package documentation for explanation. Type H for immediate help. ...

l.31 \end{tabular}}

?

! Package array Error: Illegal pream-token (1.35cm): `c' used.

See the array package documentation for explanation. Type H for immediate help. ...

l.31 \end{tabular}}



https://github.com/TheNetAdmin/zjuthesis/issues/90#issue-748014824 和这个报错很像,但似乎没有找到解决办法

### 编译日志

_No response_

### 代码

_No response_

### 截图

<img width="278" alt="图片" src="https://github.com/TheNetAdmin/zjuthesis/assets/58238523/66a3ac09-671f-4ca3-81a2-5911d799e2ae">
<img width="916" alt="图片" src="https://github.com/TheNetAdmin/zjuthesis/assets/58238523/9a5f79ed-0e01-4b30-a434-bc932a08f068">
<img width="592" alt="图片" src="https://github.com/TheNetAdmin/zjuthesis/assets/58238523/b0999050-279d-4b1f-adf7-75c97f91e6d2">
<img width="565" alt="图片" src="https://github.com/TheNetAdmin/zjuthesis/assets/58238523/30286875-6cb5-4abc-be6d-d2786b2e591e">

以及参考文献中,中文文献都是这种小方块。

### 其他信息

_No response_
TheNetAdmin commented 8 months ago

tex代码里也要重新指定字体,你也已经参考如下脚本修改了tex代码吗?

https://github.com/TheNetAdmin/zjuthesis/blob/0464c71837748cc4ca0ef57aeb5d0bee4b75ef2b/script/ci/setup.sh#L37-L60

chengzhongyi8 commented 8 months ago

tex代码里也要重新指定字体,你也已经参考如下脚本修改了tex代码吗?

https://github.com/TheNetAdmin/zjuthesis/blob/0464c71837748cc4ca0ef57aeb5d0bee4b75ef2b/script/ci/setup.sh#L37-L60 我最初下载的是zjuthesis-v10.0.1-overleaf,然后直接导入overleaf来写的,然后下载下来,解压打开后 script目录下只有 utlies 这一个文件夹,里面是word_counts.sh 和 word_counts.ps1两个文件。

yberlin commented 8 months ago

脚本执行的时候提示texcount not found 怎么办

TheNetAdmin commented 8 months ago

脚本执行的时候提示texcount not found 怎么办

这个命令是texlive提供的,检查一下你的path系统变量是否包含了texlive的所有目录。可以参考一些texlive的安装教程。