作者Cidolfas ()
看板LaTeX
标题Re: [问题] 请问 cwtex 有直书的功能吗?
时间Sat Jan 16 20:24:53 2010
我上网找了个例子
\documentclass[12pt]{scrreprt}
\usepackage{CJKutf8}
\usepackage{CJKvert}
\usepackage{CJKnumb}
\begin{document}
\begin{CJK}{UTF8}{bsmi}
\CJKcaption{UTF8}
\CJKindent
\pagestyle{plain}
\setcounter{page}{5}
\chapter{中文直排测试}
\noindent
横放直排。从第五页排起。
\section{将进酒}
君不见,黄河之水天上来,奔流到海不复回。君不见,高堂明镜悲白发,
朝如青丝暮成雪。人生得意须尽欢,莫使金樽空对月;天生我材必有用,
千金散尽还复来;烹羊宰牛且为乐,会须一饮三百杯;岑夫子、丹丘生,
将进酒、君莫停;与君歌一曲,请君为我侧耳听?
钟鼓馔玉不足贵,但愿长醉不愿醒;古来圣贤皆寂寞,惟有饮者留其名;
陈王昔时宴平乐,斗酒十千恣讙谑;主人何为言少钱,径须沽取对君酌;
五花马、千金裘,呼儿将出换美酒;与尔同消万古愁。
\newpage
\end{CJK}
\end{document}
但是我\CJKcaption{UTF8} 编译不过去(我用winedt)
如果把这句省略,编出来的却也是横书...
但是此文所附编好的 PDF档却是直书,且已将纸张翻转90度。
我不知道出了什麽问题,能请版众指教一下吗?
出处
http://hyperrate.com/thread.php?tid=7434
---------------
我把 \CJKcaption{UTF8} 换成 \CJKcaption{zh-Hant}
---------------
Output captured by WinEdt on 星期六, 一月 16, 2010 at 23:55
------------------------------------------------------------------
WinEdt has successfully executed MiKTeX PDFTeXify accessory.
If PDFLaTeX encountered and reported errors the resulting dvi file
may not appear properly displayed or in some cases may not be
created at all. For your convenience WinEdt captured output and
error files produced by the PDFTeXify accessory.
If there are problems (eg. if WinEdt displayed this file) read
this output carefully, fix any offending errors in your documents
and recompile your sources. If you are having troubles locating
and fixing errors please consult the extensive documentation
pertaining to PDFLaTeX in MiKTeX Doc folder.
Hint: WinEdt is almost certainly irrelevant to this situation!
WinEdt may be able to assist you with locating the most common
LaTeX's errors and warnings based on the information in TeX's log
file. If any such errors were detected you'll see the Error Log
panel displayed at the bottom of your screen.
Hint: use the Ctrl+E shortcut to "walk" through Errors and
Warnings in your documents (as reported by TeX)...
------------------------------------------------------------------
Errors were reported during the execution of PDFTeXify.
*** WinEdt captured the following error file:
Running makemf...
makemf: The bsmiu source file could not be found.
Running hbf2gf...
hbf2gf (CJK ver. 4.7.0)
Couldn't find `bsmiu.cfg'
maketfm: No creation rule for font bsmiu01.
texify: pdflatex.exe failed for some reason (see log file).
*** WinEdt captured the following console output:
This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.7)
entering extended mode
(C:/xtemp/Test/_temp.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\koma-script\scrreprt.cls"
Document Class: scrreprt 2009/07/24 v3.04a KOMA-Script document class (report)
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\koma-script\scrkbase.sty"
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\koma-script\scrbase.sty"
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\graphics\keyval.sty")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\koma-script\scrlfile.sty"
Package scrlfile, 2009/03/25 v3.03 KOMA-Script package (loading files)
Copyright (C) Markus Kohm
))) ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\koma-script\tocbasic.sty")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\koma-script\scrsize12pt.clo")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\koma-script\typearea.sty"
Package typearea, 2009/07/24 v3.04a KOMA-Script package (type area)
Copyright (C) Frank Neukam, 1992-1994
Copyright (C) Markus Kohm, 1994-
)) ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\cjk\CJKutf8.sty"
("C:\Program Files (x86)\MiKTeX 2.7\tex\generic\oberdiek\ifpdf.sty")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\base\inputenc.sty"
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\base\utf8.def"
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\base\t1enc.dfu")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\base\ot1enc.dfu")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\base\omsenc.dfu")))
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\cjk\CJK.sty"
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\cjk\mule\MULEenc.sty")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\cjk\CJK.enc"))
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\base\fontenc.sty"))
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\cjk\CJKvert.sty"
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\graphics\graphicx.sty"
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\graphics\graphics.sty"
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\graphics\trig.sty")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\00miktex\graphics.cfg")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\graphics\pdftex.def"))))
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\cjk\CJKnumb.sty")
No file _temp.aux.
("C:\Program Files (x86)\MiKTeX 2.7\tex\context\base\supp-pdf.tex"
[Loading MPS to PDF converter (version 2006.09.02).]
) ("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\cjk\UTF8\UTF8.bdg")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\cjk\UTF8\UTF8.enc")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\cjk\UTF8\UTF8.chr")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\cjk\UTF8\zh-Hant.cpx")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\cjk\UTF8\c70bsmi.fd")
("C:\Program Files (x86)\MiKTeX 2.7\tex\latex\cjk\UTF8\c70bsmi.fdx")
Chapter 1.
! Font C70/bsmi/bx/n/24.88/01=bsmiu01 at 24.88pt not loadable: Metric (TFM) fil
e not found.
<to be read again>
relax
l.11 \chapter{中文直排测试}
! pdfTeX error (font): invalid font identifier.
\font@name ->\C70/bsmi/bx/n/24.88/01
l.11 \chapter{中文直排测试}
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on _temp.log.
*** BibTeX did not produce a log file "_temp.blg"!
*** MakeIndex did not produce a log file "_temp.ilg"!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 219.85.144.154
1F:推 andrew43:这和cwtex无关, 这是用 cjk package 做的. 01/16 22:56
2F:→ Cidolfas:那请教编出来没有直排的原因是什麽? 01/16 23:10
3F:推 andrew43:请贴出你的编译过程及log 01/16 23:31
4F:→ Cidolfas:cwtex->latex->dvips->gsview 01/16 23:52
※ 编辑: Cidolfas 来自: 219.85.144.154 (01/16 23:58)
5F:→ andrew43:cwtex 和 cjk package 不要混用. 选一种用就好 01/17 00:06
6F:→ Cidolfas:那我编译时应该选哪些呢?一直没直排... 01/17 00:15
7F:推 hippotsai:cwTeX手册应该有写如何编排直书 请上吴老师的网页看 01/17 00:27