我在 latex 中写了一些简单的文本,但它总是像图片中那样变形,知道为什么吗?我也一直在同一行收到警告。我使用的是自定义 latex 模板,但除了这一行之外,其他地方都运行良好
Upon statistical analysis through the methods described above, a very significant difference was verified between the contact angles of OH and \ce{CH3} samples. Whereas OH samples presented a contact angle of 32.29\degree \pm 3.02\degree , \ce{CH3} samples presented a contact angle of 108.41\degree \pm 0.23\degree. Generally, the experiment was precise as the maximum SD presented small values (3.02\degree). However, the precision on the \ce{CH3} test proved to be considerably higher, having a SD of only 0.23\degree.
提前致谢!
答案1
您未能在应该进入数学模式时进入数学模式,编译器正在为您执行此操作,但不知道何时退出。
为了解决这个问题,告诉编译器什么应该在数学中,什么不应该,在你的情况下是\pm
和\degree
表达式:
Upon statistical analysis through the methods described above, a very
significant difference was verified between the contact angles of \ce{OH}
and \ce{CH3} samples. Whereas \ce{OH} samples presented a contact angle of
\(32.29\degree \pm 3.02\degree\), \ce{CH3} samples presented a contact angle
of \(108.41\degree \pm 0.23\degree\). Generally, the experiment was precise
as the maximum SD presented small values (\(3.02\degree\)). However, the
precision on the \ce{CH3} test proved to be considerably higher, having a SD
of only \(0.23\degree\).
请注意,也可以用于siunitx
一致地格式化数字。此外,我会像封装 CH4 一样封装 OH \ce{}
。(已在上面的代码片段中更正。)