问题标签 [texttt]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
latex - 如何在 LaTeX 中表示类名?
您认为在 LaTeX 文档中呈现类名的最佳方式是什么(撰写关于软件的文章)。
我目前正在使用\texttt
(等宽打字字体),它可以正常工作,但我的类名最终会“超出”边距。
所以,我要求要么
- 表示类名的另一种(好看的)方式
- 确保我的类名不会超出页边距的方法
兄弟,图科
latex - 防止 \texttt LaTeX 标记让其内容越过边距
在我的报告中,我在段落内写了一些类名或变量名,我希望这些名称以等宽字体呈现。
例子:
有时,当 \texttt 标记内的单个单词呈现在行尾时,该单词不会转到下一行,也没有中断:单词的结尾超出了页边距。
我该如何处理这种情况?
干杯。
latex - How to properly re-format spaces in inline monospace?
I don't want the whitespaces in inline monospaced text to be monospaced. They should have the width of the normal font. The \intexttt
(as in the example below) does this but it seems to be unnecessarily complicated.
Is there a better way?