如何对多种语言/语言变体的 LaTeX 进行拼写检查

发布于 2024-10-07 17:49:58 字数 148 浏览 0 评论 0原文

我正在写一篇博士论文/学位论文,希望能够对它进行拼写检查。问题是我需要用英国英语写,而我的许多引文都是用美国英语写的。这使得拼写检查变得非常痛苦。

有没有办法将 LaTeX 文本的部分标记为英国英语/美国英语,并让拼写检查器响应该标记或跳过不在特定语言变体中的部分?

I am writing a PhD Thesis / Dissertation and would like to be able to spell-check the thing. The problem is that I'm required to write it in UK English, while many of my quotations are written in US English. This makes spell-checking quite a pain.

Is there a way to tag sections of LaTeX text as being UK English / US English, and have a spell-checker either respond to that tagging or skip the sections which aren't in the particular language variant?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

≈。彩虹 2024-10-14 17:49:59

http://www.cs.stir.ac.uk/ ~kjt/software/latex/untex.html

用法

Here are some example uses:

  untex myfile.tex
  untex file1 file2 file3
  spelltex myfile.tex
  spelltex file1 file2 file3

如果定义了环境变量 SPELLDIR,它给出包含要使用的本地拼写文件的目录,否则“英国”使用拼写

那么至少这样你就可以在不同的文件上运行不同的拼写检查器,假设你已经将文档分成了章节或类似的内容?

或者,只需运行两次 - 每种英语一次,就不会出现那么多错误。您甚至可以添加要忽略的单词的 txt 文件,甚至将它们添加到拼写检查器的“自定义”词典中......

http://www.cs.stir.ac.uk/~kjt/software/latex/untex.html

Usage

Here are some example uses:

  untex myfile.tex
  untex file1 file2 file3
  spelltex myfile.tex
  spelltex file1 file2 file3

If the environment variable SPELLDIR is defined, it gives the directory containing the local spelling file to be used, otherwise "British" spelling is used.

So at least that way you could run different spell checkers on different files, assuming you've split up your document on chapters or similar?

Alternatively, just run it twice - once in each English, and there can't be that many errors. You could even add a txt file of words to ignore, or even add them to the 'custom' dictionary for the spellcheckers...

暖心男生 2024-10-14 17:49:59

如果您使用 Emacs,请查看 flyspell-babel.el

If you use Emacs, take a look at flyspell-babel.el.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文