| 查看: 1408 | 回复: 2 | ||
| 【悬赏金币】回答本帖问题,作者luckyyjjun将赠送您 10 个金币 | ||
luckyyjjun铁虫 (正式写手)
|
[求助]
TexWorks使用pdfLaTex编译出现错误,求助各位大佬帮忙。 已有1人参与
|
|
|
使用TexWorks编译以下内容: -------------------------------------------------------------------------------- %!documentclass{article} %!usepackage[version=3]{mhchem} %!usepackage{longtable} \begin{document} \begin{longtable}{c|lc} ID & Reaction & Total Flux \\ \hline 0 & \ce{CH4} + \ce{HO} $\to$ \ce{H2O} + \ce{CH3} & 1 \\ 1 & \ce{C} + \ce{H} + \ce{H} + \ce{H} + \ce{H} $\to$ \ce{CH4} & 1 \\ 2 & \ce{H} + \ce{O} $\to$ \ce{HO} & 1 \\ \hline \end{longtable} \end{document} ---------------------------------------------------------------------------------- 错误内容如下: ------------------------------------------------------------------------------------------- This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./reac.tex LaTeX2e <2020-02-02> patch level 5 L3 programming layer <2020-03-06> (d:/Program Files/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-pdfmode .def) (./reac.aux) ! LaTeX Error: The font size command \normalsize is not defined: there is probably something wrong with the class file. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.4 \begin{document} ? ------------------------------------------------------------------------------------------------------- |
» 猜你喜欢
网上报道青年教师午睡中猝死、熬夜猝死的越来越多,主要哪些原因引起的?
已经有10人回复
为什么中国大学工科教授们水了那么多所谓的顶会顶刊,但还是做不出宇树机器人?
已经有13人回复
什么是人一生最重要的?
已经有8人回复
版面费该交吗
已经有17人回复
体制内长辈说体制内绝大部分一辈子在底层,如同你们一样大部分普通教师忙且收入低
已经有19人回复
【博士招生】太原理工大学2026化工博士
已经有8人回复
280求调剂
已经有4人回复
面上可以超过30页吧?
已经有12人回复
|
本帖内容被屏蔽 |
2楼2021-01-05 11:00:17
【答案】应助回帖
|
为什么前面三行要注释掉呢? 去掉注释就可以编译了: \documentclass{article} \usepackage[version=3]{mhchem} \usepackage{longtable} \begin{document} \begin{longtable}{c|lc} ID & Reaction & Total Flux \\ \hline 0 & \ce{CH4} + \ce{HO} $\to$ \ce{H2O} + \ce{CH3} & 1 \\ 1 & \ce{C} + \ce{H} + \ce{H} + \ce{H} + \ce{H} $\to$ \ce{CH4} & 1 \\ 2 & \ce{H} + \ce{O} $\to$ \ce{HO} & 1 \\ \hline \end{longtable} \end{document} |
3楼2021-01-05 11:39:16













回复此楼