博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
WinEdt如何使用中文
阅读量:2438 次
发布时间:2019-05-10

本文共 1285 字,大约阅读时间需要 4 分钟。

The easiest way is (for Simplified Chinese document only):

% UTF-8 encoding% Compile with latex+dvipdfmx, pdflatex, xelatex or lualatex% XeLaTeX is recommanded\documentclass[UTF8]{ctexart}\begin{document}文章内容。\end{document}

or

\documentclass{article}\usepackage[UTF8]{ctex}...

It is designed for Chinese typesetting. Font sizes, indentation, name translation, line spacing, … everything is set.

For latest version of ctex bundle (v2.x), XeLaTeX is well tested and supports Windows/Mac/Linux. The proper fonts preinstalled in the OS should be selected automatically.

If you just want to typeset only a few Chinese charecter, you can use CJK with pdfLaTeX or xeCJK with XeLaTeX.

% Compile with xelatex% UTF-8 encoding\documentclass{article}\usepackage{xeCJK}\setCJKmainfont{SimSun}\begin{document}文章内容\end{document}

or

% UTF-8 encoding, pdflatex or latex+dvipdfmx% Simplified Chinese fonts should be installed\documentclass{article}\usepackage{CJKutf8}\AtBeginDvi{\input{zhwinfonts}}\begin{document}\begin{CJK*}{UTF8}{zhsong}文章内容。\clearpage\end{CJK*}\end{document}

or

% UTF-8 encoding% bad-looking fonts (CJKfonts package)% latex+dvips, latex+dvipdfm(x) or pdflatex\documentclass{article}\usepackage{CJKutf8}\begin{document}\begin{CJK*}{UTF8}{gbsn}文章内容。\clearpage\end{CJK*}\end{document}

转载地址:http://jrgmb.baihongyu.com/

你可能感兴趣的文章
Linux分区工具的使用方法(转)
查看>>
深入理解硬盘的Linux分区(转)
查看>>
循序渐进教你LINUX之软件配置方法(转)
查看>>
解读Linux文件权限的设置方法(转)
查看>>
Ext2 文件系统的硬盘布局(转)
查看>>
Linux不完全手册(二)(转)
查看>>
NetBSD 指导手册(转)
查看>>
打造FreeBSD桌面系统(2)(转)
查看>>
利用系统配置程序控制 Windows 98 自动运行(转)
查看>>
为你的 Windows 98 加把锁(转)
查看>>
Windows 98 资源管理(转)
查看>>
认识 Windows 98 备份(转)
查看>>
Windows 98 禁止注册表检查器自动运行(转)
查看>>
Windows 98 注册表大修改(转)
查看>>
Windows 98 给回收站右键菜单增加重命名命令(转)
查看>>
科学的清理 Windows 98 注册表(转)
查看>>
Windows 98 桌面主题和用户管理(转)
查看>>
Windows 98 注册表妙用(转)
查看>>
Windows 98 系统工具(转)
查看>>
自行添加欢迎对话框中的文本(转)
查看>>