Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
The community reviewed whether to reopen this question 1 year ago and left it closed:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(7)
您可能想要使用通用符号来表示独占或 \oplus(但要为其指定一个适当的名称,例如
\newcommand\XOR{\oplus}
)。插入符号作为二元运算符有点太小而不易察觉。 但是,如果您坚持使用脱字符号,请使用:
\mathbin
在二元运算符的符号周围放置正确的间距,而\char
确保字形是从罗马字体获得的。You might want to use the common symbol for exclusive or instead, \oplus (but give it a proper name with something like
\newcommand\XOR{\oplus}
).The caret is a bit too small to be noticeable as a binary operator. However, if you do insist using a caret instead, use this:
The
\mathbin
puts the right spacing around the symbol for a binary operator, and the\char
ensures that the glyph is obtained from the roman font.怎么样
或者
?
How about
or
?
使用楔形符号作为上标。 它有完美的尺寸。
像这样的东西:
Use the wedge symbol as a superscript. It has the perfect size.
Something like this:
在文本模式下使用
\textasciicircum
。 如果您处于数学模式,则需要使用类似$\mbox{\textasciicircum}$
的内容。Use
\textasciicircum
in text mode. If you are in math mode, you need to use something like$\mbox{\textasciicircum}$
.这就是我所做的:
This is what I did:
在数学模式下,您可以使用:
来执行此操作,如在线 LaTeX 渲染器此处。
Within math mode, you can use:
to do this, as shown from the online LaTeX renderer here.
\^
是适用于其他字符的重音字符,\^{4}
给出头部带有克拉的4
。 它不占用水平空间。 如果您写下$7 \^{} 3 = 4$
,您会得到一个73
,其中7
和上都有一个标记3.
。 然后你需要的就是稍微填充一下这个空间。 通过反复试验和一个名为 LatexIt 的优秀应用程序,我发现这个序列工作得非常好:这给出了 3 个单位的宽度,其中克拉居中。 看起来很好。
不过,它是尖尖的克拉,而
\verb|^|
提供了一种更扁平的克拉,看起来更像是编程语言中经常使用的单型字体。\^
is an accent character that applies to other characters,\^{4}
gives a4
with a carat on its head. It takes up no horizontal space. If you write$7 \^{} 3 = 4$
you get a73
with a mark smashed onto both the7
and the3
. What you need then is to fill out the space a little bit. Through trial and error and a nice application called LatexIt, I found this sequence to work beautifully:This gives a 3 unit width with the carat centered in it. It looks nice.
It is a pointy carat though, and
\verb|^|
gives a more flattened one that looks more like a monotype font frequently used in programming languages.