转义 TeX 方程中的字符?
我想在 TeX 方程中使用包含破折号的变量名。 然而,破折号被解释为负号。 有人知道如何逃脱这个角色吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我想在 TeX 方程中使用包含破折号的变量名。 然而,破折号被解释为负号。 有人知道如何逃脱这个角色吗?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
使用 \textrm{-} 不起作用?
Using \textrm{-} does not work ?
将整个变量名称放在 \text 中。
或者更好的是,为使用 \text 的变量名称创建一个宏。 使用宏将帮助您获得统一的样式,以后可以轻松更改。
Put the whole variable name inside \text.
Or better, make a macro for variable names which uses \text. Using a macro will help you get a uniform style that you can easily change later.
在 TeX 方程中输入 \hbox{-}。 它的编译速度比 \text{-} 更快。
Type \hbox{-} in TeX equation. It is faster to compile than \text{-}.
推杆
作为等式范围内的第一个声明将使
-
变成普通字母字符。Putting
as the first declaration in the scope of the equation will make
-
into a normal letter character.