我有一份文档,其中只有极少量的中文和日文字符。我最近重新编译了这份文档,发现粗体字对拉丁字符不再起作用。
我尝试在 Ubuntu 22.04 上重新安装 texlive,但没有成功。还有其他建议吗?
\documentclass{article}
\usepackage{CJKutf8}
% \usepackage{ctex}
\begin{document}
\begin{itemize}
\item not bold
\item \textbf{sould be bold}
\item \begin{CJK}{UTF8}{gbsn}手勢令\end{CJK}
\end{itemize}
\end{document}
使用 LaTeX 在此登录:
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian) (preloaded format=latex)
\write18 enabled.
Source specials enabled.
entering extended mode
(./toto.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-01-21>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/CJK/CJKutf8.sty
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifpdf.sty
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty)
(/usr/share/texmf/tex/latex/CJK/CJK.sty
(/usr/share/texmf/tex/latex/CJK/mule/MULEenc.sty)
(/usr/share/texmf/tex/latex/CJK/CJK.enc))
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty))
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-dvips.def)
(./toto.aux) (/usr/share/texmf/tex/latex/CJK/UTF8/UTF8.bdg)
(/usr/share/texmf/tex/latex/CJK/UTF8/UTF8.enc)
(/usr/share/texmf/tex/latex/CJK/UTF8/UTF8.chr)
(/usr/share/texmf/tex/latex/CJK/UTF8/c70gbsn.fd)
(/usr/share/texmf/tex/latex/CJK/UTF8/c70gbsn.fdx)
Missing character: There is no � in font gbsnu52!
[1] (./toto.aux) )
Output written on toto.dvi (1 page, 532 bytes).
Transcript written on toto.log.
使用 PdfLaTeX 记录:
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./toto.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-01-21>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/CJK/CJKutf8.sty
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifpdf.sty
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty)
(/usr/share/texmf/tex/latex/CJK/CJK.sty
(/usr/share/texmf/tex/latex/CJK/mule/MULEenc.sty)
(/usr/share/texmf/tex/latex/CJK/CJK.enc))
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty))
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
(./toto.aux) (/usr/share/texmf/tex/latex/CJK/UTF8/UTF8.bdg)
(/usr/share/texmf/tex/latex/CJK/UTF8/UTF8.enc)
(/usr/share/texmf/tex/latex/CJK/UTF8/UTF8.chr)
(/usr/share/texmf/tex/latex/CJK/UTF8/c70gbsn.fd)
(/usr/share/texmf/tex/latex/CJK/UTF8/c70gbsn.fdx)
Missing character: There is no � in font gbsnu52!
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./toto.aux) ){/usr/shar
e/texmf/fonts/enc/dvips/cm-super/cm-super-ts1.enc}</usr/share/texlive/texmf-dis
t/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texmf/fonts/type1/arphic
/gbsnu/gbsnu4e.pfb></usr/share/texmf/fonts/type1/arphic/gbsnu/gbsnu62.pfb></usr
/share/texmf/fonts/type1/public/cm-super/sfrm1000.pfb>
Output written on toto.pdf (1 page, 35698 bytes).
SyncTeX written on toto.synctex.gz.
Transcript written on toto.log.
Ubuntu 软件包中的 texlive 当前版本似乎已过时。手动升级 texlivehttps://www.tug.org/texlive/acquire-netinstall.html应该可以工作。
我不知道 ubuntu 软件包到底出了什么问题。我很乐意得到一些解释。