作者mathfeel (mathfeel)
看板LaTeX
标题Re: [问题] 可以用otf字体吗?
时间Sat Mar 31 16:33:10 2007
※ 引述《[email protected] (蒙古大夫 2.0)》之铭言:
: ※ 引述《[email protected] (mathfeel)》之铭言:
: > 在latx上,请教一下。
: 最简单的方式就是安装 XeTeX,假设你系统上有安装 ARStdSongProMedium.otf。
: <code ctest.tex in UTF-8 encoding>
: \font\chfont="AR StdSongPro" at 12pt % ARStdSongProMedium.otf
: \chfont
: 将进酒\par
: 君不见 黄河之水天上来 奔流到海不复回\par
: 君不见 高堂明镜悲白发 朝如青丝暮成雪
: \bye
: <code>
: xetex ctest.tex
: 就会产生 ctest.pdf,其中就会嵌入 ARStdSongProMedium.otf。
: 其他功能及 xelatex 请自行参考 XeTeX 的文件说明。
xetex 不能出dvi和ps吗?
anyway,我一个简单的tex档:
\documentclass[12pt,a4paper]{article}
\begin{document}
\font\APKai="AR PL New Kai ExtB" at 12pt
\APKai 这是中文字。
\end{document}
结果是:
$ xelatex sample-utf8.tex
This is XeTeX, Version 3.141592-2.2-0.995 (Web2C 7.5.5)
entering extended mode
(./sample-utf8.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman,
b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto,
e
stonian, finnish, greek, icelandic, irish, italian, latin, norsk, polish,
portu
ges, romanian, slovak, slovene, spanish, swedish, turkish, ukrainian,
nohyphena
tion, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size12.clo)) (./sample-utf8.aux) [1]
(./sample-utf8.aux) )
(see the transcript file for additional information)
stdin -> sample-utf8.pdf
[1
** NOTICE: This document contains a `Preview & Print only' licensed font **
Output written on sample-utf8.pdf (1 page).
Transcript written on sample-utf8.log.
~ $ ls -al sample-utf8.pdf
-rw-r--r-- 1 mzhang mzhang 0 2007-03-31 08:28 sample-utf8.pdf
pdf的size是0...
...求救
--
pub 2048R/9CB5B35A 2/20/2006 Matthew Zhang (gmail key) <
[email protected]>
Primary key fingerprint: 9607 7903 1D12 F060 AD76 3705 5CE2 0A3E 9CB5 B35A
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 71.136.56.177
1F:推 as1986:你会不会没装xdvipdfmx? 03/31 21:47
2F:推 mathfeel:我有。因为如果只是英文档没有问题 04/01 05:03