![Tex Live 不显示章节标题](https://linux22.com/image/470744/Tex%20Live%20%E4%B8%8D%E6%98%BE%E7%A4%BA%E7%AB%A0%E8%8A%82%E6%A0%87%E9%A2%98.png)
这是我在网上复制的一个非常简单的乳胶示例。
\documentclass{article}
\usepackage{amsmath}% For the equation* environment
\begin{document}
\section{First example}
The well-known Pythagorean theorem \(x^2 + y^2 = z^2\) was proved to be invalid for other exponents, meaning the next equation has no integer solutions for \(n>2\):
\[ x^n + y^n = z^n \]
\section{Second example}
This is a simple math expression \(\sqrt{x^2+1}\) inside text.
And this is also the same:
\begin{math}
\sqrt{x^2+1}
\end{math}
but by using another command.
This is a simple math expression without numbering
\[\sqrt{x^2+1}\]
separated from text.
This is also the same:
\begin{displaymath}
\sqrt{x^2+1}
\end{displaymath}
\ldots and this:
\begin{equation*}
\sqrt{x^2+1}
\end{equation*}
\end{document}
使用 Tex Live 编译后,我得到以下内容:。节名全部消失了。我的 Tex Live 出了什么问题?我在 Ubuntu 22.04 上使用命令“latex file.tex”进行编译。命令行输出为 --
这是 pdfTeX,版本 3.141592653-2.6-1.40.22(TeX Live 2022/dev/Debian)(预加载格式=latex)限制 \write18 启用。进入扩展模式 (./notes.tex LaTeX2e <2021-11-15> 补丁级别 1 L3 编程层 <2022-01-21> (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls 文档类:文章 2021/10/04 v1.4n 标准 LaTeX 文档类 (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty 有关 amsmath 的更多信息,请使用 `?' 选项。 (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-dvips.def)(./notes.aux)1(./notes.aux) )输出写在 notes.dvi 上(1 页,1508 字节)。抄录写在 notes.log 上。