为什么我无法在 Latex 中显示重音符号?
一旦我在文本中使用重音符号,它就不再起作用了。 它报告错误:
! Undefined control sequence.
<argument> R\UTF
{00E9}seau Ethernet
l.88 \section{R\UTF{00E9}seau Ethernet}
?
为了稍微解释一下输出,我尝试在该行中编译 \section{Réseau Ethernet}
。
我认为这与编码有关。 有人可以告诉我应该去哪里解决这个问题吗? 我在 MacOs X 上使用 TeXShop。我需要提供任何其他信息吗?
编辑:我认为实际问题似乎与此警告有关:
Package frenchb.ldf Warning: The definition of \@makecaption has been changed,
(frenchb.ldf) frenchb will NOT customize it;
(frenchb.ldf) reported on input line 83.
因为我已经使用
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
As soon as I use accents in my text, it won't work anymore. It reports the error:
! Undefined control sequence.
<argument> R\UTF
{00E9}seau Ethernet
l.88 \section{R\UTF{00E9}seau Ethernet}
?
To explain the output a bit, I am trying to compile \section{Réseau Ethernet}
in that line.
I think it has to do with the encoding. Can somebody tell me where I should look into to fix this? I use TeXShop with MacOs X. Is there any additional information I should provide?
Edit: I think the actual problem seems to have to do with this warning:
Package frenchb.ldf Warning: The definition of \@makecaption has been changed,
(frenchb.ldf) frenchb will NOT customize it;
(frenchb.ldf) reported on input line 83.
Since I already use
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
从版本 1.35 TexShop 支持 XeTeX,告别 LaTeX utf8 地狱,用你想要的任何语言和字体书写。
From version 1.35 TexShop supports XeTeX, so say goodbye to LaTeX utf8 hell and write in whatever language and font you want.
尝试添加;
到文档的开头。
Try adding;
to the start of the document.
这是一个 LaTeX 备忘单 [PDF 警告]。 é 字符可以使用 \'e 命令创建。 我认为您不需要更改编码。
Here is a LaTeX cheatsheet [PDF warning]. The é character can be made using the \'e command. I don't think you need to change the encoding.
看看这里:http://en.wikibooks.org/wiki/LaTeX/Internationalization。
以下是我在 GNU/Linux 上与 TeXlive 一起使用的内容:
您的设置代码可能有所不同,例如,对于 TeTeX,我必须添加
\usepackage{ucs}
并使用utf8x
而不是utf8
。Have a look here: http://en.wikibooks.org/wiki/LaTeX/Internationalization.
Here is what I use with TeXlive, on GNU/Linux:
Your setup code may differ, e.g. with TeTeX I had to add
\usepackage{ucs}
and useutf8x
instead ofutf8
.