且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在LaTeX中自动将新单词中第一个单词的第一个字母大写

更新时间:2023-02-05 15:47:41

我决定通过以下方式解决该问题:

I decided to solve it in the following way:

由于我总是将LaTeX代码编译3次,然后再确定结果(以获取正确的分页和引用),因此我决定在该过程中将句子的首字母大写.

Since I always compile the LaTeX code three times before i okular the result (to get pagination and references right), I decided to build the capitalization of sentences into that process.

因此,我现在有一个shell脚本,该脚本首先调用我的大写脚本(用CRM114编写),然后调用pdflatex 3次,然后调用okular.这样,所有的事情都发生在一个命令的结果中.

Thus, I now have a shell script that calls my capitalization script (written in CRM114) first, then pdflatex three times, and then okular. This way, all the stuff happens as the result of a single command.