TeX中使用CJK-UTF8

本文讨论了使用LaTeX进行中文文档排版的方法,包括设置UTF8编码的中文字体、解决数学模式下的中文显示问题,并提到了在Muse环境中编辑和发布MathML或TeX数学公式的挑战。
马上要考试了.因为忙于学习及整理笔记,现在只用了Emacs+Auctex 中的UTF8-song字体.非常不好看.

等考试完了,搞一搞CJK-UTF8的中文字体.

这里先圈一下.

latex的中文实现:
----
/documentclass[a4paper]{article}
/usepackage{CJK}
/begin{document}
/begin{CJK*}{UTF8}{song}
中文内容
/end{CJK*}
/end{document}
----
问题:
1.生成字体.
2.数学模式内的中文显示.
3.Muse中使用MathML或TeX的数学公式的编辑方法及发布 和网页显示问题.

以上三个问题等9月22日考试完后解决!

复习中...
I:\91-agi09-do\02code\lecture-notes\05-rag-embeddings>latex This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 24.1) (preloaded format=latex.fmt) restricted \write18 enabled. **\documentclass[12pt]{article} entering extended mode LaTeX2e <2023-11-01> patch level 1 L3 programming layer <2024-01-04> *\usepackage{ctex} (C:\MiKTeX\tex/latex/base\article.cls Document Class: article 2023/05/17 v1.4n Standard LaTeX document class (C:\MiKTeX\tex/latex/base\size12.clo)) * (C:\MiKTeX\tex/latex/ctex\ctex.sty (C:\MiKTeX\tex/latex/l3kernel\expl3.sty (C:\MiKTeX\tex/latex/l3backend\l3backend-dvips.def)) (C:\MiKTeX\tex/latex/ctex\ctexhook.sty) (C:\MiKTeX\tex/latex/ctex\ctexpatch.sty ) (C:\MiKTeX\tex/latex/base\fix-cm.sty (C:\MiKTeX\tex/latex/base\ts1enc.def)) (C:\MiKTeX\tex/latex/ctex/config\ctexopts.cfg) Package ctex Warning: UTF8 will be used as the default encoding. (C:\MiKTeX\tex/latex/ctex/engine\ctex-engine-pdftex.def (C:\MiKTeX\tex/latex/cjk\CJKutf8.sty (C:\MiKTeX\tex/generic/iftex\ifpdf.sty (C:\MiKTeX\tex/generic/iftex\iftex.sty)) (C:\MiKTeX\tex/latex/base\inputenc.sty ) (C:\MiKTeX\tex/latex/cjk\CJK.sty (C:\MiKTeX\tex/latex/cjk/mule\MULEenc.sty) (C:\MiKTeX\tex/latex/cjk\CJK.enc)) (C:\MiKTeX\tex/latex/base\fontenc.sty)) (C:\MiKTeX\tex/latex/cjkpunct\CJKpunct.sty (C:\MiKTeX\tex/latex/cjkpunct\CJKpunct.spa)) (C:\MiKTeX\tex/latex/cjk\CJKspace.sty) (C:\MiKTeX\tex/latex/cjk/UTF8\UTF8.bdg) (C:\MiKTeX\tex/latex/ctex\ctexspa.def)) (C:\MiKTeX\tex/latex/zhnumber\zhnumber.sty (C:\MiKTeX\tex/latex/zhnumber\zhnumber-utf8.cfg)) (C:\MiKTeX\tex/latex/ctex/scheme\ctex-scheme-chinese.def (C:\MiKTeX\tex/latex/ctex/config\ctex-name-utf8.cfg)) (C:\MiKTeX\tex/latex/tools\indentfirst.sty) (C:\MiKTeX\tex/latex/ctex/fontset\ctex-fontset-windows.def)) (C:\MiKTeX\tex/latex/ctex/config\ctex.cfg) (Please type a command or say `\end') *\begin{document} (C:\MiKTeX\tex/latex/cjk/UTF8\UTF8.enc) (C:\MiKTeX\tex/latex/cjk/UTF8\UTF8.chr) No file texput.aux. *你好,这是一段中文文本。 ! Package CJK Error: Invalid character code. See the CJK package documentation for explanation. Type H <return> for immediate help. ... <*> ?ã?һ?ı???
最新发布
07-14
This is pdfTeX, Version 3.141592653-2.6-1.40.27 (TeX Live 2025) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./manuscript.tex LaTeX2e <2024-11-01> patch level 2 L3 programming layer <2025-01-18> (c:/texlive/2025/texmf-dist/tex/latex/revtex/revtex4-2.cls Document Class: revtex4-2 2022/06/05 4.2f (https://journals.aps.org/revtex/ for documentation) ltxutil[2022/06/05 4.2f utilities package (portions licensed from W. E. Baxter web at superscript.com)] ltxfront[2022/06/05 4.2f frontmatter package (AO,DPC,MD)] ltxgrid[2022/06/05 4.2f page grid package (portions licensed from W. E. Baxter web at superscript.com)] (c:/texlive/2025/texmf-dist/tex/latex/revtex/aps4-2.rtx) (c:/texlive/2025/texmf-dist/tex/latex/revtex/aps12pt4-2.rtx) (c:/texlive/2025/texmf-dist/tex/latex/textcase/textcase.sty) (c:/texlive/2025/texmf-dist/tex/latex/url/url.sty) (c:/texlive/2025/texmf-dist/tex/latex/natbib/natbib.sty) (c:/texlive/2025/texmf-dist/tex/latex/revtex/revsymb4-2.sty)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/ctex.sty (c:/texlive/2025/texmf-dist/tex/latex/l3kernel/expl3.sty (c:/texlive/2025/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/ctexhook.sty) (c:/texlive/2025/texmf-dist/tex/latex/ctex/ctexpatch.sty) (c:/texlive/2025/texmf-dist/tex/latex/base/fix-cm.sty (c:/texlive/2025/texmf-dist/tex/latex/base/ts1enc.def)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/config/ctexopts.cfg) (c:/texlive/2025/texmf-dist/tex/latex/ctex/engine/ctex-engine-pdftex.def (c:/texlive/2025/texmf-dist/tex/latex/cjk/texinput/CJKutf8.sty (c:/texlive/2025/texmf-dist/tex/generic/iftex/ifpdf.sty (c:/texlive/2025/texmf-dist/tex/generic/iftex/iftex.sty)) (c:/texlive/2025/texmf-dist/tex/latex/base/inputenc.sty) (c:/texlive/2025/texmf-dist/tex/latex/cjk/texinput/CJK.sty (c:/texlive/2025/texmf-dist/tex/latex/cjk/texinput/mule/MULEenc.sty) (c:/texlive/2025/texmf-dist/tex/latex/cjk/texinput/CJK.enc)) (c:/texlive/2025/texmf-dist/tex/latex/base/fontenc.sty)) (c:/texlive/2025/texmf-dist/tex/latex/cjkpunct/CJKpunct.sty (c:/texlive/2025/texmf-dist/tex/latex/cjkpunct/CJKpunct.spa)) (c:/texlive/2025/texmf-dist/tex/latex/cjk/texinput/CJKspace.sty) (c:/texlive/2025/texmf-dist/tex/latex/cjk/texinput/UTF8/UTF8.bdg) (c:/texlive/2025/texmf-dist/tex/latex/ctex/ctexspa.def)) (c:/texlive/2025/texmf-dist/tex/latex/zhnumber/zhnumber.sty (c:/texlive/2025/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese.def (c:/texlive/2025/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-fandol.def ! Critical Package ctex Error: CTeX fontset `fandol' is unavailable in current (ctex) mode. Type <return> to continue. ... l.103 } ?
06-02
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值