在 MikTeX 中转义文本块?

发布于 2024-08-08 11:07:32 字数 187 浏览 5 评论 0原文

我正在尝试将一段代码插入 MikTeX,其中包含许多保留字符。有什么方法可以转义整个代码块,以便转换引擎不会尝试评估它?

我想这只有在代码具有平衡括号时才有效。有没有办法可以转换文本块,以便转义所有单独的保留字符?

不幸的是,在 Windows 环境中似乎稍微限制了我的选择,但如果您知道我可以实现这一目标的方法,我将不胜感激。

I am trying to insert a block of code into MikTeX which contains many reserved characters. Is there any way I can escape the whole block of code so that the conversion engine does not try to evaluate it?

I suppose this would only work if the the code had balanced brackets. Is there a way I can convert the block of text so that all individual reserved characters are escaped?

Unfortunately, being in a Windows environment seems to limit my options slightly, but if you know of a way I could achieve this, I'd greatly appreciate it.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文