看板 LaTeX 關於我們 聯絡資訊
※ 引述《Edward.bbs@bbs.sayya.org (蒙古大夫 2.0)》之銘言: : ※ 引述《mathfeel.bbs@ptt.cc (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) <mathfeel@gmail.com> Primary key fingerprint: 9607 7903 1D12 F060 AD76 3705 5CE2 0A3E 9CB5 B35A -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 71.136.56.177
as1986:你會不會沒裝xdvipdfmx? 03/31 21:47
mathfeel:我有。因為如果只是英文檔沒有問題 04/01 05:03