在 MikTeX 中转义文本块?
我正在尝试将一段代码插入 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该能够将其包装在
lstlisting
块中?http://www.ctan.org/tex-archive/ help/Catalogue/entries/listings.html
http://www3 .ntu.edu.sg/home5/pg04878518/LatexTips.html
You should simply be able to wrap it in a
lstlisting
block?http://www.ctan.org/tex-archive/help/Catalogue/entries/listings.html
http://www3.ntu.edu.sg/home5/pg04878518/LatexTips.html