diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/CJK/doc')
52 files changed, 12572 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/CJK/doc/CEF.txt b/Master/texmf-dist/doc/latex/CJK/doc/CEF.txt new file mode 100644 index 00000000000..4b126432a46 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/CEF.txt @@ -0,0 +1,86 @@ +This is the file CEF.txt of the CJK macro package ver. 4.6.0 (11-Aug-2005). + +The Chinese Encoding Framework (CEF) +------------------------------------ + +Christian Wittern (http://www.kanji.zinbun.kyoto-u.ac.jp/~wittern/), +developed CEF, the Chinese Encoding Framework. It is a method to embed CJK +characters in seldom used encodings (which usually no editor provides) in +ordinary text (which may be of any encoding). This is done by using SGML +(Standardized Generalized Markup Language) macros of the form + + &xx-yyzz; + +To input these characters Wittern wrote KanjiBase for Windows, essentially a +character data base search engine written in Visual Basic. This application +is rather obsolete today. + + +`xx' in the SGML macro can have the following values: + + C0 Big 5 encoded characters + C1 characters from CNS plane 1 + ... + C7 characters from CNS plane 7 + CX characters from a reserved encoding defined by IRIZ + CY private encoding + U Unicode characters + +`yy' and `zz' are the first and second byte in hexadecimal notation. +For C0-C7, CX, and CY the 7bit notation must be used (GL). + +Examples: + + &C0-A4CD; + &C4-275F; + &U-DCFF; + + +TeX can't process these macros directly. They must be converted with one of +the following preprocessors: + + cefconv standard converter (also for use with cjk-enc.el) + cef5conv also converts Big 5 characters to preprocessed form + cefsconv also converts SJIS characters to preprocessed form + +ceflatex.bat is a simple batch file for DOS to show how to use the converter +(cef5ltx.bat and cefsltx.bat are its siblings---for Unix, the scripts are +called ceflatex, cef5latex, and cefslatex, respectively). + +Say + + ceflatex mytext[.tex] + +to get mytext.tex processed. All CEF macros must be inside of a CJK (or +CJK*) environment. + +To input CEF characters without preprocessing you can use the \CJKchar +macro. Here an example: + + \CJKchar[CNS4]{"27}{"5F} + +Note: The OS/2 script files ceflatex.cmd, etc., need REXX which you probably + have to install first. + + +Availability +------------ + +The file + + http://iriz.hanazono.ac.jp/pdf/eb4/x-level_kanjibase_codes.pdf + +contains a list of X level CJK characters defined by IRIZ. It isn't very +useful because the document is a just a scan of some pages of the magazine +`The Electronic Bodhidharma', published by the International Research +Institute for Zen Buddhism (IRIZ) at the Hanazono University in Kyoto, Japan +(iriz.hanazono.ac.jp). Note that this institute still publishes many +Buddhist documents using CEF (there it is called `KanjiBase'). + +More data about CEF and KanjiBase can be found at Christian Wittern's old +home page + + http://www.chibs.edu.tw/~chris/gwdg/home.htm + + +---End of CEF.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/CJK.txt b/Master/texmf-dist/doc/latex/CJK/doc/CJK.txt new file mode 100644 index 00000000000..d0fa784ca84 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/CJK.txt @@ -0,0 +1,1149 @@ + +This is the LaTeX2e style package CJK Version 4.6.0 (11-Aug-2005) +================================================================= + +It is freely distributable under the GNU Public License. + + + ************************************************** + * * + * You need LaTeX 2e version 2001/06/01 or newer! * + * * + ************************************************** + + +Usage +----- + +Use CJK.sty as a package, e.g., + + \documentclass{article} + \usepackage[<option>]{CJK} . + +See section `Caveats' below for the available options. Normally, you don't +need them. + +Two new environments, + + \begin{CJK}[<fontencoding>]{<encoding>}{<family>} + ... + \end{CJK} + +and + + \begin{CJK*}[<fontencoding>]{<encoding>}{<family>} + ... + \end{CJK*} + +are defined. The parameters have the following meaning: + + <encoding> These character sets and encodings are currently + implemented in CJK.enc: + + Bg5 (For traditional Chinese. Mainly used in Taiwan. + Character set: Big 5. + Encoding: Big 5.) + Bg5+ (For Chinese. An extension of Big 5. Obsolete. + Character set: Big 5+. + Encoding: Big 5+.) + + GB (For simplified Chinese. Mainly used in + PR China. Also called `EUC-CN'. + Character set: GB 2312-1980. + Encoding: EUC.) + GBt (For traditional Chinese. Rarely used in + PR China. + Character set: GB/T 12345-1990. + Encoding: EUC.) + GBK (For Chinese. An extension of GB 2312. + Character set: GBK. + Encoding: GBK.) + + JIS (For Japanese. + Character set: JIS X 0208:1997. + Encoding: EUC.) + JIS2 (Japanese supplementary character set, + Character set: JIS X 0212-1990. + Encoding: EUC.) + SJIS (For Japanese. Used mainly on PCs. Also known + as `MS Kanji'. + Character sets: + 1-byte characters from JIS X 0201-1997 + (half-width katakana), + 2-byte characters from JIS X 0208:1997. + Encoding: SJIS.) + + KS (For Korean. Also called `EUC-KR'. + Character set: KS X 1001:1992 = KS C 5601-1992. + Encoding: EUC.) + + UTF8 (Unicode Transformation format 8, also called + `UTF-2' or `FSS-UTF'. + Character set: Unicode. + Encoding: UTF-8.) + + CNS1 (Chinese National Standard Plane 1, + Character set: CNS 11643-1992 plane 1. + Encoding: EUC.) + CNS2 + ... + CNS7 (Character set: CNS 11643-1992 plane 2 - 7. + Encoding: EUC.) + + CEFX (reserved CEF character set for IRIZ. + Encoding: EUC.) + CEFY (private CEF character set. + Encoding: EUC.) + + These encodings (except Big 5, Big 5+, GBK, SJIS, and + UTF-8) are simplified EUC (Extended Unix Code) character + sets without single shifts. The used character set slot + G1 stands for two-byte encodings with byte values taken + from the GR (Graphic Right) character range 0xA1-0xFE + (as defined in ISO 2022). + + Note that CNS1 and CNS2 contain almost the same + characters in the same order as Big 5 (but in EUC). + + For CEF and CNS character sets see CEF.txt also. + + Big 5+ and GBK have exactly the same encoding layout + (but their origins differ). + + Additionally, the following encodings *with* single + shifts are implemented, using some of the above defined + character sets: + + EUC-JP (for Japanese. + Character sets: + Half-width katakana (from JIS X 0201-1997), + JIS X 0208:1997, + JIS X 0212-1992.) + + EUC-TW (for traditional Chinese. + Character sets: + CNS 11643-1992 planes 1-7.) + + EUC-JP, EUC-TW, and UTF-8 encodings can't be used in + preprocessed mode (see below) because it makes no sense. + + + If you use this parameter it is the same as you would + have used \CJKenc: Writing e.g., + + \begin{CJK}{Bg5}{...} + ... + + is identical to + + \begin{CJK}{}{...} + \CJKenc{Bg5} + ... + + Note: A `character set' is an ordered collection of + glyphs. The order of the glyphs is just for + defining purposes and for reference. + + An `encoding' is an ordering scheme to access a + character set. LaTeX 2e also uses the term `input + encoding'. + + A character set can have many encodings + (cf. JIS X 0208 -> EUC, SJIS). + + An encoding can be used for many character sets + (cf. EUC -> KS X 1001, GB 2312, etc.). + + Sometimes, the character set has the same name + as the encoding (Big 5, Big 5+, GBK). + + For more details I suggest to read the document + cjk.inf from Ken Lunde; it is available from + + ftp://ftp.ora.com/pub/examples/cjkvinfo/ + doc/cjk.inf + + A really thorough reference is his latest book + `CJKV Information Processing' (O'Reilly). + + Throughout this CJK documentation, `encoding' + refers to the valid encoding/character set + combinations defined just above. + + <fontencoding> These font encodings are currently defined: `' (empty; + the default), `pmC' (available for Bg5, GB, GBt, JIS, + and KS), `dnp' (for JIS and SJIS), `wn' (for JIS), and + `HL' (for KS). + + `Font encoding' means the order of characters in the + subfonts itselves. A change of the font encoding neither + alters the meaning of a CJK character nor changes the + character code in the selected encoding. + + The font encoding `pmC' is defined for compatibility + with the pmC package (which is obsolete). It is not + encouraged to use this font encoding because of wasting + subfonts. If possible, convert your original CJK bitmap + fonts with hbf2gf (see hbf2gf.txt) or other tools to CJK + encodings. + + `dnp' implements the character order of the Dai Nippon + Printing fonts and is only available for JIS and SJIS + encoding. `wn' (only available for JIS) is the font + encoding for watanabe jfonts. There exists a linking + package which maps the watanabe jfonts onto the dnp + naming scheme (thus you can use the real dnp fonts for + printing and the mapped jfonts for previewing). See the + documentation files in the `japanese' subdirectory for + further details. + + `HL' allows the use of the new HLaTeX fonts (starting + with version 1.0); note that the definition of fonts is + rather different compared to HLaTeX. See the section + `Korean input' below for a detailed description. + + You can change the font encoding per encoding with the + command \CJKfontenc; the first parameter is the + encoding, the second the font encoding. + + <family> It is impossible to know in advance what fonts are + available at your site; look at the example FD (font + definition) files how to create or modify appropriate FD + files suiting your needs. See fonts.txt also for further + hints. + + If this parameter is empty, the default value given in + CJK.enc is selected: `song' for all encodings except KS + (which defaults to `mj'). If you use this parameter it + is the same as you would have used \CJKfamily; all + encodings then use this family: + + \begin{CJK}{...}{song} + ... + + is identical to + + \begin{CJK}{...}{} + \CJKfamily{song} + ... + + You can change the families per encoding (and font + encoding) with the command \CJKencfamily; the first + parameter is the encoding, the second the family, the + optional argument is the font encoding. This overrides + the default value. + + Note that \CJKfamily or a non-empty `family' parameter + of the CJK environment overrides any \CJKencfamily + commands. Say `\CJKfamily{}' to enable \CJKencfamily + again. + + + The CJK* environment swallows unprotected spaces and newlines after a + CJK character (the usual habit for Chinese and Japanese text), whereas + CJK does not (for European and Korean text). You can switch between + these two `modes' with \CJKspace (CJK* -> CJK) and \CJKnospace (CJK -> + CJK*). + + If you use cjk-enc.el, you don't need to specify a CJK environment. This + is done automatically. See cjk-enc.txt for details. + + +This is a typical example: + + \begin{CJK*}{GB}{kai} + ... + Chinese simplified text in GB encoding + ... + \end{CJK*} + + +How it works +------------ + +Asian logographs can't be represented completely with one byte per +character. (At least) two bytes are needed, and the most common encoding +schemes (UTF-8, GB, Big 5, JIS, KS, etc.) have a certain range for the first +byte (usually 0xA1-0xFE or a part of it) which signals that this and the +next byte represent an Asian logograph. This means almost all plain ASCII +characters (characters between 0x00 and 0x7E) are left undisturbed, and the +remaining character codes (0x80-0xFF) are assigned to a CJK encoding, +creating a multiple-byte encoding with 1-byte and 2-byte characters (and +even 3-byte characters for UTF-8). + +The character 0x7F is reserved also for the CJK package. See the section +`Preprocessors' below. + +Encodings like EUC-TW access additional character sets using escape +characters (0x8E and 0x8F) which signals that the next character comes +from another character set (which is `shifted' to the GR range); up to +four bytes are needed for a single character. Example: + + 0x8E 0xA3 0xB7 0xCE + + 0x8E is a single shift escape character; 0xA3 selects CNS plane 3, and + 0xB7CE is the character code (in GR representation) in this plane. + +CJK.sty makes the character codes 0x7F and 0x81-0xFE active inside of the +CJK environment and assigns macros to the active characters which then +select the proper font and character. The real mechanism is a bit more +complex to assure robustness (it was borrowed and modified from LaTeX 2e's +inputenc.sty) and correct handling of punctuation characters. + +* emTeX users: you must activate 8bit input and output while creating the +* LaTeX2e format file! Do this by using the switches -o and -8 (additional +* to the iniTeX switch -i). +* +* Example: +* +* tex386 -i -o -8 latex.ltx + + +Some internals +-------------- + +Internally three levels (bindings, encodings, character macro sets) are +defined: + + active characters + | + +--------------> bindings (standard, SJIS, UTF8) + | + active character macros + | + +--------------> encodings (GB, Big 5, ...) + + | font encodings (none, dnp, wn, pmC, HL) + | + subfont selecting macros + | + +--------------> character macro sets (standard, Big 5, ...) + | + character selecting macros + +User-selectable are only the encoding and the font encoding (as explained +above); the other levels are selected by the CJK package. + +These levels correspond to the following internal macros: + + \CJK@xxxxBinding (`xxxx.bdg' files): + Possible values for `xxxx' are: standard, SJIS, UTF8, EUC-JP, and + EUC-TW. + + \CJK@xxxxEncoding (`xxxx.enc' files): + Possible values for `xxxx' are: standard, extended, Bg5, SJIS, KS, UTF8, + pmCsmall, pmCbig, JISdnp, SJISdnp, KSHL, EUC-JP, and EUC-TW. + + \CJK@xxxxChr (`xxxx.chr' files): + Possible values for `xxxx' are: standard, Bg5, KS, SJIS, UTF8, pmC, + HLaTeX, EUC-JP, and EUC-TW. + +In preprocessed mode (see below), no bindings are used. + + +And now a more detailed description of the various encodings. Please note +that you should never access these macros directly. + + \CJK@standardEncoding is used for EUC encodings with the first and second + byte in the range 0xA1-0xFE (GB, GBt, JIS, JIS2, CNS, CEF). + + \CJK@extendedEncoding is used for Big 5+ and GBK encodings. The first byte + is in the range 0x81-0xFE, the second byte in the range 0x40-0xFE (with a + gap at 0x7F). + + \CJK@Bg5Encoding is used for Big 5 encoding with the first byte in the + range 0xA1-0xFE and the second byte in the range 0x40-0xFE (with a gap + from 0x7F-0xA0). + + \CJK@SJISEncoding is used for SJIS encoding; one-byte characters are in + the range 0xA1-0xDF, two-byte characters have the first byte in the ranges + 0x81-0x9F and 0xE0-0xEF, the second byte runs from 0x40 to 0xFC except + 0x7F. Since SJIS only squeezes the JIS X 0208 character set into a new + scheme without changing the ordering, fonts produced by hbf2gf or ttf2pk + look the same for EUC and SJIS encoding except one-byte SJIS characters. + For more details see below the section `SJIS encoding'. + + \CJK@KSEncoding is used for the KS X 1001 character set in EUC encoding. + Two sets of subfonts are defined, one for Hangul syllables and elements, + and a second for Hanja. For more details see below the section `Korean + input'. + + \CJK@UTF8Encoding is used for Unicode in UTF-8 encoding. The first byte is + in the range 0xC0-0xDF for two-byte values, and in the range 0xE0-0xEF for + three-byte values. The other byte(s) are in the range 0x80-0xBF. Note that + CJK expects two hexadecimal digits as a running number in the font name + (as defined in UTF8.enc) instead of two decimal digits. Select the option + `unicode yes' in the hbf2gf config file if you use hbf2gf to transform + bitmap fonts in HBF format to PK fonts as used by CJK.sty . Three commands + (\CJKCJKchar, \CJKhangulchar, and \CJKlatinchar) control the handling of + intercharacter glue: \CJKCJKchar (the default) selects CJK style (using + \CJKglue), \CJKhangulchar selects hangul style (using \CJKtolerance), and + \CJKlatinchar selects none of them. This encoding does not work in + preprocessed mode. + + \CJK@pmCsmallEncoding and \CJK@pmCbigEncoding can be activated with + \pmCsmall (this is the default) and \pmCbig inside the CJK environment. + Note that the original pmC fonts have two character sizes per font (the + bigger ones with an offset of -128); Bg5pmC encoded fonts cannot contain + big characters. The names of the fonts in the FD files reflect the + modifications added by Marc Leisher <mleisher@nmsu.edu> to the original + poor man's Chinese (pmC) package written by Thomas Ridgeway + <ridgeway@blackbox.hacc.washington.edu>. + + \CJK@JISdnpEncoding is the JIS X 0208 character set in EUC encoding with + dnp fonts. The main difference (besides the offsets) is the composition of + real font names; a dnp font name consists of name stem + subfont name + + designsize: an example is dmjkata10. Note that the wadalab PS fonts omit + the designsize part in the font names, thus it is sufficient (and even + better) to use the `CJK' size functions in FD files instead of the `DNP' + ones. \CJK@JISwnEncoding is similar to JISdnp encoding but uses Watanabe + jfonts; \CJK@SJISdnpEncoding maps SJIS onto dnp encoded fonts. + + \CJK@KSHLEncoding finally uses the new fonts of the HLaTeX package for + Korean; three internal encodings are necessary to represent it. See the + next section for details. + + \CJK@EUC-TWEncoding and \CJK@EUC-JPEncoding are quite similar to + \CJK@standardEncoding but implement single shift access additionally. They + can't be used in preprocessed mode. + + +Korean input +------------ + +There is already a package which handles Hangul and Hanja (but no other +CJK character sets): HLaTeX. + +To use KS encoding, say + + \begin{CJK}{KS}{} + ... + \end{CJK} . + +These font switches are available inside the environment: + + hangul fonts from former hlatex (in the han font packages): + + * \mj MyoungJo (default) + \gt Gothic + \gs BootGulssi + \gr Graphic + \dr Dinaru + + hangul fonts from former jhtex (in the han1 font packages): + + * \hgt Hangul Gothic + * \hmj Hangul MyoungJo (MunHwaBu fonts) + * \hpg Hangul Pilgi + \hol Hangul Outline (MyoungJo) + + +If a font is marked with a star, real bold series are available. All other +bold fonts are defined using poor-man's boldface (see below the section +`Poor man's Boldface'). + +See the file INSTALL how to get these fonts. Both `han' and `han1' packages +contain bitmap fonts only (in PK format). + +Note that the font switches are abbreviations for \CJKencfamily and not for +\CJKfamily. + + +For characters with the first byte in the ranges 0xA1-0xAF (except 0xA4) and +0xC9-0xFD (graphic characters, hanja, archaic hangul, etc.) fonts with the +encoding C60 are used. C61 is assigned to hangul fonts (for hangul elements +with the first byte 0xA4 and hangul characters in the range 0xB0-0xC8). This +enables the use of many hangul fonts and perhaps only one or two different +hanja fonts. If you want to use C60 encoding for hangul characters also say +\CJKhanja. The opposite command is \CJKhangul (of course this works only if +you have hangul characters in the C60 font). + +Archaic hangul elements (KS X 1001 0xA4D5-0xA4FE) and the character +KS X 1001 0xA4D4 are only accessible if \CJKhanja is active. + +You should convert your KS X 1001 hanja fonts using hbf2gf (or ttf2pk) as +described above. + + +To use HLaTeX fonts, say + + \begin{CJK}[HL]{KS}{} + ... + \end{CJK} . + +All HLaTeX fonts are PS fonts; these font switches are available inside the +environment (as defined in HLaTeX 1.0; this differs from older versions): + + \bm Bom + * \dn Dinaru + * \gr Graphic + + \gs Gungseo + + * \gt Gothic + \jgt Jamo Gothic + \jmj Jamo Myoungjo + \jnv Jamo Novel + \jsr Jamo Sora + + * \mj Myoungjo + * \pg Pilgi + \pga Pilgia + \ph Pen Heulim + \pn Pen + + \sh Shinmun Myoungjo + + \tz Typewriter + \vd Vada + \yt Yetgul + +If a font is marked with an asterisk, real bold series are available. All +other fonts are defined using poor-man's boldface (see below). Only fonts +marked with a plus sign are available for hanja too; the other font families +are mapped to these six hanja families. For backwards compatibility, \ol and +\sm are defined also; both are now equivalent to \mj. + +UN Koaung-Hi <koaunghi@kornet.net>, the author of HLaTeX, defines three +groups of fonts: hangul, hanja, and symbols. The CJK package needs three +internal encodings (C63 for hanja, C64 for symbols, and C65 for hangul) to +represent the font encoding scheme of HLaTeX. + +HLaTeX options: + +The option `hardbold' has been integrated into the FD files---I consider the +fact whether you have bold series available or not as a fundamental local +font setup decision which should be coded into the FD files and not into the +document. As a consequence you have to change your FD files to emulate the +`softbold' option with CJK's poor-man's boldface. Example: + + \DeclareFontShape{C63}{gt}{bx}{n}{<-> CJK * wgtb}{} + +should be changed to + + \DeclareFontShape{C63}{gt}{bx}{n}{<-> CJKb * wgt}{\CJKbold} . + +and similar font definitions too. + +[Well, it is not really necessary to modify the FD files to emulate the + `softbold' option: just insert the appropriate \DeclareFontShape and/or + \DeclareFontFamily commands in the preamble of your document.] + +Finally a warning: Please bear in mind that CJK does not emulate the +behaviour of HLaTeX, it only supports its fonts. + + +Big 5 encoding +-------------- + +See below the section `Preprocessors' for the preferred input method using +bg5conv. + +The characters `\', `{', and `}' are used as second bytes in the Big 5 +encoding. This collides with TeX. If you write Big 5 text mixed with other +encodings (and you don't want/can't use Mule, Emacs or bg5conv), you should +use the Bg5text environment which changes the category codes of these +characters. The command prefix is now the forward slash `/', and the +grouping characters are `(' and `)', respectively. + +An example: + + \begin{CJK}{Bg5}{song} + \begin{Bg5text} + ... + /begin(center) + ... + /end(center) + ... + /end(Bg5text) + \end{CJK} + +To get the `/', `(', and `)' characters, write `//', `/(', and `/)' inside +the Bg5text environment. + +This environment is ugly, and some commands like \newcommand don't work in +it. Starting with CJK version 3.0 it is also possible to use different +encodings in preprocessed mode, thus this environment is almost obsolete. + +Instead of using the Bg5text environment you can protect the offending +second bytes with a backslash, i.e., `\{', `\}', `\\' (using a non-Chinese +editor). This doesn't increase the readability of the Chinese text, but for +short texts it is perhaps more comfortable. Alas, it doesn't work in page +header commands because the macros `\{', etc., are not expanded. + +Be careful not to use any commands inside the Bg5text environment which +write something into an external file (commands like \chapter, etc.). + +If it is not possible to avoid Big 5 character codes with `\', `{', or `}' +outside of the Bg5text environment (e.g., having Big 5 text in a \chapter or +\section command), you can replace them with the \CJKchar macro manually: + + \section{This is a problematic Big 5 character: \CJKchar{169}{92}} + +The parameters are the first and second byte of the Big 5 character code. +You can also use hexadecimal or octal notation. See commands.txt for a full +description of \CJKchar. + + +SJIS encoding +------------- + +See below the section `Preprocessors' for the preferred input method using +sjisconv. + +Shift-JIS encoding is widely used on PCs for Japanese. A special feature is +the simultaneous use of one-byte and two-byte encoded characters which arose +because of backwards compatibility. The two-byte encoded character set is +completely identical to the JIS X 0208 character set, even the ordering is +the same. Thus there is no need for special two-byte SJIS FD files; the font +definition files for JIS X 0208 are used. + +The situation is different for one-byte SJIS characters, the so called +`half-width' Katakana (encoding C49) from JIS X 0201. Usually you should use +full-width Katakana fonts too to get a typographically correct output. The +exception is a typewriter font which should really have only the half width +of normal Kanji or Katakana to represent screen snapshots or similar things. +The use of C49 encoding can be controlled with the \CJKhwkatakana and +\CJKnohwkatakana macros (see commands.txt for more information). + +Fonts in C49 encoding scheme must have the character glyphs at the code +points 0xA1-0xDF. + +An environment `SJIStext' similar to `Bg5text' is defined; the same +restrictions as explained in the previous section hold. + + +Big 5+ and GBK encodings +------------------------ + +See below the section `Preprocessors' for the preferred input method using +extconv. + +These relatively new encodings are used in some older MS Windows versions in +Taiwan (Big 5+) and Mainland China (GBK). Both encodings implement the whole +CJK character repertory of Unicode in the Basic Multilingual Plane +(U+4E00-U+9FFF, approx. 21000 characters) and a few other characters but +still try to be backwards compatible. All code points of Big 5 are identical +to the code points in Big 5+, and the same holds for GB 2312-1980 and GBK. +Note that the default CJK font encodings for Big 5+ and Big 5 are *not* +compatible. The same is true for GBK and GB2312. + +Two new environments, `Bg5+text' and `GBKtext' similar to `Bg5text' are +defined also; the same restrictions as above hold. + + +CJK captions +------------ + +To use the supplied caption files you need the koma-script package. The main +reason why I choose these style files instead of the standard classes is the +fact that the author of koma-script is willing to support CJK. On the other +hand, the philosophy of the LaTeX 2e maintainers is not to add new features +to the standard classes. + +The koma-script style files are maintained by Markus Kohm +(Markus.Kohm@gmx.de); they are available at the CTAN hosts. + + +If you say \CJKcaption{<caption>} inside of a CJK environment, the file +<caption>.cpx is loaded (.cpx is a preprocessed version of .cap) + +Example: + + \documentclass{scrartcl}% this is a KOMA-script class + \usepackage{CJK} + + \begin{document} + \begin{CJK*}{GB}{kai} + \CJKcaption{GB}% loading GB.cap + + \chapter{blablabla}% is formatted in Chinese + + ... + + \end{CJK*} + \end{document} + + +Note that for Korean three caption files are available: hanja.cap for +captions using hanja (this corresponds to HLaTeX's `hanja' option) and +two caption files (hangul.cap and hangul2.cap) using hangul. + +For GBK encoding use the GB.cap file. Similarly, use Big5.cap for Big 5+ +encoding. + +In case you want to edit a CAP file, you must create its corresponding +CPX file too. After editing, preprocess the file with + + bg5conv < xxx.cap > xxx.cpx + +(for caption files in SJIS encoding use sjisconv instead), then change +the file name identification strings in the CPX file accordingly. + + +Underlining and other font effects +---------------------------------- + +Full support for Donald Arseneau's ulem.sty package (beginning with version +2000-05-26) is available by using CJKulem.sty (which loads ulem.sty +automatically). No changes to ulem's interface. + +Even more font effects specific to CJK scripts can be found in CJKfntef.sty; +usage examples can be found in the file CJKfntef.tex . + + +Poor-man's boldface +------------------- + +Most CJK fonts available in the public domain do not have bold series. To +emulate boldface by printing the character three times with slight +horizontal offsets some special features are used: + + CJK uses \CJKsymbol internally instead of \symbol to access CJK + characters (after the correct font has been selected). This macro + honours the \ifCJK@bold@ flag; if set it emulates boldface. The default + value of the horizontal offset is 0.015em; to change it you should + redefine \CJKboldshift, the macro which holds this shift. + + \ifCJK@bold@ can be set and unset globally with the commands \CJKbold + and \CJKnormal. These commands are intended to be used with + \DeclareFontShape as follows: + + \DeclareFontShape{C00}{CNS}{m}{n}{<-> CJK * csso12}{} + \DeclareFontShape{C00}{CNS}{bx}{n}{<-> CJKb * csso12}{\CJKbold} + + It should be never necessary to use \CJKnormal since \selectfont has + been modified to always reset \ifCJK@bold@ and to call the + loading-settings (i.e., the sixth parameter) of \DeclareFontShape. + + Additionally, new size functions (CJKb, sCJKb, CJKfixedb, sCJKfixedb, + and others; see fonts.txt for details) have been introduced which are + completely identical to its counterparts without the final `b'. The only + reason to use them is, as shown in the above example, to make the fifth + parameter of \DeclareFontShape for bold series different from the one + for medium series (LaTeX 2e uses this parameter as a macro name to + execute loading-settings, thus they must not be equal). + + +Embedding non-CJK words into CJK text +------------------------------------- + +To enable line breaking you should separate non-CJK words and CJK characters +with horizontal space. But the ordinary space dimensions inserted by TeX +based on the current non-CJK font often looks bad because the surrounding +CJK characters are printed almost side by side (the non-stretched value of +\CJKglue is 0pt). Especially in extreme cases which happen in underfull +\hbox commands the default space distorts the CJK text too much. + +If you say \CJKtilde, the active `~' character doesn't produce an +unbreakable space; instead, the following definition is used: + + \def~{\hspace{0.25em plus 0.125em minus 0.08em}} . + +This defines a space which has a normal width of a quarter (CJK) space. See +the file japanese/shibuaki.txt for some further details. + +Here an example: + + ThisIsChineseText~test~ThisIsChineseText + + ^^^^^^ + +Simply use tilde characters instead of spaces at the border between CJK and +non-CJK characters. + +In BibTeX entries, you have to use `{~}' instead of `~'. + +The original definition of `~' is available as \nbs (non-breakable space, a +shorthand for the LaTeX command \nobreakspace). To return to the standard +`~' macro definition say \standardtilde. + +Note that the opposite is not true: To embed CJK words into non-CJK text an +ordinary space is optimal. + +If you use Mule or Emacs 20 please consider the use of cjktilde.el in +utils/lisp. This small package defines a minor mode (cjk-tilde-mode) which +exchanges the space key with the tilde key. It is convenient to bind this +mode to a key, e.g., C-insert. + +For AUC TeX you can also use cjkspace.el which is similar (but not +identical) to cjktilde.el . + + +Preprocessors +------------- + +Using the `XXXtext' environments like `Bg5text' is a mess. Thus three +preprocessors are provided to overcome the restrictions of the XXXtext +environments: bg5conv and sjisconv Big 5 and SJIS encoding, and extconv for +GBK and Big 5+ encoding characters. Compile them with + + cc -O -s -o bg5conv bg5conv.c + cc -O -s -o sjisconv sjisconv.c + cc -O -s -o extconv extconv.c + +and move the binaries to a location in your path, e.g., /usr/local/bin in +a Unix system. [`cc' is the C compiler.] + +See the batch files bg5latex[.bat], etc., for examples how to use them. + +Each Big 5, Big 5+, or GBK character (and each two-byte encoded SJIS +character) `XY' is converted into the form `^^7fX^^7fZZZ^^7f'; ZZZ is the +decimal equivalent of Y, and ^^7f is a character with the hex value 0x7F. +The use of bg5conv/sjisconv/extconv is completely transparent; no changes to +your documents are necessary. + +It is possible to mix preprocessed and non-preprocessed data; simply use +\CJKenc to change the encoding; you can use \CJKinput and \CJKinclude to +load preprocessed data (see commands.txt for a detailed description). + +If you use traditional Chinese characters within Mule or Emacs 20, it is not +necessary to call bg5conv after the use of *cjk-coding* output encoding (but +it is necessary if you write out the file in Big 5 encoding). + +Note 1: The OS/2 script files bg5latex.cmd, etc., need REXX which you + probably have to install first. + +Note 2: With extconv, you can also preprocess encodings like GB or SJIS. + This has the advantage that such data is robust against any changes + of the uc/lccodes in the range 0xA1-0xFE. Only three encodings can't + be preprocessed: UTF8, EUC-TW, and EUC-JP. + + +Customization +------------- + +In case you want to add encodings, font encodings, and related things, or if +you must change or customize some CJK settings, you should use a +configuration file called `CJK.cfg' which is loaded (if it exists) by +CJK.sty just before the final \endinput command. + + +Caveats +------- + + o You can of course use CJK environments inside of a CJK environment, + but it is possible that you must increase the so called `save size' + of TeX (with emTeX you can adjust this with -ms=...; web2c users + can control it with the `save_size' parameter in texmf.cnf). + + The CJK package has optional arguments which control the scope of + CJK environments: + + lowercase If you want to use \lowercase with encodings + inside CJK environments. You need less save size + using the `encapsulated' option if `lowercase' + is not set. You must use bg5conv (sjisconv) or + cjk-enc.el to use Big 5 (SJIS) characters with + this option. + + Use this with caution! All \lccode values in the + range 0x80-0xFF are set to zero, thus disabling + TeX's hyphenation mechanism for words which + contain characters of this range in the *input + encoding* (e.g., Latin-1 encoded words with + accents). This is due to an unfortunate mangling + of the input and output encoding mechanism in + TeX itself. + + global \lccode (if `lowercase' set), \uccode, \catcode + and the activation of the characters 0x81-0xFE + are globally modified (\lccode and \uccode reset + to 0). This is the most economical mode + concerning save size, but you can't have CJK + environments inside of CJK environments or other + environments which manipulate the character + range 0x81-0xFE. + + All CJK font selection commands are globally too! + + Packages which change some of the above values + only once (e.g., in the preamble) also don't + work after the first use of a CJK environment. + + cjk-enc.el automatically selects this option. + + local \lccode (if `lowercase' set) and \uccode + together with bindings are modified globally. + This is the default. You can stack CJK + environments. + + active If activated, bindings are local additionally. + You need this option if you want to mix + preprocessed text with non-preprocessed text in + nested CJK environments. This can happen if you + merge texts in various encodings. + + encapsulated If you want to access e.g., T1 fonts directly + (i.e., without the macros defined in t1enc.def) + or if you want to use a non-CJK LaTeX 2e input + encoding outside of the CJK environment (e.g., + `latin1' for Western European, `latin2' for + Eastern European), you must use this option. + This also ensures that \uppercase and \lowercase + (together with \MakeUppercase and + \MakeLowercase) work correctly. All values + mentioned above are local, so you can stack + environments. This option probably causes an + overflow of the save size. + + Note: All macro packages which access T1 fonts + with the macros defined in t1enc.def work in CJK + environments! E.g., the command `"s' of + german.sty works with \MakeUppercase too. + + + Say + + \usepackage[<option>]{CJK} + + to activate <option>. + + o There is another way to overcome the problem of stacked + environments. CJK implements four CJK attribute switches: \CJKenc, + \CJKfontenc, \CJKencfamily, and \CJKfamily; see commands.txt for a + detailed description. If you need two different encodings/families + at the same output line, you must use these macros. + + An example for \CJKfamily: + + \begin{CJK}{GB}{song} + ... Text in GB song ... \CJKenc{GBt} + ... Text in GBt song ... \CJKfamily{kai} + ... Text in GBt kai ... + \end{CJK} + + An example for \CJKencfamily: + + \CJKencfamily{Bg5}{fs}% fangsong + \CJKencfamily{GB}{kai} + + \begin{CJK*}{}{} + \CJKenc{Bg5} ... Text in Big 5 fangsong ... + \CJKenc{GB} ... Text in GB kai ... + \end{CJK*} + + Contrary to \begin{CJK}{...}{...} it is not necessary to start a new + line in your TeX document file after \CJKenc. + + o A similar command to \CJKchar is \Unicode{<byte1>}{<byte2>} to + access Unicode characters (real Unicode values, not UTF-8 encoded + Unicode) directly; the parameters are the first (high) and second + (low) byte of the Unicode. \Unicode works only in UTF-8 encoding; in + all other encodings you must use \CJKchar[UTF8]{<byte1>}{<byte2>} + instead. + + o CJK disables \MakeUppercase (preserving the command as + \CJKuppercase) if you select Big 5 or SJIS encoding without using + bg5conv or sjisconv. This usually affects the headers of the LaTeX + 2e standard classes only. + + o Because CJK.sty and MULEenc.sty insert glue between CJK (and Thai) + characters, it is possible to get unwanted line breaks in verbatim + environments if lines are too long. To avoid this, use the command + \CJKverbatim in combination with the `verbatim' package. It installs + a hook which disables \CJKglue and \Thaiglue in verbatim + environments. + + +Possible errors +--------------- + + o If you write Chinese (or Japanese) text, don't forget to suppress + the linefeed character with a trailing `%' in the CJK environment, + otherwise you get unwanted spaces in the output. On the other side, + say `\ ' or something similar inside the CJK* environment to get a + space after a CJK character. + + o To suppress a line break before a CJK character, say \CJKkern. This + command prevents the insertion of \CJKglue before the CJK character. + + You may wonder about the strange name: a small kern (2 sp) between + two CJK characters signals that the first one is a punctuation + character. + + o If you get the error message: `\CJK... undefined' or other `... + undefined ...' messages and you can't find an error, try inserting + \newpage, \clearpage, or \cleardoublepage (the latter for two-column + printing) before saying \end{CJK} or \end{CJK*}. This can happen if + LaTeX 2e writes the headers (or footers) of a page containing CJK + characters after closing the CJK environment. + + In case of footnotes with CJK characters which are split across + pages, you have to close the CJK environment on the page on which + the particular footnote ends (probably preceded by a \newpage + command). + + o If you get overfull \hbox'es caused by CJK characters, try to + increase \CJKglue. It defines the glue between CJK characters; the + default definition is + + \newcommand{\CJKglue}{\hskip 0pt plus 0.08\baselineskip} . + + \CJKglue is inserted by CJK.sty between CJK characters (except + punctuation characters as defined in the punctuation tables; see + CJK.enc for the lists). You should separate non-CJK text from CJK + characters with spaces to enable hyphenation, or you write + \CJKtilde and then use `~' instead of spaces to embed non-CJK text + into CJK characters. + + o If you get overfull \hbox'es caused by Hangul syllables, try to + increase \CJKtolerance. The default definition is + + \newcommand{\CJKtolerance}{400} . + + Alternatively, try to increase \emergencystretch (which is a TeX + primitive), setting it to a reasonable value. + + o It is not possible to start a new encoding inside of a verbatim + environment which has not been loaded before (CJK.sty emits an + \input ... command which causes the encoding file to be printed + verbatim instead of being executed). In this case, write a proper + \CJKenc{...} command before opening the verbatim environment. + + Example: + + \CJKenc{JIS} % this loads standard.enc and standard.chr + + \begin{verbatim} + ... + first time JIS characters appear + ... + \end{verbatim} + + + cjk-enc.el does this automatically for you. + + o If you get an error message which looks like this: + + + ! Undefined control sequence. + try@size@range ...extract@rangefontinfo font@info + <-*>@nil <@nnil + + + then you are using an unknown family for a CJK encoding. + + Reason: If you declare an NFSS font encoding in the standard way the + corresponding FD file for the default font is loaded. For the CJK + package this would be almost 30 files which is inacceptable. To + avoid this overhead NFSS is faked with some rudimentary definitions + just enough to pass the NFSS tests. Of course this has a + disadvantage: An unknown CJK family causes the above error instead + of switching to the fallback family usually defined with + \DeclareFontSubstitution. Nevertheless, replacing an undefined + series or shape works correctly. + + The CJK package's default family value is `song' for all encodings + except KS; to avoid the error just described in cases you start an + environment with an empty family parameter XXXsong.fd files for all + encodings (except for KS) are provided. + + o It is neither possible to use a CJK character in a \cite command of + standard LaTeX, nor is it possible to use the `alpha' citation + style. This is a limitation of LaTeX and not of the CJK package. + + o Sometimes it is necessary to define or redefine a command or + environment globally in the preamble, using CJK characters. Example: + + \newtheorem{Them}{some Chinese characters}[section] + + This won't work directly because of the Chinese characters, + producing an error. The next idea is to use a CJK environment in the + preamble: + + \begin{CJK}{...}{...} + \newtheorem{Them}{some Chinese characters}}[section] + \end{CJK} + + Don't be surprised that this also fails! Most commands like + \newtheorem expand to \def which define a macro locally only; + consequently, the just defined command is undefined again after + leaving the CJK environment. + + The correct solution is to use a globally defined macro: + + \begin{CJK}{...}{...} + \gdef\ChineseTheorem{some Chinese characters} + \end{CJK} + + \newtheorem{Them}{\ChineseTheorem}[section] + + o The \makelabels command of letter.sty needs special treatment if you + have an address with CJK characters because it uses the + \AtEndDocument hook to write out its data. Since \AtEndDocument is + called by \end{document} after all environments have been closed + already, a CJK environment must be explicitly inserted into the AUX + file. Example: + + \documentclass{letter} + + \usepackage{CJK} + + \makeatletter + \AtBeginDocument{% + \if@filesw + \immediate\write\@mainaux{\string\begin{CJK*}{...}{...}}% + \fi} + \makelabels + \AtEndDocument{% + \if@filesw + \immediate\write\@mainaux{\string\end{CJK*}}% + \fi} + \makeatother + + + \begin{CJK*}{...}{...} + \address{An address\\ + with some CJK characters} + \signature{...} + \end{CJK*} + + + \begin{document} + + \begin{CJK*}{...}{...} + + \begin{letter}{Another address\\ + with some CJK characters} + \opening{...} + + Your letter text + + \closing{...} + \end{letter} + + \end{CJK*} + + \end{document} + + o A similar solution is needed if you use \bibliography and your + bibliographic database contains author names with CJK characters. + + \makeatletter + \AtBeginDocument{% + \if@filesw + \immediate\write\@mainaux{\string\begin{CJK*}{...}{...}}% + \immediate\write\@mainaux{\string\makeatletter}% + \fi} + \AtEndDocument{% + \if@filesw + \immediate\write\@mainaux{\string\end{CJK*}}% + \fi} + \makeatother + + o If you get strange error messages while using the hyperref package, + add the `CJKbookmarks' option: + + \usepackage[CJKbookmarks]{hyperref} + + +Author +------ + +Werner Lemberg <wl@gnu.org> + +Kleine Beurhausstr. 1 +D-44137 Dortmund +Germany + +Tel. +49 231 165290 + +Please report any errors or suggestions to cjk-bug@ffii.org. + + +---End of CJK.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/CJKutf8.txt b/Master/texmf-dist/doc/latex/CJK/doc/CJKutf8.txt new file mode 100644 index 00000000000..2e1d1e42c6c --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/CJKutf8.txt @@ -0,0 +1,29 @@ +This is the file CJKutf8.txt of the CJK macro package ver. 4.6.0 +(11-Aug-2005). + +CJKutf8.sty +----------- + +This package merges base LaTeX's and CJK's UTF-8 support. If a Unicode +character (within a CJK environment) corresponds to a glyph from the +selected LaTeX font encoding, use it, otherwise it is taken from the +selected CJK unicode font. + +Usage: + + \usepackage[<font encoding>]{CJKutf8} + + The <font encoding> value is directly passed to the `fontenc' package. + Besides `fontenc', CJKutf8.sty also loads the CJK package with the + `encapsulated' option so that you can use UTF-8 outside of the CJK + environment also. + + Note that only font encodings with a corresponding DFU file actually + have Unicode definitions (for example, `t1enc.dfu'). + + Only use UTF-8 encoding for the CJK environment! Other encodings + don't give an error but might replace some CJK characters with glyphs + from the selected LaTeX encoding. + + +---End of CJKutf8.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/COPYING b/Master/texmf-dist/doc/latex/CJK/doc/COPYING new file mode 100644 index 00000000000..b2fe7b6af35 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/Master/texmf-dist/doc/latex/CJK/doc/INSTALL b/Master/texmf-dist/doc/latex/CJK/doc/INSTALL new file mode 100644 index 00000000000..dab76d8bbd6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/INSTALL @@ -0,0 +1,691 @@ +This is the file INSTALL of the CJK macro package ver. 4.6.0 (11-Aug-2005). + +Installation Guide +================== + +It is probably a good idea to get a packaged version of CJK---be warned that +installing CJK is *not* trivial. + +The easiest solution is to use the TeX Live CD which is distributed among +members of TeX user groups worldwide. It comes with a ready-to-run CJK setup +together with basic CJK fonts (in outline format if freely available) for +almost all encodings. + +. Mike Fabian <mfabian@suse.de> has bundled the CJK package with a lot of + Asian fonts; his RPMs are available from + + ftp://ftp.suse.com/pub/people/mfabian/ + + Even if you don't use the SuSE distribution it should be straightforward + to `install' the fonts (this is, handling the RPMs as archives and copying + its contents into the texmf tree using the programs `rpm' and `rpm2cpio'). + +. RPMs for RedHat and Fedora are available here: + + http://apt.ling.li/rpms/cjk/ + +. For FreeBSD try this: + + http://www.freebsd.org/ports/chinese.html + +. Unofficial packages for Debian: + + http://mentors.debian.net/debian/pool/main/l/latex-cjk/ + +. MikTeX also provides packages for CJK. + + +Here a check list for the impatient (experienced) user which tries to show +whether you've done all steps to install the CJK package and fonts. It is +assumed that you want to install both ttf2pk and hbf2gf. + +Detailed explanations can be found below. + + +--- begin checklist --------------------------------------------------------- + +. Have you installed a LaTeX 2e version newer or equal to 2001/06/01? The + version of LaTeX is given in each log file produced by LaTeX. For using + CJKutf8.sty you even need version 2003/12/01. + +. Have you removed an older version of CJK? If not, do it now but don't + forget to save your FD and other files which you have changed! Don't + forget also to remove the ttf2pk and hbf2gf binaries. + +. Can the texinput tree of the CJK package be found by your TeX + implementation? Have you activated subdirectory searching? + +. Have you downloaded the needed font packages (either ps, hbf or ttf)? See + also contrib/wadalab/DNP.txt for the Japanese Wadalab fonts. Have you + moved the TFM files into your TFM-tree (or updated TFMINPUTS accordingly)? + Ditto for VF files if needed. + +. Have you installed ttf2pk and ttf2tfm from the FreeType 1 package (only + needed for TrueType fonts)? Note that FreeType 2 won't work. + +. Have you run ttf2tfm to create the proper TFM files from your TrueType + fonts? This won't be done automatically via mktextfm or MakeTeXTFM! + +. Have you updated the ttfonts.map file for ttf2pk? Have you updated the + various hbf2gf config files? Have you copied them to the right places? + Don't forget to install ttf2pk's SFD and other data files which define the + various CJK subfonts and encodings. + +. Have you modified and installed the script files for automatic font + generation (not necessary for teTeX 1.0 or newer)? + +. If you want Thai support, have you followed the instructions given in + thaifont.txt? + + +web2c/teTeX users: + +. Do you have a C compiler and a make program available for compilation? GNU + gcc and GNU make are recommended. + +. Have you updated special.map? + +. Have you used the options --with-kpathsea-include=... and + --with-kpathsea-lib=... while calling the configure script of hbf2gf + (or ttf2pk)? Otherwise no file searching library is used which yields + surprising results... Note: Don't use `/usr/include/kpathsea', for + example, but `/usr/include' as an argument to --with-kpathsea-include. + +. To check whether kpathsea correctly finds HBF files and configuration + files for hbf2gf, say: + + kpsewhich -progname=hbf2gf -format='misc fonts' <your_font>.hbf + kpsewhich -progname=hbf2gf -format='other text files' <your_file>.cfg + + The same for TrueType fonts and the ttf2pk config file: + + kpsewhich -progname=ttf2pk <your_font>.ttf + kpsewhich -progname=ttf2pk -format='other text files' ttfonts.map + + [Recent kpathsea versions (like 3.5.5) which come with the new teTeX or + TeXLive distributions have a new variable `TEXFONTMAPS' for map files; + you should use this test + + kpsewhich -progname=ttf2pk -format=map ttfonts.map + + instead of the last one.] + +. Have you compiled the various *conv utility programs (like bg5conv)? Have + you installed them together with the caller scripts (like bg5latex) in + your path? FOR BIG 5 ENCODING YOU SHOULD ALWAYS USE bg5latex or + bg5pdflatex (except if you use cjk-enc.el). FOR SJIS ENCODING YOU SHOULD + ALWAYS USE sjislatex or sjispdflatex. + +. Have you updated and controlled the texmf.cnf configuration file or set + the various environment variables? (TEXINPUTS, TFMFONTS, PKFONTS, + MISCFONTS, TTFONTS, probably TTF2PKINPUTS, TTF2TFMINPUTS, HBF2GFINPUTS) + +. ttf2pk and hbf2gf should be in the same directory where your TeX binaries + like `texconfig' or `gftopk' are (or you must set TEXMFCNF and probably + TEXMF in the environment). Soft links won't work! + +. Finally, have you run texhash (or mktexlsr) after finishing all other + things? + + +emTeX users: + +. Have you created a LaTeX format file which allows plain 8bit input and + output without using any TeX Code Page (tcp)? + +. Have you installed 4DOS (4OS2 or Take Command) for running the file + dvidrv.btm? + +. Have you configured dvidrv.btm? + +. Have you installed the various *conv utility programs (like bg5conv)? + together with the caller scripts (like bg5latex.bat)? FOR BIG 5 ENCODING + YOU SHOULD ALWAYS USE bg5latex.bat . FOR SJIS ENCODING YOU SHOULD ALWAYS + USE sjisltx.bat . + +. Have you created and installed TFM files for fonts not in a CJK font + package? + +. Check whether you have updated all needed environment variables (TEXINPUT, + TEXTFM, TTFONTS, TTFCFG, HBFONTS, HBFCFG) and your dvidrv configuration + file or files (+font-files, +virtual-fonts). + + +In case of errors, verify the list step by step. Detailed information for +each step can be found in the documentation files of CJK. Under web2c or +teTeX, you can set the KPATHSEA_DEBUG environment variable to -1, then all +debugging info is shown and sent to stderr; it is *highly* recommended that +you read the kpathsea.info files. Under emTeX, read the various +documentation files, especially dvidrv.doc and tex.doc, and check the log +file of your dvi driver. + +For hbf2gf, read hbf2gf.txt and its manual page (hbf2gf.1 or a formatted +version of it). Similarly, more info on ttf2tfm and ttf2pk can be found in +ttf2pk.doc and the manual pages ttf2pk.1 and ttf2tfm.1 (or a formatted +version). + +--- end checklist ----------------------------------------------------------- + + + +Unix (web2c and teTeX) +---------------------- + +. If you can become root, rename the `texinput' directory tree of CJK into + `CJK' or something else and add it to your (local) web2c texinput tree + (for example, /usr/local/share/texmf.local/tex/latex/CJK). + +. If you can't become root, modify the TEXINPUTS environment variable + instead so that it includes the CJK directory; use a command similar to + + setenv TEXINPUTS :<your CJK directory>// + + to let TeX search the standard directories and your CJK tree, e.g., + + setenv TEXINPUTS :/home/joe_user/CJK/4_3.0/texinput// + + (Note the leading double colon to append a path, and the double slash to + activate subdirectory searching---for details see the kpathsea info + files.) + + [Recent teTeX and TeXLive versions automatically search a TEXMF tree in + your home directory called `texmf'.] + + See contrib/wadalab/DNP.txt for the Japanese Wadalab fonts. + +. Edit the FD files of the encodings you want to use to specify the fonts + you have. An explanation of the additional size commands CJK provides can + be found in fonts.txt . + + Note: Most FD example files from the CJK package are set up for PS fonts + from the TeXLive distribution. + + If you use the CJK font packages (see below) no changes are needed. + +. [In case you plan to use only outline fonts (PFB, TTF) you can omit the + installation of hbf2gf and HBF fonts.] + + If necessary, create TFM (and PK) files from CJK bitmaps with hbf2gf + (found in utils/hbf2gf). This program comes with a configure script; say + `./configure --help' in the utils/hbf2gf directory for configuration + options. You need a compiled kpathsea library and its header files; in + most cases you say + + ./configure --prefix=/usr/local/TeX \ + --with-kpathsea-include=<INCLUDEDIR> \ + --with-kpathsea-lib=<LIBDIR> + make + make install + + for a normal compilation and installation. Replace `/usr/local/TeX' with a + path to your TeX distribution, and <DIR> with the directory one level + higher than the library and the include files themselves. Example: + libkpathsea.a is in /usr/local/TeX/lib/i686-linux, kpathsea.h is in + /usr/local/TeX/include/kpathsea; then <LIBDIR> should be + `/usr/local/TeX/TeX/lib/i686-linux', and <INCLUDEDIR> should be + `/usr/local/TeX/include' (and not `/usr/local/TeX/include/kpathsea). + + See hbf2gf.txt, the man page (hbf2gf.1), and the documentation of the + source file (hbf2gf.dvi) for further details. Usually it is sufficient to + let hbf2gf create a complete set of TFM files; PK fonts are then created + on demand. + + Older kpathsea versions need a patched MakeTeXPK or mktexpk script; you + should apply the proper patch(es) from utils/hbf2gf/scripts. No changes to + the script files are necessary for teTeX 1.0 and newer. + + The CJK font packages already contain TFM (and VF) files arranged for the + (new) TDS directory structure; add it directly to your TEXMF tree. + +. Free Chinese TrueType fonts (for both simplified and traditiional Chinese) + with a license similar to the GPL can be found on + ftp://ftp.gnu.org/gnu/nongnu and its mirrors worldwide. You might also + search websites of companies offering WWW browser; they often come with + CJK language packs which contain CJK TrueType fonts. + + Please note that many CJK TrueType fonts only have a Unicode mapping + table. You should use the SFD files from the ttf2pk package starting with + the letter `U' (e.g., UKS.sfd) which maps Unicode fonts to language + specific encoded subfonts as needed by the CJK package. + + The ttf2pk package found in the contrib/ttf2pk directory of + + ftp://ftp.freetype.org/pub/ + freetype/unstable/freetype1-contrib-current.tar.gz + + contains the two programs ttf2tfm and ttf2pk for converting TrueType fonts + into TFM and PK fonts, respectively. By the way, this package is not + restricted to CJK TrueType fonts; it works with other TrueType fonts too. + Read the manual pages and the documentation for further information. For + compilation you also need the FreeType 1 package: + + ftp://ftp.freetype.org/pub/freetype/unstable/freetype-current.tar.gz + +. The font editor `fontforge' (available from http://fontforge.sf.net) is + capable to generate Type 1 subfonts as needed by CJK from other formats + like TTF, OTF or CID (using the subfont definition files from ttf2pk). + Such subfonts should be usable by virtually all platforms. + + (Funnnily, fontforge uses the `.sfd' extension also for saving font files + it creates.) + + Although fontforge needs the X Window System, it can be compiled without a + graphical interface, using a scripting language to control font + conversion. The directory `utils/subfonts' of the CJK package contains + useful scripts for manipulating subfonts. + +. It is recommended to add all CJK fonts which are converted to the PK font + format (either with hbf2gf or ttf2pk) to the file special.map: Assuming + that your PK fonts should be generated in + + $TEXMF/fonts/pk/modeless/gb2312/gsfs14/ + + the proper entries would be + + gsfs1401 gb2312 gsfs14 + gsfs1402 gs2312 gsfs14 + ... + +. Compile the small preprocessors in the utils subdirectories with + + cc -O -s -o bg5conv bg5conv.c + cc -O -s -o sjisconv sjisconv.c + cc -O -s -o cefconv cefconv.c + cc -O -s -o cef5conv cef5conv.c + cc -O -s -o cefsconv cefsconv.c + cc -O -s -o extconv extconv.c + + and move them into TeX's bin directory (together with the shell scripts) + or modify the PATH environment variable appropriately. (`cc' can be any C + compiler.) + + The script files `...latex' make the use of these programs transparent. + +. Move the man pages into your man1 directory tree. + +. If you want to use Mule/emacs 20/XEmacs 21 together with the CJK package, + you should install cjk-enc.el (in utils/lisp). See cjk-enc.txt for + documentation. Choose the correct cjk-enc.el version---note that the Mule + version has limited capabilities compared to the Emacs version. + + Move cjk-enc.el to a place which is searched by Mule (e.g., + /usr/local/lib/mule/site-lisp) and put the following line into your emacs + file: + + (load-library "cjk-enc") + + The default directory for emacs 20 is /usr/local/share/emacs/site-lisp. + +. If you mainly write Chinese or Japanese with Emacs or Mule, consider the + use of cjktilde.el (in utils/lisp). This file contains a minor mode which + exchanges the tilde key with the space key. See the documentation of + \CJKtilde in CJK.txt for the reasons to use `~' in most cases instead of + a space character. + + To install, move cjktilde.el to a place which is searched by Emacs or Mule + (e.g., /usr/local/share/emacs/site-lisp) and put the following line into + your .emacs file: + + (load-library "cjktilde") + + To toggle the CJK tilde mode say + + M-x cjk-tilde-mode + + You can then assign cjk-tilde-mode to a key, e.g., shift-insert. + +. If you use AUCTeX you can try cjkspace.el instead of cjktilde.el; it works + in a similar (but not identical) way and is special to LaTeX buffers. Move + the file to the local lisp directory and put the following lines into your + .emacs file: + + (autoload 'CJK-insert-space "cjkspace" + "Insert tildes appropriately in CJK document." t) + (defun my-LaTeX-mode-hook () + "My personal key definitions for LaTeX mode." + (define-key LaTeX-mode-map " " 'CJK-insert-space)) + (add-hook 'LaTeX-mode-hook 'my-LaTeX-mode-hook) + + Please read the documentation in the file cjkspace.el . + +. For Thai support please follow the instructions given in `thaifont.txt'. + + +DOS and OS/2 (emTeX) +-------------------- + +web2c has been ported to MS-DOS. If you use this (which I recommend), follow +the instructions above. + +. Note that some Unix specific shell scripts and other files have names + longer than 8 characters. You don't need them. Some of the TeX input files + have lower and uppercase characters in its filenames, but none of the + filenames collide under DOS. + +. Move the `texinput' directory tree to a place where TeX scans for input + files (and rename it to `cjk' or something else). Note that its + subdirectories are specific to encoding schemes. emTeX allows for + recursively scanned search paths, thus retaining the directory tree is + possible. + + Example: + + CJK files: c:\emtex\texinput\cjk\... + environment: set emtexdir=c:\emtex + set texinput=%emtexdir%\texinput!! + + See contrib/wadalab/DNP.txt for the Japanese Wadalab fonts. + +. [In case you plan to use only outline fonts (PFB, TTF) you can omit + this step.] + + Compile hbf2gf. You need GNU make and either the emx (DOS and OS/2) or + the djgpp (DOS and Windows) compiler. + + Say `make -f Makefile.gnu' to see the possible options; more info can be + found in hbf2gf.txt . + +. Compile the utility programs. + + cc -O -s -o bg5conv bg5conv.c + cc -O -s -o sjisconv sjisconv.c + cc -O -s -o cefconv cefconv.c + cc -O -s -o cef5conv cef5conv.c + cc -O -s -o cefsconv cefsconv.c + cc -O -s -o extconv extconv.c + +. Move the various BAT files (for DOS) and/or the CMD REXX scripts (for + OS/2) into a directory in the path (e.g., c:\emtex\bin). + +. Edit the FD files of your encoding(s) to specify the fonts you have. An + explanation of the additional size commands CJK provides can be found in + fonts.txt . + + Note: Most FD example files from the CJK package are set up for PS fonts + from the TeXLive distribution. + + If you use the CJK font packages (see below) no changes are needed. + +. [In case you plan to use only outline fonts (PFB, TTF) you can omit this + step.] + + If necessary, create TFM (and PK) files from CJK bitmaps with hbf2gf + (found in utils\hbf2gf). See hbf2gf.txt and the documentation of the + source file (hbf2gf.dvi) for explanation. Usually it is sufficient to let + hbf2gf create a complete set of TFM files; PK fonts are then created on + demand (this is done with the dvidrv.btm shell script of the CJK package). + + You need 4DOS or 4OS/2 (these are shareware replacements for command.com) + to run dvidrv.btm. + + dvidrv.btm should also work with Take Command/16, Take Command/32, or Take + Command for OS/2. + + The CJK font packages already contain TFM (and VF) files (arranged for the + (new) TDS directory structure; unpack the font packages in the root + directory with + + gzip -d CJK_font_archive.tgz + tar xvf CJK_font_archive.tar + + Rearrange the directory structure as suggested below (to make the file + search mechanism of emTeX faster) and modify the appropriate environment + variables to include the additional directories. The same holds for the + CJK bitmap fonts, its HBF header files and the hbf2gf configuration files. + + [Note: Binaries for the gzip and tar archive programs can be found on CTAN + in the `utils' subdirectory.] + + Example: + + jfs56.tar.gz (should be ftp'ed as jfs56.tgz if you work under DOS + since two dots are not allowed) + + suggested final directory structure (after unpacking and rearranging): + + c:\texmf\fonts\tfm\gsfs1401.tfm ... + c:\texmf\hbf2gf\gsfs14.cfg + c:\texmf\fonts\hbf\gb2312\jfs56\jfs56.a ... + [ c:\texmf\fonts\pk\modeless\XXXdpi\gsfs1401.pk ... ] + + Add these lines to the end of autoexec.bat: + + set texmfdir=c:\texmf + set cjkpk=%texmfdir%\fonts\pk + set textfm=%textfm%;%texmfdir%\fonts\tfm + + Under OS/2, add similar lines (but with expanded pathnames) to the end + of config.sys: + + set texmfdir=c:\texmf + set cjkpk=c:\texmf\fonts\pk + set textfm=<your old textfm path>;c:\texmf\fonts\tfm + + Changes in gsfs14.cfg: + + pk_directory $texmfdir\fonts\pk\modeless\432dpi\ + tfm_directory $texmfdir\fonts\tfm\ + + Changes in dvidrv.btm: + + set pkdir=%texmfdir%\fonts\pk + set ttfcfg=%texmfdir%\ttf2pk + set hbfcfg=%texmfdir%\hbf2gf + + set pre_dpi= + set post_dpi=dpi + + Changes in a dvi driver configuration file (.cnf) for emTeX: + + +font-files:{<your old pk path>,$texmfdir:fonts\modeless}\@Rrdpi\@f.pk + +. Free Chinese TrueType fonts (for both simplified and traditiional Chinese) + with a license similar to the GPL can be found on + ftp://ftp.gnu.org/gnu/nongnu and its mirrors worldwide. You might also + search websites of companies offering WWW browser; they often come with + CJK language packs which contain CJK TrueType fonts. + + Please note that many CJK TrueType fonts only have a Unicode mapping + table. You should use the SFD files from the ttf2pk package starting with + the letter `U' (e.g., UKS.sfd) which maps Unicode fonts to language + specific encoded subfonts as needed by the CJK package. + + The ttf2pk package can be found in the contrib/ttf2pk directory of + + ftp://ftp.freetype.org/ + freetype/unstable/freetype1-contrib-current.tar.gz + + contains the two programs ttf2tfm and ttf2pk for converting TrueType fonts + into TFM and PK fonts, respectively. By the way, this package is not + restricted to CJK TrueType fonts; it works with other TrueType fonts too. + Read the manual pages and the documentation for further information. For + compilation you also need the FreeType 1 package: + + ftp://ftp.freetype.org/pub/freetype/unstable/freetype-current.tar.gz + +. The font editor `fontforge' (available from http://fontforge.sf.net) is + capable to generate Type 1 subfonts as needed by CJK from other formats + like TTF, OTF or CID (using the subfont definition files from ttf2pk). + Such subfonts should be usable by virtually all platforms. + + (Funnnily, fontforge uses the `.sfd' extension also for saving font files + it creates.) + + Although fontforge needs the X Window System, it can be compiled without a + graphical interface, using a scripting language to control font + conversion. The directory `utils/subfonts' of the CJK package contains + useful scripts for manipulating subfonts. + +. You find the some standard Hangul PK fonts for 300dpi (cx) and 600dpi + (ljfour) resolution in the following archives: + + han.300.tar.gz + han1.300.tar.gz + han.600.tar.gz + han1.600.tar.gz + han.tfmvf.tar.gz + han1.tfmvf.tar.gz + + It is necessary to rearrange not only the directory structure but the + names of the dpi directories too: The TeX directory standards specifies + `dpiXXX', but emTeX provides by default `XXXdpi'. + + The final locations of the packages' files should be + + c:\texmf\fonts\tfm\ + c:\texmf\fonts\vf\ + c:\texmf\fonts\pk\{cx,ljfour}\XXXdpi\ + + Additionally to the above example you should add this to the end of + autoexec.bat: + + set cjkvf=%texmfdir%\fonts\vf + + or config.sys for OS/2: + + set cjkvf=c:\texmf\fonts\vf + + Assuming that you use the 300dpi Hangul PK fonts (for a cx printer) you + should do the following changes in your dvi driver configuration file + (suffix `.cnf') for emTeX (still continuing the above example): + + +font-files:{<your old pk path>,$texmfdir:fonts\{modeless,cx}}\@Rrdpi\@f.pk + +virtual-fonts:{<your old vf path>,$texmfdir:fonts}\@f.vf + +. For Thai support please follow the instructions given in `thaifont.txt'. + + +Other systems +------------- + +Recent versions of CJK have only been tested with web2c; nevertheless, it +should run on other systems too: + + The font editor `fontforge' (available from http://fontforge.sf.net) is + capable to generate Type 1 subfonts as needed by CJK from other formats + like TTF, OTF or CID (using the subfont definition files from ttf2pk). + Such subfonts should be usable by virtually all platforms. + + (Funnnily, fontforge uses the `.sfd' extension also for saving font files + it creates.) + + Although fontforge needs the X Window System, it can be compiled without a + graphical interface, using a scripting language to control font + conversion. The directory `utils/subfonts' of the CJK package contains + useful scripts for manipulating subfonts. + + If no outline fonts are available and you have to use HBF fonts, try to + compile hbf2gf. Since it is written in ANSI C it should be fairly portable + (if patches are needed please send them to the author; most likely you + have to modify the file operating routines). If this fails it is necessary + to build the various PK fonts on a different machine. It has been reported + that older GNU compilers on the NeXT have difficulties with `%i' + formatting parameters in the HBF API (hbf.c): replace all occurrences of + `%i' with `%d'. + + If there exists an equivalent to mktexpk (or dvidrv.btm), try to modify it + similar to CJK's changes so that CJK fonts can be created on the fly. If + this fails you can only use precompiled sets of CJK fonts (this is, using + PK fonts generated on another platform). + + The rest should be rather trivial for the experienced user; again, please + write the author if you have successfully installed the package and send a + report how to install. + + +How to get CJK and related software +----------------------------------- + +. You find CJK and software related to TeX at the CTAN hosts (Comprehensive + TeX Archive Network). These completely identical ftp servers (concerning + TeX software) are + + ftp.dante.de DANTE (Deutsche Anwendervereinigung fuer TeX) + Hamburg (Germany) + ftp.tex.ac.uk Cambridge University + Cambridge (England) + ctan.tug.org TUG (TeX Users Group) + Massachusetts (USA) + + You should use the nearest one, or even better, a local mirror of a CTAN + host (say `finger ctan@ftp.dante.de' to get a list of all known mirrors; + the file `CTAN.sites' on CTAN also contains such a list). + + On CTAN, the CJK package itself is unpacked. To receive the complete + package, go to the parent directory of CJK and say + + get CJK.zip + + or + + get CJK.tar.gz + + whatever is appropriate for your system. + + The CJK directory and all its subdirectories are sent to you in compressed + form. Be aware that not all mirrors of CTAN sites support compression of + directories. + +. The documentation bundle of the CJK package is not unpackaged; download it + as + + get cjk-4.6.0-doc.tar.gz + + or + + get cjk-4.6.0-doc.tar.gz cjkdoc.tgz + + whatever is appropriate for your system. It contains precompiled versions + (in DVI, PDF, text format) of all documentation and example files. + +. PostScript font packages with subfonts which can be directly used by the + CJK package are already available on CTAN: + + traditional Chinese: + fonts/arphic/bkai00mp-<version>.tar.gz + fonts/arphic/bsmi00lp-<version>.tar.gz + + simplified Chinese: + fonts/arphic/gbsn00lp-<version>.tar.gz + fonts/arphic/gkai00mp-<version>.tar.gz + + Japanese: + fonts/wadalab/gothic-0-13-<version>.tar.gz + fonts/wadalab/maru-0-8-<version>.tar.gz + fonts/wadalab/maru-1-8-<version>.tar.gz + fonts/wadalab/mincho-0-12-<version>.tar.gz + fonts/wadalab/mincho-0-8-<version>.tar.gz + fonts/wadalab/mincho-1-8-<version>.tar.gz + + Korean: + fonts/korean/HLaTeX/uhc-bom.tar.gz + fonts/korean/HLaTeX/uhc-dinaru.tar.gz + fonts/korean/HLaTeX/uhc-fonts.tar.gz + fonts/korean/HLaTeX/uhc-gothic.tar.gz + fonts/korean/HLaTeX/uhc-graphic.tar.gz + fonts/korean/HLaTeX/uhc-gungseo.tar.gz + fonts/korean/HLaTeX/uhc-jamo.tar.gz + fonts/korean/HLaTeX/uhc-myoungjo.tar.gz + fonts/korean/HLaTeX/uhc-pen.tar.gz + fonts/korean/HLaTeX/uhc-pilgi.tar.gz + fonts/korean/HLaTeX/uhc-pilgia.tar.gz + fonts/korean/HLaTeX/uhc-shinmun.tar.gz + fonts/korean/HLaTeX/uhc-taza.tar.gz + fonts/korean/HLaTeX/uhc-vada.tar.gz + fonts/korean/HLaTeX/uhc-yetgul.tar.gz + + You should consult the documentation and the font samplers of those + packages (if available) for more informations. + +. Mule 2.3 can be downloaded from this Japanese host: + + ftp://ftp.m17n.org/pub/mule/mule-2.3.tar.gz + + [Note: You need Mule 2.3 only for right-to-left scripts like Arabic or + Hebrew which aren't yet supported in emacs 20. Otherwise, I strongly + recommend to get FSF emacs 20.7 or newer, or XEmacs 21.1 or newer which + is available from ftp.gnu.org (USA) and ftp.xemacs.org, respectively, and + its many mirrors.] + + +---End of INSTALL--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/TDS.txt b/Master/texmf-dist/doc/latex/CJK/doc/TDS.txt new file mode 100644 index 00000000000..df159f1cdc8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/TDS.txt @@ -0,0 +1,172 @@ +This is the file TDS.txt of the CJK macro package ver. 4.6.0 (11-Aug-2005). + +The TeX Directory Structure (TDS) +--------------------------------- + +A working group of the American TeX Users Group (TUG) has developed the TDS +standard (available from the CTAN hosts in tex-archive/tds). That document +describes a default directory structure where and how to store the many +different files needed for a complete TeX system. + +The following describes the recommended default directories used in the CJK +package for its files; $TEXMF stands for the place where the texmf directory +resides (a possibly better place for distributions based on web2c is +$TEXMFLOCAL; see texmf.cnf of your TeX package for details): + +We follow TDS 1.1 and the setup of TeXLive 2005; this corresponds to +kpathsea 3.5.5. Some of the variables don't exist in older kpathsea +implementations---please read the man page of ttf2tfm for more information +on the old locations. + + +CJK TeX files (you should move the whole `texinput' tree of the CJK package + to this place): + + $TEXMF/tex/latex/CJK/<CJK subdirs>/<CJK TeX files> + + example: + /usr/local/web2c-7.0/texmf/tex/latex/CJK/Bg5/Bg5.cap + + affected variable: $TEXINPUTS + + +TrueType fonts: + + $TEXMF/fonts/truetype/<supplier>/<truetype font> + + example: + /usr/local/teTeX/texmf/fonts/truetype/arphic/gbsn00lp.ttf + + affected variable: $TTFONTS + + You should append proper entries for all subfonts to special.map to make + web2c's name parsing algorithm happy (otherwise it can happen that the + created PK and TFM files are placed into rather strangely named + directories). + + Example lines to append for the above font: + + gbsnlp01 arphic gbsnlp + gbsnlp02 arphic gbsnlp + ... + + +HBF fonts: + + $TEXMF/fonts/misc/hbf/<supplier>/<hbf name stem>/<hbf files> + + [If no supplier is given, you should use `public' instead.] + + example: + /usr/local/share/texmf/fonts/misc/hbf/public/kanji48/kanji48.{bin,hbf} + + affected variable: $MISCFONTS + + You should append proper entries for all subfonts to special.map to make + web2c's name parsing algorithm happy (otherwise it can happen that the + created PK and TFM files are placed into rather strangely named + directories). + + Example lines to append for the above font: + + kanji4801 public kanji48 + kanji4802 public kanji48 + ... + + +ttf2pk configuration and replacement files (ttf2pk.cfg and *.rpl): + + $TEXMF/ttf2pk + + example: + /usr/local/texmf/ttf2pk/ttf2pk.cfg + + affected variable: $TTF2PKINPUTS + + +ttf2pk map files (*.map): + + $TEXMF/fonts/map/ttf2pk + + example: + /usr/local/texmf/fonts/map/ttf2pk/config/ttfonts.map + + affected variable: $TEXFONTMAPS + + +ttf2pk encoding files (*.enc): + + $TEXMF/fonts/enc/ttf2pk + + example: + /usr/local/texmf.local/fonts/enc/ttf2pk/base/T1-WGL4.enc + + affected variable: $ENCFONTS + + [Note that this location is normally found by ttf2tfm also since the + `ttf2pk' path component doesn't appear explicitly in web2c's $ENCFONTS + value. Instead, it starts subdirectory searching one level higher.] + + +ttf2pk subfont definition files (*.sfd): + + $TEXMF/fonts/sfd + + example: + /home/sx0005/texmf/fonts/sfd/Bg5.sfd + + affected variable: $SFDFONTS + + +hbf2gf configuration files: + + $TEXMF/hbf2gf/<config files> + + example: + /dos/texmf/hbf2gf/gsfs14.cfg + + affected variable: $HBF2GFINPUTS + + +TFM files (<supplier> and <name stem> as specified in special.map): + + $TEXMF/fonts/tfm/<supplier>/<name stem>/<tfm file> + + example: + /usr/local/teTeX/texmf/fonts/tfm/arphic/gbsnlp/gbsnlp23.tfm + + affected variable: $TFMFONTS + + +PK files (<supplier> and <name stem> as specified in special.map) + + $TEXMF/fonts/pk/modeless/<supplier>/<name stem>/<pk file> + + example: + /usr/local/share/texmf/fonts/pk/modeless/uw/uwcxmf/uwcxmf23.3252pk + + affected variable: $PKFONTS + +[There are further possibilities how to store PK files: + + 1. instead of <name>.<dpi>pk you can use dpi<dpi>/<name>.pk + + example: + /texmf/fonts/pk/modeless/public/b5ka12/dpi600/b5ka1217.pk + + 2. teTeX additionally allows you to omit either <supplier> or <name stem> + or both (for PK, TFM, and MF files) + + example: + /texmf/fonts/pk/modeless/b5ka12/dpi600/b5ka1217.pk + + + The first option is necessary on operating systems like DOS which only + allow 8.3 filenames. The second option enables you to use the `!' feature + of the emTeX subdirectory searching algorithm (only one level) instead of + `!!' (search all subdirectory levels) together with its template mechanism + to make emTeX much faster in finding PK files. Now teTeX and emTeX could + share one common texmf tree.] + + +---End of TDS.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/TeXLive.txt b/Master/texmf-dist/doc/latex/CJK/doc/TeXLive.txt new file mode 100644 index 00000000000..dd2fdbb8401 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/TeXLive.txt @@ -0,0 +1,522 @@ +This file shows which files of the `CJK-4.6.0' and `CJK-4.6.0-doc' packages +are stored in which TeXLive bundles (if at all). The format of the entries +is + + <filename> <TeXLive package>[,<TeXLive package>] <remark> + + +CJK-4.6.0 +--------- + +ChangeLog CJK +contrib/wadalab/c42goth.fd CJK +contrib/wadalab/c42goth.fdx CJK +contrib/wadalab/c42maru.fd CJK +contrib/wadalab/c42maru.fdx CJK +contrib/wadalab/c42min.fd CJK +contrib/wadalab/c42min.fdx CJK +contrib/wadalab/c52maru.fd CJK +contrib/wadalab/c52maru.fdx CJK +contrib/wadalab/c52min.fd CJK +contrib/wadalab/c52min.fdx CJK +contrib/wadalab/c70goth.fd CJK +contrib/wadalab/c70maru.fd CJK +contrib/wadalab/c70min.fd CJK +contrib/wadalab/DNP.sfd bin-cjkutils +contrib/wadalab/DNP.txt CJK +contrib/wadalab/fixwada CJK +contrib/wadalab/fixwada2.pl CJK +contrib/wadalab/makefont CJK +contrib/wadalab/makeuniwada.pl CJK +contrib/wadalab/wadalab.map CJK (1) +doc/CEF.txt CJK +doc/chinese/emTeXb5.txt CJK +doc/chinese/README CJK +doc/chinese/READMEb5.tex CJK +doc/chinese/READMEgb.tex CJK +doc/chinese/teTeXb5.txt CJK +doc/cjk-enc.txt CJK +doc/CJK.txt CJK +doc/CJKutf8.txt CJK +doc/commands.txt CJK +doc/COPYING CJK +doc/dvidrv.txt CJK +doc/fdxfiles.txt CJK +doc/fonts.txt CJK +doc/hbf2gf.txt CJK +doc/history.2_5 CJK +doc/history.txt CJK +doc/INSTALL CJK +doc/japanese/ascii.txt CJK +doc/japanese/japanese.jis CJK +doc/japanese/japanese.txt CJK +doc/japanese/jp-fonts.txt CJK +doc/japanese/jp-tex.txt CJK +doc/japanese/preview.txt CJK +doc/japanese/README CJK +doc/japanese/shibuaki.txt CJK +doc/pdf/examples/bkai.map CJK +doc/pdf/examples/cid-x.map CJK +doc/pdf/examples/cwtb.map CJK +doc/pdf/examples/dvipdfmx.cfg CJK +doc/pdf/examples/gen-map.pl CJK +doc/pdf/examples/map.list CJK +doc/pdf/examples/texinput/Bg5/c00cwtb.fd CJK +doc/pdf/examples/texinput/Bg5/c00tmpl.fd CJK +doc/pdf/examples/texinput/GB/c10tmpl.fd CJK +doc/pdf/examples/texinput/JIS/c40tmpl.fd CJK +doc/pdf/examples/texinput/SJIS/c49tmpl.fd CJK +doc/pdf/examples/updmap.my CJK +doc/pdf/examples/wcl.sfd CJK +doc/pdf/HOWTO.txt CJK +doc/pinyin.txt CJK +doc/pyhyphen.txt CJK +doc/reftex.txt CJK +doc/ruby.txt CJK +doc/TDS.txt CJK +doc/thaifont.txt CJK +doc/vertical.txt CJK +examples/Big5.tex CJK +examples/Big5vert.tex CJK +examples/CEF_test.tex CJK +examples/CJKbabel.tex CJK +examples/CJKfntef.tex CJK +examples/CJKmixed.tex CJK +examples/CJKutf8.tex CJK +examples/GB.tex CJK +examples/JIS.tex CJK +examples/KS.tex CJK +examples/muletest.tex CJK +examples/py_test.tex CJK +examples/README CJK +examples/rubytest.tex CJK +examples/SJIS.tex CJK +examples/thai.tex CJK +examples/UTF8.tex CJK +Makefile --- +README CJK +texinput/Bg5/Bg5.cap CJK +texinput/Bg5/Bg5.chr CJK +texinput/Bg5/Bg5.cpx CJK +texinput/Bg5/Bg5.enc CJK +texinput/Bg5/c00bkai.fdx CJK +texinput/Bg5/c00bsmi.fd CJK +texinput/Bg5/c00bsmi.fdx CJK +texinput/Bg5/c00bsmir.fd CJK +texinput/Bg5/c00bsmir.fdx CJK +texinput/Bg5/c00cns.fd CJK +texinput/Bg5/c00fs.fd CJK +texinput/Bg5/c00kai.fd CJK +texinput/Bg5/c00kair.fd CJK +texinput/Bg5/c00kair.fdx CJK +texinput/Bg5/c00song.fd CJK +texinput/Bg5/c01song.fd CJK +texinput/Bg5/c09song.fd CJK +texinput/CEF/c80song.fd CJK +texinput/CEF/c81song.fd CJK +texinput/CJK.enc CJK +texinput/CJKfntef.sty CJK +texinput/CJKnumb.sty CJK +texinput/CJK.sty CJK +texinput/CJKulem.sty CJK +texinput/CJKutf8.sty CJK +texinput/CJKvert.sty CJK +texinput/CNS/c31song.fd CJK +texinput/CNS/c32song.fd CJK +texinput/CNS/c33song.fd CJK +texinput/CNS/c34song.fd CJK +texinput/CNS/c35song.fd CJK +texinput/CNS/c36song.fd CJK +texinput/CNS/c37song.fd CJK +texinput/CNS/EUC-TW.bdg CJK +texinput/CNS/EUC-TW.chr CJK +texinput/CNS/EUC-TW.enc CJK +texinput/extended.chr CJK +texinput/extended.enc CJK +texinput/GB/c10fs.fd CJK +texinput/GB/c10gbsn.fd CJK +texinput/GB/c10gbsn.fdx CJK +texinput/GB/c10song.fd CJK +texinput/GB/c11song.fd CJK +texinput/GB/c19song.fd CJK +texinput/GB/c20song.fd CJK +texinput/GB/c21song.fd CJK +texinput/GB/GB.cap CJK +texinput/GB/GB.cpx CJK +texinput/JIS/c40song.fd CJK +texinput/JIS/c41song.fd CJK +texinput/JIS/c42song.fd CJK +texinput/JIS/c43song.fd CJK +texinput/JIS/c50song.fd CJK +texinput/JIS/EUC-JP.bdg CJK +texinput/JIS/EUC-JP.chr CJK +texinput/JIS/EUC-JP.enc CJK +texinput/JIS/JIS.cap CJK +texinput/JIS/JIS.cpx CJK +texinput/JIS/JISdnp.enc CJK +texinput/KS/c60dr.fd CJK +texinput/KS/c60gr.fd CJK +texinput/KS/c60gs.fd CJK +texinput/KS/c60gt.fd CJK +texinput/KS/c60hgt.fd CJK +texinput/KS/c60hmj.fd CJK +texinput/KS/c60hol.fd CJK +texinput/KS/c60hpg.fd CJK +texinput/KS/c60mj.fd CJK +texinput/KS/c61dr.fd CJK +texinput/KS/c61gr.fd CJK +texinput/KS/c61gs.fd CJK +texinput/KS/c61gt.fd CJK +texinput/KS/c61hgt.fd CJK +texinput/KS/c61hmj.fd CJK +texinput/KS/c61hol.fd CJK +texinput/KS/c61hpg.fd CJK +texinput/KS/c61mj.fd CJK +texinput/KS/c62song.fd CJK +texinput/KS/hangul2.cap CJK +texinput/KS/hangul2.cpx CJK +texinput/KS/hangul.cap CJK +texinput/KS/hangul.cpx CJK +texinput/KS/hanja.cap CJK +texinput/KS/hanja.cpx CJK +texinput/KS/HLaTeX/c63bm.fd CJK +texinput/KS/HLaTeX/c63dn.fd CJK +texinput/KS/HLaTeX/c63gr.fd CJK +texinput/KS/HLaTeX/c63gs.fd CJK +texinput/KS/HLaTeX/c63gt.fd CJK +texinput/KS/HLaTeX/c63jgt.fd CJK +texinput/KS/HLaTeX/c63jmj.fd CJK +texinput/KS/HLaTeX/c63jnv.fd CJK +texinput/KS/HLaTeX/c63jsr.fd CJK +texinput/KS/HLaTeX/c63mj.fd CJK (2) +texinput/KS/HLaTeX/c63pga.fd CJK +texinput/KS/HLaTeX/c63pg.fd CJK +texinput/KS/HLaTeX/c63ph.fd CJK +texinput/KS/HLaTeX/c63pn.fd CJK +texinput/KS/HLaTeX/c63sh.fd CJK +texinput/KS/HLaTeX/c63tz.fd CJK +texinput/KS/HLaTeX/c63vd.fd CJK +texinput/KS/HLaTeX/c63yt.fd CJK +texinput/KS/HLaTeX/c64bm.fd CJK +texinput/KS/HLaTeX/c64dn.fd CJK +texinput/KS/HLaTeX/c64gr.fd CJK +texinput/KS/HLaTeX/c64gs.fd CJK +texinput/KS/HLaTeX/c64gt.fd CJK +texinput/KS/HLaTeX/c64jgt.fd CJK +texinput/KS/HLaTeX/c64jmj.fd CJK +texinput/KS/HLaTeX/c64jnv.fd CJK +texinput/KS/HLaTeX/c64jsr.fd CJK +texinput/KS/HLaTeX/c64mj.fd CJK (2) +texinput/KS/HLaTeX/c64pga.fd CJK +texinput/KS/HLaTeX/c64pg.fd CJK +texinput/KS/HLaTeX/c64ph.fd CJK +texinput/KS/HLaTeX/c64pn.fd CJK +texinput/KS/HLaTeX/c64sh.fd CJK +texinput/KS/HLaTeX/c64tz.fd CJK +texinput/KS/HLaTeX/c64vd.fd CJK +texinput/KS/HLaTeX/c64yt.fd CJK +texinput/KS/HLaTeX/c65bm.fd CJK +texinput/KS/HLaTeX/c65dn.fd CJK +texinput/KS/HLaTeX/c65gr.fd CJK +texinput/KS/HLaTeX/c65gs.fd CJK +texinput/KS/HLaTeX/c65gt.fd CJK +texinput/KS/HLaTeX/c65jgt.fd CJK +texinput/KS/HLaTeX/c65jmj.fd CJK +texinput/KS/HLaTeX/c65jnv.fd CJK +texinput/KS/HLaTeX/c65jsr.fd CJK +texinput/KS/HLaTeX/c65mj.fd CJK (2) +texinput/KS/HLaTeX/c65pga.fd CJK +texinput/KS/HLaTeX/c65pg.fd CJK +texinput/KS/HLaTeX/c65ph.fd CJK +texinput/KS/HLaTeX/c65pn.fd CJK +texinput/KS/HLaTeX/c65sh.fd CJK +texinput/KS/HLaTeX/c65tz.fd CJK +texinput/KS/HLaTeX/c65vd.fd CJK +texinput/KS/HLaTeX/c65yt.fd CJK +texinput/KS/HLaTeX/HLaTeX.chr CJK +texinput/KS/HLaTeX/KSHL.enc CJK +texinput/KS/HLaTeX/pshan.sty CJK +texinput/KS/KS.chr CJK +texinput/KS/KS.enc CJK +texinput/mule/MULEenc.sty CJK +texinput/pinyin.sty CJK +texinput/pmCbig.enc CJK +texinput/pmC.chr CJK +texinput/pmCsmall.enc CJK +texinput/ruby.sty CJK +texinput/SJIS/c49song.fd CJK +texinput/SJIS/SJIS.bdg CJK +texinput/SJIS/SJIS.cap CJK +texinput/SJIS/SJIS.chr CJK +texinput/SJIS/SJIS.cpx CJK +texinput/SJIS/SJISdnp.chr CJK +texinput/SJIS/SJISdnp.enc CJK +texinput/SJIS/SJIS.enc CJK +texinput/standard.bdg CJK +texinput/standard.chr CJK +texinput/standard.enc CJK +texinput/thai/c90cmr.fd CJK +texinput/thai/c90cmss.fd CJK +texinput/thai/c90cmtt.fd CJK +texinput/thai/c90enc.def CJK +texinput/thai/c90gar.fd CJK +texinput/thai/c90nrsr.fd CJK +texinput/thai/thaicjk.ldf CJK +texinput/UTF8/c70bkai.fd CJK +texinput/UTF8/c70bkai.fdx CJK +texinput/UTF8/c70bsmi.fd CJK +texinput/UTF8/c70bsmi.fdx CJK +texinput/UTF8/c70gbsn.fd CJK +texinput/UTF8/c70gkai.fd CJK +texinput/UTF8/c70mj.fd CJK +texinput/UTF8/c70song.fd CJK +texinput/UTF8/UTF8.bdg CJK +texinput/UTF8/UTF8.chr CJK +texinput/UTF8/UTF8.enc CJK +utils/Bg5conv/bg5conv.1 source.development,bin-cjkutils +utils/Bg5conv/bg5conv.c source.development +utils/Bg5conv/bg5conv.w --- +utils/Bg5conv/bg5latex source.development,bin-cjkutils +utils/Bg5conv/bg5latex.bat source.development +utils/Bg5conv/bg5latex.cmd --- +utils/Bg5conv/bg5pdflatex source.development,bin-cjkutils +utils/CEFconv/cef5conv.1 source.development,bin-cjkutils +utils/CEFconv/cef5conv.c source.development +utils/CEFconv/cef5conv.w --- +utils/CEFconv/cef5latex source.development,bin-cjkutils +utils/CEFconv/cef5ltx.bat source.development +utils/CEFconv/cef5ltx.cmd --- +utils/CEFconv/cef5pdflatex source.development,bin-cjkutils +utils/CEFconv/cefconv.1 source.development,bin-cjkutils +utils/CEFconv/cefconv.c source.development +utils/CEFconv/cefconv.w --- +utils/CEFconv/ceflatex source.development,bin-cjkutils +utils/CEFconv/ceflatex.bat source.development +utils/CEFconv/ceflatex.cmd --- +utils/CEFconv/cefpdflatex source.development,bin-cjkutils +utils/CEFconv/cefsconv.1 source.development,bin-cjkutils +utils/CEFconv/cefsconv.c source.development +utils/CEFconv/cefsconv.w --- +utils/CEFconv/cefslatex source.development,bin-cjkutils +utils/CEFconv/cefsltx.bat source.development +utils/CEFconv/cefsltx.cmd --- +utils/CEFconv/cefspdflatex source.development,bin-cjkutils +utils/cjklatex/cjklatex.c source.development +utils/extconv/bg5+latex source.development,bin-cjkutils +utils/extconv/bg5+pdflatex source.development,bin-cjkutils +utils/extconv/bg5pltx.bat source.development +utils/extconv/bg5pltx.cmd --- +utils/extconv/extconv.1 source.development,bin-cjkutils +utils/extconv/extconv.c source.development +utils/extconv/extconv.w --- +utils/extconv/gbklatex source.development,bin-cjkutils +utils/extconv/gbklatex.bat source.development +utils/extconv/gbklatex.cmd --- +utils/extconv/gbkpdflatex source.development,bin-cjkutils +utils/f_name.bat source.development +utils/hbf2gf/c-auto.h source.development +utils/hbf2gf/cfg/b5ka12.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/b5kr12.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/b5so12.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/c1so12.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/c2so12.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/c3so12.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/c4so12.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/c5so12.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/c6so12.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/c7so12.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/csso12.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/gsfs14.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/j2so12.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/jsso12.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/ksso17.cfg source.development,bin-cjkutils +utils/hbf2gf/cfg/README source.development,bin-cjkutils +utils/hbf2gf/config.guess --- (3) +utils/hbf2gf/config.sub --- (3) +utils/hbf2gf/configure --- (3) +utils/hbf2gf/configure.ac source.development +utils/hbf2gf/dvidrv.btm --- +utils/hbf2gf/emdir.c source.development +utils/hbf2gf/emdir.h source.development +utils/hbf2gf/emtexdir.c source.development +utils/hbf2gf/emtexdir.h source.development +utils/hbf2gf/hbf2gf.1 source.development,bin-cjkutils +utils/hbf2gf/hbf2gf.c source.development +utils/hbf2gf/hbf2gf.def source.development +utils/hbf2gf/hbf2gf.w source.development +utils/hbf2gf/hbf.c source.development +utils/hbf2gf/hbf.h source.development +utils/hbf2gf/install-sh source.development +utils/hbf2gf/Makefile.gnu --- +utils/hbf2gf/Makefile.in --- (3) +utils/hbf2gf/mkinstalldirs source.development +utils/hbf2gf/README --- +utils/hbf2gf/scripts/teTeX-0.4/MakeTeXPK.diff CJK +utils/hbf2gf/scripts/teTeX-0.4/MakeTeXTFM.diff CJK +utils/hbf2gf/scripts/web2c-6.1/MakeTeXPK.diff CJK +utils/hbf2gf/scripts/web2c-6.1/README CJK +utils/hbf2gf/scripts/web2c-7.0/MakeTeXPK.diff CJK +utils/hbf2gf/scripts/web2c-7.0/MakeTeXTFM.diff CJK +utils/hbf2gf/scripts/web2c-7.1/MakeTeXPK.diff CJK +utils/hbf2gf/scripts/web2c-7.1/MakeTeXTFM.diff CJK +utils/hbf2gf/scripts/web2c-7.2/mktexpk.diff CJK +utils/hbf2gf/scripts/web2c-7.2/mktextfm.diff CJK +utils/lisp/cjkspace.el CJK +utils/lisp/cjktilde.el CJK +utils/lisp/emacs/cjk-enc.el CJK +utils/lisp/emacs/thai-word.el CJK +utils/lisp/mule-2.3/cjk-enc.el CJK +utils/pyhyphen/pinyin.c CJK +utils/pyhyphen/pinyin.ldf CJK +utils/pyhyphen/pinyin.tr CJK +utils/pyhyphen/pyhyph.tex hyphen-pinyin +utils/pyhyphen/pytest.tex CJK +utils/SJISconv/sjisconv.1 source.development,bin-cjkutils +utils/SJISconv/sjisconv.c source.development +utils/SJISconv/sjisconv.w --- +utils/SJISconv/sjislatex source.development,bin-cjkutils +utils/SJISconv/sjisltx.bat source.development +utils/SJISconv/sjisltx.cmd --- +utils/SJISconv/sjispdflatex source.development,bin-cjkutils +utils/subfonts/clonevf.pl CJK +utils/subfonts/makefdx.pl CJK +utils/subfonts/sfd2uni.pl CJK +utils/subfonts/subfonts.pe CJK +utils/subfonts/uni2sfd.pl CJK +utils/subfonts/vertical.pe CJK +utils/subfonts/vertref.pe CJK +utils/thaifont/texmf/dvips/garuda/config.garuda garuda +utils/thaifont/texmf/dvips/norasi/config.norasi norasi +utils/thaifont/texmf/fonts/enc/dvips/thai/c90.enc c90enc +utils/thaifont/texmf/fonts/map/dvips/garuda/garuda.map garuda +utils/thaifont/texmf/fonts/map/dvips/norasi/norasi.map norasi +utils/thaifont/texmf/fonts/tfm/public/garuda/fgdb8z.tfm garuda +utils/thaifont/texmf/fonts/tfm/public/garuda/fgdbo8z.tfm garuda +utils/thaifont/texmf/fonts/tfm/public/garuda/fgdo8z.tfm garuda +utils/thaifont/texmf/fonts/tfm/public/garuda/fgdr8z.tfm garuda +utils/thaifont/texmf/fonts/tfm/public/norasi/ftnb8z.tfm norasi +utils/thaifont/texmf/fonts/tfm/public/norasi/ftnbi8z.tfm norasi +utils/thaifont/texmf/fonts/tfm/public/norasi/ftni8z.tfm norasi +utils/thaifont/texmf/fonts/tfm/public/norasi/ftnr8z.tfm norasi +utils/thaifont/tools/c90.etx CJK +utils/thaifont/tools/c90.mtx CJK +utils/thaifont/tools/dbtt-old/config.dbtt-old CJK +utils/thaifont/tools/dbtt-old/dbtt-old-alias.etx CJK +utils/thaifont/tools/dbtt-old/dbtt-old-alias.mtx CJK +utils/thaifont/tools/dbtt-old/dbtt-old-alias.tex CJK +utils/thaifont/tools/dbtt-old/dbtt-old.fontinst CJK +utils/thaifont/tools/dbtt-old/dbtt-old.map CJK +utils/thaifont/tools/garuda.fontinst CJK +utils/thaifont/tools/INSTALL CJK +utils/thaifont/tools/norasi.fontinst CJK + + +CJK-4.6.0-doc +------------- + +doc/cjk/README CJK +doc/cjk/READMEb5.cjk CJK +doc/dvi/bg5conv.dvi --- +doc/dvi/c90.dvi --- +doc/dvi/cef5conv.dvi --- +doc/dvi/cefconv.dvi --- +doc/dvi/cefsconv.dvi --- +doc/dvi/extconv.dvi --- +doc/dvi/hbf2gf.dvi --- +doc/dvi/READMEb5.dvi --- +doc/dvi/READMEgb.dvi --- +doc/dvi/sjisconv.dvi --- +doc/man/dvi/bg5conv.dvi --- +doc/man/dvi/cef5conv.dvi --- +doc/man/dvi/cefconv.dvi --- +doc/man/dvi/cefsconv.dvi --- +doc/man/dvi/extconv.dvi --- +doc/man/dvi/hbf2gf.dvi --- +doc/man/dvi/sjisconv.dvi --- +doc/man/html/bg5conv.html --- +doc/man/html/cef5conv.html --- +doc/man/html/cefconv.html --- +doc/man/html/cefsconv.html --- +doc/man/html/extconv.html --- +doc/man/html/hbf2gf.html --- +doc/man/html/sjisconv.html --- +doc/man/pdf/bg5conv.pdf bin-cjkutils +doc/man/pdf/cef5conv.pdf bin-cjkutils +doc/man/pdf/cefconv.pdf bin-cjkutils +doc/man/pdf/cefsconv.pdf bin-cjkutils +doc/man/pdf/extconv.pdf bin-cjkutils +doc/man/pdf/hbf2gf.pdf bin-cjkutils +doc/man/pdf/sjisconv.pdf bin-cjkutils +doc/man/txt/bg5conv.txt bin-cjkutils +doc/man/txt/cef5conv.txt bin-cjkutils +doc/man/txt/cefconv.txt bin-cjkutils +doc/man/txt/cefsconv.txt bin-cjkutils +doc/man/txt/extconv.txt bin-cjkutils +doc/man/txt/hbf2gf.txt bin-cjkutils +doc/man/txt/sjisconv.txt bin-cjkutils +doc/pdf/bg5conv.pdf bin-cjkutils +doc/pdf/c90.pdf CJK +doc/pdf/cef5conv.pdf bin-cjkutils +doc/pdf/cefconv.pdf bin-cjkutils +doc/pdf/cefsconv.pdf bin-cjkutils +doc/pdf/extconv.pdf bin-cjkutils +doc/pdf/hbf2gf.pdf bin-cjkutils +doc/pdf/READMEb5.pdf CJK +doc/pdf/READMEgb.pdf CJK +doc/pdf/sjisconv.pdf bin-cjkutils +examples/cjk/Big5.cjk CJK +examples/cjk/Big5vert.cjk CJK +examples/cjk/CEF_test.cjk CJK +examples/cjk/CJKbabel.cjk CJK +examples/cjk/muletest.cjk CJK +examples/cjk/rubytest.cjk CJK +examples/cjk/SJIS.cjk CJK +examples/cjk/thai.cjk CJK +examples/dvi/Big5.dvi --- +examples/dvi/Big5vert.dvi --- +examples/dvi/CEF_test.dvi --- +examples/dvi/CJKbabel.dvi --- +examples/dvi/CJKfntef.dvi --- +examples/dvi/CJKmixed.dvi --- +examples/dvi/CJKutf8.dvi --- +examples/dvi/GB.dvi --- +examples/dvi/JIS.dvi --- +examples/dvi/KS.dvi --- +examples/dvi/muletest.dvi --- +examples/dvi/py_test.dvi --- +examples/dvi/pytest.dvi --- +examples/dvi/rubytest.dvi --- +examples/dvi/SJIS.dvi --- +examples/dvi/thai.dvi --- +examples/dvi/UTF8.dvi --- +examples/pdf/Big5.pdf CJK +examples/pdf/Big5vert.pdf CJK +examples/pdf/CEF_test.pdf CJK +examples/pdf/CJKbabel.pdf CJK +examples/pdf/CJKfntef.pdf CJK +examples/pdf/CJKmixed.pdf CJK +examples/pdf/CJKutf8.pdf CJK +examples/pdf/GB.pdf CJK +examples/pdf/JIS.pdf CJK +examples/pdf/KS.pdf CJK +examples/pdf/muletest.pdf CJK +examples/pdf/py_test.pdf CJK +examples/pdf/pytest.pdf CJK +examples/pdf/rubytest.pdf CJK +examples/pdf/SJIS.pdf CJK +examples/pdf/thai.pdf CJK +examples/pdf/UTF8.pdf CJK + +---- + +(1) This file is located in the `texmf-dist/source' tree. A modified + version (with less fonts) is part of the `wadalab' package. + +(2) These files appear twice; the first version without real bold fonts + is in the texmf-dist/tex/latex tree, while the original files are + in the texmf-dist/source tree. + +(3) This file might be different in the TeXLive distribution. + + +---End of TeXLive.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/chinese/README b/Master/texmf-dist/doc/latex/CJK/doc/chinese/README new file mode 100644 index 00000000000..90f621fd408 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/chinese/README @@ -0,0 +1,7 @@ +The file emTeXb5.txt describes version 4.1.0 . + +The file teTeXb5.txt describes version 4.2.0 . + +The file READMEb5.tex describes version 4.1.0 . + +The file READMEgb.tex describes version 4.1.3 . diff --git a/Master/texmf-dist/doc/latex/CJK/doc/chinese/READMEb5.tex b/Master/texmf-dist/doc/latex/CJK/doc/chinese/READMEb5.tex new file mode 100644 index 00000000000..b54be13306a --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/chinese/READMEb5.tex @@ -0,0 +1,1150 @@ +%%% The file READMEb5.tex . This file is part of LaTeX2e CJK package. +%%% +%%% Note that this document is a very first version. Therefore, lots +%%% of installation steps and issues are still left blank. Please be +%%% patient and wait for the next new release. I'm sorry for any +%%% inconveniences. I also deeply expect that everyone who is +%%% interested in this topic gives me suggestions and corrections in +%%% any respects. Thanks in advance. +%%% +%%% Revision 1.5 1996/11/22 10:49:00 d791013 +%%% * modify some context presentations. +%%% +%%% Revision 1.4 1996/10/23 03:59:40 d791013 +%%% Revision control by CVS. +%%% +%%% Revision 1.3 1996/07/27 11:19:20 d791013 +%%% 1. In compliance with CJK version 4.0.0 +%%% 2. Fill up some unfinished sections in previous versions of this +%%% file. +%%% 3. Add more usages for MULE and AUCTeX. +%%% + +\documentclass[12pt,a4paper]{article} +\usepackage{array,CJK} +\RequirePackage{shortvrb} +\MakeShortVerb{\|} + +% enlarge text width and height (for saving number of pages) +\addtolength{\textwidth}{1in} +\addtolength{\oddsidemargin}{-.5in} +\addtolength{\textheight}{1in} +\addtolength{\topmargin}{-.5in} + +\begin{document} +\begin{CJK*}{Bg5}{bsmi} +\CJKtilde + +% local commands +\newcommand{\ntutocjk}{~\textsf{ntu2cjk}~} +\newcommand{\ttftopk}{~\textsf{ttf2pk}~} +\newcommand{\hookstroke}{\raisebox{2pt}{\scriptsize $\surd$}} +\newcommand{\crossmark}{$\times$} +\newcommand{\bigfive}{~\textrm{Big-5}~½X} +\renewcommand{\figurename}{¹Ï~} +\renewcommand{\tablename}{ªí~} + +%% end of header + +\title{\bigfive¤¤¤å¨t²Î¤Uªº~CJK \LaTeXe~±Æª©¨t²Î\\ + (For CJK version 4.1.0)} +\author{ + §õ§g¦t\thanks{The author of the \textsf{ntu2cjk} package. + \textsf{E-mail:} d791013@ce.ntu.edu.tw}\ (Chun-Yu Lee) \and + Werner Lemberg\thanks{The author of the \LaTeXe\ CJK package. + \textsf{E-mail:} wl@gnu.org}} +\date{20 Nov. 1996} +\maketitle + +\tableofcontents + +\section{²¤¶} +\label{sec:introduction} + +¥»¤å¥Dn°w¹ï¤º®e¥H\bigfive¬°¥Dªº¤¤¤å¤å¥ó¡]·íµM¥ç¥i¥]§t¥~¤å¤Î¹Ï§Îµ¥¡^¡A +±ý¨Ï¥Î~\LaTeXe~¤Î~CJK~¨t²Î¶i¦æ±Æª©¦C¦L¡A¨ä©Ò»Ýªº°ò¥»n¨D»P¦w¸Ë¨BÆJµ¥¡A +°µ¤@²nªº¤¶²Ð¡C¨ä½d³òÁö¤£¯à²[»\n½s¦n¤@½g¡]©Î¤@¥»¡^¹Ï¤å¨ÃZªº¤å³¹©Ò»Ý +¤§¥DÃD¡A¦ý¤]¨¬°÷À³¥I¤@¯ë©Êªº¤å¥ó\footnote{¥»¤å±N·|¦b¤é«áºCºC¦a×¥¿»P¸É + ¥R¬ÛÃö¥DÃD¡A¥H¥[±j¨äµ²ºc¤Î¤º®e¡C¦P®É¤]´Á«ÝŪªÌ¯à´£¨ÑÄ_¶Qªº·N¨£¡A¥H¬° + ¤U¤@¦¸¥Xª©¤§°Ñ¦Ò¡C}¡C + +¥»¤åªº¤º®e¥H°t¦X~CJK 4.x.x~¨t²Îªº³]©w¬°¥D¡Cק糧¤å¤§¦P®É¡ACJK~ªºª©¥» +¬O~4.1.0¡C + +\subsection{¾\Ū«ü¤Þ} +\label{sec:reading-guides} + +¤U±¬O²³æªº¾\Ū«ü¤Þ¡G +\begin{itemize} +\item ¥ý½T©w§A±ý¦w¸Ëªº~CJK~ª©¥»¬O§_¬O¥»¤å©Ò´yzªº¡AY¤£¦P¡A½Ð¨ú±o»P¥» + ¤å¬Û®eªº~CJK~ª©¥»¡A©Î¨ú±o³Ì·sªº~CJK~ª©¥»¡A¨Ã¾\Ū¨ä©Ò¥]§tªº¥»¤å¥óÀɮסC +\item Y¦]ª©¥»¤§¤£¦P¡A±z¥ç¥i¥H~CJK~¤å¥ó¤¤ªº~INSTALL~¬°¥D¡A¦õ¥H¦r«¬¦w¸Ë + ¨t²Î¡]\textsf{ntu2cjk}~©Î~\textsf{ttf2pk}¡^¤¤¬ÛÃöªº»¡©ú¤å¥ó¡A¦AÂsÄý + ¥»¤å¤º®e§@¬°°ÑÊ÷©Ê½è¡A¾A·í¦a¦w¸Ë¾ãÓ¤¤¤å±Æª©¨t²Î¡C +\item Y±z´¿¸g¦w¸Ë¹L~CJK¡A±z¥iª½±µ°Ñ¦Ò²Ä~\ref{sec:steps}~¸`¡§¦w¸Ë¨BÆJ¡¨¡C +\item Y¦b±zªº¨t²Î¤¤¡A©|¥¼¦w¸Ë¦³¤¤¤å~TFM¡BPK¡B©Î~PFB~µ¥ÀɮסA¥i°Ñ¦Ò²Ä~ + \ref{sec:install-fonts}~¸`¡§¦r«¬¦w¸Ë¡¨¡C +\item Y±zı±o¤Wzªº¦w¸Ë¨BÆJ¤£°÷¨ãÅé¡A½Ð°Ñ¦Ò²Ä~\ref{sec:my-settings}~ + ¸`¡§§Úªº¨Ò¤l¡¨¡C +\item Y·Qª¾¹D¦p¦ó¨ú±o¬ÛÃöÀɮסA½Ð°Ñ¦Òªþ¿ý~\ref{sec:getting-files}¡§ÀÉ + ®×¨ú±o¡¨¡C +\item Y·Q¹ï¥»¤å©Ò¨Ï¥Î¤§¦rµü¦³©ÒºÃ´b¡A½Ð°Ñ¦Òªþ¿ý~\ref{sec:terms}¡§¦Wµü + ¸ÑÄÀ¡¨¡C +\end{itemize} + +ª`·N¡G¥»¤å¤º®e¦b¦r«¬ªº¦w¸Ë¤è±¡A¹ï©ó\ttftopkªº¤¶²Ð¸û¤Ö\footnote{¦]¥»¤å + ªº¥Dn§@ªÌ¥u¦³¨Ï¥Î\ntutocjk¨Ó¦w¸Ë¦r«¬¡A¹ï¤@¨Ç\ttftopk·sªº§ïÅܤw¤£¼ô±x¡C} +ŪªÌ¥i¦Û~CJK~ªº¤å¥ó®M¥ó¤¤¦³Ãö¤¤¤åªº»¡©úÀÉ~|NTeXb5.doc|~¡]»P¥»Àɮ׸m©ó¦P +¤@¥Ø¿ý¤¤¡^±o¨ì¸Ô²Óªº¸Ñ»¡¡C + +¥t¥~¥»¤å¦b¹ï©ó~em\TeX~Àô¹Ò¤Uªº¦w¸Ë¸Ñ»¡¡A¤]¥u¬O½Ķ¦Û~CJK~¤å¥ó¤¤ªº~ +|INSTALL|~³oÓÀÉ¡A¥»¤å§@ªÌ¨Ã¥¼¹ê§@¹L¡C + +\subsection{¶i¤@¨Bªº¸ê°T¨Ó·½} +\label{sec:further-information} + +\begin{itemize} +\item ¤åÄm~\cite{latex2nd}~¬°°ò¥»¤â¥U¡C +\item ¤åÄm~\cite{latex-companion:1993}~¥i¬°¶i¶¥¤â¥U¡C +\item °Ñ¦Ò~Newsgroup |comp.text.tex|~ªº~FAQ¡C +\item ¦³Ãö~\TeX/\LaTeX~±`°Ýªº°ÝÃD¡A¥i°ÑÊ÷¤åÄm~\cite{tex-faq:1.9c}¡]ª©¥» + µy¡^¡C +\end{itemize} + +\section{¨t²Î»Ý¨D} +\label{sec:requirements} + +\subsection{µwÅéÀô¹Ò} +\label{sec:hardware-requirements} + +\TeX/\LaTeX~¨t²Î¥Ø«e´X¥Gµ´¤j³¡¤Àªº§@·~¨t²Î¬Ò¦³¤ä´©¡C¦b~RAM~ªº»Ý¨D¤W«h +µø±ý½s±ÆÀɮתº¤j¤p¡A¤p«h¼Æ¤Q¸U¦ì¤¸¡A¤j«h¼Æ¦Ê¸U¦ì¤¸¡CÁöµM~\TeX/\LaTeX~ +¨t²Î¦b~286~¥H«eªº¾÷¾¹´N¯à¶]¡]¨S°O¿ùªº¸Ü¡^¡A¦ý³Ì¦nÁÙ¬O¦³~8MB~¥H¤Wªº°O¾Ð +Åé¡A¥HÀ³¥I¤¤¤å¦r¤§©Ò»Ý¡C¦Ü©óµwºÐªÅ¶¡¡A¦b¤¤¤å¦r«¬ªº¨Ï¥Î»Ý¤U¡A³Ì¦n¯à¦³~ +150MB~ªºªÅ¶¡¡]\TeX~¨t²Î¬ù~30MB¡A8~ºØ~NTU~¥þ¯u¦r«¬¤Î¨äÂà´«¦r«¬¡APS~¤Î~ +PK~¦r«¬µ¥¡A¬ù~80MB¡^¡C + +\subsection{³nÅé»Ý¨D} +\label{sec:software-requirement} + +\begin{itemize} +\item ¹ï~\LaTeX~¨t²Î¦³·§¬Aªº»{ÃÑ»P¹ï¦¹¨t²Î¨ã°ò¥»¾Þ§@ªº¯à¤O¡C³Ì¦n§A¦³¤å + Äm~\cite{latex2nd,latex-companion:1993}~³o¨â¥»®Ñ¦b¤âÃä¡C +\item \LaTeXe~ªº°õ¦æÀô¹Ò¡C¥]¬A~\TeX/\LaTeX~ªº¬ÛÃöÀô¹Ò¡C +\item \LaTeXe\ CJK~¨t²Î¡C +\item Y·Q¦w¸Ë~PS~¦r«¬\footnotemark\addtocounter{footnote}{-1}¡A±z»Ýn + \begin{enumerate} + \item \textsf{ntu2cjk}~¨t²Î¡C + \item NTU TrueType~¦r«¬¡C + \item gcc~½sĶ¾¹¤Î¬ÛÃöÀô¹Ò¡BGNU make¡C + \item GhostScript(3.12~¥H¤Wªºª©¥»)¡C + \item |afm2tfm|¡C + \item ¸ÑÀ£ÁYµ{¦¡¡G |arj|¡B|gzip|¡B|tar|¡C + \item Y·Q±q~PS~¦r«¬«Ø¥ß~PK~¦r«¬¡A«h»Ý~|ps2pk|~©Î~|gsftopk|¡C + \end{enumerate} +\item Y±ý¦w¸Ë~PK~¦r«¬\footnote{´N¤¤¤å¤å¥óªº±Æª©¡B¹wÄý¤Î¦C¦L©Ò»Ýªº¦r«¬ + ¦Ó¨¥¡A¥i¥H³æ¿W¥u¦s¦b¦³~PK~¦r«¬©Î~PS~¦r«¬¡F¦ý´N¤è«K©Ê»P¥iÄâ©Ê¦Ó¨¥¡A + µ§ªÌ«Øij¡A¥H°ÊºAªº¤è¦¡²£¥Í~PK~¦r«¬¨Ã«O¦³§¹¾ã¡]©Î±`¥Î¤Î°ÊºA¡^ªº~PS~ + ¦r«¬¡A¬O¸û¨Îªº²Õ¦X¡C}¡A°Ñ¦Ò²Ä~\ref{sec:install-pk-fonts}~¸`¤§´yz¡C +\item ¿é¥X¡G|dvips|¡B|dvi2xx|¡B¤Î¨ä¥L~dvi~®æ¦¡ªºÂà´«µ{¦¡»P¨ä¤U´åªºÂà´« + µ{¦¡¡C +\end{itemize} + + +\section{¦w¸Ë¨BÆJ} +\label{sec:steps} + +¥»¸`±N¥Dnªº¦w¸Ë¬yµ{¡A±ø¦C¦p¤U¡A¦U¶µ¤¤¸Ô²Óªº¦w¸Ë«ü¤Þ¡A±N¦b¥H«áªº¦U¸`¤¤ +ÄÄz¡G +\begin{enumerate} +\item Y¬O~\TeX/\LaTeX~¨t²Î¤v¦w¸Ë¦n¡A½Ð¸õ¤U¤@¨B¡C§_«h®Ú¾Ú¦Û¤v¨Ï¥Îªº§@ + ·~¨t²Î¡A¨M©wÀ³¨Ï¥Î¦óºØ~\TeX~¨t²Î¡A¨Ã°Ñ¦Ò¨t²Î»Ý¨D¡]²Ä~ + \ref{sec:requirements}~¸`¡^¡BÀɮרú±o¡]ªþ¿ý~\ref{sec:getting-files}¡^ + ¤Î¨ä¥L©óªþ¿ý¤¤¦U¸`¤§¸ê®Æ¡A¨ú±o¬ÛÃöÀɮסA¨Ã«ö©Ò¨ú±o¸ê®Æ¤¤ªº«ü¥Ü¦w¸Ë¡C + Y¨ú±oªº¨t²Î¨S¦³~\LaTeXe~¨t²Î¡A©Î¬O±z·Q§ó·s¦Ü¸ûªñªºª©¥»¡A«h¥i¥t¥~¦Û~ + CTAN~¨ú±o¡A¦b¤w¦w¸Ë¦nªº~\TeX~Àô¹Ò¤¤¬[¤W~\LaTeXe¡C +\item ½T©w~\LaTeXe~¤v¦w¸Ë§´·í¡C¥i¥H¤@~\LaTeXe~®æ¦¡¥B¤º®e¬°^¤åªºÀÉ®× + ¡]¦p~|sample.|\linebreak[1]|tex|¡^¡A±q°õ¦æ~|latex|~½sĶ¡A¥H~|xdvi|~ + ©Î~|dviscr|¡B|dvisvga|~µ¥µ¥¡^¹wµø¡B¨ì~|dvips|~©Î~|dvilj|~Âন¦Lªí®æ + ¦¡¡]PostScript~©Î~PCL~µ¥®æ¦¡¡^¨Ã¦L¥X¡A¥H§PÂ_¬O§_¦w¸Ë¥¿½T¡C +\item ¦w¸Ë~CJK~¤¤¤å~\LaTeXe~¨t²Î¡]°Ñ¦Ò²Ä~\ref{sec:install-CJK}~¸`¡^¡C +\item ¿ï¾Ü¦w¸Ë~PK~©Î~PS~¦r«¬©Î¤GªÌ¬Ò¦w¸Ë¡]°Ñ¦Ò²Ä~ + \ref{sec:install-pk-fonts}~¸`©Î²Ä~\ref{sec:install-ps-fonts}~¸`¡^¡C +\item ¥H~CJK~¨t²Î¤¤©Ò´£¨Ñ¤§¤¤¤å~\LaTeXe~ÀÉ¡A|READMEb5.tex|¡A°µ´ú¸Õ¡]°Ñ + ¦Ò²Ä~\ref{sec:my-settings}~¸`¡^¡C +\item Y¦³°ÝÃD¡A½Ð°Ñ¦Ò²Ä~\ref{sec:trouble-shooting}~¸`¡§°ÝÃD¸Ñ¨M¡¨¡C +\end{enumerate} + + +\section{¦w¸Ë~CJK~¤¤¤å~\LaTeXe~¨t²Î} +\label{sec:install-CJK} + +½Ð°w¹ï±z©Ò¨Ï¥Î§@·~¨t²Î¡A°Ñ¦Ò¤U±¹ïÀ³ªº¤p¸`¡C + +\subsection{¦b~UNIX~¨t²Î¤U~(web2c)} +\label{sec:install-under-unix} + +\begin{enumerate} +\item §äÓ¾A·íªº¥Ø¿ý±N¨ú¦^ªº~CJK~À£ÁYÀɸѶ}¡C¨Ò¦p±z±N¨ä¸Ñ¶}¦Ü~ + |/tmp/CJK|¡C +\item ¦pªG±z¯à¥H¨t²ÎºÞ²zªÌªº¨¥÷¡]root¡^¦w¸Ë¡A«h¥i±N¸ÑÀ£«áªº~CJK~¥Ø¿ý + ¤¤~|texinput|~¥Ø¿ý¤Uªº©Ò¦³Àɮס]«O«ùì¥Ø¿ýµ²ºc¡^²¾¦Ü~\TeX~¨t²Î¯à§ä¨ì + ªº¦a¤è¡]³q±`¬O~ + |${TEXMF}/|\linebreak[1]|tex/|\linebreak[1]|latex/|\ldots¡A + |${TEXMF}|~¬O~web2c~ªº~home¡A¤@¯ë¬°~ + |/usr/|\linebreak[1]|local/|\linebreak[1]|lib/|\linebreak[1]|texmf|¡^¡A + ¨Ã±N¦¹¥Ø¿ý¦W§ï¦¨~CJK~©Î¾A·íªº¦WºÙ¡C¦pªG±z¤£¬O¨Ï¥Î¸û·sª©ªº~\TeX~¡]¹³~ + web2c¡A³o¨Ç~\TeX~¨t²Î¡A´£¨Ñ¤F»¼°j·j´M¤l¥Ø¿ýÀɮתº¯à¤O¡^¡A«h±N~ + |texinput|~¥Ø¿ý¤Uªº©Ò¦³Àɮײ¾¦Ü~\TeX~¨t²Î¯à§ä¨ìªº¦a¤è¡C¨Ò¦p¡G + \begin{verbatim} + $ cd /usr/local/lib/texmf/tex/latex + $ mv CJK CJK.old + $ cd /tmp/CJK + $ cd 4_1.0 + $ mv texinput /usr/local/lib/texmf/tex/latex/CJK + \end{verbatim} + ¦pªG±z¤£¯à¥H~root~ªºÅv¦w¸Ë¡A½Ð¥HÃþ¦ü©ó¤U±ªº«ü¥Oµy§@קï¡]¦pªG¨Ï¥Î~ + |csh|¡^¡A¨Ã«Øij±N¤§¥[¤J~|.login|¡]¥Î©ó~|/bin/csh|¡^©Î~|.profile|¡]¥Î + ©ó~|/bin/sh|¡^¤¤¡A¨Ï±o~\TeX~¯à·j´M¨ì~CJK~¥Ø¿ý¡G + \begin{verbatim} + setenv TEXINPUTS: §Aªº CJK ¥Ø¿ý¦W// + \end{verbatim} + ª`·N¡AY±z©Ò¨Ï¥Îªº~\TeX~¨t²Î¤£¤ä´©¦h¼h¤l¥Ø¿ý·j´M¡A«h±N½T¤Áªº¥Ø¿ý¦WºÙ + ¸s¡A¥[¤J¦Ü~|TEXINPUTS|~ªºÀô¹ÒÅܼƤ¤¡F©ÎªÌ±N~|texinput|~¥Ø¿ý¤U¤Î~ + |Bg5|~¥Ø¿ý¤Uªº©Ò¦³Àɮײ¾¦Ü¬Yӥؿý¤¤¡A¨Ãµø¦¹¥Ø¿ý¬°~CJK~¥Ø¿ý¡C + + ¨Ò¦p¡]¥H~|sh|~«ü¥O¬°¨Ò¡^¡G + \begin{verbatim} + ¡]°²³]±z·Q±N CJK ªº texinput ¥Ø¿ý²¾¦Ü ~/CJK/texinput¡^ + # cd ~/CJK ¡]¦Ü CJK ¤l¥Ø¿ý¡^ + # mv texinput texinput.old ¡]¦pªG±z¦³Âªº texinput ¥Ø¿ý¡A¥ý³Æ¥÷¡^ + # cd /tmp/CJK ¡]¦Ü¸Ñ¶} CJK ªº¦a¤è¡^ + # cd 4_1.0 ¡]¦Ü¥Ø«eªºª©¥»¤U¡^ + # mv texinput ~/CJK ¡]±N texinput ¤l¥Ø¿ý²¾¦Ü ~/CJK¡^ + # TEXINPUTS=":~/CJK/texinput//" ¡]©w¸qÀô¹ÒÅܼơ^ + # export TEXINPUTS ¡]³]¬°³q¥ÎªºÀô¹ÒÅܼơ^ + \end{verbatim} +\item °Ñ¦Ò²Ä~\ref{sec:install-fonts}~¸`¦r«¬¦w¸Ë¡A±N~|.tfm|~ÀÉ¡APK~¦r«¬ + ©Î~PS~¦r«¬¦w¸Ë¦Ü¾A·íªº¥Ø¿ý¤U¡C +\item °Ñ¦Ò²Ä~\ref{sec:install-.fd}~¸`¦w¸Ë~|.fd|~ÀÉ¡A©Î°Ñ¦Ò~|fonts.txt|¡A + ¨Ã®Ú¾Ú¦r«¬¦w¸Ëªºµ²ªG¡A³]©w¬ÛÃöªº~|.fd|~ÀÉ¡C¥H¥»¤å°w¹ïªº\bigfive¤¤¤å¦Ó + ¨¥¡A¥²¶·×§ï~|c00kai.fd|¡]¦pªG±z±N·¢®Ñ¦r±Ú³]¬°~|kai|¡^¡B|c00fs.fd| + ¡]¦pªG±z¨Ï¥Î¥é§º¦r±Ú¨Ã©w¬°~|fs|¡^¡Kµ¥¬ÛÃöÀɮס]¥ç¥i°Ñ¦Ò\ttftopk©Î + \ntutocjk©Ò´£¨Ñªº½d¨Ò¡^¡C +\item ¦b¸Ñ¶}ªº~CJK~¥Ø¿ý¤¤¡A¶i¤J~\texttt{utils/Bg5conv}~¥Ø¿ý¤¤¡A½sĶ~ + |bg5conv.c|¡A¦p¡G + \begin{verbatim} + gcc -O -s -o bg5conv bg5conv.c + \end{verbatim} + ±N²£¥Íªº°õ¦æÀÉ~|bg5conv|~³s¦P~|bg5latex|~³oÓÀÉ¡A²¾¦Ü~\TeX~¨t²Î¤¤©ñ + ¸m°õ¦æÀɪº¥Ø¿ý¤¤¡]¦pªGÅv¨¬°÷¡^¡C©Î¸m©óÓ¤Hªº¥Ø¿ý¤¤¡A¨Ã½T©w¦¹¥Ø¿ý¦s + ¦b©óÀô¹ÒÅܼÆ~|PATH|~¤¤¡]©Î¦b~|PATH|~¤¤¼W¥[¤@°õ¦æ¸ô®|¡A«Øij±N¦¹¸ô®|ªº + ³]©w¥[¨ì~login~ªº±Ò©lÀɤ¤¡^¡C + + ¨Ò¦p¡G + \begin{verbatim} + # cd /tmp/CJK/4_1.0 + # cd utils/Bg5conv + # gcc -O -s -o bg5conv bg5conv.c + # mv bg5conv bg5latex ~/bin + # export PATH=$PATH:~/bin + \end{verbatim} + ª`·N¡A¦pªG±z¦³Âªº~|bg5conv|~°õ¦æÀÉ¡A½Ð°È¥²§ó·s¡A¦]~4.0~¥H¤Wªºª©¥»»P + ¸û¦ªºª©¥»¤£¦P¡]¥H~``|^^FF|''~¬°¤À¬É¦r¤¸¦Ó¤£¬O~``|.|''¡^¡C + +\item ¶i¤J¤l¥Ø¿ý~|doc/chinese|~¤¤¡A´ú¸Õ±zªº³]©w¡G + \begin{verbatim} + # cd /tmp/CJK/4_1.0 + # cd doc/chinese + # bg5latex READMEb5.tex + \end{verbatim} + ¬Ý¬O§_¯à¶¶§Q§¹¦¨½sö¡C +\end{enumerate} + +\subsection{¦b~DOS~©Î~OS/2~¨t²Î¤U} +\label{sec:install-under-dos} + +\begin{enumerate} +\item §äÓ¾A·íªº¥Ø¿ý±N¨ú¦^ªº~CJK~À£ÁYÀɸѶ}¡C +\item ±N~CJK~¨t²Î¤¤~|texinput|~¥Ø¿ý¤Uªº©Ò¦³Àɮס]«O«ùì¥Ø¿ýµ²ºc¡^²¾¦Ü~ + \TeX~¨t²Î¯à§ä¨ìªº¦a¤è¡A¨Ã±N¦¹¥Ø¿ý¦W§ï¦¨~|CJK|~©Î¾A·íªº¦WºÙ¡C¦pªG±z¤£ + ¬O¨Ï¥Î¸û·sª©ªº~\TeX¡]¹³~em\TeX¡A³o¨Ç~\TeX~¨t²Î¡A´£¨Ñ¤F»¼°j·j´M¤l¥Ø¿ý + Àɮתº¯à¤O¡^¡A«h±N~|texinput|~¥Ø¿ý¤U»P¤Î±zn¨Ï¥Îªº¤º½X¥Ø¿ý¡]Bg5¡^¤U + ªº©Ò¦³Àɮײ¾¦Ü~\TeX~¯à§ä¨ìªº¦a¤è¡C + + ¥H~em\TeX~¨t²Î¬°¨Ò¡A±N~CJK~ªº~|texinput|~¤¤ªºÀɮײ¾¦Ü~ + |c:\emtex\|\linebreak[1]|texinput\|\linebreak[1]|CJK\|\ldots¡A¨Ã¥H + ¤U±ªº«ü¥Oµy§@קï¡A¥H¨Ï±o~\TeX~¯à·j´M¨ì~CJK~¥Ø¿ý¡G + \begin{verbatim} + set emtexdir=c:\emtex + set texinput=%emtexdir%\texinput!! + \end{verbatim} +\item ¦b~CJK~¨t²Î¤¤ªº~|utils\|\linebreak[1]|Bg5conv|~¥Ø¿ý¤¤¡A±N~ + |bg5conv.|\linebreak[0]|exe|~³s¦P~|bg5latex.|\linebreak[0]|bat|~²¾¦Ü~ + \TeX~ªº°õ¦æ¸ô®|~(|PATH|)~¤¤ªº¬Yӥؿý¡]©Î¼W¥[¤@°õ¦æ¸ô®|¡^¡C +\item °Ñ¦Ò~\ref{sec:install-fonts}~¦w¸Ë¦r«¬¤@¸`¡A±N~|.tfm|~ÀÉ¡APK~¦r«¬ + ©Î~PS~¦r«¬¦w¸Ë¦Ü¾A·íªº¥Ø¿ý¤U¡C +\item °Ñ¦Ò~\ref{sec:install-.fd}~¦w¸Ë~|.fd|~Àɤ@¸`¡A®Ú¾Ú¦r«¬¦w¸Ëªºµ²ªG¡A + ³]©w¬ÛÃöªº~|.fd|~ÀÉ¡C¡]¥i°Ñ¦Ò\ttftopk©Î\ntutocjk©Ò´£¨Ñªº½d¨Ò¡^¡C +\end{enumerate} + + +\section{¦r«¬¦w¸Ë} +\label{sec:install-fonts} + +¥»¤å¶È¥H¥Ñ~True Type~¦r«¬²£¥Íªº~PK~¦r«¬©Î~PS~¦r«¬¬°»¡©ú¡C¦r«¬¤§¨ú±o°Ñ +¦Òªþ¿ý~\ref{sec:getting-files}~¤§»¡©ú¡C + +PK~¦r«¬¡]©Î~PS~¦r«¬¡^³Ì¦n¦w¸Ë¦b·í§An¤É¯Å~\TeX/\LaTeX~¨t²Î®É¤£·|¼vÅTªº +¦ì¸m\footnote{¨Æ¹ê¤W¡A³Ì¦n±N¨º¨Ç¥¿±`¦w¸Ë~\TeX/\LaTeX~¨t²Î¥H«á¡A§A¥²»Ý + ÃB¥~קï©Î¦w¸ËªºÀɮפε{¦¡¡A³£©ñ¦b¥t¥~¸û¨p¦³ªº¥Ø¿ý¤¤¡AµM«á¦A¥H~link~ + ªº¤è¦¡¸m©ñ©ó쥻À³³Bªº¦ì¸m¡C¦b~DOS~¤U¡A¦r«¬ÀÉ¥H¥[¦bÀô¹ÒÅܼƪº¸ô®|¤¤ + ¬°¥D¡A¨ä¥¦ªº«h¥H½Æ»sªº¤è¦¡¨ú¥N~link¡C}¡A¦]¬°¤@¥¹¦¹Ãþ¦r«¬²£¥Í«á¡A§Y¥i +ªø®É´Áªº¨Ï¥Î¡F¥t¥~¡A¦pªG¨C¦¸n¤É¯Å~CJK~¨t²Î©Î~\TeX/\LaTeX~¨t²Î®É¡A¤]¥i +©ñ¤ß¤jÁxªº¤U¤â¡C + +\subsection{PK~¦r«¬} +\label{sec:install-pk-fonts} + +\subsubsection{¦Û°Ê²£¥Í~PK~¦r«¬} +[©|¥¼§¹¦¨¡A½Ð°Ñ¦Ò\ttftopk©Î\ntutocjkªº¦w¸Ë»¡©ú] + +\subsubsection{¹w¥ý²£¥Í~PK~¦r«¬} +[©|¥¼§¹¦¨¡A½Ð°Ñ¦Ò\ttftopkªº¦w¸Ë»¡©ú] + +\subsubsection{¥Ñ~PS~¦r«¬²£¥Í~PK~¦r«¬} +°Ñ¦Ò~\ref{sec:install-ps-fonts} PS~¦r«¬¤@¸`¡C + +\subsection{PS~¦r«¬} +\label{sec:install-ps-fonts} + +¦¹³B©Ò«üªº~PS~¦r«¬¬°¤¤¤å~PostScript Type 1~¦r«¬¡A¦pªG¦A¥[¤W¤@өΤGÓ +ªº~PS~¦r«¬¡]¥H³o¨Ç¤¤¤å~Type 1~¦r«¬¬°°ò©³©Òºc¦¨ªº¦r«¬¡^¡A¥i²Õ¦¨~ +PostScript Type 0~ªº¦r«¬¡C¦ý~\TeX~¨t²Î¥Ø«e¤´µLªk¨ú¥Î~Type 0~ªº¦r¡A©Ò¥H +¥»¤å¤]¤£·|´£¤Î¡C¥t¥~ª½±µ¨ú¥Î~TTF~¦r«¬¦b¥¼¨Ó¤]¥i¯à¹ê²{¡A¨Ò¦p~ +Ghostscript~¦b·sªºª©¥»¤¤¡]4.01¡^¤w¯à¨Ï¥Î~TTF~¦r«¬¡C + +¥H¦w¸Ë·¢®Ñ~PS~¦r«¬¬°¨Ò¡A²z¨ä¬yµ{¦p¤U¡]¸Ô²Ó½Ð°Ñ¦Ò\ntutocjk¤¤ªº~ +|README|~ÀÉ¡^¡G +\begin{enumerate} +\item ¨C¦¸°w¹ï¤@Ó¦r±Ú¡]font family¡A¦p·¢®Ñ¡^²£¥Í~|.tfm|~¤Î~|.pfb|~ÀÉ + ®×¡C +\item קï¦r±Ú¬ÛÃöªº~makefile~ÀÉ¡A¦pקï~|kai.mak|~ªº¤º®e¡]¥H¤U¥H·¢®Ñ + ¬°¨Ò¡^¡C +\item Y±z¨Ï¥Î~UNIX~¨t²Î¡A¿é¤J¤U±ªº«ü¥O + \begin{verbatim} + make unix FONTMAK=kai.mak + \end{verbatim} + Y±z¦b~DOS~¤U¡A½Ð¤U¡G + \begin{verbatim} + make dos FONTMAK=kai.mak + \end{verbatim} + Y¤@¤Á¶¶§Q¡AÀ³¦³~55~Óªº~|.pfb|~ÀɮשM~55~Ó¡]©Î~110~Ó¡A¦pªG~ + |EXTENDED_FONT|~¬O³]~|YES|¡^|.tfm|~ÀɮסA¥B~TFM~Àɮתº¤j¤p¡A¨CÓ¬ù¬°~ + 1.2kB~¥ª¥k¡C +\item ¤U~|make install-fonts|~¦¹«ü¥O¡A¥i±N©Ò¦³²£¥Íªº¦r«¬¦w¸Ë¦Ü±z³]©w¦b~ + |kai.mak|~Àɮפ¤©Ò«ü©wªº¥Ø¿ý¤¤¡C±z¥i¯à¤]»Ýn¥H~|make install-maps|~ + ³oÓ«ü¥O¦w¸Ë~|Fontmap|~¤Î~|psfonts.map|~µ¥¡C +\item ®Ú¾Ú¥H¤W©Ò©w¸q¦r«¬¬ÛÃöªº¦WºÙ¡A±z¥²¶·×§ï~|c00kai.fd|~¨Ã²¾¦Ü~ + \TeX~§ä±o¨ìªº¥Ø¿ý¡C©ÎªÌקï~|c00kai.fdx|¡A¦pªG~|EXTENDED_FONT|~¬O³] + ¬°~|YES|¡A²¾¦Ü¾A·í¥Ø¿ý«á¡A¥²¶·±N¨ä¦WºÙ§ï¬°~|c00kai.fd|¡C +\end{enumerate} + +\subsubsection{¥Ñ~PS~¦r«¬²£¥Í~PK~¦r«¬} + +¥Ñ~PS~¦r«¬²£¥Í~PK~¦r«¬¡A³q±`±z»ÝnÂÇ~|gsftopk|~©Î~|ps2pk|~¨Ó§¹¦¨¡C + +¦pªG¥H~|gsftopk|~²£¥Í~PK~¦r¡AÁÙ»Ýn~|gs|¡]Ghostscript¡^ªº»²§U¡A¦]¦¹¦b +±z®×¸Ë¦n~PS~¦r«¬«á¡A°O¦ín±N¦r«¬©Ò¦bªº¥Ø¿ý¦W¡A¥[¨ì~|GS_LIB|~³oÓÀô¹ÒÅÜ +¼Æ¤¤¡A©ÎªÌ±N¥Ñ\ntutocjk©Ò²£¥Í~|.pfb|~ÀÉ¡A¥H~symbolic link~ªº¤è¦¡¡A¥þ³¡~ +link~¨ì~|gs|~©Ò©w¸qªº¦r«¬¥Ø¿ý¤¤¡C + +¦pªG¥Î~|ps2pk|¡A±z»Ýn~AFM~ÀÉ¡]¦b\ntutocjk»s³y~|.pfb|~Àɮתº¹Lµ{¤¤¡A·| +²£¥Í~AFM~ÀÉ¡^¡C³Ì¦n¨ú±o³Ì·sªºª©¥»¡A¥H«Oµý¦bŪ¨ú~PS~¦r«¬»P~AFM~ÀɮɡA¤£ +P²£¥Í°ÝÃD¡C + +¦b±z©Ò¨Ï¥Îªº~\TeX/\LaTeX~¨t²Î¤¤¡A¤j·§³£¦³~|MakeTeXPK|~³oÓÀÉ¡A¥¦ªº¥\¥Î +§Y¬O¦b¨t²Îµo²{¬YÓ~PK~¦r«¬¤£¦s¦b®É¡A¦Û°Ê²£¥Í¤§¡C¦Ó¦¹Àɦü¥G¤£»Ý¯S§OªºÃB +¥~³]©w¡A³£¦³¦Û°Ê¥Ñ~PS~Àɲ£¥Í~PK~¦r«¬ªº¥\¯à¡C·íµM«e´£¬O³o¨Ç~PS~¦r«¬¥²¶· +¥X²{¦b~|psfonta.map|~¤¤¡A|MakeTeXPK|~¥Î¦¹Àɤ¤ªº¦r«¬§PÂ_¥¿n²£¥Í¦r¬O§_ +¬°~PS~¦r«¬¡]¨ä¹ê³o»Ýnµø±z©Ò¦w¸Ëªº¬ÛÃö¨t²Î¦Ó©w¡^¡C + +%\section{¤£¦P¹q¸£¥»O¤U¤§ª`·N¨Æ¶µ} +%\label{sec:platforms} + +%\subsection{DOS} +%\label{sec:platform-dos} + +%\subsection{UNIX} +%\label{sec:platform-unix} + +\subsection{¦w¸Ë~\texttt{.fd}~ÀÉ} +\label{sec:install-.fd} + +·í§Anªº¦r«¬¡]TFM~ÀɮסBPK~¦r«¬¡B©Î~PS~¦r«¬¡^«ö·Ó¤Wz´X¸`¤è¦¡¦w¸Ë§´·í +«á¡A±z¤]¶·n¾A·í¦a³]©w¬ÛÃöªº~|.fd|~ÀÉ¡C¥»¸`±N²z¤§¡C + +\LaTeXe~ªº~\textsf{NFSS}~³W®æ¤¤¡An´yz¤@ºØ¦r«¬¥]§t¦³¤U¦C°Ñ¼Æ¡G +\begin{enumerate} +\item Encoding¡G½s½X¤è¦¡¡A¦p~|T1|¡B|OT1|¡B|DC|~µ¥¡C|U|~ªí¥Ü~unknown¡C + CJK~¨t²Îªº½s½X¤è¦¡¡]°Ñ¦Ò~|fonts.txt|¡^¤@¬°¤å¥ó¤¶±©Ò¥Î¡A¦p~|Bg5|¡B + |GB|¡B|Bg5pmC|~µ¥¡A¤@¬°~\textsf{NFSS}~©Ò¨Ï¥Î¡A¦p~|C00|¡B~|C10|¡B + |C01|~µ¥¡C¦¹³B¡A§Y©w¸q¦b~|.fd|~Àɤ¤ªº½s½X¤è¦¡»Ý¨Ï¥Î«áªÌ¡C¥H§^¤H©Ò¨Ï + ¥Îªº\bigfive¬°¨Ò¡A~|C00|~¬O¥²»Ý©w¸qªº¡C +\item Family¡G¦r±Ú¡A¦p~|cm|¡B|cmss|¡B|cmtt|~µ¥¡ACJK~¨t²Î¦b¦w¸Ë\bigfiveªº + ¦r«¬»Ý¦Û¦æ©w¸q¡A¦ý»Ý²Å¦X~\textsf{NFSS}~ªº³W©w¡A§Y©w¸q¦r±Úªº¦r¼Æ¤£¥i + ¶W¹L¤Ó¦r¥À¡C±z¥i°Ñ¦Ò¥]§t¦b¸Ñ¶}Àɮפ¤ªº½d¨Ò¡A¦p~|c00kai.fd|¡CCJK~¨t + ²Î¥H·¢®Ñ¡B©úÅé¡B´Ð®Ñµ¥ªí¥Ü¦r±Ú¡C§^¤H¥i¥Î~|kai|¡B|song|¡B|ming|¡B|fs|¡B + |black|¡B|round|~µ¥µ¥ªí¥Ü\bigfiveªº¦r±Ú¡C +\item Series¡G¦r¨t¦C¡]¾î¦Vªº¤Ø¤o¡^¡A¦p~|m| (medium)¡B|b| (bold)¡B|bx| + (extended bold)~µ¥¡ACJK~ªu¥Î¦¹³W®æ¡C +\item Shape¡G¦r§Îª¬¡A¦p~|n|¡B|sl|¡B|ol|¡B|it|~µ¥¡CCJK~ªu¥Î¤§¡C +\item Size¡G¦r¤j¤p¡]ÂI¼Æ¡^¡A¦p~|10|¡B|12|~µ¥ +\item |\baselineskip|¡G¬Û¾F¨â¦æªº°ò·Ç½u¶¡¶Z¡A¤j³¡¤À±¡ªp¥Î¤£¨ì¦¹°Ñ¼Æ¡C +\end{enumerate} + +®Ú¾Ú¥H¤Wªº±Ôz¡A¥H¤U²³æ¤¶²Ð¸ÓÀɪºµ²ºc»P»yªk¡A¥H~|c00kai.fd|¡]¦b~ +\texttt{texinput/Bg5}~¥Ø¿ý¤U¡^ÀÉ¥]§t¤TÓ¥Dnªº«ü¥O¡G +\begin{enumerate} +\item |\ProvidesFile{c00kai.fd}{|{\em release-info}|}|¡G»¡©ú¥»ÀɦW¨ÃÁ× + §K«½Æ¸ü¤J¡C +\item |\DeclareFontFamily{C00}{kai}{}|¡G»¡©ú¦¹ÀÉ¥H~|C00|~ªº½s½X¥B´yz~ + |kai|~¦r±Ú¡C¨ä¤¤~|C00|~¬O~\textsf{NFSS} encoding¡C +\item |\DeclareFontShape{C00}{kai}{m}{n}{<-> CJK * b5ka}{}|¡G¦¹©R¥Oªº + ²Ä¤Ó°Ñ¼Æ¸û½ÆÂø¡A¥i°Ñ¦Ò~|fonts.txt|~ªº»¡©ú¡C¨ä¤¤~|*|~¸¹¥kªº°Ñ¼Æ§Y¬O + ¤@²Õ¦r«¬ÀɦWªº¦rº¡ACJK~¨t²Î·|¦b§ÀºÝ¥[¤W¤G¦ì¼Æ¦r¡A¦¨¬°¦r«¬¦WºÙ + ¡]sub-font name¡^¡A¤£½×¬O~|.tfm|~ÀÉ¡B|.pfb|~ÀÉ©Î~|pk|~ÀɬһݻP¦¹¦W¤@ + P¡C|CJK|~«h¬O¦r«¬¤j¤p¨ç¼Æ¡]size function¡^¡ACJK~¨t²Î©w¸q¤F¼ÆÓ¦¹Ãþ + ¨ç¼Æ¡A¦p¡G + \begin{verbatim} + CJK ¬Û·í©ó `' (empty) ·N«ü¨Ï¥Î¦rªº¤j¤p»P latex ½sĶªº¤@P¡C + sCJK ¬Û·í©ó `s' ¦P¤W¡A¦ý¨ú¦r¦³»~®É¤£Äµ§i¡]silent¡^¡C + CJKfixed ¬Û·í©ó `fixed' Y»Ý¨Dªº¦r¤j¤p¦b©w¸qªº½d³ò¤º¡A¤@«ß + ¨Ï¥Î«ü©wªº¦r¡C + sCJKfixed ¬Û·í©ó `sfixed' ¦P¤W¡A¦ý keep silent¡C + CJKsub ¬Û·í©ó `sub' ¥H¥t¤@Ãþ¦r«¬´À¥N¡C + CJKssub ¬Û·í©ó `ssub' ¦P¤W¡A¦ý keep silent¡C + \end{verbatim} + ¦p¦¹¥i¥H«Ü¤è«Kªº¦P®É¨Ï¥ÎÂI°}¦r¤Î¦V¶q¦r¡C +\end{enumerate} + +³Ì²³æªº¦w¸Ë¤è¦¡´N¬O¡A¦pªG§A¬O¥Î\ttftopk¨Ó²£¥Í¦r«¬¡A«h±N¨ä©Ò´£¨Ñªº~ +|c00?????.fd|~½Æ»s¨ì~\texttt{texinput/Bg5}~¤U¡FY¬O¥H\ntutocjk¬°¥D¡A¥ç +¦P²z¬°¤§¡F¥H¦¹Ãþ±À¡C + +\subsection{¿é¥X¤¤¤å~\LaTeX~¤å¥ó»P¦r«¬ªºÃö«Y} +\label{sec:portability} + +¦¹³B©Ò«üªº¿é¥X¥]¬A±q¿Ã¹õ¡BÀɮפίȱiµ¥¡Cªí~\ref{tab:soft-vs-fonts}~¬O +¥»¤å©Ò´£¤Îªº¤@¨Ç³n¥X³nÅé»P¨ä©Ò¨Ï¥Î¦r«¬¶¡ªºÃö«Y¡]°£¤F¯S§O»¡©ú¥~¡A³nÅ餧 +ª©¥»¤jP¬Ò¬°¥»¤å¼¶¼g®É³Ìªñªºª©¥»¡^¡C¥Ñ¦¹ªí¥iª¾¡APK~¦r¦b¹wµø®É¬O¤£¥i©Î +¯Êªº¡A¦Ó~PS~¦r¦b¦C¦L¥]§t¦³~PostScript~Àɮס]|.eps|¡B|.ps|~µ¥¡^ªº¤å¥ó®É +¥ç¥²»Ý¥Î¨ì¡C +\begin{table}[htbp] + \begin{center} + \leavevmode + + \begin{tabular}{|>{\ttfamily}c|c|c|c|} \hline + ¿é¥X³nÅé & ¥\¯à & CJK PK~¦r«¬ + & CJK PS~¦r«¬ \\ \hline + xdvi & ¹wµø & \hookstroke + & \crossmark \\ + & & + & ¡]¯à¦³¤@Ó¹w³]¦r¡^ \\ \hline + dvisvga & ¹wµø & \hookstroke + & \crossmark \\ \hline + dvips & ¿é¥X¦ÜÀɮשΦLªí¾÷ & \hookstroke + & \hookstroke \\ + ¡]5.60~ª©¥»¥H¤U¡^ & & + & ¡]¦ý¬°¥þ³¡¸ü¤J¡^ \\ \hline + dvihp & ¿é¥X¦ÜÀɮשΦLªí¾÷ & \hookstroke + & \crossmark \\ \hline + gs & ¹wµø¤Î¿é¥X & \crossmark + & \hookstroke \\ \hline + \end{tabular} + + \caption{~\TeX~¬ÛÃö³nÅé»P¨Ï¥Î~CJK~¦r«¬¶¡¤§Ãö«Y¡C} + \label{tab:soft-vs-fonts} + \end{center} +\end{table} + +n²£»s¤@½g¹Ï¤å¨ÃZªº¤å³¹¡A¤×¨ä¬O¤¤¤å¤å³¹¡A¦r±Ú¡]font family¡^»P¨ä¤Ø¤o +¤j¤p¡]font size¡^ªºÅܤƬO¤£¥i©Î¯Êªº¡C¹ï¿é¥X®É¥²¶·ªº~PK~»P~PS~¦r«¬¦Ó¨¥¡A +Y¦b¦¹ª¬ªp¤U¤ñ¸û¤GªÌªº®t§O¡A¦Lªíªº¤è«K©Ê¤]¥i»¡¬O¦U¦³¤d¬î¡FY¦bºÏºÐªÅ¶¡ +ªº¨Ï¥Î¤W¡A¥i¯à´N¦³©Ò®t²§¡C¦]¬°¦P¤@¦r±Ú¦ý¤£¦P¤j¤pªº¦r¡APK~¦r«¬¥²»Ý¨CºØ +¨Ï¥Î¨ìªº¤Ø¤o¬Ò¸ü¤J¦Ü¨ä¿é¥XÀɤ¤¡A¦Ó~PS~¦r«¬¥u»Ý¤@¦¸¡C + +¥Ø«e¡A¤å³¹¤¤©Ò¦³¨Ï¥Î¨ìªº~PFB~¦r«¬¡AYn²£¥Í¤º§t¦¡ªº~PS~ÀÉ®× +¡]self-contained Postscript output¡^¡A|dvips|~·|¥þ³¡¸ü¤J¦Ü¨ä¿é¥X¤¤¡C¦Ó +¤U¤@¦¸¥Xª©ªº~|dvips|~µ{¦¡¤¤¡A±N¥i¯à°w¹ï¨ä¿é¥XÀɤ¤ªº¦¹¶µ¯ÊÂI¦³©Ò§ï¶i¡F +·N§Y·sªºª©¥»¥u·|¸ü¤J¦b¤å³¹¤¤¦³¨Ï¥Î¨ìªº¦r¨ä¦b~|.pfb|~Àɤ¤©Ò¹ïÀ³¤§©w¸qªº +³¡¤À¡C¡]¦bµ§ªÌ´ú¸Õ~|dvips| 5.60~ª©®É¡A¼È®ÉµLªk¦¨¥\¦a¨Ï¥Î¤¤¤å~CJK PS~¦r +«¬¡A¤£¹L¬Û«H§Ö¤F¡C¡^ + +¥Ø«e¼È®É¥i¥Î~|fontload|~³oÓ³nÅé¡A¹F¦¨³oÓ¥\¯à¡C + + +\section{§Úªº¨Ò¤l} +\label{sec:my-settings} + +¥Ø«e§Ú¨Ï¥Îªº¬O~Linux~§@·~¨t²Î¡A\TeX/\LaTeX~«h¨Ï¥Î~te\TeX~Àô¹Ò¡A¬ÛÃöªº +¥Ø¿ý¦p¤U¡G +\begin{itemize} +\item |/usr/local/lib/texmf| ¦s©ñ~\TeX/\LaTeX~¨t²Î¡C +\item |/usr/local/lib/ghostscript| ¦s©ñ~Ghostscript¡C +\item |/usr/local/lib/ntuttf| ¦s©ñ~NTU TrueType~¦r«¬¤Î¥Ñ\ntutocjk©Ò²£ + ¥Íªº¬ÛÃö¦r«¬¡C +\item |~/CJK/4_1.0| ¦s©ñ¸Ñ¶}ªº~CJK~¨t²Î¡C +\end{itemize} + +§Ú¥H¥¿±`ªº¦w¸Ëµ{§Ç¡A±N~te\TeX~¦w¸Ë¦b~|/usr/local/lib/texmf|¡F¤§«á±N~ +CJK~¦b§Úªº~|$HOME/CJK|~¤U¸Ñ¶}¡ACJK~³nÅ餤©Ò¦³ªºÀɮ׫K²£¥Í¦b~|CJK|~¤l¥Ø +¿ý¤¤\footnote{¤§©Ò¥H±N~CJK ¦w¸Ë¦b¦Û¤vÓ¤Hªº¥Ø¿ý¤U¡A¬O¦]¬°~CJK~±`§ó·s¡A + ¤£¤è«K±`½Ð¨t²ÎºÞ²zªÌÀWÀW§ïÅܳ]©w¡C¦A¥[¤W¬°¤F¦Û¤vÀɮ׬y³q©Êªº¦Ò¼{¡A¦³ + ¦Û¤v¤@¥÷~CJK~ªº³]©w¡AÓ¤H»{¬°¡A¦Û¤vªº~CJK~¤å¥ó¤~·|¦³¸û°ªµ{«×ªº²¾´Ó©Ê¡C + Y§A¤S¬O¨t²Î¤¤t³d~CJK~³nÅ骺¤H¡A¬Æ©Î¬O¾ãÓ~\TeX/\LaTeX~ªººûÅ@ªÌ¡A¦b + ¦Û¤v¨p¤Hªº¥Ø¿ý¤UºÞ²z¨Ã©w´Á§ó·s~CJK¡A¬OÓ¤£¿ùªº¤è¦¡}¡A¨Ò¦p¡G +\begin{verbatim} + % cd + % gunzip CJK-4.1.0.src.tar.gz | tar xvf - +\end{verbatim} +¨Ã°µ¥H¤Uªº³B²z¡G +\begin{enumerate} +\item ¦b~|~/CJK|~¤U«Ø¥ß¤@²Å¸¹¦¡ªºÀɮ׳sµ²¡]symbolic link¡^¡A¦W¬°~ + |texinput|~¥B³sµ²¦Ü¥Ø«e~CJK~ª©¥»¦W¤Uªº~|texinput| ¡A + \begin{verbatim} + % cd ~/CJK + % rm -f texinput + % ln -s 4_1.0/texinput texinput + \end{verbatim} +\item ½sĶ¤@Ó·sªº~|bg5conv|~°õ¦æÀÉ¡C + \begin{verbatim} + % cd ~/CJK/4_1.0/utils/Bg5conv + % gcc -O -o bg5conv bg5conv.c + % mv bg5conv bg5latex ~/bin + \end{verbatim} + Y¤£¥u¬O¦w¸Ëµ¹¦Û¤v¥Î¡A«h¥i¥H~|root|~ªº¨¥÷~|cp|~¦Ü~|/usr/local/bin|~ + ¥Ø¿ý¤U¡C +\item ¦b§Úªº~|$HOME|~¥Ø¿ý¤U~|.cshrc|~Àɤ¤¡]¦]¬°§Ú¥Îªº¬O~tcsh¡^¡A¼W¥[¤@ + ¦æ + \begin{verbatim} + setenv TEXINPUTS ":~/CJK/texinput//" + \end{verbatim} +\item ²£¥Í~|.tfm|~ÀɤÎ~|.pfb|~¦r«¬¡C¦b¦¹§Ú«ö·Ó\ntutocjk¤¤¡A¤@¤@~ + ``make''~¥X¬Û¹ïªº~|.pfb|~¦r«¬¡A¦@~8~²Õ¡A¨C²Õ~55~Ó~ |.tfm|~¤Î~|.pfb|~ + ÀÉ¡C§Ú±N³o¨ÇÀɮײ¾¦Ü~ + \texttt{/usr/local/lib/\linebreak[1]ntuttf/\linebreak[1]type1/}~¤Î~ + \texttt{/usr/local/lib/ntuttf/afm/}~¬ÛÃö©ó¨ä¦r±Úªº¥Ø¿ý¤U¡C¨Ã±N + ~|config.CJK|~¤Î~|CJK.map|~²¾¦Ü~|$TEXMF/dvips|~¤U¡C +\item ³]©w~|.fd|~ÀÉ¡C¦]¬°§Ú¨Ï¥Îªº¬O¥H~PS~¦r«¬¬°¥Dªº~PFB¡]¥Ñ\ntutocjk²£ + ¥Í¡^¤Î¥Ñ¨ä²£¥Íªº~PK~¦r«¬¡]¥Ñ~|gsftopk|~²£¥Í¡^¡A©Ò¥H§Úª½±µ±Ä¥Î + \ntutocjk©Ò´£¨Ñªº~|c00|*|.fd|~ÀÉ¡A¨S¦³§@¥ô¦ó§ó§ï¡]¦]¬°§Ú¦³³d¥ô¨Ï¥¦»P + §Úªº¤u§@Àô¹Ò¤@P :-¡^¡C§Ú±N¨ä²¾¦Ü~|~/CJK/texinput/Bg5/|~¥Ø¿ý¤U¡C +\end{enumerate} + +\subsection{«Ø¥ß¤å½Z} +\label{sec:creating-tex} + +¤¤¤å~CJK \TeX~¤å½Z»P¤@¯ë~\TeX~¤å½Zªº¤£¦P¥Dn¦b©ó¡G +\begin{itemize} +\item ¦b©Ò¿×~\LaTeX~¤å¥óªº~preamble¡]|\documentclass|~¦Ü~ + |\begin{document}|¡^°Ï°ì¤¤¡A¥²¶·¦³~|\usepackage{CJK}|~³oÓ©R¥O¡A§Y¥² + ¶·¸ü¤J~|CJK.sty|¡C +\item ¤¤¤å¦r¥²¶·¦b~|CJK|~©Î~|CJK*|~ªº¤¤¤åÀô¹Ò¤¤¡C§Y¡G + \begin{verbatim} + \begin{CJK*}{}{} + ¤¤¤å¬q¸¨¡B³¹¸`¡B¹Ï§Î¡Bªí®æ¡B°Ñ¦Ò¤åÄm¡B¡Kµ¥ + ... + \newpage + \end{CJK*} + \end{verbatim} +\item nÅÜ´«¦r«¬¥i¥Î~|\CJKfamily|~©R¥O¡A¦p~|\CJKfamily{fs}|~±N¥H¤Uªº¦r + «¬§ï¦¨¥é§º¦r¡]·íµM~|fs|~³oÓ¦r§Î¦WºÙ¥²¶·©w¸q¦b~|c00fs.fd|~¤¤¡^¡C +\end{itemize} + +§Úªº¥Îªk³£¬O¥H¤@Ó¤¤¤åÀô¹Ò¥]¦í©Ò¦³ªº¤å³¹¤º®e¡A¦p¹Ï~ +\ref{fig:my-example}~©Ò¥Ü¡C + +\newsavebox{\myex} +\begin{lrbox}{\myex} + \begin{minipage}{.9\textwidth} + \footnotesize + \begin{verbatim} + \documentclass[12pt]{article} + \usepackage{CJK} + + \begin{document} + \begin{CJK*}{Bg5}{fs} + \CJKtilde + + \section{²Ä¤@¸`} + \label{sec:section-1} + °Ñ¦Ò¹Ï~\ref{fig:apply-pk-and-ps-fonts}¡C + + \begin{figure}[htbp] + \begin{center} + \leavevmode + \includegraphics{pkpsapps.eps} + \caption{|pk|~¦r«¬»P~|.pfb|~¦r«¬ªºÀ³¥Î¹ïÀ³¹Ï} + \label{fig:apply-pk-and-ps-fonts} + \end{center} + \end{figure} + + \bibliographystyle{plain} + \bibliography{mybib} + + \newpage %¨Ï¦³¥¿½Tªº¤¤¤å¿é¥X¡C + \end{CJK*} + \end{document} + \end{verbatim} + \end{minipage} +\end{lrbox} + +\begin{figure}[htbp] + \begin{center} + \leavevmode + \fbox{\usebox{\myex}} + \caption{§Úªº~CJK~¤å¥ó½d¨Ò¡C} + \label{fig:my-example} + \end{center} +\end{figure} + +\subsection{¥H~\LaTeXe\ CJK~½s±Æª©±} +\label{sec:clatexing} + +´N¦P¤@¯ëªº~\LaTeX~Àɤ@¼Ë¡A¦ý¥H~|bg5latex|~¨ú¥N~|latex|¡A¦p¡G +\begin{verbatim} + % bg5latex mylatex.tex + ©ÎªÌ + % bg5latex mylatex +\end{verbatim} + +\subsection{¹wÄý} +\label{sec:preview} + +¤j³¡¤À±¡ªp¤U§Ú¥H~|xdvi|~¹wÄý~|.dvi|~ÀÉ¡]¦b~Emacs~©Î~Mule~¤¤Y¨Ï¥Î~ +AUC\TeX~³o®M³nÅé¡A§ó¯àÅã¥X¨ä¬ð¥Xªº¦a¤è¡A¤×¨ä¬O¥u¹wÄý¤å³¹¤¤ªº¤@¶ô°Ï°ì¡A +ÀH®É¥iÀ˵ø¸Ó°Ï°ìªº±Æª©±¡§Î¡^¡C + +¥t¥~¡A§Ú¤]·|µø±¡ªp¥Î¤£¦Pªº¹wµøµ{¦¡¡C¤ñ¦p¦b~Linux~ªº~virtual terminal +mode~§Ú¥H~|dvisvga|~¹wµø¡C¦b¯Ê¥F~|pk|~¦r«¬©Î¨S¦³~|xdvi|~ªº¤Ö¼Æ±¡§Î¤U¡A +§Ú¤]¥Î~|ghostview|~¹wµø¸g¥Ñ~|dvips|~²£¥Íªº~|.ps|~ÀɮסC + +\subsection{¦C¦L} +\label{sec:printing} + +²£¥Í¤Î¦C¦L~|PostScript|~Àɮ׬O§Ú³Ì±`¥Îªº¤è¦¡¡A¦]¬°¦b§Úªº¤å³¹¤¤¡A¹Ï§Î¬O¤£ +¥i¤Öªº¸ê®Æ¡A¦Ó¥¦Ì´X¥G³£¬O~|.eps|~ªº®æ¦¡¡]¥Ñ~|xfig|¡BAutoCAD¡B|GnuPlot|¡B +|xv|¡B¡Kµ¥©Ò²£¥Í¡^¡C©Ò²£¥Íªº~|.ps|~ÀÉ¡A©ÎªÌ¬O¥Ñ~PostScript~¦Lªí¾÷¡A¥ç©Î +ªÌ³z¹L~ Ghostscript~ªºÂà´«¡A¦Ó¿é¥X¨ì~Laserjet~©Î~Deskjet~¬Æ©Î¨ìÂI°}¦¡¦L +ªí¾÷¥h¡C + +¤@¯ë¦Ó¨¥¡A¥H~|dvips cjk-doc|~·|²£¥Í¥i¦C¦Lªº¿é¥X¡A¦A¥H~|lpr cjk-doc.ps|~ +ªº¦Lªí«ü¥O¦C¦L§Y¥i¡C¦ý±zY¤£Ä@²£¥Í¤¤¤å~PK~¦r«¬¡A¥B±z¤£¬O¨Ï¥Î~PostScript~ +¦Lªí¾÷¡A¤S¥Î\ntutocjk¦w¸Ë~PS~¦r«¬¡A¤]°w¹ï~ Ghostscript~ªº³]©w¦w¸Ë¦n³o¨Ç +¦r«¬¡A¦Ó¥B±zªº¦LªíÁͰʵ{¦¡¯à¥H~|gs|~¬°¥D¡]Linux¨t²Î¤W¦h¼Æ³£¥H¦¹¤è¦¡³]©w¡^¡A +«h§A¥i¥Hª½±µ¥H~|lpr|~³oÓ©R¥O¦C¦L~ |.ps|~ÀÉ¡]¬Æ¦Ü¬O~|.dvi|~ÀÉ¡^¡C¦p¡G +\begin{verbatim} + % dvips -P CJK cjk-doc + % lpr cjk-doc.ps +\end{verbatim} + +¥H~|dvihp|~²£¥Í¦C¦LÀɤ]¬O¤è¦¡¤§¤@¡A¨ä¿é¥X®æ¦¡¬°~PCL¡A©Î¬O~HP~¦Lªí¾÷ªº®æ +¦¡¡C¦ý¦]µLªk³B²z¤å³¹¤¤¥]§tªº~PostScript~ÀɮסA©Ò¥H§Ú¨Ã¤£±`¥Î¡C + +·ín²£¥Í¥iÄ⪺¦C¦LÀɮ׮榡¡]self-contained PostScript file¡^¡A§Ú·|¥H²£¥Í~ +Post\-Script~¡]|.ps|¡^ªº®æ¦¡¬°¥D¡C¦r«¬¨Ó·½¤§¤@¬O¥Ñ¹wµø«á¦Û°Ê²£¥Íªº~PK~ +¦r«¬§@¬°~ |dvips|~ªº¿é¤J¦r«¬¡C¦¹¤è¦¡¥i¥H¤U¦C©R¥O§¹¦¨¡G +\begin{verbatim} + % dvips cjk_doc -o cjk-doc-contains-pk-fonts.ps +\end{verbatim} +¦¹®É~|psfonts.map|~¤¤»Ý¤£§t\ntutocjk©Ò²£¥Íªº¤¤¤å¦r«¬¡]CJK 4.0 ¥H¤Wªºª©¥» +¤¤©Ò§tªº\ntutocjk¡A¹w³]¬°¦¹±¡§Î¡^¡A|dvips|~¤~·|¨ú¥Î¤¤¤å~PK~¦r¡A©Î¦pªG¤¤ +¤å~PK~¦r«¬¤£¦s¦bªº¸Ü¡A·|¦Û°Ê²£¥Í¤§¡C¦b¨Ï¥Î~|xdvi|~©Î¬ÛÃö³nÅé¹wµø®É¡A¦]¥H~ +PK~¦r«¬¬°¥D¡A¦b¦r«¬§ä¤£¨ìªº±¡ªp¤U¡A¥ç·|¦Û°Ê²£¥Í¤§¡C + +¥t¥~«h¬O¥O~|dvips|~¨ú¥Î¤¤¤å~PS~¦r¡A¦b«ö·Ó\ntutocjk¤¤»¡©ú¦w¸Ë«á¡A©Ò¦³ªº¤¤ +¤å~PS~¦rªº¹ïÀ³ÀÉ·|¦s¦b©ó~|CJK.map|~Àɤ¤¡CYn¥H¦¹¤è¦¡²£¥Í¥iÄ⦡ªº~|.ps|~ +ÀÉ¡A¥²¶·¶i¤@¨B¦a¥H~|gs|~©Î~|fontload|~µ¥Ãþ¦üªº³nÅé¡A±N~PS~¦r«¬¸ü¤J¨ì¿é¥X +ªºÀɮפ¤¡CY¥H~|fontload|~¦Ó¨¥¡A¦b~UNIX~¨t²Î¤U¡A¥i¥H¤U±ªº«ü¥O¹F¦¨¡G +\begin{verbatim} + % dvips -P CJK -o cjk-doc-no-ps-fonts-contained.ps cjk_doc.dvi + % fload cjk-doc-no-ps-fonts-contained.ps > cjk-doc-contains-ps-fonts.ps + % lpr cjk-doc-contains-ps-fonts.ps +\end{verbatim} +¦¹®É~|cjk-doc-contains-ps-fonts.ps|~©Î~|cjk-doc-contains-ps-fonts.ps|~´N +¬O§¹¾ãªº~PS~ÀɮפF¡A¤]´N¬O»¡¡A±z¥i¥H¥á¨ì¥ô¦ó¤@¥x¤ä´©¦³¦C¦L~PostScript~ÀÉ +®×ªº¦Lªí¾÷©Îµ{¦¡¤F¡C + +¥H¤W´N¬O§ÚÓ¤H¹ï~CJK~¤¤¤å~\LaTeX~¨t²Îªº³]©w¡A¦³¤HÄ@·N´£¨Ñ¦Û¤vªº¦w¸Ë¸gÅç¶Ü¡S + + +\section{°ÝÃD¸Ñ¨M} +\label{sec:trouble-shooting} + +¦b¨Ï¥Î¹wÄýµ{¦¡ªº®ÉÔ¡A¥i¯à·|¹J¨ìªº°ÝÃD»P¨ä¸Ñ¨Mªº¤è¦¡¦p¤U¡G +\begin{itemize} +\item PK~¦r«¬§ä¤£¨ì¡C +\item ¤£·|¦Û°Ê²£¥Í~PK~¦r«¬¡C +\end{itemize} + +[³\¦h°ÝÃD»P¨ä¸Ñ¨M¤è¦¡©|¥¼¾ã²z¯Ç¤J] + + +%\section{¨ä¥L} +%\label{sec:misc} + + +\section{·PÁÂ} +\label{sec:acknowledgements} + +\begin{itemize} +\item ¦³³o»ò¦h¤H¡A°^Äm³\¦h¤ß¤O¡A§¹¦¨³\¦h¤è«K¥B¤º®eÂ×´Iªºµ{¦¡¡C +\item ¦³§ó¦hªº¨Ï¥ÎªÌ¡A¨Ï¥Î³o¨Çµ{¦¡¡A¨Ï¥Ļó¤W¼h¼Ó¡C +\item ³oºØ¯S§Oªº¬Û¤¬¼vÅT¡A¥Í¥Í¤£®§¦a´`ÀôµÛ¡A¤~´£¤É¤F§Ú̪º¥Í¬¡¼h±¡C +\end{itemize} + + +%\section{¥»¤å§@ªÌ} +%\label{sec:the-author} + +%§õ§g¦t (Chun-Yu Lee) +%d791013@ce.ntu.edu.tw ©Î \\ +%chunylee@ms1.hinet.net + + +%\bibliography{READMEb5} +%\bibliographystyle{plain} + + +\begin{thebibliography}{1} + +\bibitem{latex-companion:1993} +Michel Goossens, Frank Mittelbach, and Alexander Samarin. +\newblock {\em The \LaTeX Companion}. +\newblock Addison Wesley, 1993. + +\bibitem{tex-faq:1.9c} +Bobby Bodenheimer. +\newblock The new \TeX\ FAQ --- your 100 questions answered: + Version 1.9c, date 1994/12/06. +\newblock 1994. + +\bibitem{latex2nd} +Leslie Lamport. +\newblock {\em \LaTeX\ --- A Document Preparation System --- User's + Guide and Reference Manual}. +\newblock Addison Wesley, 2 edition, 1994. + +\end{thebibliography} + + +\appendix +\section{¦Wµü¸ÑÄÀ} +\label{sec:terms} + +¤U¦C¦Wµü¬°¥»¤å¤¤©Ò¨Ï¥Î¡A¨Ã§½©ó¤U¦C·N«ä¡G + +\begin{description} +\item[PK~¦r«¬:] PK fonts¡C¤@ºØÀ£ÁY¹LªºÂI°}¦r«¬®æ¦¡¡C¼sªx¨Ï¥Î¦b~ + TeX/\LaTeX~»Ýn¿é¥XÂI°}¦rªº¦a¤è¡C¦p¹wµø©Î¦C¦L¿é¥X¡C¦b¦¹°¾«ü¤¤¤å~CJK + PK~¦r«¬¡C +\item[PS~¦r«¬:] PostScript Type 1 fonts¡CPostScript~¦r¦³¼ÆºØ«¬¦¡¡A¥»¤å + ·N«ü~Type 1~¦r«¬¡C¨ä¦³¨âºØ®æ¦¡¡GPFA (Printer Font Ascii)~¤Î~PFB + (Printer Font Binary)¡C¦b¦¹°¾«ü¤¤¤å~CJK PS~¦r«¬¡C +\item[¥D¾÷¡B¤u§@¯¸:] A host computer, work station, etc¡Cªx«ü¬Y»O´£¨Ñ + ¸ê·½©ÎªA°Èªº¹q¸£¡C¦p~FTP~¯¸¡C +\item[CTAN:] Comprehensive \TeX\ Archive Network¡C¥»¤å«ü¦¬¶°´X¥G©Ò¦³¦³ + Ãö~TeX/\LaTeX~¨t²Î¤Î¤å¥óªº~FTP~¯¸¡C¥Ø«e¤wª¾ªº~CTAN~¸Ô¦C©óªþ¿ý~ + \ref{sec:ctan-mirrors}¡C +\item[IFCSS:] The CCIC (Chinese Community Information Center) of IFCSS + (Independent Federation of Chinese Students and Scholars)¡Cªþ¿ý~ + \ref{sec:ifcss-mirrors}~¤¤¬O´XÓ¦³¦Wªº~ifcss~¯¸¡C +\item[AFM~ÀÉ®×:] Adobe Font Metrics¡C¦s¦³½s½X¤Î¦r½d³òµ¥¸ê®Æ¡C +\item[TFM~ÀÉ®×:] \TeX\ Font Metrics¡C +\item[|.fd|~ÀÉ®×:] ¦r«¬´yzÀÉ~(font description files)¡C°O¿ý¬ÛÃö©ó¬Y¤@ + ºØ¤º½X¡C +\item[GS~©Î~GhostScript:] ±`¥Îªº~PostScript~»y¨¥¸ÑĶ¾¹¡]interpreter¡^ + ¤§¤@¡C +\item[|afm2tfm|:] ±N~AFM~Àɮ׮榡Âà´«¦¨~TFM~Àɮ׮榡ªºµ{¦¡¡C +\item[¤@²Õ¦r«¬ÀÉ:] ¦pªG¬O¨Ï¥ÎÀ£ÁY¹Lªº¦r«¬¡A§Y¤£¬O¨Ï¥Î~pmC~¶}ÀYªº¦r±Ú¡A + ¦@¦³~55~Ó¤l¦r«¬ÀÉ¡C¨Ò¦p¡G|b5ka01.pfb|¡B|b5ka02.pfb|¡B¡K¡B + |b5ka55.pfb|¡C +\item[\textsf{NFSS}:] New Font Selection Scheme¡C¥Ñ~Frank Mittelbach~ + ©M~Rainer Sch\"opf~©Ò´£¥Xªº¦r«¬¿ï¾Ü¨t²Î¡C +\end{description} + +\section{Àɮרú±o} +\label{sec:getting-files} + +\begin{description} +\item[\LaTeXe~°õ¦æÀô¹Ò¡G] ¤@¯ë¬Ò¦³¦¨®Mªº¨t²Î¨Ñ¨Ï¥ÎªÌ²³æ¦w¸Ë¡A¦p¦b~DOS~ + ¤Uªº~em\TeX¡F¦b~Linux~¤U¦³~N\TeX¡B~te\TeX~µ¥¡FUNIX~¤W«h¦p~web2c~ªºª© + ¥»µ¥¡C³o¨Ç³£´²¦b~CTAN~ªº¥Ø¿ý¤U¡CÄ´¦p~em\TeX~¦b~ + |systems/|\linebreak[1]|msdos/|\linebreak[1]|emtex|~¤¤¡FN\TeX~¦b¡S¡S¡F + web2c~ªºª©¥»¦b¡S¡S¡C\LaTeXe~¨t²Î¥»¨«h¦b~CTAN¡G + |macros/|\linebreak[1]|latex/|\linebreak[1]|base|~¤U¡C +\item[\LaTeXe~CJK~¨t²Î¡G] CTAN: |language/chinese/CJK|~©Î~IFCSS host: + |tex/|\linebreak[1]|CJK.X_X.|\linebreak[1]|tar.gz|¡C +\item[NTU TrueType~¦r«¬¡G] IFCSS host: |fonts/big5/ms-win|¡C±N·¢®Ñ¡B©ú + Åé¡B¥é§ºÅéµ¥³¡¤À¡]©Î¥þ³¡¡^ªº~ARJ~Àɨú¦^«á¡A°Ñ¦Ò»P³o¨Ç¦r«¬¦b¦P¤@¥Ø¿ý + ªº»¡©úÀÉ¡]©Î°Ñ¦Òªþ¦b\ntutocjk¤¤ªº~|README|~ÀÉ¡^¡A±N¨äÁÙ즨ӧO~TTF~ + ¦r«¬¡C +\item[\textsf{ntu2cjk, ttf2pk}:] ¦r«¬²£¥Íµ{¦¡¡C¥¦¥]§t¦b~¡§\LaTeXe\ CJK~ + ¨t²Î¡¨¤¤¡C +\item[GhostScript:] CTAN: + |support/|\linebreak[1]|ghostscript/|\linebreak[1]|aladdin|~©Î~ + |support/|\linebreak[1]|ghostscript/|\linebreak[1]|gnu|¡C +\item[|dvips|:] CTAN host: UNIX~ª©¦b~|dviware/dvips|¡FDOS~ª©¦b~ + |systems/msdos/|\linebreak[1]|dviware/|\linebreak[1]|dvips/|% + \linebreak[1]|dvips558.pc|¡C +\item[|afm2tfm|:] ¥]§t¦b~dvips~¨t²Î¤¤¡C +\item[|ps2pk|:] CTAN: |fonts/utilities/ps2pk|¡A©Î¥]§t¦b¤@¯ë®M¸Ëªº~ + \TeX/\LaTeX~¨t²Î¤¤¡C +\item[|gsftopk|:] CTAN: |fonts/utilities/gsftopk|¡A©Î¥]§t¦b¤@¯ë®M¸Ëªº~ + \TeX/\LaTeX~¨t²Î¤¤¡C +\item[|dvi2|xx:] ¦p~|dvilj|¡B|dvidm|¡B¡K¡C¦b~CTAN: |dviware|~¥Ø¿ý¤U¡C +\item[AUC\TeX:] CTAN: |support/auctex|~¥Ø¿ý¤¤ªº~ + |auctex.tar.gz|\linebreak[1]¡]~unix~¡^©Î~|auctex.zip|~¡]dos¡^¡C +\item[|fontload|:] CTAN: |fonts/utilities/fontload|¡C +\item[Mule~ªº¤¤¤å¿é¤Jªk¡G] IFCSS: |mule/lisp/quail-b5|¡C +\end{description} + + +\section{¨ä¥L¬ÛÃöªº³nÅé»P¤u¨ã} +\label{sec:other-stuffs} + +\subsection{¦b~Linux~¨t²Î¤Wªº\bigfive¤¤¤å¨t²Î¤Î¼ÒÀÀ²×ºÝ¾÷µ{¦¡} +\label{sec:chinese-systems} + +\begin{itemize} +\item chdrv +\item yact +\item CXterm +\item xcin +\end{itemize} + +\subsection{¤¤¤å½s¿è\ -- Mule} +\label{sec:mule} + +¨Ï¥Î~Mule~¬°½s¿è¤¤¤å~\LaTeX~¤å¥óªº¤u¨ãªº¨Ï¥ÎªÌ¡A¥i±N¤U±ªº³]©w¥[¦Ü~ +|$HOME/|\linebreak[1]|.emacs|~Àɤ¤¡G +\begin{verbatim} + ;;; Chinese Big-5 environment + (set-primary-environment 'chinese) + (set-default-file-coding-system '*big5*) + (setq display-coding-system '*big5*) + (setq keyboard-coding-system '*big5*) + ;; input methods + (add-hook 'quail-package-alist '("tsangchi-b5" "quail/tsangchi-b5")) + (add-hook 'quail-package-alist '("quick-b5" "quail/quick-b5")) + ; the default input method + (setq-default quail-current-package + (assoc "tsangchi-b5" quail-package-alist)) +\end{verbatim} + +¤Á´«¤¤^¤å¿é¤J¥i«ö~|C-]|¡An¿ï¾Ü¨ä¥Lªº¿é¤Jªk¥i«ö~|M-s|¡]|Alt-s|¡^¡C + +³]©w¿é¤Jªk®É¥i¿ï¾Ü¦Û¤v²ßºDªº¡C¦b~IFCSS Mule~ªº¥Ø¿ý¤¤¡]°Ñ¦Ò²Ä~ +\ref{sec:getting-files}~¸`¡^¦³¤@¨Ç¤¤¤å¿é¤Jªk¡A¨ä¤¤¥]¬A¦³¡G +\begin{center} + \begin{tabular}{ll}\hline + ÀÉ®× & ¹ïÀ³¤§¿é¤Jªk \\\hline + cns-b5-input.tar.gz & ¤º§t~|tsangchi-b5.el|¡]ܾe¡^¤Î \\ + & |quick-b5.el|¡]²©ö¡^µ¥¿é¤Jªk \\ + zozy.el.gz & ¹s³üª`µ \\ + cj.el.gz & ܾe \\ + simplex.el.gz & ²©ö \\ + punct-b5.el.gz & ¼ÐÂI²Å¸¹ \\ + qj-b5.el.gz & ¥þ§Î \\ + etzy.el.gz & ʤѪ`µ \\ + boshiamy.el.gz & åF½¼¦Ì \\ + array30.el.gz & ¦æ¦C~30 \\\hline + \end{tabular} +\end{center} + +¥H¤W¬°¸û±`¨£ªº¿é¤Jªk¡C¸Ó¥Ø¿ý¤¤¥ç¥]§t¤U¦C¿é¤Jªk¡G +\begin{center} + \begin{tabular}{ll} \hline + ÀÉ®× & ¹ïÀ³¤§¿é¤Jªk \\\hline + 4corner.el.gz & ¥|¨¤¸¹½X \\ + ctlaub.el.gz & ¼B¿ü²»¦¡¸fµ \\ + ecdict.el.gz & ^º~Ãã¨å \\ + hs.el.gz & µØ¶H \\ + hsu.el.gz & ³\¤óª`µ \\ + py-b5.el.gz & º~»y«÷µ \\ + roman.el.gz & ù°¨«÷µ \\\hline + \end{tabular} +\end{center} + + +Áä¦nªº~\LaTeX~¤å¥óÀÉ¡A¥i°õ¦æ~|bg5latex|~½sĶ¡C¥ç¥i§Q¥Î~|cjk-enc.el|~³oÓ~ +Emacs Lisp~ÀÉ¡A±N¤å¥ó¥ý¦æÂà´«¦¨~|.cjk|~ÀÉ¡A¦A¥H~|latex|~¶i¦æ½sĶ¡C§@ªk¬O +¦b~|~/.emacs|~Àɮפ¤¥[¤J¤U¦C¼Æ¦æ¡]¨ä¤¤¨ç¼Æ~ |write-cjk-file|~½Ð°Ñ¦Ò~ +|cjk-enc.txt|~¡^¡G +\begin{verbatim} + (load-library "cjk-enc") + + (defun write-cjk-file () + "Save current buffer and <buffername>.cjk in *cjk-coding*" + (interactive) + (setq coding file-coding-system) + (setq bufname (buffer-file-name)) + (string-match "\\(.*\\)\\.[^/]*$" bufname) + (setq body (substring bufname 0 (match-end 1))) + (setq newbufname (concat body ".cjk")) + (message "Saving %s and %s" bufname newbufname) + (write-file newbufname *cjk-coding*) + (write-file bufname coding)) +\end{verbatim} +¤§«á«K¥i¦b¨C¦¸n°õ¦æ~|latex|~«e¡A¥Î~|M-x write-cjk-file|~©R¥O¥ý¦sÀÉ¡A +µM«á¦A¥H~|latex|~½sö¥DÀɦW»P±zªº¤å¥ó¥DÀɦW¤@¼Ë¡A¦ý©µ¦ùÀɦW¬°~|.cjk|~ +ªºÀɮסC + +\subsection{\TeX/\LaTeX~ªº¦nÀ°¤â\ -- AUC\TeX} +\label{sec:auctex} + +²©ö«ü¤Þ¡G +\begin{enumerate} +\item ·Ó²Ä~\ref{sec:mule}~¸`ªº¤è¦¡±N~Mule~³]©w§´·í¡C +\item «ö·Ó~AUC\TeX~ªº¦w¸Ë«ü¥Ü¦w¸Ë¡C©Î«ö·Ó~AUC\TeX~ªº~default~¤è¦¡¦w¸Ë¡C + ¤U¦C¼Æ¶µ¥i°µ¥i¤£°µ¡C +\item «Ø¥ß¤@Ó~|bg5latex-batch|~ÀÉ¡A¤À§O¦p¤U¡G + \begin{verbatim} + #! /bin/sh + f=`echo $1 | sed -e 's|\(.*\)\.[^/]*$|\1|'` + bg5conv < $1 > $f.cjk + latex \\nonstopmode\\input{$f.cjk} + \end{verbatim} +\item \label{CJK-C-cC-c}¦b~|.emacs|~¤¤¥[¤J¡G + \begin{verbatim} + (setq TeX-command-list + (append TeX-command-list + '(("CLaTeX" "bg5latex-batch %s " TeX-run-LaTeX nil t) + ("CLaTeX Interactive" "bg5latex %s " TeX-run-interactive nil t) + ("CPrint" "fload %f | lpr" TeX-run-command t nil) + ))) + \end{verbatim} + «h¥i¦b°õ¦æ~|C-c C-c|~©Î~|C-c C-r|~®É¡A¦bn¿é¤J~|LaTeX|~ªº®É¾÷¡A¿é¤J~ + |CLaTeX|¡C +\item ¦b~|.emacs|~¤¤¥[¤J¤U¦C¼Æ¦æ¡A¥H«K±zªº¤å¥ó¦b±Æª©®É¡]¥þ¤å«h°õ¦æ + ~|C-c C-c CLaTeX|~¡A°Ï°ì¥Î~|C-c C-r CLaTeX|¡^¡AY¦³¿ù»~¥i¥Î~|C-c `|~ + ¬dÅç¿ù»~©Ò¦b¡A¨Ã¥i§ó¥¿¤§¡C + \begin{verbatim} + (add-hook 'TeX-translate-location-hook + '(lambda () + (if (string-match "\\(.*\\)\.cjk$" file) + (setq file + (concat + (substring file + (match-beginning 1) + (match-end 1)) + ".tex"))))) + \end{verbatim} +\item ©ÎªÌ±z¦Ò¼{¥Î~|cjk-enc.el|¡A«h¦b~|.emacs|~¤¤¥[¤J¤U¦C¼Æ¦æ¡G + \begin{verbatim} + (defun TeX-run-CJK-LaTeX (name command file) + "Create a process for NAME using COMMAND to format + FILE with CJK/LaTeX." + (write-cjk-file) + (TeX-run-LaTeX name command file)) + + (if (not (assoc "CJKLaTeX" TeX-command-list)) + (setq TeX-command-list + (append TeX-command-list + '(("CJKLaTeX" "%l '\\nonstopmode\\input{%s.cjk}'" + TeX-run-CJK-LaTeX nil t) + )))) + \end{verbatim} + ¥un±N¤Wz¨Ï¥Î~|CLaTeX|~ªº®É¾÷¡A§ï¦¨¨Ï¥Î~|CJKLaTeX|~§Y¥i¡C¬d¿ù¦P¼Ë¥Î + ~|C-c `|~¡C + + ¦ýnª`·N¡A¨Ï¥Î~|CJKLaTeX|~®É¡A¤å¥ó¤¤½Ð¤£n¨Ï¥Î~|\usepackage{CJK}|~©Î + Ãþ¦üªº©R¥O¡C +\end{enumerate} + +ª`·N¡A¤Wz¨BÆJ¥u¾A¥Î³æ¤@~CJK \LaTeXe~¤å¥ó¡C + +% Not ready yet... +%¦pªG¦b±zªº¤å¥ó¤¤¦³¥Î¨ì~|\include|~³oÓ©R¥O¡A¦Ó±z¤´·Q¥Î¨ì~AUC\TeX~ªº¥\¯à¡A +%¥i§@¦p¤Uªº¥Ø¿ý¦w±Æ¡G + +% ./ ==> ¥»¼h¥Ø¿ý¡Aì©l¤å¥ó¤§©ñ¸m¥Ø¿ý¡C +% ../ ==> ¤W¼h¥Ø¿ý¡A¸m©ñ¥Ñ~latex~«e¥Ñ~bg5conv~Âà´«¹Lªº~|.cjk|~ÀÉ¡]¦]¦¹ +% Y¦b¦¹¤W¼h¥Ø¿ý¤¤¦³ì©l¤å¥ó¡A«h»Ý¯S§Oª`·N¡A¤£n¨Ï¥Î»P¥»¼h¥Ø¿ý¤¤¦P¦Wªº +% ¤å¥ó¡^¡C¥t¥~¥]§t¤@~|Makefile|~¡]°Ñ¦Ò¹Ï~ +% \ref{fig:makefile-for-multifile-latexing}~¤§¨Ò¤l¡^¡A¨ä¤º®e¥Dn¬°¦b¨C +% ¦¸~latex~«e¡A§ó·s~|.cjk|~ÀÉ¡C + +% \begin{verbatim} +% #! /bin/sh +% make bg5conv +% cd CJK +% latex \\nonstopmode\\input{$1} +% \end{verbatim} + + +% \begin{lrbox}{\myex} +% \begin{minipage}{.9\textwidth} +% \footnotesize +%\begin{verbatim} +%TEXs = abstract.tex archi.tex codebase.tex conclude.tex details.tex \ +% dsgnbase.tex engtool.tex examples.tex introd.tex kb_lsp.tex \ +% pjfinal.tex prg_gi.tex prg_s2c.tex related.tex represnt.tex \ +% sscdcb.tex sscddb.tex sscdgi.tex sta2con.tex title_pg.tex +%MISC = Makefile LaTeXsrc +%RCSs = $(wildcard $(SRCDIR)/*,v) + +%SRCDIR = CJK + +%.PHONY: check_srcdir bg5conv default + +%.DEFAULT: .tex .sty .bib .dvi .ps .lj .toc .lof .lot + +%default: +% @echo "There are the following targets:" +% @echo " bg5conv : Big5 CJK LaTeX file converted to LaTeX file." + +%bg5conv: check_srcdir $(TEXs) + +%check_srcdir: +% @if [ -f LaTeXsrc ]; then \ +% echo "Don't make at the LaTex source directory!"; \ +% echo "Copy the Makefile to upper directory and make there."; \ +% echo "e.g., cp Makefile ..; cd ..; make"; \ +% exit 1; \ +% fi +% @if [ ! -d $(SRCDIR) ]; then \ +% echo "$(SRCDIR) not found!"; \ +% exit 1; \ +% fi + +%$(TEXs): %.tex : $(SRCDIR)/%.tex +% bg5conv < $< > $@ +%\end{verbatim} +% \end{minipage} +% \end{lrbox} + +% \begin{figure}[htbp] +% \begin{center} +% \leavevmode +% \framebox[.9\texwidth]{\myex} +% \caption{À³¥I¦h«~CJK~¤å¥óÀɪº~Makefile~½d¨Ò¡C} +% \label{fig:makefile-for-multifile-latexing} +% \end{center} +% \end{figure} + + + +\section{CTAN¦b¦U¦aªºÀÉ®×°Ï} +\label{sec:ctan-mirrors} +(¥»¸`ºK¦Û~CTAN host~¤Wªº~README.mirrors) + +¬°´î¤Öºô¸ô¤Wªºt²ü¡A«Øij©Ò¦³¨Ï¥Î~CTAN~¸ê·½ªººô¤Í¡A¯à¨Ï¥Î·í¦aªº©Î³Ìªñªº~ +CTAN host¡C + +¥Ø«e¤wª¾½Æ»s³¡¤À~CTAN~Àɮתº~FTP~¯¸: +\begin{verbatim} + ftp.fcu.edu.tw (Taiwan) /pub2/tex + gate.sinica.edu.tw (Taiwan) /TeX + ftp.adfa.oz.au (Australia) /pub/tex/ctan + ftp.germany.eu.net (Deutschland) /pub/packages/TeX + ftp.uu.net (Virginia, USA) /pub/text-processing/TeX + nic.switch.ch (Switzerland) /mirror/tex + sunsite.dsi.unimi.it (Italia) /pub/TeX + sunsite.snu.ac.kr (Korea) /shortcut/CTAN +\end{verbatim} + +¥Ø«e¤wª¾½Æ»s¥þ³¡~CTAN~Àɮתº~FTP~¯¸: +\begin{verbatim} + dongpo.math.ncu.edu.tw (Taiwan) /tex-archive + ftp.ccu.edu.tw (Taiwan) /pub/tex + cis.utovrm.it (Italia) /TeX + ctan.unsw.edu.au (NSW, Australia) /tex-archive + ftp.center.osaka-u.ac.jp (Japan) /CTAN + ftp.cdrom.com (West coast, USA) /pub/tex/ctan + ftp.comp.hkbu.edu.hk (Hong Kong) /pub/TeX/CTAN + ftp.cs.rmit.edu.au (Australia) /tex-archive + ftp.cs.ruu.nl (The Netherlands) /pub/tex-archive + ftp.cstug.cz (The Czech Republic) /pub/tex/CTAN + ftp.duke.edu (North Carolina, USA) /tex-archive + ftp.ee.up.ac.za (South Africa) /tex-archive + ftp.funet.fi (Finland) /pub/TeX/CTAN + ftp.gwdg.de (Deutschland) /pub/dante + ftp.jussieu.fr (France) /pub4/TeX/CTAN + ftp.loria.fr (France) /pub/unix/tex/ctan + ftp.mpi-sb.mpg.de (Deutschland) /pub/tex/mirror/ftp.dante.de + ftp.nada.kth.se (Sweden) /pub/tex/ctan-mirror + ftp.rge.com (New York, USA) /pub/tex + ftp.riken.go.jp (Japan) /pub/tex-archive + ftp.tu-chemnitz.de (Deutschland) /pub/tex + ftp.uni-augsburg.de (Deutschland) /tex-archive + ftp.uni-bielefeld.de (Deutschland) /pub/tex + ftp.unina.it (Italia) /pub/TeX + ftp.uni-stuttgart.de (Deutschland) /tex-archive (/pub/tex) + ftp.univie.ac.at (\"Osterreich) /packages/tex + ftp.u-aizu.ac.jp (Japan) /pub/tex/CTAN + ftpserver.nus.sg (Singapore) /pub/zi/TeX + kadri.ut.ee (Estonia) /pub/tex + src.doc.ic.ac.uk (England) /packages/tex/uk-tex + sunsite.icm.edu.pl (Poland) /pub/CTAN + sunsite.queensu.ca (Canada) /pub/tex-archive + sunsite.unc.edu (North Carolina, USA) /pub/packages/TeX + wuarchive.wustl.edu (Missouri, USA) /packages/TeX +\end{verbatim} + +¨âÓ¥Dnªº~CTAN~¥D¾÷: +\begin{verbatim} + ftp.dante.de (Deutschland) + -- anonymous ftp + /tex-archive (/pub/tex /pub/archive) + -- gopher on node gopher.dante.de + -- e-mail via ftpmail@dante.de + -- World Wide Web access on www.dante.de + -- Administrator: <ftpmaint@dante.de> + + ftp.tex.ac.uk (England) + -- anonymous ftp + /tex-archive (/pub/tex /pub/archive) + -- gopher on node gopher.tex.ac.uk + -- NFS mountable from + nfs.tex.ac.uk:/public/ctan/tex-archive + -- World Wide Web access on www.tex.ac.uk + -- Administrator: <ctan-uk@tex.ac.uk> +\end{verbatim} + + +\section{IFCSS~¦b¦U¦aªº~FTP~¯¸} +\label{sec:ifcss-mirrors} + +¥Dnªº~IFCSS~¯¸¡G \verb|ftp.ifcss.org:/pub/software| + +¨ä¥Lªº~FTP~¯¸: +\begin{verbatim} +Taiwan: ftp.edu.tw:/Chinese/ifcss/software [full] + ftp.ntu.edu.tw:/Chinese/ifcss/software [full] + iiiafs.iii.org.tw:/Chinese/ifcss/software [full] +CHINA, + Beijing: info.bta.net.cn:/pub/software [partial] + Guangdong: + info.gz.gdpta.net.cn:/pub/mirror/chnsoftware [partial] + Shanghai: info.sta.net.cn:/pub/software [partial] +HONG KONG,: ftp.cuhk.hk:/pub/chinese/ifcss/software [full] +SINGAPORE,: ftp.technet.sg:/pub/chinese [full] +USA, + California: cnd.org:/pub/software [full] + New Mexico: phaiakon.nmsu.edu:/pub/software [full] +\end{verbatim} + +%% start of trailer +\newpage +\end{CJK*} + +\end{document} + +%% Local Variables: +%% TeX-header-end: "%+ *[Ee]nd[ -]*[oO]f[ -]*[hH]eader" +%% TeX-trailer-start: "%+ *[Ss]tart[ -]*[oO]f[ -]*[tT]railer" +%% TeX-command-default: "CLaTeX" +%% TeX-master: t +%% End: diff --git a/Master/texmf-dist/doc/latex/CJK/doc/chinese/READMEgb.tex b/Master/texmf-dist/doc/latex/CJK/doc/chinese/READMEgb.tex new file mode 100644 index 00000000000..3081e2896b0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/chinese/READMEgb.tex @@ -0,0 +1,92 @@ +% This is the file READMEgb.tex of the CJK package +% for installing the CJK package for LaTeX 2e (in GB encoding). +% +% written by Fude Yao <yao@everest.micro.umass.edu} +% Version 4.1.3 (20-Jun-1997) + +\documentclass[12pt]{report} + +\usepackage{CJK} + +\begin{document} + +\begin{CJK*}{GB}{gbsn} +\CJKtilde + +\chapter*{CJK~°²×°ËµÃ÷Êé} + +¡¡¡¡±¾ÎÄÊÇ~Werner Lemberg~µÄ~CJK~µÄ°²×°ËµÃ÷Êé. Ôڴ˽ö¾Í×÷ÕßʹÓÃµÄ +~Alpha-Linux~ƽ̨½øÐÐÌÖÂÛ, ²¢×ÅÖØÓÚ~teTeX-0.4p16~ÕâÒ»°æ±¾µÄ~\TeX + +\begin{enumerate} +\item + ÓÃ~ftp~ÄäÃû´æÈ¡·½Ê½»ñµÃ~CJK£®ÀýÈç: \\ + ftp ftp.tex.ac.uk (or ftp.dante.de) \\ + anonymous \\ + yao@everest.micro.umass.edu \\ + bin \\ + cd tex-archive/language/chinese \\ + get CJK.tar.gz CJK-4.1.3.src.tar.gz (°´£ºËäÈ»¿´²»µ½~CJK.tar.gz, + µ«±¾ÃüÁîÈÔÓÐЧ£¬²Î¿´~CJK-4.1.3.src/README) \\ + bye +\item + ½«Ñ¹ËõÎļþ½âѹ£º\\ + gzip -d CJK-4.1.3.src.tar.gz \\ + tar xvf CJK-4.1.3.src.tar \\ + cd CJK/4$_{-}$1.3 +\item + ½«~doc/teTeX~ÀïµÄÈ«²¿²¹¶¡Îļþ~*.diff~ÒÆÖÁ~\$TEXDIR/bin/alpha-linux \\ + ÓÃ~patch~ÃüÁîÐÞ²¹£¬±ÈÈç: patch $<$ MakeTeXPK.diff \\ + (ÆäÖÐ~special.map.diff~Ó¦ÒÆÖÁ~\$TEXMF/fontname~ÐÞ²¹) \\ + ×¢ÒâÐÞ²¹ÊÇ·ñÈ«²¿³É¹¦ \\ + (×¢£º\$TEXDIR=/usr/lib/texmf; \$TEXMF=/usr/lib/texmf/texmf) +\item + ½«~CJK~ÖÐÈ«²¿ÎļþÒÆÖÁ~\$TEXMF/tex/latex/CJK (±£Áô¸Ã½á¹¹) +\item + ½«~utils/ttf2pk~µÄÈ«²¿ÎļþÒÆÖÁ~\$TEXMF/ttf2pk£º \\ + cd \$TEXMF/ttf2pk/src \\ + make all OS=unix \\ + ½«~utils/hbf2gf~µÄÈ«²¿ÎļþÒÆÖÁ~\$TEXMF/hbf2gf£º \\ + cd \$/TEXMF/hbf2gf \\ + make all OS=unix +\item + cd utils/Bg5conv (CEFconv, SJISconv) \\ + compile *conv.c, ±ÈÈ磺~gcc cefconv.c -o cefconv \\ + ½«ËùµÃµÄ¶þ½øÖÆÎļþÁ¬Í¬~*latex~Ò»ÆðÒÆÖÁ~\$TEXDIR/bin/alpha-linux +\item + ½«È«²¿¿ÉÖ´ÐÐÎļþÒƵ½~\$TEXDIR/bin/alpha-linux~ÖУ¬»ò½¨Á¢ÁªÏµ£¬±ÈÈç \\ + ln -s \$TEXMF/ttf2pk/ttf2pk \$TEXDIR/bin/alpha-linux +\item + ¼ì²é~\$TEXDIR/texmf.cnf~ÖÐ~\$HBF2GFDIR~Óë~\$TTF2PKDIR \\ + ÊÇ·ñÕýÈ· +\item + °²×°~CJK~×Ö¿â, truetype~»ò~hbf~¸ñʽµÄ¹ú±ê£¬´óÎ壬ÈÕÎÄ£¬³¯ÏÊÎÄ \\ + ÔÚ~ftp.tex.ac.uk/tex-archive/fonts/CJK~ÀïÓи÷ÖÖ×ֿ⣬ÓÃÄäÃû´æÈ¡·½Ê½ + È¡»Ø£¬×¢ÒâʹÓöþ½øÖÆ·½Ê½ +\item + ½âѹÎļþ \\ + ½«×Ö¿â·ÅÔÚ~\$TEXMF/fonts/hbf(truetype)/chinese(japanese, korean) \\ + Èç¹ûÊÇ~hbf~×ֿ⣬½«~*.cfg~ÒÆÖÁ~\$TEXMF/hbf2gf£» \\ + Èç¹ûÊÇ~truetype~×ֿ⣬¼ì²é\$TEXMF/ttf2pk/ttf2pk.cfg~ÖÐÊÇ·ñÓиÃ×Ö¿âÃû + ×Ö +\item + ÊÔÑéÑù±¾Îļþ£¬¼ì²éÉèÖÃÊÇ·ñÍêÕû£¬±ÈÈç~GB.tex£º \\ + GB.tex~ÖÐÓõ½Ê²Ã´×ֿ⣺$\backslash$begin\{CJK*\}\{GB\}\{so\} \\ + \$TEXMF/tex/latex/CJK~ÖÐÓÐ~c10so.fd~×Ö¿âÂð£¿ËüÉæ¼°ÄÄЩÃû×Ö£¿ \\ + \$TEXMF/fontname/special.map~ÖÐÊÇ·ñÓиÃ×Ö¿âµÄÃû×Ö£¿ \\ + \$TEXDIR/texmf.cnf~ÖÐ~\$HBF2GFDIR~Óë~\$TTF2PKDIR~ÕýÈ·Â𣿠\\ + Èç¹ûÊÇ~hbf~×ֿ⣬\$TEXMF/hbf2gf~ÖÐÓиÃ×Ö¿âµÄ~cfg~ÎļþÂ𣿠\\ + ¼ì²é~cfg~ÎļþµÄ·¾¶ÃûÊÇÊÇ·ñÕýÈ·£¿ \\ + Èç¹ûÊÇ~truetype~×ֿ⣬\$TEXMF/ttf2p/ttf2pk.cfg~ÖÐÓиÃ×Ö¿âÃû×ÖÂ𣿠\\ + ·¾¶ÃûÕýÈ·Â𣿠+\item + ÔËÐÐ~texhash (ÿ´Î¸Ä¶¯Ö®ºó£¬¶¼ÒªÔËÐÐ~texhash) +\item + latex examples/GB.tex, ¿´ÊÇ·ñÕý³££®ÔÚ~doc/~×ÓĿ¼ÖÐÓкܶà°ïÖúÎļþ£¬ + Ó¦×ÐϸÔĶÁ +\end{enumerate} + +\end{CJK*} +\end{document} + +\EOF diff --git a/Master/texmf-dist/doc/latex/CJK/doc/chinese/emTeXb5.txt b/Master/texmf-dist/doc/latex/CJK/doc/chinese/emTeXb5.txt new file mode 100644 index 00000000000..b37c80aff36 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/chinese/emTeXb5.txt @@ -0,0 +1,357 @@ +From c300711@ms5.hinet.net Fri Feb 07 02:13:02 1997 +Newsgroups: tw.bbs.comp.tex +Subject: emtex+cjk410(ttf2pk) on Msdos ¦w¸Ë¬ö. +From: KUO Yi-Liang <c300711@ms5.hinet.net> +Date: Thu, 06 Feb 1997 18:13:02 GMT + +¥»¤å¥Hemtex\doc\english\quick.eng¬°°ò¦: +¸Õ¹Ï¦w¸Ëemtex+cjk4.1.0(ttf2pk) on MSDOS +-------- +ÀÉ®× +-------- +º¥ý¦b mirror CTAN ªº ftp¯¸ +¨Ò¦p dongpo.math.ncu.edu.tw: /tex-archive/systems/msdos/emtex/¤U§ì +*.zipÀÉ, +-rw-rw-r-- 1 mattes server 160090 Aug 7 1995 bibtex4b.zip +-rw-rw-r-- 1 mattes server 1148514 Apr 10 16:22 dvid16f1.zip +-rw-rw-r-- 1 mattes server 824290 Apr 10 16:22 dvid16f2.zip +-rw-rw-r-- 1 mattes server 94959 Aug 7 1995 dvisp10b.zip +-rw-rw-r-- 1 mattes server 180206 May 24 14:17 emxrsx.zip +-rw-rw-r-- 1 mattes server 127810 Sep 2 13:24 first.zip +-rw-rw-r-- 1 mattes server 651946 Jun 26 1995 fontams.zip +-rw-rw-r-- 1 mattes server 411129 Jun 26 1995 fontcm.zip +-rw-rw-r-- 1 mattes server 1031835 Sep 2 13:24 fontdc.zip +-rw-rw-r-- 1 mattes server 7080 Jun 26 1995 fontemsy.zip +-rw-rw-r-- 1 mattes server 47495 Jun 26 1995 fontltx.zip +-rw-rw-r-- 1 mattes server 110991 May 4 21:05 german.zip +-rw-rw-r-- 1 mattes server 930861 Jun 21 14:59 l2base.zip +-rw-rw-r-- 1 mattes server 409888 Jun 21 14:59 l2input.zip +-rw-rw-r-- 1 mattes server 87336 Jun 26 1995 l2kurz.zip +-rw-rw-r-- 1 mattes server 209194 Jun 21 14:59 l2tools.zip +-rw-rw-r-- 1 mattes server 347068 Jun 26 1995 latex209.zip +-rw-rw-r-- 1 mattes server 81115 Jun 26 1995 lkurz.zip +-rw-rw-r-- 1 mattes server 83493 Jun 26 1995 makeindx.zip +-rw-rw-r-- 1 mattes server 990552 Jun 21 14:59 mf4b.zip +-rw-rw-r-- 1 mattes server 166052 Sep 19 1995 mfjob12c.zip +-rw-rw-r-- 1 mattes server 227054 Jun 26 1995 mfware.zip +-rw-rw-r-- 1 mattes server 39887 Jun 26 1995 pictex.zip +-rw-rw-r-- 1 mattes server 113473 Jun 26 1995 pkedit.zip +-rw-rw-r-- 1 mattes server 38705 Jun 26 1995 srcmkidx.zip +-rw-rw-r-- 1 mattes server 88251 Jun 26 1995 srctcad.zip +-rw-rw-r-- 1 mattes server 1173697 Jun 21 14:59 tex4b.zip +-rw-rw-r-- 1 mattes server 131010 Jun 26 1995 texcad.zip +-rw-rw-r-- 1 mattes server 260671 Sep 11 1995 texware.zip +-rw-rw-r-- 1 mattes server 236301 Jun 26 1995 unz512.exe +-rw-rw-r-- 1 mattes server 236134 Jun 26 1995 unz512x3.exe +-rw-rw-r-- 1 mattes server 124738 Aug 23 1995 web.zip +¤£¹L¥i¥H¥ý§ì³o´XÓ(¥H¦w¸ËLaTeX2e¨Ó»¡) + first.zip......¤@¨Ç»¡©úÀÉ + emxrsx.zip.....Ãþ¦üdos extenderªºªF¦è(¯ÂÄÝÓ¤H²q´ú) + mfjob12c.zip...±N.mf(^¤å¦r«¬ªºsourceÀÉ)Âà´«¦¨.pk©Ò»Ýnªº¸ê®Æ + dvid16f1.zip...¦U¦¡ªºdvi driver-partI + dvid16f2.zip...¦U¦¡ªºdvi driver-partII + tex4b.zip......texªº¥D°õ¦æÀÉ + mf4b.zip.......³o...§Ú¤]¤£ª¾¹D, sorry + fontcm.zip.....cm¨t¦Cªº¦r«¬ÀÉ.mf + fontltx.zip....latex©Ò»Ýªº¦r«¬ÀÉ.mf + l2input.zip....latex©Ò»ÝªºtexinputÀÉ + l2tools.zip....ÃB¥~ªºtexinputÀÉ + +¸É¥R¤@ÂI:pkunzip³oÓ¸ÑÀ£µ{¦¡¨S¦³ªº¤HÀ³¸Ó¤£¦h§a,¦pªG¨S¦³ªº¸Ü¥h§ìÓunzip¦^¨Ó! +-rw-rw-r-- 1 mattes server 236301 Jun 26 1995 unz512.exe +-rw-rw-r-- 1 mattes server 236134 Jun 26 1995 unz512x3.exe +¦ADOS ´£¥Ü²Å¸¹¤U(³o¬Oquick.eng ©Òz,Ó¤H§Ú¨S¸Õ¹L) + unz512x3 unzip386.exe + ren unzip386.exe unzip.exe + +ÁÙ¦³¬Ý§A¥Î¨º¥xprinter +´N§ì¨º¤@Ó¦r«¬ÀÉ(¤£§ì¤]¥i¥H,Ó¤H§Ú´N¬O¦Û¤v«Ø³y°_¨Óªº) + bj_base.fli Base fonts for the Canon BubbleJet (360 DPI) + dj_base.fli Base fonts for the HP DeskJet (300 DPI) + fax_base.fli Base fonts for Fax (204x196 DPI) + fx_base.fli Base fonts for 9-pin printers (240x216 DPI) + ito_base.fli Base fonts for the C.ITOH 8510A (160x144 DPI) + ljh_base.fli Base fonts for the HP LaserJet 4 (600 DPI) + lj_base.fli Base fonts for the HP LaserJet (300 DPI) + p6h_base.fli Base fonts for 24-pin printers (360 DPI) + p6l_base.fli Base fonts for 24-pin printers (180 DPI) + p6m_base.fli Base fonts for 24-pin printers (360x180 DPI) + qj_base.fli Base fonts for the HP QuietJet (192 DPI) + sty_base.fli Base fonts for the EPSON Stylus 800 (360 DPI) + +¦A¶i¨ì./dvips(©Î../dviware/dvips/dvips558.pc) ¤U§ì +-rw-rw-r-- 1 ftpmaint server 27831 Nov 6 1995 dvips.doc +-rw-rw-r-- 1 ftpmaint server 182491 Nov 6 1995 dvipsfnt.zip +-rw-rw-r-- 1 ftpmaint server 421777 Nov 6 1995 dvipsini.zip +-rw-rw-r-- 1 ftpmaint server 173767 Nov 6 1995 dvipssrc.zip +..sourceÀÉ,À³¸Ó¤£¥Î§ì +----------- +ªì¨B³]©w +----------- +¥HÓ¤H§Ú¦w¸Ë¦bD:ºÐ¬°¨Ò,¦Ó©Ò¦³ªº.zipÀÉÂ\¦bd:\emtex.zip\¤U + d: + cd d:\ + pkunzip -d +d:\emtex.zip\*.zip......¦p¦¹·|¨ÌÀ£ÁY«eìq¥Ø¿ý¦ì¸m¸ÑÀ£Â\¦n + +¨Ã·Óquick.eng¤¤«Øij±Nd:\emtex\bin»Pd:\emx\bin¥[¤Jpath¤¤ +¨Ã©ó c:\autoexec.bat ¤¤ ¥[¤J: + set emtexdir=d:\emtex + set dvidrvfonts=d:\texfonts + set mfjobopt=/3 + set tmp=c:\temp + +¦bc:\config.sys¤¤ files=xx¨ä¤¤xx»Ý¤j©ó20 +ÁÙ¦³±Nconfig.sys¤¤`BREAK=ON'¨º¦æ§R±¼ +µM«á«¶}¾÷¨Ï autoexec.bat ³]©w·sªºpath + +¸É¥R¤@ÂI:Ó¤H§Ú¨Ã«D¦p¤W©Òz,¦Ó¬O±Nemtex\bin\set_tex.bat ¥[¥HÂX¥R, + ±N¤W±ªºpath,emtexdir,dvidrvfont,mfjobopt,tmp,...³o¨ÇÀô¹ÒÅÜ¼Æ + ¥þ³£¥[¦bset_tex.bat¤F,¤Ï¥¿µy«áÁÙ¦³¥t¥~¤@¨ÇÀô¹ÒÅܼÆn³]. +------------------------- +«Ø³ypk¦r«¬ +------------------------- +¥H¤U±qinstall.eng¤¤ ¸`¿ý + ¦pªG§A©M§Ú¤@¼Ë¨S¦³§ì¤W±xxx_base.fliªº¸Ü,½Ð§A¸ò§Ú³o¼Ë§@ + ¨ì\emtex\mfjob\modes.mfj ¤¤ + ±N 'def target=[............]'§ï¦¨§A©ñ¸m.pkªºtexfonts¥Ø¿ý + ¨Ò¦p §Úªº def target=[d:\texfonts]; + °²³]¤w¸g±Nfontcm.zip »P fontltx.zip ®i¶}«á, + «h¦bdos ´£¥Ü²Å¸¹¤U°õ¦æ + mfjob base m=MODE + fli_base PREFIX RES c:\texfonts +where MODE, PREFIX, and RES depend on the font set: + +MODE | PREFIX | RES | Font library | Description +-----+--------+-----+--------------+------------------------- +bj | bj | 360 | bj_base.fli | Canon BubbleJet (360 DPI) +dj | dj | 300 | dj_base.fli | HP DeskJet (300 DPI) +FAX | fax | 204 | fax_base.fli | Fax (204x196 DPI) +fx | fx | 240 | fx_base.fli | 9-pin printers (240x216 DPI) +ito | ito | 160 | ito_base.fli | C.ITOH 8510A (160x144 DPI) +lj | lj | 300 | lj_base.fli | HP LaserJet (300 DPI) +ljh | ljh | 600 | ljh_base.fli | HP LaserJet 4 (600 DPI) +lqh | p6h | 360 | p6h_base.fli | 24-pin printers (360 DPI) +lql | p6l | 180 | p6l_base.fli | 24-pin printers (180 DPI) +lqm | p6m | 360 | p6m_base.fli | 24-pin printers (360x180 DPI) +qj | qj | 192 | qj_base.fli | HP QuietJet (192 DPI) +sty | sty | 360 | sty_base.fli | EPSON Stylus 800 (360 DPI) + +To let MFjob call mf386, use the /3 option. It is recommended to set +this option in the MFJOBOPT environment variable: + + set mfjobopt=/3 + + ¨Ò¦p§Ú¥Îªº epson stylus 200 «h + mfjob base m=sty + fli_base sty 360 d:\texfonts.........(¤U±ªº³o¦æ§Ú¨S¦³§@¹L:() + +µM«á ¦p ¸`¿ý¦Ü quick.eng ªº ¤ù¬q,step by step +--------------------------------------------------------------------- +6. Creating format files +--------------------------------------------------------------------- + +Type the following commands to create format files: + + cd \emtex\btexfmts + makefmt 386 plain US <--- if you need PLAIN TeX + makefmt 386 latex2e US 8bit -b \emtex\bin\latex2e <---²£¥Í¤@Ó +latex2e.bat + +--------------------------------------------------------------------- +7. Creating base files +--------------------------------------------------------------------- + +Type the following commands to create the PLAIN base file: + + cd \emtex\bmfbases + makebas 386 plain + +--------------------------------------------------------------------- +8. Testing the installation +--------------------------------------------------------------------- + +Type the following commands to typeset a sample document: + + md \test + cd \test + latex2e sample2e <----´ú¸Õemtex\bin\latex2e.bat¥i¤£¥i¥H°Ê?? + +8.1. Viewing the sample output under DOS +---------------------------------------- + +Type + + v @XX sample2e +---->¥H§Úªºepson stylus 200 ¬°¨Ò,«h¬OÁä¤J "v @sty sample2e" +.....µM«á¤@°}®Dù¼M°Õªº°T®§,¤jP¤W¬O»¡¥¦¯Ê¤F¨Ç¦r«¬,n¤£n²{¡y§@¡z? + +The following message will be displayed: + + Warning 1209: do you want to call MFjob to generate 1 missing +font now? + Type Y, N, or ?: + +Reply `y'. If you have not installed fonts, computing the fonts for +the sample will take a while. + +When the page shows up (white background), you can scale the output +by +typing `-'. To quit, type `q'. + +¦^µª'y'¤§«áÀ³¸Ó¥i¥H¬Ý¨ì¤F something output on screen +¥i¥Hzoom in/zoom out ¥Î '+' / '-' +---------------------------------------------------- +Ãö©óCJK 410§ìÀÉ-----¥Î¥H³]©wttf2pkªº³¡¥÷,¤£§tntu2cjk +---------------------------------------------------- +¥ýarchie §ä CJK-4.1.0.bin.tar.gz + ¨Ã§ì¦^¨Ó CJK-4.1.0.rest.tar.gz + CJK-4.1.0.src.tar.gz--------? +¸É¥R¤@ÂI:§Ú¬O±q¤U±³oÓ¦a¤è,±N¾ãӾ𪬤l¥Ø¿ýftp¦^¨Óªº,¥ÎmodemC,¦n²Ö:( + dongpo.math.ncu.edu.tw:/tex-archive/language/chinese/CJK/4_1.0 + ÁöµM¬Ý¨ìCJK/4_1.0/readme¤¤©Ò¼gµÛ¦³CJK-4.1.0.src.tar.gz³oÓÀÉ®× + ¦ý¬O«oarchie¤£¨ì:( +¸É¥R¤GÂI:¨Ï¥Î¦bmsdos¤U¨Ï¥Îcjk»Ýn4dos/ndos,¦pªG¨S¦³½Ð¦Û¦æ³]ªk. + ¨ä¤¤4dos/ndos ¬O©R¥O¸ÑĶ¾¹,¨ú¥Nmsdosªºcommand.com¥Îªº +------------------------ +¸Ñ¶} +------------------------ + ¸Ñ¶}ªºµ{§Ç¤jP¤W¬O: + gzip386 -d xxx.tgz (©Îxxx.gz) ±o¨ì xxx.tar(©Îxxx.) + tar -xvf xxx.tar (©Î xxx.) + (ps:gzip386 ¸ÑÀ£®É,·|±Nì¥ýªºÀÉ®×»\¨ì(rename?); + ....»Parj,pkunzip¤£¤Ó¤@¼Ë;¦pªG©È¾Þ§@¿ù»~,¥ýcopy¤@¥÷°_¨Ó) + µM«á±N¤TÓcjk-4.1.0.bin.tar.gz ®i¶} + Åܦ¨¤@Ӿ𪬤l¥Ø¿ýcjk/4_1.0/.................? +¸É¥R¤@ÂI: + ³o¨ÇÀɮ׬O.tar.gz,¸Ñ¶}¥¦Ì»Ýndos ª©ªºgzip»Ptar + §Ú¬O¦b¥æ¤j¥Xªº¶³Æ[CD¤ù¤W§Ë¨ìªº,¤£n°Ý§Úºô¸ô¤W¨º¸Ì¦³,sorry! +--------------------------------- +«·sÀɮפÀ°t¦ì¸m +-------------------------------- +¥H¤U¬O§Úªº°t¸m,¥u¬O¥i¥H°õ¦æ,¨Ã«D³Ì¨Î³]©w +bin/¤U ©Ò¦³ªºexe,bat,btm·h¨ìemtex/bin/ +¨Ò¦p +BG5CONV.EXE +BG5LATEX.BAT +F_NAME.BAT +INSTFONT.BTM +MAKETEXP.BTM +MAKETTFP.BTM +TTF2PK.EXE +util/f_name.bat ¤]·h¨ìemtex/bin +texinput ¾ãÓ¤l¥Ø¿ý ·h¨ìemtex/texinput/¤U ¨Ã§ï¦W¬°emtex/texinput/cjk +texinputs/bg5 ¾ãÓ¤l¥Ø¿ý ·h¨ìemtex/texinput/bg5 +---------------- +קï¤@¨ÇÀɮ׳]©w +---------------- +--------------------------------------- +emtex/texinput/bg5/ttf2pk/ttf2pk.cfg¤¤: + ntukai: -e Big5 $TEXMF/fonts/truetype/chinese/ntu_kai.ttf + ------ -------- ----------------------------------------- + ^ ^ ^ + | | |__§A¥Îªº.ttfÀɦW(§t¥þ³¡¸ô®|) + | | ¤£nºÞ$texmf,ª½±µc:\cwin31\system\....ttf + | |__½s½X«¬ºA? + |__¦r§Î¦WºÙ,³Ì¦n¤£n¶W¹L¤»Ó¦r + +¥[¤J¼Æ¦æÃö©ó§Aªº¦r§ÎÀɪº±Ôz,¥H¥þ¯u¦r®w¬°¨Ò: +avkv: -e Big5 c:/cwin\cttf/avkv.ttf +avbkv: -e Big5 c:/cwin/cttf/avbkv.ttf +avmv: -e Big5 c:/cwin/cttf/avmmv.ttf +avbmv: -e Big5 c:/cwin/cttf/avbmv.ttf +------------------------------------------- + +emtex/texinput/bg5/c00kai.fd: + \DeclareFontShape{C00}{kai}{m}{n}{<-> CJK * avkv}{} + ^^^^ + \DeclareFontShape{C00}{kai}{bx}{n}{<-> CJKb * avbkv}{\CJKbold} +©Î¬O §A»Ýn©úÅé¤Î²Ê©úÅé´N: ^^^^^ +emtex/texinput/bg5/c00ming.fd + \DeclareFontShape{C00}{ming}{m}{n}{<-> CJK * avmv}{} + ^^^^ + \DeclareFontShape{C00}{ming}{bx}{n}{<-> CJKb * avbmv}{\CJKbold} + ^^^^^ +½b¸¹^^^^³B±N»Pttf2pk.cfg©Ò¥[¤Jªº¨º´X¦æ¬Û¹ïÀ³,¥H«K§ä¨ì¹ê»ÚªºTrueTypeFont +-------------------------------------------- + +emtex/data/dvipsªº¤l¥Ø¿ý¤U¥[¤J§A©Ò»Ýªº.cfg + + ¥H§Úªºepson stylus 200¬°¨Ò«K¬O¤@Ósty.cfg + ©ó¬O¨Ì¾Údj.cfg ¨Ã°Ñ¦Ò../sty.cnf »P ../dj.cnf + ¦Û¤vÙT¥X¤@Ósty.cfg,(À³¸Ó¤£ºâÃø¤~¹ï) + ¨ä¤¤ ¦³¤@¦æì¥ý¦bdj.cfg¤¤¬O + P $(DVIDRVFONTS)\pixel.dj\%ddpi\%f.%p; + §ï¦¨ + P +$(DVIDRVFONTS)\pixel.sty\%ddpi\%f.%p;$(DVIDRVFONTS)\pixel.cjk\%ddpi\% +f.%p + + ¥¦ªº·N«ä¤j·§¬O·|¦bd:\texfont\pixel.sty\???dpi\*.pk + »Pd:\texfont\pixel.cjk\???dpi\*.pk §ä©Ò»Ýªºpk¦r«¬ÀÉ + + ¨Ã©óautoexec.bat ©Î¬O emtex\bin\set_tex.bat¤¤ + ³]©w SET PRINTER=STY ¨Ï dvips16 ¤Î dvips32 °Ñ¦Ò¨Ï¥Î + ³]©w SET DVIPS_STDERR ¨Ïdvips ±N stderr «·s¾É¦V¿é¥X + ³]©w SET MAKETEXPK=MAKETEXP %%N %%D %%B %%M ¨Ïdvips¯àcall +MakeTexPK? + SET EMXOPT=-P .........µ¹emx¥Îªº, I don't know + SET GS_LIB=.............³]©w§Aªºghostscript©Ò¦b + SET DVIDRVGRAPH=.........³]©w......I don't know +----------- +BTMÀɪº×§ï +----------- +.btm¬O«ü4dos/ndos±M¥Îªº§å¦¸ÀÉ. + +¦b¦¹¥Ñ©óì¥ýCJK410ªºpackageµ¹©w¤§btmÀɤ£¦X©ó§Ú¥Ø«e¨Ï¥Î¤¤¤§4dos/ndos, + ©ó¬Oªá¤F¦n¤jªº¤O®ð"§V¤O"ªº¶Ã§ï¤@³q,±z¤j·§¤â®ð¤£·|¹³§Ú¨º»òÁV, +----------------- +Instfont ¦w¸Ë¦r«¬ +----------------- +Áä¤J Instfont xxx -e enc res [res2] +¨ä¤¤xxx ¦r«¬¦WºÙ¦pntukai,avkv,avbkv,... + -e enc ¦p -e BIg5 + res ¦p 360 +§Úªºepson stylus 200«h¬OÁä¤J: + instfont avkv -e Big5 360 +µM«á·|«Ø¦n55Ó¦r§Î +-------- +´ú¸Õ +-------- +¦b"ì¥ý"ªºcjk/4_1.0/example/¤U¦³Óbig5.tex + ¥i¥HÁä¤J + bg5latex big5.tex + ±Nbig5.tex ½sĶ¦¨ big5.dvi,µM«áÁä¤J + dvips16 big5 + ·|Åã¥Ü¤@¨Ç°T®§,»¡¬O¯Ê¤F¤@¨Ç¦r«¬(.pkÀÉ?), + n²{¦b«Ø³y,¤§«á"À³¸Ó"´N¥i¥H±o¨ìbig5.ps,¥i¥H¥ÎGhostScript¨Ó¬Ý + ¤]¥i¥H v @xx big5 ±q¿Ã¹õ¤W¬Ý¨ìoutputs +¥t¥~¦bcjk/4_1.0/doc/chinese/big5/¤U¦³¤@Óreadmeb5.tex¤]¥i¥H¥Î¨Ó´ú¸Õ + ¦ý¬On¥ý¦w¸Ël2tools.zip: + ¥ýpkunzip -d l2tools.zip ±N·|§âÀɮ׸Ѧb +emtex\dist....\tool\.........¤U + ¦A¸õ¨ìemtex\dist..\tool\...¤U Áä¤J: + latex2e xxxx.ins(´N¬O¨ºÓ°ß¤@ªº.ins) + §¹¦¨«á´N§â¤µ¤Ñ¦b³o¥Ø¿ý¤U·s²£¥ÍªºÀÉ¥þ·h¨ìemtex\texinput\latex2e\ + ¦pªG§Aªº«¢ºwªÅ¶¡¤£°÷,²{¦bÀ³¸Ó´N¥i¥H§âemtex\dist..\tool\...¥ý¬å¤F + ¦w¸Ë¦n¤F¤§«á´N¥i¥H + bg5latex readme.tex + ÁöµMÁÙ¬O²£¥Í«Ü¦hĵ§i°T®§,¥i¬OÁÙ¥i¥H²£¥Íreadmeb5.dvi + ¤§«áÁÙ¬O¥Îdvips16 ©Î dvips32 ²£¥Í readmeb5.ps + »P v @xx readmeb5 ¬Ý¿é¥X +--------- +«áµù +--------- +¤@¡B§Ú¦b¦w¸ËCJKªº®ÉÔ,¹J¨ì¤@¨Ç³Â·Ð,¥i¯à¬O4dos/ndosªºª©¥»¦³©Ò®t²§, + ¦³¨Ç¥\¯à¤Î¨ç¼Æ¨Ã¥¼´£¨Ñ,©Ò¥H¹ïì¥ýµ¹©w¤§btmÀɦ³¦h³Bקï,¤£¤Î³Æ¸ü? + ¦p±z¤£©¯¤]¾D¹JÃþ¦ü³Â·Ð,¨º´N......!-R +¤G¡B§Úªºdvips16 ¦b³B²zreadmeb5.dvi®É¥X²{°O¾ÐÅ餣¨¬ªº°T¸¹, + ¦Ódvips32¤SµLªk¦Û°Ê©I¥sMakeTexPk ¨Ó²£¥Ífonts.btm, + ©Ò¥H¥u¦n¦Û¤v°Ê¤â¼g¤F¤@Ófontss.btm ¨Ó¤ÀªR%dvips_stderr%ªº¿é¥XÀÉ, + ¦A©I¥sMakeTexPK ¨Ó²£¥Ífonts.btm,¦h¦¹¤@Á|:( +¤T¡B³o¤å¥ó¨Ã«D¤@Ãä¦w¸Ë¤@Ã伶¼g,¦Ó¬O¨Æ«á¦A¦æ¾ã²z,¥i¯à¦³¨Ç¶µ¥Ø¦³©Ò²¨º|, + «Ü¦³¥i¯àµLªk·ÓµÛ STEP by STEP +ªº¶i¦æ,¦Ó¥B§Ú²Ä¤@¦¸¼g³oºØªø½gªºpost(?) + ¦p¦³¤£·í¤§³B½Ð«ü¥¿!-R, + Thank you! + diff --git a/Master/texmf-dist/doc/latex/CJK/doc/chinese/teTeXb5.txt b/Master/texmf-dist/doc/latex/CJK/doc/chinese/teTeXb5.txt new file mode 100644 index 00000000000..ee28bc35646 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/chinese/teTeXb5.txt @@ -0,0 +1,327 @@ + +¥»¤å´£¨Ñ¤@Ó²³æªº½d¨Ò¡A»¡©ú¦p¦ó±N CJK-4_2.0 ¦w¸Ë¦b tetex-0.9, kpathsea-3.2 +ªºÀô¹Ò¤U¡C¥Ñ©ó¦Û 4_2.0 ª©¥H«á¡A CJK ±N¤£¦A¥]§t ttf2pk µ¥¤u¨ãµ{¦¡¡A¦Ó ttf2pk +¤]¤w²¾¨ì FreeType package ¤§¤¤¡C¦]¦¹Y·Qn¨Ï¥Î TTF ¦r«¬¨ÓÂà´«¦¨ CJK ªº¦r«¬ +ªº¸Ü¡AÁÙn¥t¥~§ì FreeType package ¦^¨Ó¦w¸Ë¡C¥»¤å¸Õ¹Ï±N¾ãÓ¨BÆJ°µ¤@Ó¾ã²z¡A +¥H¤è«K¤j®a°Ñ¦Ò¡C + +(PS. ·PÁ CJK ªº§@ªÌ Werner LEMBERG <wl@gnu.org> ¹ï¥»¤å©Ò°µªº comment :-)) + + +A. ©Ò»Ýªº package: +=================== + +1. CJK-4_2.0: + ftp://ftp1.sinica.edu.tw/pub2/tex/languages/chinese/CJK + +2. FreeType: + ftp://ftp.freetype.org/pub/freetype/devel/freetype-current.tar.gz + ftp://apollo.ce.ntu.edu.tw/pub/freetype + + +B. ¦w¸Ë¸ô®|: +============= + +¥Ñ©ó§Úªº tetex-0.9 ¬OÀHµÛ Debian Linux 2.0 distribution ¦Ó¨Óªº¡A¨ä©Ò¦b +ªº¥D¸ô®|¬O /usr, ¦Ó²{¦bn¥[¸Ë CJK ªº¤ä´©¡A§Ú¥´ºâ±N CJK »P ttf2pk ªº³¡¤À +¾¨¥i¯à¦a¦w¸Ë¦b /usr/local ¤§¤U¡A¥H«K»P Debian ©Òªþªº distribution ¦³©Ò +°Ï®æ¡C¦]¦¹¡A§Ú«K§â©Ò»Ýªº¦w¸Ë¸ô®|¦w±Æ¦p¤U: + + °õ¦æÀÉ: BINLOCAL=/usr/local/bin + CJK »P ttf2pk ªº¬ÛÃö³]©wÀÉ: TEXMFLOCAL=/usr/local/lib/texmf + +¦P®É§ÚÌÁÙ»Ýn°t¦X (קï) TEXMFCNF=/etc/texmf/texmf.cnf ¤¤ªº¬ÛÃö³]©w¨Ó +¦w¸ËÀÉ®×, ¨Ï±o latex »P ttf2pk ¦b¹B§@¹Lµ{¤¤¯à§ä¨ì©Ò¦³©Ò»ÝªºÀɮסC + +PS. 1. $TEXMFCNF ¬O tetex ªº¦UºØ¸ô®|³]©wÀÉ¡AÀɦW¬° texmf.cnf, ¦ý¥¦ªº¦ì + ¸m¥i¯à¨Ì¤£¦Pªº distribution ¦Ó¦³¤£¦P: ¥i¯à¦b /etc/ ¤U¡A¤]¥i¯à¦b + /etc/texmf/ ¤U¡C + + 2. $TEXMFLOCAL ªºÈ¬O¨Ì $TEXMFCNF ªº³]©w¦Ó©w¡A½Ð¦Û¦æ°Ñ¦Ò±z¨t²Î¤¤ªº + ³]©w¡C + + 3. ¦b§Úªº¨t²Î¤¤¡A $TEXMFCNF ¤¤¦³¤@¦æ¬O³o¼Ëªº: + + TEXMF = {$HOMETEXMF,!!$TEXMFLOCAL,!!$TEXMFMAIN} + + ¨ä·N¸q¬O¡A¤Z¬O¨Ï¥Î $TEXMF °µ¬°¸ô®|¶}ÀYªÌ¡A«h¨t²Î¦b·j´M®É·|¦Û°Ê´M + §ä $HOMETEXMF, $TEXMFLOCAL, $TEXMFMAIN µ¥¥Ø¿ý©³¤Uªº¸ô®|¡C¨ä¤¤: + + HOMETEXMF = $HOME/texmf % ¨Ï¥ÎªÌ¦Û¤vªº tex ¥Ø¿ý¦ì¸m + TEXMFMAIN = /usr/lib/texmf % tetex ¥D¥Ø¿ý + + 4. latex/xdvi/dvips/ttf2pk µ¥µ{¦¡¦b¹B§@ªº¹Lµ{¤¤¡A©Ò²£¥Íªº tfm »P pk ¦r + «¬ÀÉ¡A·|©ñ¨ì $VARTEXFONTS ©³¤U¡C®Ú¾Ú $TEXMFCNF ªº¹w³]¡A¨äȬ° + + VARTEXFONTS = /var/spool/texmf + + 5. Ãö©ó¬ÛÃöªº¦r«¬¸ô®|¦WºÙ¡A¥i¥H°Ñ¦Ò CJK-4_2.0..../doc/TDS.txt ªº«Øij¡C + + +C. ¦w¸Ë¨BÆJ: +============= + +1. TTF ¦r«¬§Ú¥Î moe_kai.ttf, ©ñ¦b $TEXMFLOCAL/fonts/truetype ¤U¡C + (PS. $TEXMFCNF ¤¤ªº¹w³]¬°: TTFONTS = .:$TEXMF/fonts/truetype//) + +2. ±N CJK-4_2.0/.../texinput/ ¾ãÓ«þ¨ì $TEXMFLOCAL/tex/CJK¡C + (PS. $TEXMFCNF ¤¤ªº¹w³]¬°: + TEXINPUTS.latex2e = .:$TEXMF/tex/{latex,generic,latex209,}// + TEXINPUTS.latex = .:$TEXMF/tex/{latex,generic,latex209,}//) + +3. קï /usr/lib/texmf/tex/latex/CJK/Bg5/c00kai.fd, ¨º¬O©w¸q CJK kai + ©Ò¥Îªº¦r«¬¡A¦b¦¹§Ú̱N¨Ï¥Î moe_kai ªº¦r«¬¡C½Ð±N + +\DeclareFontShape{C00}{kai}{m}{n}{<-> CJK * b5ka12}{} +\DeclareFontShape{C00}{kai}{bx}{n}{<-> CJKb * b5ka12}{\CJKbold} + + §ï¦¨ + +\DeclareFontShape{C00}{kai}{m}{n}{<-> CJK * moekai}{} +\DeclareFontShape{C00}{kai}{bx}{n}{<-> CJKb * moekai}{\CJKbold} + + ¥Ñ©ó¥Ø«eªº FreeType - ttf2pk ©|¤£¤ä´©±N¤¤¤å¦rÂà 90 «×¡A¬G¦b¦¹§ÚÌ + ¤£¥hקï c00kair.fd ÀÉ¡C + + (PS. ½Ðª`·N¡A¦b¦¹©Ò¨Ï¥Îªº¦r«¬¦W½Ð¾¨¶q¤£n¦³ "_" ¦r¤¸¡A¥H§K³y¦¨°ÝÃD) + +4. קï $TEXMFMAIN/fontnames/special.map, ¥[¤J + +moekai big5 moekai + + ¨ä¸q·N¬O¡A CJK ©Ò»Ýªº .tfm, .pk µ¥¦r«¬±N·|©ñ¦b: + + moekai*.tfm ===> $VARTEXFONTS/tfm/big5/moekai/ + moekai*pk ===> $VARTEXFONTS/pk/big5/moekai/ + + ©³¤U¡C + +5. Compile ¤@¤U CJK-4_2.0/utils/Bg5conv/bg5conv.c, ¨Ã±N¥¦©ñ¨ì $BINLOCAL + ¤U¡C¦P®É¤]±N bg5latex ¤]©ñ¹L¥h¡C + +6. ¦w¸Ë FreeType lib ¡C½Ð¨ì FreeType ªº¥Ø¿ý¤U¡A°õ¦æ: + + ./configure --prefix=/usr/local --with-locale-dir=/usr/share/locale + make + make install + +7. ¦w¸Ë ttf2pk ¡C½Ð¨ì freetype/contrib/ttf2pk ©³¤U¡A°õ¦æ: + + ./configure --prefix=/usr/local --with-kpathsea-dir=/usr + make + make install + + ¦b¦¹¦]¬°§Úªº¨t²Î¤¤¦³ kpathsea lib, ¬O©ñ¦b /usr ©³¤U¡A¦]¦¹§Ú°µ¤F³o¼Ëªº + ªº³]©w¡CY±zªº¨t²Î¤¤¨S¦³ kpathsea lib, «h¤£n³] --with-kpathsea-dir¡C + «Øij±z¨Ï¥Î kpathsea lib, ¦]¬°³o¼Ëªº¸Ü ttf2pk package ¥i¥H«Ü§¹¾ã¦a»P + tetex ¨t²Î¾ã¦X¦b¤@°_¡C + + (PS. ½Ðª`·N¡A®Ú¾Ú Werner LEMBERG ªº comment, ³o¼Ëªº°µªk¥i¯à¦b¬Y¨Ç + ±¡ªp¤U·|¥¢®Ä¡C³Ì¤@¯ëªº°µªk¡A¬O±N ttf2pk ªº°õ¦æÀɦw¸Ë¦b»P¨ä¥L + tetex ªº°õ¦æÀɬۦPªº¥Ø¿ý¤U¡A¦b¤Wzªº¨Ò¤l§Y¬° /usr/bin ¡C¦P®É¡A + ¦b configure ®É --prefix ¤]À³¸Ó³]¬° /usr ¤~¹ï¡CY±zµo²{¥Î¤Wz + ªº¤è¦¡µLªk work ®É¡A½Ð±z¸ÕµÛ±N ttf2pk ¦w¸Ë¦b»P tetex ªº°õ¦æÀÉ + ¦w¸Ë¦b¤@°_¡C°£¦¹¤§¥~¡A¨Ï¥Î symbolic link ±N /usr/local/bin/ttf2pk + link ¨ì /usr/bin/ttf2pk ¥i¯à¤]¨S¥Î) + +8. ²{¦b§Ú±N ttf2pk ªº¬ÛÃö¸ê®ÆÀÉ©ñ¨ì $TEXMFLOCAL/ttf2pk ¤U: + + mkdir $TEXMFLOCAL/ttf2pk + cp freetype/contrib/ttf2pk/data/* $TEXMFLOCAL/ttf2pk + ln -s $TEXMFLOCAL/ttf2pk $TEXMFLOCAL/ttf2tfm + + µM«áקï $TEXMFCNF, ¥[¤J¥H¤U¨â¦æ: + + TTF2PKINPUTS = $TEXMF/ttf2pk/ + TTF2TFMINPUTS = $TEXMF/ttf2pk/ + + ¥H©ú½T«ü©w ttf2tfm ¥H¤Î ttf2pk ©Ò»Ýªº³]©w»P¸ê®ÆÀɪº¦ì¸m) + +9. °µ¥X©Ò¦³ªº tfm ¦r«¬ (¥»«ü¥Oªº¸Ô²Ó·N¸q½Ð¨£ man ttf2tfm): + + ttf2tfm moe_kai -P 3 -E 4 moekai@Big5@ + + ¦bµ{¦¡°õ¦æ²×¤F·|¦L¥X³o¤@¦æ: + +moekai@Big5@ moe_kai Pid=3 Eid=4 + + ½Ð±N³o¤@¦æ¼g¨ì $TEXMFLOCAL/ttf2pk/ttfonts.map Àɤ¤¡Cttf2pk §Y¨Ï¥Î¦¹¸ê + ®Æ¨Ó²£¥Í©Ò»Ýªº pk ¦r«¬ÀÉ¡C + + µM«á¡A¦A±N²£¥Í¥X¨Óªº .tfm ¦r«¬¥þ³¡²¾¨ì $VARTEXFONTS/tfm/big5/moekai + ©³¤U¡C + +10. ¶]¤@¤U texconfig rebuild ls-R data base. Y±zªº¨t²Î¨S¦³³oÓ«ü¥O¡A«h + ¶]¤@¤U mktexlsr <path_name>. ½Ðª`·N¡A¨C¦¸±z«·s°µ¥X tfm ¦r«¬¡A©Î¼W¥[¡B + §R°£ tetex ©³¤UªºÀɮ׮ɡA±z³£¥²¶·°µ³o¤@¨B¡A¥H§ó·s ls-R data base ªº¤º + ®e¡C¨Ï¥Î texconfig ®É·|¥X²{¤@Ó¿ï³æ¡A±z¥i¥H¿ï¨ú "rebuild ls-R database" + §Y¥i¡CY±z¨Ï¥Î mktexlsr, «hn«ü©ú¸ô®|¡A¦p + + mktexlsr /var/spool/texmf + mktexlsr /usr/local/lib/texmf + +11. Patch tetex-0.9 ªº mktexpk script¡C¨ä diff ÀɬO¦b + freetype/contrib/ttf2pk/scripts/web2c-7.2/ ©³¤U¡C¦p¦¹ latex ¨t²Î + ¦b»Ýn®É¡A´N·|©I¥s ttf2pk ¨Ó²£¥Í©Ò»Ýªº pk ¦r«¬¡C + + (PS. Y±z©Ò¥Îªº¬O³Ì·sªº teTeX 0.9-beta ªº¸Ü¡A¨ä mktexpk ¤w¥]§t¤F¥H¤W + ªº patch, ©Ò¥H±z¤£¥²°µ³o¤@¨B¡C³Ì·sªº teTeX 0.9-beta ¥i¥H¦b³oùØ + §ä¨ì: + + ftp://ftp.rrzn.uni-hannover.de/pub/local/misc/teTeX-beta/) + +12. §¹¦¨! ±z¥i¥H¸Õ¸Õ½sĶ CJK_4_2.0/doc/chinese/READMEb5.tex, ¬Ý¦³¨S + ¦³¨ä¥L°ÝÃD¡C + + + +C. LaTeX/CJK ªº¤u§@ì²z (for tetex-0.9, CJK-4_2.0): +==================================================== + +¥H¤U¬°´N§Ú©Òª¾ªº LaTeX ½sĶ¤å³¹ªº¨BÆJ»P¥Ø«e CJK ªº¤u§@ì²zµy·L»¡©ú¤@¤U¡A +¥HÀ°§UŪ¤F¸Ñ¥H¤W³]©wªº·N¸q¡C + +º¥ý¡A·í TeX/LaTeX ¦bŪ¤J¤@Ó .tex ÀÉ¡A¨Ã¸Õ¹Ï¦a°µ¥X¤@Ó .dvi ÀɮɡA¥¦¥²¶· +n¥Î¨ì .tfm ªº¦r«¬¡C .tfm ªº¦r«¬ÀÉ¥u°O¿ý¤F¸ÓºØ¦r«¬³Ì°ò¥»ªº¸ê°T¡A¥¦¬Æ¦Ü»P +¦r«¬ªº¹ê»Ú¤j¤pµLÃö¡A¥¦¯Âºé¥u¥Î¨Ó°µ±Æª©¥Îªº¡CTeX/LaTeX ¹w³]ª¬ªp¤U³£·|¨ì +$TEXMFDIR/fonts/tfm/ ©³¤U§ä .tfm ¦r«¬ (¦U¦ì¥i¥H¬Ý¬Ý /etc/texmf/texmf.cnf +ªº³]©w) ¡A¦]¦¹¡A°²³]¦b tfm/ ¤UÁÙ¦³«Ü¦h¥Ø¿ý¡A¦p + + ..../tfm/big5/moekai/ + ..../tfm/big5/moesung/ + ..../tfm/ams/ + ........... + +µ¥µ¥¡A«h³o¨Ç¤l¥Ø¿ý©³¤U©Ò¦³ªº .tfm ¦r«¬Àɳ£·|³Q·j´M¨ì¡C¦Ó $TEXMFDIR «h¥Nªí +¤F§A¨t²Î¤¤ TeX ªº¥D¥Ø¿ý¡C¸U¤@§ä¤£¨ì¦r«¬¡A¥¦·|©I¥s mktextfm ¨Ó²£¥Í¦r«¬¡A©Ò +²£¥Í¥X¨Óªº¦r«¬´N¥á¨ì $TEXMFDIR/fonts/tfm/.... ¤U¡C + +mktextfm ¬O¤@Ó shell script ¡A¥¦¦b¤u§@®Éº¥ý·|¥ý¤ÀªR©Ò»Ý²£¥Íªº¦r«¬ºØÃþ»P +À³¦bªº¸ô®|¦W¡A¨Ã¦A¦¸Àˬd¸Ó¦r«¬¬O§_¦s¦b¡A¦pªG¯u¤£¦s¦b¡A«h¥¦·|©I¥s¦r«¬²£¥Í +µ{¦¡ mf ¨Ó§â¦r«¬°µ¥X¨Ó¡C + +µM¦Ó¡A¤£ºÞ¬O°µ¤°»ò¼Ëªº¦r«¬¡A³£¤@©wn¦³¤@ӨѰѦҪº¦r«¬¡u¼ËªO¡v¤~¦æ¡A¦b TeX +¨t²Î¤¤¡A¹w³]ªº¦r«¬¼Ëª©¬° MetaFont, ³o¬O¨t²Î³Ì°ò¥»ªº¦r«¬¼Ëª©¡C·íµM¡A§ÚÌ¥i +¥H¥[¤J¨ä¥Lªº¦r«¬°µ¬°¼Ëª©¡A¦Ó³o¨Ç¥[¤Jªº¦r«¬´N°O¿ý¦b¤@Ó¥s special.map ªºÀÉ +¤¤¡A¦¹Àɦ³¤TÓÄæ¦ì¦p¤U: + +% Font source typeface +% +A public hieroglyph +Aa public hieroglyph +B public hieroglyph +C public hieroglyph +D public hieroglyph +DeadSea public hebrew + +¨ä¤¤²Ä¤@Äæ¬O¦r«¬¦WºÙ¡A²Ä¤GÄæ©M²Ä¤TÄæ¬O¦r«¬Ãþ§O¡CTeX/LaTeX §Y®Ú¾Ú special.map +ªº¤º®e¡A¦b $TEXMF/fonts/tfm ¤U´M§ä©Ò»Ýªº .tfm ¦r«¬¡C¹w³]±¡ªp¤U¡A¥¦´N¥H +¦r«¬Ãþ§O¦WºÙ°µ¬°¸Ó¦r«¬ªº¦s¦b¸ô®|¡A¨Ò¦p·í»Ýn DeadSea*.tfm ®É¡A¨ä¦s¦bªº¸ô¦æ§Y +¬° $TEXMF/fonts/tfm/public/hebrew/ ¡CY¸ô®|¤£¦s¦b©Î¦r«¬¤£¦s¦b¡A«hµø»Ýn +²£¥Í¸Ó¸ô®|¡A¨Ã©I¥s mktextfm ¨Ó²£¥Í¦r«¬ÀÉ¡A mktextfm «h·|¶i¤@¨B©I¥s mf µ{¦¡¨Ó +¤u§@¡C + +·í .dvi ÀÉ¥X¨Ó«á¡A§ÚÌ¥i¥H¥Î xdvi ¨Ó°µ¹wµø¡A³o®ÉÔ´N»Ýn .pk ªº¦r«¬¡A¦¹¬° +ÂI°}¦r«¬¡A´N»P¹ê»Ú©Ò»Ýªº¦r«¬¤j¤p¦³Ãö¡C¦P¼Ëªº¡A xdvi ·|¥ý¨ì +$TEXMF/fonts/pk/..../ ¬Ý¬Ý¸Ó¦r«¬¬O§_¤w¦s¦b¡A§ä¤£¨ì¥¦´N·|¥h©I¥s +mktexpk ¨Ó°µ¥X¦r«¬¡Cmktexpk ªº¤u§@¾÷¨î»P mktextfm §¹¥þ¤@¼Ë¡A©Ò¥H´N¤£¦A«ÂСC +·íµM¡A§Ṳ́]¥i¥H¥Î dvips ¨Ó²£¥Í PostScript ªº¤å¥óÀÉ¡A¦b³oùئP¼Ën¨Ï¥Î .pk +ªº¦r«¬¡A¤]¬O¥Î mktexpk ¨Ó°µ¡C + +´N¥H¤Wªº»¡©ú¡A§ÚÌ¥i¥Hª¾¹D¡AYn¥Î CJK ¨Ó²£¥Í¤¤¤å¤å¥ó¡A«h»Ýn¨ã³Æ¥H¤U±ø¥ó: + +1. ¥Î¨Ó©w¸q¤¤¤å¤å¥ó®æ¦¡ªº texinput style ÀÉ¡C + +2. ¤¤¤å¦r«¬ .tfm ¥H¤Î .pk ¡C + +¨ä¤¤²Ä¤@Ó±ø¥ó«Ü®e©ö¡A¤]´N¬O§Ú¦b¤W¤@¸`ªº¡u¦w¸Ë¨BÆJ¡v¤¤ªº²Ä¤G¨B©Ò´£¨ìªº¡C°£ +¦¹¤§¥~¡A§ÚÌÁÙ»Ýn¤@Ó bg5conv ªºµ{¦¡¡A¥¦t³dŪ¤J¤¤¤å .tex ì©lÀÉ¡A¸g½s½X +«áÂন .cjk ½s¿é¥X¡AµM«á¤~¥æµ¹ latex ¶i¦æ²£¥Í .dvi Àɪº°Ê§@¡C + +¤ñ¸û³Â·Ðªº¬O¦r«¬ªº³¡¤À¡C´N .tfm ¦r«¬¦Ó¨¥¡A¦b¹L¥h¦w¸Ë CJK ®É¡A§ÚÌ¥i¯à¤£·| +¹w¥ý±N©Ò¦³»Ýnªº .tfm ¹w¥ý°µ¥X¨Ó¡A¦Ó¬O±Ä¥Î½u¤W²£¥Íªº¤è¦¡¡A³o®É§ÚÌ»Ýn× +§ï mktextfm, ¥H«K¦b»Ýn®É©I¥s ttf2pk ¤§Ãþªºµ{¦¡¦Û TTF ¦r«¬°µ¥X .tfm ¦r«¬¡C +¦ý²{¦b§Ų́ϥηsª©ªº ttf2pk package, ¨ä ttf2tfm µ{¦¡¥i¥H«Ü®e©ö¦a±N©Ò¦³ªº +.tfm ¦r«¬²£¥Í¥X¨Ó¡A¨Ã¹w¥ý¦w¸Ë¨ì¥¿½Tªº¥Ø¿ý¤¤¡A¦p¦¹§ÚÌ´N¤£»Ýn¥hקï mktextfm +¤F¡C¦Ó³o´N¬O¤W¤@¸`¡u¦w¸Ë¨BÆJ¡v¤¤ªº²Ä 9 ¨B©Ò°µªº¤u§@¡A¨ä©R¥Oªº·N¸q¬°: + + ttf2tfm <TTF filename> -P <platform ID> -E <encoding ID> <TFM filename> + +¨ä¤¤ <TTF filename> ÀɦW®æ¦¡¬° <name>XX.tfm, <name> ¬O¦r«¬¦WºÙ¡A XX ¬O¤@Ó +¼Æ¦r¡A¥Nªí¤F¸Ó¦r«¬ encoding ªº§Ç¸¹¡A¨Ò¦p: moekai03.tfm ¡C¹ï©ó¤@®M§¹¾ãªº +¦r«¬¡A¨ä§Ç¸¹¥²¶·¨¬¥H¥]§t©Ò¦³ªº¤¤¤å¦r¡A¥H Big5 ½X¬°¨Ò¡A¨ä§¹¾ãªº§Ç¸¹¬O±q 01 +¨ì 58, ¤]´N¬O¥²¶·²£¥Í 58 Ó¦r«¬ÀÉ¡C¦b·sª©ªº ttf2tfm ¤¤¡A±z¤£»Ýn©I¥s ttf2tfm +58 ¦¸¡Aª`·N¨ì¦b¦w¸Ë¨BÆJ¤¤¡A <TFM filename> ³o¤@ӰѼƬO + + moekai@Big5@ + +¨ä¤¤ moekai §Y¬° <name>, ¦Ó @Big5@ ¬O«ü§Ç¸¹ªº³¡¤À¡A¦b³oùجO¥Î¤@Ó +Big5.sfd ³oÓÀɨӥN´À (µ{¦¡·|¦Û°Ê¥[¤J .sfd ³oÓªþÀɦW) ¡Aª`·N¨ì¦b¡u¦w¸Ë +¨BÆJ¡v¤¤ªº²Ä 8 ¨B§Ṳ́w±N³oÓÀɮ׫þ¨ì¤F¾A·í¦ì¸m¡A¦Ó¸ÓÀÉ´N°O¿ý¤F Big5 ½X¦r +«¬©Ò¦³§Ç¸¹µ¥¬ÛÃö¸ê°T¡A ttf2tfm ¥i¥Hª½±µ°Ñ¦Ò³oÓÀɪº¤º®e±N©Ò¦³ªº¦r«¬¥þ³¡ +°µ¥X¨Ó¡C + +¦b ttf2tfm ¤u§@§¹¦¨¤§«á¡A¥¦·|¦L¥X¤@¦æ°T®§ (¨£¡u¦w¸Ë¨BÆJ¡v²Ä 9 ¨B)¡A³o¤@ +¦æ¬Oµ¹ ttf2pk °Ñ¦Ò¥Îªº¡A¥²¶·¼g¤J ttf2pk ±MÄݪº³]©wÀÉ ttfonts.map ¤¤¡C³Ì +«á¡A§Ú̦A±N©Ò¦³ªº .tfm ¦r«¬²¾¦Ü¾A·í¥Ø¿ý¡A§Y§¹¦¨¤F .tfm ¦r«¬ªº³¡¤À¡C + +¹ï©ó .pk ¦r«¬¡A¥Ñ©ó³oùØÁÙ²o¯A¤F¤£¦Pªº¦r«¬¤j¤p¦³¤£¦PªºÀÉ¡A§Ú̵Lªk¹w¥ýª¾ +¹D»Ýn¨º¨Ç¤j¤pªº¦r«¬¡A¦]¦¹¦b¦¹§Ú̱ĥΤF½u¤W²£¥Íªº¤è¦¡¡A»Ýn®É¤~²£¥Í pk +¦r«¬¡C©ó¬O¡A§ÚÌ¥²¶·×§ï mktexpk¡A¦b»Ýn¤¤¤å¦r«¬®É©I¥s ttf2pk ¦Û TTF ¦r +«¬±N©Ò»Ýªº¦r«¬°µ¥X¨Ó (¨£¡u¦w¸Ë¨BÆJ¡v²Ä 11 ¨B)¡C + +pk ¦r«¬ÀɦWªº®æ¦¡¦p¤U: + + <name>XX.<SSSS>pk + +¨ä¤¤ <name> ¬O¦r«¬¦W¡A XX ¬O encoding §Ç¸¹¡A <SSSS> §Y¬°¸Ó¦r«¬ªº¤j¤p (dpi)¡C + +ÁÙ¦³¤@ÂI¡A¥Ñ©ó·sª©ªº ttf2pk ¤w¯à¨Ï¥Î kpathsea lib ¨Ó·j´M¥¦©Ò»ÝªºÀɮסA¥] +¬A¦r«¬ÀÉ¥H¤Î³]©wÀÉ¡A¦Ó³]©wÀɪº³¡¤À§ÚÌ´N¥²¶·±N¥¦ªº¦ì¸m¼g¦b +/etc/texmf/texmf.cnf ¤¤¡A¨Ã¥Bn¶] mktexlsr ©Î texconfig «á (¨£¡u¦w¸Ë¨BÆJ¡v +ªº²Ä 8 ¨B»P²Ä 10 ¨B)¡A¦p¦¹ kpathsea lib ¤~¯à§ä¨ì³]©wÀɪº¦ì¸m¡C + + +ºî¤W©Òz¡A¥H¤U§Ú´yz¤@¤U¾ãÓ LaTeX/CJK ªº compile ¹Lµ{¡A°µ¬°Á`µ²¡C + + +1. °õ¦æ bg5latex, ³o¬O¤@Ó script, ¥¦©I¥s bg5conv Ū¤J .tex ì©lÀÉ¡A¨ÃÂà + ¦¨½s½X«áªº .cjk ÀÉ¡C + +2. bg5latex ±µµÛ©I¥s latex, Ū¤J .cjk ÀÉ¡A¦b§P©w¥¦»Ýn CJK package ®É¡A + ¦p: + + \usepackage{CJK} + \begin{CJK*}{Bg5}{kai} + + «KŪ¤J¤@¨t¦Cªº CJK texinput style ÀÉ¡A¨Ã¸ò¾Ú Bg5, kai, Ū¨ú + .../Bg5/c00kai.fd ³oÓ¦r«¬©w¸qÀÉ¡C + +3. ®Ú¾Ú c00kai.fd Àɪº©w¸q¡A latex ª¾¹D¤¤¤åªº³¡¤À»Ýn moe_kai ¦r«¬¡C©ó¬O¡A + ¦b²£¥Í .dvi Àɪº¹Lµ{¤¤¡A¥¦®Ú¾Ú special.map Àɪº¤º®e¡A¦b¾A·íªº¸ô®|¤¤´M§ä + ©Ò»Ýªº .tfm ÀÉ¡AY§ä¤£¨ì«h©I¥s mktextfm ¨Ó²£¥Í¥¦¡C¥Ñ©ó¨Æ¥ý§Ṳ́w¦w¸Ë¦n + ©Ò¦³ªº .tfm ¦r«¬¡A¦]¦¹³o¤@¨B¤£»Ýn©I¥s mktextfm §Y¥i§¹¦¨¡C + +4. .dvi ÀÉ¥X¨Ó«á¡A°²³]§ÚÌn¥Î dvips ¨Ó²£¥Í .ps ÀÉ¡A«h dvips ¦bµo²{»Ýn + moekai ¦r«¬®É¡A·|¸ò¾Ú special.map ªº¤º®e¡A¨ì¾A·íªº¸ô®|¥h´M§ä moekai*pk + ÀÉ¡C + +5. Y§ä¤£¨ì¡A«h¥¦·|©I¥s mktexpk ¨Ó²£¥Í¦r«¬ÀÉ¡Cקï¹Lªº mktexpk ¦bµo²{©Ò»Ý + ²£¥Íªº¦r«¬¬O moekai ®É¡A«K·|©I¥s ttf2pk ¨Ó¤u§@¡C + +6. ttf2pk º¥ý³z¹L kpathsea lib, ÂÇ¥Ñ /etc/texmf/texmf.cnf ¤¤ªº³]©w§ä¨ì¨ä + ³]©wÀÉ ttfonts.map ªº¦ì¸m¡AŪ¤J³]©wÀÉ«á¡A®Ú¾Ú moekai ¨º¤@¦æ¡A¥¦ª¾¹D¤F: + + a. ©Ò»Ýnªº¦r«¬¼Ëª©¬° $TEXMFLOCAL/fonts/truetype/moe_kai.ttf ¡C + + b. ¸Ó¦r«¬ªº encoding §Ç¸¹¸ê®Æ¦s©ñ¦b»P ttfonts.map ¬Û¦P¥Ø¿ý¤Uªº Big5.sfd + Àɤ¤¡C + + c. ¨ä¥L¦p Platform ID »P Encoding ID ªº¸ê°T¡C + + ttf2pk §Y§Q¥Î³o¨Ç¸ê°T¡A±N©Ò»Ýªº moekai*pk ÀÉ°µ¥X¨Ó¡A¨Ã¥æ¥Ñ mktexpk ±N¸Ó + ÀÉ©ñ¨ì¥¿½Tªº¸ô®|¤U¡A¥H³Æ¤é«á«½Æ§Q¥Î¡C + +7. §¹¦¨¡C + + diff --git a/Master/texmf-dist/doc/latex/CJK/doc/cjk-enc.txt b/Master/texmf-dist/doc/latex/CJK/doc/cjk-enc.txt new file mode 100644 index 00000000000..c4b24a676f9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/cjk-enc.txt @@ -0,0 +1,403 @@ +This is the file cjk-enc.txt of the CJK macro package ver. 4.6.0 +(11-Aug-2005). + +cjk-enc.el +---------- + +Mule, the multilingual Emacs, is one of the most powerful editors available +for Unix systems like Linux. It is capable to edit and display texts which +are, among other scripts, written in various CJK languages; as an example +you can have traditional and simplified Chinese at the same time. Mule is +distributed under the GNU Public License; it is now integrated into the +source code emacs 20. + +The CJK package enables LaTeX to do the same (with some restrictions, see +below), but the interface is different. Mule uses additional bits internally +to store the encoding of a character, whereas the CJK package needs \CJKenc +macros to select encodings. + +Now enters cjk-enc.el . This small output filter for Mule (written in Lisp) +converts text as entered in Mule into a form TeX can understand. Double-byte +encodings which can be processed by CJK are usually converted into EUC form +preceded by \CJKenc{...} macros, single-byte encodings (Latin-1, etc.) into +equivalent LaTeX 2e macros (e.g., Latin-1 character 0xC4 (umlaut A) into +\"A). Some of these macros are undefined by default in standard LaTeX 2e +because CM or EC fonts have no characters for it. Vietnamese, Cyrillic +scripts, Modern Greek, and Thai are also supported (see below). + +cjk-enc.el comes in two versions. + + . An old version for Mule 2.3 with limited capabilities since it is no + longer supported (but updated if necessary). + + . A new version with enhanced commands which works with emacs versions + >= 20.3 and xemacs versions >= 21.1 (the latter without Thai support). + +Support for emacs versions < 20.3 has been dropped. Please upgrade. In the +following, `Mule' is used for all emacs flavours. + + +Installation +------------ + +To load cjk-enc.el into Mule, put the following line into your .emacs file: + + (load-library "cjk-enc") + +this assumes that cjk-enc.el is in a directory searched by Mule. A good +place for it is the site-lisp subdirectory (e.g., +/usr/local/share/emacs/site-lisp). + +After loading, a new (output) encoding scheme is defined: `*cjk-coding*'. +[This is called `cjk-coding' under emacs 20---Please note further that the + prefix for Mule commands has changed to `C-x RET' for emacs 20 instead of + `C-x C-k'.] + +Note: `*cjk-coding*' (`cjk-coding') can't be used to save documents! It + is intended only to create the *.cjk file which is then directly + processed by LaTeX. + + +Usage (LaTeX 2e part) +--------------------- + +A sample of a multilingual document (muletest.{tex,cjk,dvi,pdf}) can be +found in the examples subdirectory (only the TEX file is in the src package +of CJK, the other files are in the doc package). + +European languages based on the Latin script: + + Simply write your documents! Characters like `u umlaut' or `c hacek' are + converted into LaTeX 2e macros. You don't need to write "u or something + else (nevertheless it's possible). It is recommended to use LaTeX 2e's + T1 font encoding scheme to have a) most of the European diacritics + available and b) correct hyphenation for accented characters. + + The lower half of JIS X 0201 is treated similarly. + + Note that the default CM fonts of LaTeX are OT1 encoded. You should + rather use the EC fonts which are based on T1 (or virtual T1 fonts + mapped onto OT1). + + For correct hyphenation you still have to change languages, thus a + system like Babel should be used additionally. + +CJK languages: + + Don't start a CJK (or CJK*) environment! cjk-enc.el does this + automatically for you at the `\begin{document}' command. It also inserts + \CJKspace and \CJKnospace commands (\CJKspace for Korean, \CJKnospace + for all other CJK scripts; but see the section `Problems' below also). + + In CJK.enc the default font family for all encodings is `song' (except + for Korean Hangul where it is `mj'). Two commands are available to + change the CJK font encoding and family in combination with cjk-enc.el + (see CJK.txt and commands.txt for a detailed description): + + \CJKencfamily[<fontencoding>]{<encoding>}{<family>} + Change family for a certain encoding (and fontencoding). + + \CJKfontenc{<encoding>}{<fontencoding>} + Change fontencoding for a certain encoding. + + The second command is primarily for users who use Japanese DNP fonts + (see the Japanese documentation subdirectory for further details) or + Korean HLaTeX fonts. + + For the upper half of JIS X 0201 encoding, the katakana range of the + SJIS encoding of the CJK package is used. + +Vietnamese: + + Vietnamese uses accented characters not contained in EC or CM fonts. To + assure proper kerning you must explicitly activate T5 font encoding + (this can't be done automatically) to access a Vietnamese font. + + The VnTeX bundle contains Vietnamese fonts and support files; it also + defines T5 encoding. It is available from http://vntex.sf.net. + (Note that the now obsolete vncmr package is no longer supported.) + +Russian and other languages using the cyrillic script: + + Cyrillic LaTeX encodings (T2A, T2B, T2C, and X2) are now supported + within the LaTeX 2e distribution (starting with version 1998/12/01). + Cyrillic fonts and auxiliary files supporting these encodings are + available at CTAN from fonts/cyrillic and macros/latex/contrib/t2); most + TeX distributions already come with Cyrillic fonts installed. + + The current implemention needs a lot of temporary disk space for + Cyrillic scripts (e.g., a 100 kByte document written only with Cyrillic + letters has an intermediate output file of about 800 kByte). On the + other hand, it is still possible to recognize the Cyrillic characters + name macros in the log file in case of error messages---if I used the + shortest possible representation, only numbers would be visible, and the + size of the intermediate output file would still have 500 kByte... + + You must explicitly activate one of the T2* (or X2) encodings for + Cyrillic. Russian needs T2A. + +Greek: + + You must use the LGR encoding and fonts as defined in the Babel package: + ISO-8859-7 characters are mapped back to ASCII characters which are then + displayed as Greek characters, using the ligature mechanism extensively. + +Thai: + + It is implemented only in the emacs 20.3 version of cjk-enc.el. Instead + of using an external program, Ken'ichi Handa has written thai-word.el + which implements the word-breaking algorithm in Lisp, based on the the + C-TTeX package version 1.15 written by Vuthichai Ampornaramveth + <vuthi@ctrl.titech.ac.jp>. `thai.sty' is still very rudimentary---any + improvements are welcome. + + The used encoding is C90 (this is the only case where you have to + specify a `C' encoding directly, either by using the `thaicjk' language + for Babel or by saying `\DeclareFontEncoding{C90}{}{}' in the preamble); + the default fonts specified in c90gar.fd and c90nrsr.fd are taken from + the thailatex package, which can be found at + + http://linux.thai.net/plone/TLWG/thailatex + + You should use version 0.3.5.1 or newer. Note that this package is not + compatible with CJK; neither its metric files nor its LaTeX support + files should be used. Please read the file thaifont.txt for details how + to install the fonts. + + Whitespace between Thai characters are always respected; newlines + together with trailing and leading whitespace are not by default. Use + \Thaispace to make trailing and leading whitespace respected also (the + opposite command is \Thainospace). Note that the space width of the Thai + font (which is usually larger than for a Roman font) is used for + whitespace between Thai words: + + Thai Thai + Thai + + is approximately translated to + + {\thaifont Thai Thai\nospaces + Thai} + + (if \Thainospace is active), whereas + + Thai\ Thai\ + Thai + + is approximately translated to + + {\thaifont Thai}{\romanfont\ }{\thaifont Thai}{\romanfont\ } + {\thaifont Thai} + + To improve appearance, \Thaiglue (which is defined in MULEenc.sty) is + used as intercharacter glue; this value can be modified similarly to + \CJKglue. + + +Usage (Mule part) +----------------- + +Simply load your document into Mule and call cjk-write-file (which is +defined in cjk-enc.el) to create a preprocessed file. For most files this +file's name is formed by replacing the extension with `.cjk'. However, +BibTeX files are given the extension `-cjk.bib' because the BibTeX program +requires `.bib' as the extension. This also avoids conflicts with the CJK +file produced by a LaTeX file by the same name. Because of this you should +use the command \CJKbibliography{foo} in your LaTeX source file (which +finally expands to foo-cjk.bib). A similar macro is \CJKinclude{bar} which +expands to `bar.cjk' instead of bar.tex. Finally, you can say +\CJKinput{foo.bar} to input file `foo.bar'; if the file name has no +extension, `cjk' is appended: \CJKinput{foo} loads `foo.cjk'. + +cjk-write-file is the only user function provided by cjk-enc.el for +Mule 2.3. + +If you want to process a file which includes some other files, use the +function cjk-write-all-files in combination with \CJKinclude, \CJKinput, and +\CJKbibliography. If used interactively, you have to supply a file name +which is then scanned for occurrences of \CJKinclude, \CJKinput, and +\CJKbibliography; all files found plus the master file are converted. + +Example: + + `a.tex' contains: + + \CJKenc{Bg5} + Chinese text + + `b.tex' contains: + + \CJKenc{JIS} + Japanese text + + `c.tex' contains: + + \CJKenc{UTF8} + Some Unicode text + + `master.tex' can now include the files as follows: + + Some Korean text + + \CJKinput{a} + \input{b} + \input{c} + + Calling cjk-write-all-files automatically converts `master.tex' and + `a.tex'. + +The functions batch-cjk-write-file and batch-force-write-file are intended +to be used in Makefiles; please read the function documentation for more +details. + +It is recommended that you assign cjk-write-file or cjk-write-all-files to a +key (e.g., with global-set-key) in your `.emacs' configuration file. + + +Usage with AUC TeX +------------------ + +Append the data between >>> and <<< to your .emacs file to have special CJK +support within AUC TeX: + + +>>> + + (defun TeX-run-CJK-LaTeX (name command file) + "Create a process for NAME using COMMAND to format FILE with CJK/LaTeX." + +; use next code line for Mule instead of the (balanced) expression +; containing `cjk-write-all-files' +; -- no multifile document support! +; (cjk-write-file) + + (cjk-write-all-files (concat (TeX-master-directory) + (file-name-nondirectory file) + ".tex")) + (TeX-run-LaTeX name command file)) + + ;; replace the error source file `*.cjk' with `*.tex' (and `*-cjk.bib' + ;; with `*.bib'), then C-c ` can be used as usual. + + (add-hook 'TeX-translate-location-hook + '(lambda () + (if (string-match "\\(.*\\)\.cjk$" file) + (setq file + (concat + (substring file + (match-beginning 1) + (match-end 1)) + ".tex")) + (if (string-match "\\(.*\\)-cjk\.bib$" file) + (setq file + (concat + (substring file + (match-beginning 1) + (match-end 1)) + ".bib")))))) + + (require 'tex) + (add-to-list 'TeX-command-list + '("CJKLaTeX" "%l '\\nonstopmode\\input{%s.cjk}'" TeX-run-CJK-LaTeX nil t)) + +<<< + + +To process a CJK document with AUC TeX use C-c C-c on your LaTeX source file +and select CJKLaTeX as the formatting command. It also works with multiple +files; only modified files are converted (again). + +Note that only the master file is processed with cjk-enc and scanned for +\CJKinclude and \CJKinput! + +If you mainly write text in Japanese or Chinese, consider the use of +cjkspace.el or cjktilde.el for inserting a tilde character (which has been +redefined to a shibuaki space) if you hit the space key. Please read the +documentation in the two files for differences. cjkspace.el works with +AUC TeX only, cjktilde.el works in every mode. + + +Technical notes +--------------- + +cjk-enc.el loads MULEenc.sty or CJK.sty in the first output line which +contains all needed definitions for LaTeX 2e. + +To assure working in verbatim environments, \CJKenc and the LaTeX 2e macros +are not output directly. The active character 0x7F is used to output +\CJKenc, \CJKspace, Latin characters, etc. + +CNS 1-CNS 7 and JIS2 encoded characters are output as \CJKchar macros. The +reason for this choice is the infrequency of CNS and JIS2 characters in +normal text. Since \CJKchar does not select a new binding this macro is +executed faster for single CNS and JIS2 characters. + + +Problems and Tips +----------------- + +. cjk-enc.el starts a CJK environment only if it finds at least one CJK + character in the master file; this character can appear in a comment also. + Example: + + % some Chinese text in this comment + \CJKinput{a} + \CJKbibliography{b} + +. If you need some CJK processing in the preamble you must start a CJK + environment there manually because cjk-enc.el uses the \AtBeginDocument + hook for its commands. This interferes with the \CJKspace/\CJKnospace + insertion mechanism of cjk-enc.el because the Lisp code always assumes a + single, global CJK environment. A similar problem exists if you start a + new language in a comment. To overcome this, simply insert a \CJKspace or + \CJKnospace command (whatever appropriate) right after the + `\begin{document}' macro to synchronize again with cjk-enc.el . + + Example: + + \documentclass{article} + + \begin{CJK*}{}{} + some Japanese macro stuff + \end{CJK*} + + \begin{document} + \CJKnospace + more Japanese text + ... + +. Another consequence of the \CJKspace/\CJKnospace insertion mechanism of + cjk-enc.el is that in cases like + + Latin_text Chinese_text\ Latin_text + + you can't omit the final `\ ' after the Chinese phrase---only for Korean + words it is not necessary to use a (protected) space. + +. Usually, Emacs can automatically recognize the encoding of a given file + (e.g., using a language environment or setting `file-coding-system-alist'; + please read the chapter `Recognizing Coding Systems' in the emacs info + files for further details). But sometimes this fails (e.g., to find out + whether a text is in latin-1 or in, say, latin-3 is impossible), and you + have to use a file variable to define the encoding. + + Here an example how to specify `Big 5' encoding for a TeX input file (the + following lines are to be inserted at the very end): + + % Local Variables: + % coding: big5 + % End: + + If AUCTeX already has created local variables like `TeX-master', simply + add the line `coding: big5' and you are done. + +. Another useful local variable for AUCTeX is `TeX-command-default': + + % Local Variables: + % TeX-command-default: "CJKLaTeX" + % End: + + selects `CJKLaTeX' as the default command if you type `C-c C-c'. + + +---End of cjk-enc.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/cjk/README b/Master/texmf-dist/doc/latex/CJK/doc/cjk/README new file mode 100644 index 00000000000..dbb6381647e --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/cjk/README @@ -0,0 +1,4 @@ +This directory contains files which are `preprocessed' with +cjk-enc.el, bg5conv, etc. + +You can feed them directly into LaTeX. diff --git a/Master/texmf-dist/doc/latex/CJK/doc/cjk/READMEb5.cjk b/Master/texmf-dist/doc/latex/CJK/doc/cjk/READMEb5.cjk new file mode 100644 index 00000000000..3c972b9d683 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/cjk/READMEb5.cjk @@ -0,0 +1,1150 @@ +\def\CJKpreproc{bg5conv (CJK ver. 4.5.2)}%%% The file READMEb5.tex . This file is part of LaTeX2e CJK package. +%%% +%%% Note that this document is a very first version. Therefore, lots +%%% of installation steps and issues are still left blank. Please be +%%% patient and wait for the next new release. I'm sorry for any +%%% inconveniences. I also deeply expect that everyone who is +%%% interested in this topic gives me suggestions and corrections in +%%% any respects. Thanks in advance. +%%% +%%% Revision 1.5 1996/11/22 10:49:00 d791013 +%%% * modify some context presentations. +%%% +%%% Revision 1.4 1996/10/23 03:59:40 d791013 +%%% Revision control by CVS. +%%% +%%% Revision 1.3 1996/07/27 11:19:20 d791013 +%%% 1. In compliance with CJK version 4.0.0 +%%% 2. Fill up some unfinished sections in previous versions of this +%%% file. +%%% 3. Add more usages for MULE and AUCTeX. +%%% + +\documentclass[12pt,a4paper]{article} +\usepackage{array,CJK} +\RequirePackage{shortvrb} +\MakeShortVerb{\|} + +% enlarge text width and height (for saving number of pages) +\addtolength{\textwidth}{1in} +\addtolength{\oddsidemargin}{-.5in} +\addtolength{\textheight}{1in} +\addtolength{\topmargin}{-.5in} + +\begin{document} +\begin{CJK*}{Bg5}{bsmi} +\CJKtilde + +% local commands +\newcommand{\ntutocjk}{~\textsf{ntu2cjk}~} +\newcommand{\ttftopk}{~\textsf{ttf2pk}~} +\newcommand{\hookstroke}{\raisebox{2pt}{\scriptsize $\surd$}} +\newcommand{\crossmark}{$\times$} +\newcommand{\bigfive}{~\textrm{Big-5}~½88} +\renewcommand{\figurename}{¹207~} +\renewcommand{\tablename}{ª237~} + +%% end of header + +\title{\bigfive¤164¤229¨116²206¤85ª186~CJK \LaTeXe~±198ª169¨116²206\\ + (For CJK version 4.1.0)} +\author{ + §245§103¦116\thanks{The author of the \textsf{ntu2cjk} package. + \textsf{E-mail:} d791013@ce.ntu.edu.tw}\ (Chun-Yu Lee) \and + Werner Lemberg\thanks{The author of the \LaTeXe\ CJK package. + \textsf{E-mail:} wl@gnu.org}} +\date{20 Nov. 1996} +\maketitle + +\tableofcontents + +\section{Â178¤182} +\label{sec:introduction} + +¥187¤229¥68110°119¹239¤186®101¥72\bigfive¬176¥68ª186¤164¤229¤229¥243¡93·237µ77¥231¥105¥93§116¥126¤229¤206¹207§206µ165¡94¡65 +±253¨207¥206~\LaTeXe~¤206~CJK~¨116²206¶105¦230±198ª169¦67¦76¡65¨228©210»221ª186°242¥187110¨68»80¦119¸203¨66Æ74µ165¡65 +°181¤64Â178110ª186¤182²208¡67¨228½100³242Á246¤163¯224²91»92110½115¦110¤64½103¡93©206¤64¥187¡94¹207¤229¨19590ª186¤229³185©210»221 +¤167¥68Ã68¡65¦253¤93¨172°247À179¥73¤64¯235©202ª186¤229¥243\footnote{¥187¤229±78·124¦98¤233«225º67º67¦97215¥191»80¸201 + ¥82¬219Ã246¥68Ã68¡65¥72¥91±106¨228µ178º99¤206¤186®101¡67¦80®201¤93´193«221Å170ª204¯224´163¨209Ä95¶81ª186·78¨163¡65¥72¬176 + ¤85¤64¦184¥88ª169¤167°209¦210¡67}¡67 + +¥187¤229ª186¤186®101¥72°116¦88~CJK 4.x.x~¨116²206ª186³93©119¬176¥68¡67215§239¥187¤229¤167¦80®201¡65CJK~ª186ª169¥187 +¬79~4.1.0¡67 + +\subsection{¾92Å170«252¤222} +\label{sec:reading-guides} + +¤85177¬79Â178³230ª186¾92Å170«252¤222¡71 +\begin{itemize} +\item ¥253½84©119§65±253¦119¸203ª186~CJK~ª169¥187¬79§95¬79¥187¤229©210´121122ª186¡6589¤163¦80¡65½208¨250±111»80¥187 + ¤229¬219®101ª186~CJK~ª169¥187¡65©206¨250±111³204·115ª186~CJK~ª169¥187¡65¨195¾92Å170¨228©210¥93§116ª186¥187¤229¥243À201®215¡67 +\item 89¦93ª169¥187¤167¤163¦80¡65±122¥231¥105¥72~CJK~¤229¥243¤164ª186~INSTALL~¬176¥68¡65¦245¥72¦114«172¦119¸203 + ¨116²206¡93\textsf{ntu2cjk}~©206~\textsf{ttf2pk}¡94¤164¬219Ã246ª186»161©250¤229¥243¡65¦65Â115Ä253 + ¥187¤229¤186®101§64¬176°209Ê247©202½232¡65¾65·237¦97¦119¸203¾227211¤164¤229±198ª169¨116²206¡67 +\item 89±122´191¸103¦119¸203¹76~CJK¡65±122¥105ª189±181°209¦210²196~\ref{sec:steps}~¸96¡167¦119¸203¨66Æ74¡168¡67 +\item 89¦98±122ª186¨116²206¤164¡65©124¥188¦119¸203¦179¤164¤229~TFM¡66PK¡66©206~PFB~µ165À201®215¡65¥105°209¦210²196~ + \ref{sec:install-fonts}~¸96¡167¦114«172¦119¸203¡168¡67 +\item 89±122Ä177±111¤87122ª186¦119¸203¨66Æ74¤163°247¨227Å233¡65½208°209¦210²196~\ref{sec:my-settings}~ + ¸96¡167§218ª186¨210¤108¡168¡67 +\item 89·81ª190¹68¦112¦243¨250±111¬219Ã246À201®215¡65½208°209¦210ª254¿253~\ref{sec:getting-files}¡167À201 + ®215¨250±111¡168¡67 +\item 89·81¹239¥187¤229©210¨207¥206¤167¦114µ252¦179©210º195´98¡65½208°209¦210ª254¿253~\ref{sec:terms}¡167¦87µ252 + ¸209Ä192¡168¡67 +\end{itemize} + +ª96·78¡71¥187¤229¤186®101¦98¦114«172ª186¦119¸203¤232177¡65¹239©243\ttftopkª186¤182²208¸251¤214\footnote{¦93¥187¤229 + ª186¥68110§64ª204¥117¦179¨207¥206\ntutocjk¨211¦119¸203¦114«172¡65¹239¤64¨199\ttftopk·115ª186§239Å220¤119¤163¼244±120¡67} +Å170ª204¥105¦219~CJK~ª186¤229¥243®77¥243¤164¦179Ã246¤164¤229ª186»161©250À201~|NTeXb5.doc|~¡93»80¥187À201®215¸109©243¦80 +¤64¥216¿253¤164¡94±111¨236¸212²211ª186¸209»161¡67 + +¥116¥126¥187¤229¦98¹239©243~em\TeX~À244¹210¤85ª186¦119¸203¸209»161¡65¤93¥117¬79Â189Ä182¦219~CJK~¤229¥243¤164ª186~ +|INSTALL|~³111211À201¡65¥187¤229§64ª204¨195¥188¹234§64¹76¡67 + +\subsection{¶105¤64¨66ª186¸234°84¨211·189} +\label{sec:further-information} + +\begin{itemize} +\item ¤229Ä109~\cite{latex2nd}~¬176°242¥187¤226¥85¡67 +\item ¤229Ä109~\cite{latex-companion:1993}~¥105¬176¶105¶165¤226¥85¡67 +\item °209¦210~Newsgroup |comp.text.tex|~ª186~FAQ¡67 +\item ¦179Ã246~\TeX/\LaTeX~±96°221ª186°221Ã68¡65¥105°209Ê247¤229Ä109~\cite{tex-faq:1.9c}¡93ª169¥187 + µ121Â194¡94¡67 +\end{itemize} + +\section{¨116²206»221¨68} +\label{sec:requirements} + +\subsection{µ119Å233À244¹210} +\label{sec:hardware-requirements} + +\TeX/\LaTeX~¨116²206¥216«101´88¥71µ180¤106³161¤192ª186§64·126¨116²206¬210¦179¤228´169¡67¦98~RAM~ª186»221¨68¤87«104 +µ248±253½115±198À201®215ª186¤106¤112¡65¤112«104¼198¤81¸85¦236¤184¡65¤106«104¼198¦202¸85¦236¤184¡67Á246µ77~\TeX/\LaTeX~ +¨116²206¦98~286~¥72«101ª186¾247¾185´78¯224¶93¡93¨83°79¿249ª186¸220¡94¡65¦253³204¦110Á217¬79¦179~8MB~¥72¤87ª186°79¾208 +Å233¡65¥72À179¥73¤164¤229¦114¤167©210»221¡67¦220©243µ119º208ª197¶161¡65¦98¤164¤229¦114«172ª186¨207¥206»221¤85¡65³204¦110¯224¦179~ +150MB~ª186ª197¶161¡93\TeX~¨116²206¬249~30MB¡658~º216~NTU~¥254¯117¦114«172¤206¨228Â224´171¦114«172¡65PS~¤206~ +PK~¦114«172µ165¡65¬249~80MB¡94¡67 + +\subsection{³110Å233»221¨68} +\label{sec:software-requirement} + +\begin{itemize} +\item ¹239~\LaTeX~¨116²206¦179·167¬65ª186»123Ã209»80¹239¦185¨116²206¨227°242¥187¾222§64ª186¯224¤79¡67³204¦110§65¦179¤229 + Ä109~\cite{latex2nd,latex-companion:1993}~³111¨226¥187®209¦98¤226Ã228¡67 +\item \LaTeXe~ª186°245¦230À244¹210¡67¥93¬65~\TeX/\LaTeX~ª186¬219Ã246À244¹210¡67 +\item \LaTeXe\ CJK~¨116²206¡67 +\item 89·81¦119¸203~PS~¦114«172\footnotemark\addtocounter{footnote}{-1}¡65±122»221110 + \begin{enumerate} + \item \textsf{ntu2cjk}~¨116²206¡67 + \item NTU TrueType~¦114«172¡67 + \item gcc~½115Ä182¾185¤206¬219Ã246À244¹210¡66GNU make¡67 + \item GhostScript(3.12~¥72¤87ª186ª169¥187)¡67 + \item |afm2tfm|¡67 + \item ¸209À163Á89µ123¦161¡71 |arj|¡66|gzip|¡66|tar|¡67 + \item 89·81±113~PS~¦114«172«216¥223~PK~¦114«172¡65«104»221~|ps2pk|~©206~|gsftopk|¡67 + \end{enumerate} +\item 89±253¦119¸203~PK~¦114«172\footnote{´78¤164¤229¤229¥243ª186±198ª169¡66¹119Ä253¤206¦67¦76©210»221ª186¦114«172 + ¦211¨165¡65¥105¥72³230¿87¥117¦115¦98¦179~PK~¦114«172©206~PS~¦114«172¡70¦253´78¤232«75©202»80¥105Ä226©202¦211¨165¡65 + µ167ª204«216Ä179¡65¥72°202º65ª186¤232¦161²163¥205~PK~¦114«172¨195«79¦179§185¾227¡93©206±96¥206¤206°202º65¡94ª186~PS~ + ¦114«172¡65¬79¸251¨206ª186²213¦88¡67}¡65°209¦210²196~\ref{sec:install-pk-fonts}~¸96¤167´121122¡67 +\item ¿233¥88¡71|dvips|¡66|dvi2xx|¡66¤206¨228¥76~dvi~®230¦161ª186Â224´171µ123¦161»80¨228¤85´229ª186Â224´171 + µ123¦161¡67 +\end{itemize} + + +\section{¦119¸203¨66Æ74} +\label{sec:steps} + +¥187¸96±78¥68110ª186¦119¸203¬121µ123¡65±248¦67¦112¤85¡65¦85¶181¤164¸212²211ª186¦119¸203«252¤222¡65±78¦98¥72«225ª186¦85¸96¤164 +Ä196122¡71 +\begin{enumerate} +\item 89¬79~\TeX/\LaTeX~¨116²206¤118¦119¸203¦110¡65½208¸245¤85¤64¨66¡67§95«104®218¾218¦219¤118¨207¥206ª186§64 + ·126¨116²206¡65¨77©119À179¨207¥206¦243º216~\TeX~¨116²206¡65¨195°209¦210¨116²206»221¨68¡93²196~ + \ref{sec:requirements}~¸96¡94¡66À201®215¨250±111¡93ª254¿253~\ref{sec:getting-files}¡94 + ¤206¨228¥76©243ª254¿253¤164¦85¸96¤167¸234®198¡65¨250±111¬219Ã246À201®215¡65¨195«246©210¨250±111¸234®198¤164ª186«252¥220¦119¸203¡67 + 89¨250±111ª186¨116²206¨83¦179~\LaTeXe~¨116²206¡65©206¬79±122·81§243·115¦220¸251ª241ª186ª169¥187¡65«104¥105¥116¥126¦219~ + CTAN~¨250±111¡65¦98¤119¦119¸203¦110ª186~\TeX~À244¹210¤164¬91¤87~\LaTeXe¡67 +\item ½84©119~\LaTeXe~¤118¦119¸203§180·237¡67¥105¥72¤64~\LaTeXe~®230¦161¥66¤186®101¬17694¤229ª186À201®215 + ¡93¦112~|sample.|\linebreak[1]|tex|¡94¡65±113°245¦230~|latex|~½115Ä182¡65¥72~|xdvi|~ + ©206~|dviscr|¡66|dvisvga|~µ165µ165¡94¹119µ248¡66¨236~|dvips|~©206~|dvilj|~Â224¦168¦76ª237®230 + ¦161¡93PostScript~©206~PCL~µ165®230¦161¡94¨195¦76¥88¡65¥72§80Â95¬79§95¦119¸203¥191½84¡67 +\item ¦119¸203~CJK~¤164¤229~\LaTeXe~¨116²206¡93°209¦210²196~\ref{sec:install-CJK}~¸96¡94¡67 +\item ¿239¾220¦119¸203~PK~©206~PS~¦114«172©206¤71ª204¬210¦119¸203¡93°209¦210²196~ + \ref{sec:install-pk-fonts}~¸96©206²196~\ref{sec:install-ps-fonts}~¸96¡94¡67 +\item ¥72~CJK~¨116²206¤164©210´163¨209¤167¤164¤229~\LaTeXe~À201¡65|READMEb5.tex|¡65°181´250¸213¡93°209 + ¦210²196~\ref{sec:my-settings}~¸96¡94¡67 +\item 89¦179°221Ã68¡65½208°209¦210²196~\ref{sec:trouble-shooting}~¸96¡167°221Ã68¸209¨77¡168¡67 +\end{enumerate} + + +\section{¦119¸203~CJK~¤164¤229~\LaTeXe~¨116²206} +\label{sec:install-CJK} + +½208°119¹239±122©210¨207¥206§64·126¨116²206¡65°209¦210¤85177¹239À179ª186¤112¸96¡67 + +\subsection{¦98~UNIX~¨116²206¤85~(web2c)} +\label{sec:install-under-unix} + +\begin{enumerate} +\item §228211¾65·237ª186¥216¿253±78¨250¦94ª186~CJK~À163Á89À201¸209¶125¡67¨210¦112±122±78¨228¸209¶125¦220~ + |/tmp/CJK|¡67 +\item ¦112ª71±122¯224¥72¨116²206º222²122ª204ª186¨173¥247¡93root¡94¦119¸203¡65«104¥105±78¸209À163«225ª186~CJK~¥216¿253 + ¤164~|texinput|~¥216¿253¤85ª186©210¦179À201®215¡93«79«249236¥216¿253µ178º99¡94²190¦220~\TeX~¨116²206¯224§228¨236 + ª186¦97¤232¡93³113±96¬79~ + |${TEXMF}/|\linebreak[1]|tex/|\linebreak[1]|latex/|\ldots¡65 + |${TEXMF}|~¬79~web2c~ª186~home¡65¤64¯235¬176~ + |/usr/|\linebreak[1]|local/|\linebreak[1]|lib/|\linebreak[1]|texmf|¡94¡65 + ¨195±78¦185¥216¿253¦87§239¦168~CJK~©206¾65·237ª186¦87º217¡67¦112ª71±122¤163¬79¨207¥206¸251·115ª169ª186~\TeX~¡93¹179~ + web2c¡65³111¨199~\TeX~¨116²206¡65´163¨209¤70»188°106·106´77¤108¥216¿253À201®215ª186¯224¤79¡94¡65«104±78~ + |texinput|~¥216¿253¤85ª186©210¦179À201®215²190¦220~\TeX~¨116²206¯224§228¨236ª186¦97¤232¡67¨210¦112¡71 + \begin{verbatim} + $ cd /usr/local/lib/texmf/tex/latex + $ mv CJK CJK.old + $ cd /tmp/CJK + $ cd 4_1.0 + $ mv texinput /usr/local/lib/texmf/tex/latex/CJK + \end{verbatim} + ¦112ª71±122¤163¯224¥72~root~ª186Å118173¦119¸203¡65½208¥72Ã254¦252©243¤85177ª186«252¥79µ121§64215§239¡93¦112ª71¨207¥206~ + |csh|¡94¡65¨195«216Ä179±78¤167¥91¤74~|.login|¡93¥206©243~|/bin/csh|¡94©206~|.profile|¡93¥206 + ©243~|/bin/sh|¡94¤164¡65¨207±111~\TeX~¯224·106´77¨236~CJK~¥216¿253¡71 + \begin{verbatim} + setenv TEXINPUTS: §65ª186 CJK ¥216¿253¦87// + \end{verbatim} + ª96·78¡6589±122©210¨207¥206ª186~\TeX~¨116²206¤163¤228´169¦104¼104¤108¥216¿253·106´77¡65«104±78½84¤193ª186¥216¿253¦87º217 + ¸115¡65¥91¤74¦220~|TEXINPUTS|~ª186À244¹210Å220¼198¤164¡70©206ª204±78~|texinput|~¥216¿253¤85¤206~ + |Bg5|~¥216¿253¤85ª186©210¦179À201®215²190¦220¬89211¥216¿253¤164¡65¨195µ248¦185¥216¿253¬176~CJK~¥216¿253¡67 + + ¨210¦112¡93¥72~|sh|~«252¥79¬176¨210¡94¡71 + \begin{verbatim} + ¡93°178³93±122·81±78 CJK ª186 texinput ¥216¿253²190¦220 ~/CJK/texinput¡94 + # cd ~/CJK ¡93¦220 CJK ¤108¥216¿253¡94 + # mv texinput texinput.old ¡93¦112ª71±122¦179Â194ª186 texinput ¥216¿253¡65¥253³198¥247¡94 + # cd /tmp/CJK ¡93¦220¸209¶125 CJK ª186¦97¤232¡94 + # cd 4_1.0 ¡93¦220¥216«101ª186ª169¥187¤85¡94 + # mv texinput ~/CJK ¡93±78 texinput ¤108¥216¿253²190¦220 ~/CJK¡94 + # TEXINPUTS=":~/CJK/texinput//" ¡93©119¸113À244¹210Å220¼198¡94 + # export TEXINPUTS ¡93³93¬176³113¥206ª186À244¹210Å220¼198¡94 + \end{verbatim} +\item °209¦210²196~\ref{sec:install-fonts}~¸96¦114«172¦119¸203¡65±78~|.tfm|~À201¡65PK~¦114«172 + ©206~PS~¦114«172¦119¸203¦220¾65·237ª186¥216¿253¤85¡67 +\item °209¦210²196~\ref{sec:install-.fd}~¸96¦119¸203~|.fd|~À201¡65©206°209¦210~|fonts.txt|¡65 + ¨195®218¾218¦114«172¦119¸203ª186µ178ª71¡65³93©119¬219Ã246ª186~|.fd|~À201¡67¥72¥187¤229°119¹239ª186\bigfive¤164¤229¦211 + ¨165¡65¥178¶183215§239~|c00kai.fd|¡93¦112ª71±122±78·162®209¦114±218³93¬176~|kai|¡94¡66|c00fs.fd| + ¡93¦112ª71±122¨207¥206¥233§186¦114±218¨195©119¬176~|fs|¡94¡75µ165¬219Ã246À201®215¡93¥231¥105°209¦210\ttftopk©206 + \ntutocjk©210´163¨209ª186½100¨210¡94¡67 +\item ¦98¸209¶125ª186~CJK~¥216¿253¤164¡65¶105¤74~\texttt{utils/Bg5conv}~¥216¿253¤164¡65½115Ä182~ + |bg5conv.c|¡65¦112¡71 + \begin{verbatim} + gcc -O -s -o bg5conv bg5conv.c + \end{verbatim} + ±78²163¥205ª186°245¦230À201~|bg5conv|~³115¦80~|bg5latex|~³111211À201¡65²190¦220~\TeX~¨116²206¤164©241 + ¸109°245¦230À201ª186¥216¿253¤164¡93¦112ª71Å118173¨172°247¡94¡67©206¸109©243211¤72ª186¥216¿253¤164¡65¨195½84©119¦185¥216¿253¦115 + ¦98©243À244¹210Å220¼198~|PATH|~¤164¡93©206¦98~|PATH|~¤164¼87¥91¤64°245¦230¸244®124¡65«216Ä179±78¦185¸244®124ª186 + ³93©119¥91¨236~login~ª186±210©108À201¤164¡94¡67 + + ¨210¦112¡71 + \begin{verbatim} + # cd /tmp/CJK/4_1.0 + # cd utils/Bg5conv + # gcc -O -s -o bg5conv bg5conv.c + # mv bg5conv bg5latex ~/bin + # export PATH=$PATH:~/bin + \end{verbatim} + ª96·78¡65¦112ª71±122¦179Â194ª186~|bg5conv|~°245¦230À201¡65½208°200¥178§243·115¡65¦93~4.0~¥72¤87ª186ª169¥187»80 + ¸251¦173ª186ª169¥187¤163¦80¡93¥72~``|^^FF|''~¬176¤192¬201¦114¤184¦211¤163¬79~``|.|''¡94¡67 + +\item ¶105¤74¤108¥216¿253~|doc/chinese|~¤164¡65´250¸213±122ª186³93©119¡71 + \begin{verbatim} + # cd /tmp/CJK/4_1.0 + # cd doc/chinese + # bg5latex READMEb5.tex + \end{verbatim} + ¬221¬79§95¯224¶182§81§185¦168½115Ã182¡67 +\end{enumerate} + +\subsection{¦98~DOS~©206~OS/2~¨116²206¤85} +\label{sec:install-under-dos} + +\begin{enumerate} +\item §228211¾65·237ª186¥216¿253±78¨250¦94ª186~CJK~À163Á89À201¸209¶125¡67 +\item ±78~CJK~¨116²206¤164~|texinput|~¥216¿253¤85ª186©210¦179À201®215¡93«79«249236¥216¿253µ178º99¡94²190¦220~ + \TeX~¨116²206¯224§228¨236ª186¦97¤232¡65¨195±78¦185¥216¿253¦87§239¦168~|CJK|~©206¾65·237ª186¦87º217¡67¦112ª71±122¤163 + ¬79¨207¥206¸251·115ª169ª186~\TeX¡93¹179~em\TeX¡65³111¨199~\TeX~¨116²206¡65´163¨209¤70»188°106·106´77¤108¥216¿253 + À201®215ª186¯224¤79¡94¡65«104±78~|texinput|~¥216¿253¤85»80¤206±122110¨207¥206ª186¤186½88¥216¿253¡93Bg5¡94¤85 + ª186©210¦179À201®215²190¦220~\TeX~¯224§228¨236ª186¦97¤232¡67 + + ¥72~em\TeX~¨116²206¬176¨210¡65±78~CJK~ª186~|texinput|~¤164ª186À201®215²190¦220~ + |c:\emtex\|\linebreak[1]|texinput\|\linebreak[1]|CJK\|\ldots¡65¨195¥72 + ¤85177ª186«252¥79µ121§64215§239¡65¥72¨207±111~\TeX~¯224·106´77¨236~CJK~¥216¿253¡71 + \begin{verbatim} + set emtexdir=c:\emtex + set texinput=%emtexdir%\texinput!! + \end{verbatim} +\item ¦98~CJK~¨116²206¤164ª186~|utils\|\linebreak[1]|Bg5conv|~¥216¿253¤164¡65±78~ + |bg5conv.|\linebreak[0]|exe|~³115¦80~|bg5latex.|\linebreak[0]|bat|~²190¦220~ + \TeX~ª186°245¦230¸244®124~(|PATH|)~¤164ª186¬89211¥216¿253¡93©206¼87¥91¤64°245¦230¸244®124¡94¡67 +\item °209¦210~\ref{sec:install-fonts}~¦119¸203¦114«172¤64¸96¡65±78~|.tfm|~À201¡65PK~¦114«172 + ©206~PS~¦114«172¦119¸203¦220¾65·237ª186¥216¿253¤85¡67 +\item °209¦210~\ref{sec:install-.fd}~¦119¸203~|.fd|~À201¤64¸96¡65®218¾218¦114«172¦119¸203ª186µ178ª71¡65 + ³93©119¬219Ã246ª186~|.fd|~À201¡67¡93¥105°209¦210\ttftopk©206\ntutocjk©210´163¨209ª186½100¨210¡94¡67 +\end{enumerate} + + +\section{¦114«172¦119¸203} +\label{sec:install-fonts} + +¥187¤229¶200¥72¥209~True Type~¦114«172²163¥205ª186~PK~¦114«172©206~PS~¦114«172¬176»161©250¡67¦114«172¤167¨250±111°209 +¦210ª254¿253~\ref{sec:getting-files}~¤167»161©250¡67 + +PK~¦114«172¡93©206~PS~¦114«172¡94³204¦110¦119¸203¦98·237§65110¤201¯197~\TeX/\LaTeX~¨116²206®201¤163·124¼118Å84ª186 +¦236¸109\footnote{¨198¹234¤87¡65³204¦110±78¨186¨199¥191±96¦119¸203~\TeX/\LaTeX~¨116²206¥72«225¡65§65¥178»221 + Ã66¥126215§239©206¦119¸203ª186À201®215¤206µ123¦161¡65³163©241¦98¥116¥126¸251¨112¦179ª186¥216¿253¤164¡65µ77«225¦65¥72~link~ + ª186¤232¦161¸109©241©243236¥187À179³66ª186¦236¸109¡67¦98~DOS~¤85¡65¦114«172À201¥72¥91¦98À244¹210Å220¼198ª186¸244®124¤164 + ¬176¥68¡65¨228¥166ª186«104¥72½198»115ª186¤232¦161¨250¥78~link¡67}¡65¦93¬176¤64¥185¦185Ã254¦114«172²163¥205«225¡65§89¥105 +ª248®201´193ª186¨207¥206¡70¥116¥126¡65¦112ª71¨67¦184110¤201¯197~CJK~¨116²206©206~\TeX/\LaTeX~¨116²206®201¡65¤93¥105 +©241¤223¤106Á120ª186¤85¤226¡67 + +\subsection{PK~¦114«172} +\label{sec:install-pk-fonts} + +\subsubsection{¦219°202²163¥205~PK~¦114«172} +[©124¥188§185¦168¡65½208°209¦210\ttftopk©206\ntutocjkª186¦119¸203»161©250] + +\subsubsection{¹119¥253²163¥205~PK~¦114«172} +[©124¥188§185¦168¡65½208°209¦210\ttftopkª186¦119¸203»161©250] + +\subsubsection{¥209~PS~¦114«172²163¥205~PK~¦114«172} +°209¦210~\ref{sec:install-ps-fonts} PS~¦114«172¤64¸96¡67 + +\subsection{PS~¦114«172} +\label{sec:install-ps-fonts} + +¦185³66©210«252ª186~PS~¦114«172¬176¤164¤229~PostScript Type 1~¦114«172¡65¦112ª71¦65¥91¤87¤64211©206¤71211 +ª186~PS~¦114«172¡93¥72³111¨199¤164¤229~Type 1~¦114«172¬176°242©179©210º99¦168ª186¦114«172¡94¡65¥105²213¦168~ +PostScript Type 0~ª186¦114«172¡67¦253~\TeX~¨116²206¥216«101¤180µ76ª107¨250¥206~Type 0~ª186¦114¡65©210¥72 +¥187¤229¤93¤163·124´163¤206¡67¥116¥126ª189±181¨250¥206~TTF~¦114«172¦98¥188¨211¤93¥105¯224¹234²123¡65¨210¦112~ +Ghostscript~¦98·115ª186ª169¥187¤164¡934.01¡94¤119¯224¨207¥206~TTF~¦114«172¡67 + +¥72¦119¸203·162®209~PS~¦114«172¬176¨210¡65Â178122¨228¬121µ123¦112¤85¡93¸212²211½208°209¦210\ntutocjk¤164ª186~ +|README|~À201¡94¡71 +\begin{enumerate} +\item ¨67¦184°119¹239¤64211¦114±218¡93font family¡65¦112·162®209¡94²163¥205~|.tfm|~¤206~|.pfb|~À201 + ®215¡67 +\item 215§239¦114±218¬219Ã246ª186~makefile~À201¡65¦112215§239~|kai.mak|~ª186¤186®101¡93¥72¤85¥72·162®209 + ¬176¨210¡94¡67 +\item 89±122¨207¥206~UNIX~¨116²206¡65¿233¤74¤85177ª186«252¥79 + \begin{verbatim} + make unix FONTMAK=kai.mak + \end{verbatim} + 89±122¦98~DOS~¤85¡65½208¤85¡71 + \begin{verbatim} + make dos FONTMAK=kai.mak + \end{verbatim} + 89¤64¤193¶182§81¡65À179¦179~55~211ª186~|.pfb|~À201®215©77~55~211¡93©206~110~211¡65¦112ª71~ + |EXTENDED_FONT|~¬79³93~|YES|¡94|.tfm|~À201®215¡65¥66~TFM~À201®215ª186¤106¤112¡65¨67211¬249¬176~ + 1.2kB~¥170¥107¡67 +\item ¤85~|make install-fonts|~¦185«252¥79¡65¥105±78©210¦179²163¥205ª186¦114«172¦119¸203¦220±122³93©119¦98~ + |kai.mak|~À201®215¤164©210«252©119ª186¥216¿253¤164¡67±122¥105¯224¤93»221110¥72~|make install-maps|~ + ³111211«252¥79¦119¸203~|Fontmap|~¤206~|psfonts.map|~µ165¡67 +\item ®218¾218¥72¤87©210©119¸113¦114«172¬219Ã246ª186¦87º217¡65±122¥178¶183215§239~|c00kai.fd|~¨195²190¦220~ + \TeX~§228±111¨236ª186¥216¿253¡67©206ª204215§239~|c00kai.fdx|¡65¦112ª71~|EXTENDED_FONT|~¬79³93 + ¬176~|YES|¡65²190¦220¾65·237¥216¿253«225¡65¥178¶183±78¨228¦87º217§239¬176~|c00kai.fd|¡67 +\end{enumerate} + +\subsubsection{¥209~PS~¦114«172²163¥205~PK~¦114«172} + +¥209~PS~¦114«172²163¥205~PK~¦114«172¡65³113±96±122»221110Â199~|gsftopk|~©206~|ps2pk|~¨211§185¦168¡67 + +¦112ª71¥72~|gsftopk|~²163¥205~PK~¦114¡65Á217»221110~|gs|¡93Ghostscript¡94ª186»178§85¡65¦93¦185¦98 +±122®215¸203¦110~PS~¦114«172«225¡65°79¦237110±78¦114«172©210¦98ª186¥216¿253¦87¡65¥91¨236~|GS_LIB|~³111211À244¹210Å220 +¼198¤164¡65©206ª204±78¥209\ntutocjk©210²163¥205~|.pfb|~À201¡65¥72~symbolic link~ª186¤232¦161¡65¥254³161~ +link~¨236~|gs|~©210©119¸113ª186¦114«172¥216¿253¤164¡67 + +¦112ª71¥206~|ps2pk|¡65±122»221110~AFM~À201¡93¦98\ntutocjk»115³121~|.pfb|~À201®215ª186¹76µ123¤164¡65·124 +²163¥205~AFM~À201¡94¡67³204¦110¨250±111³204·115ª186ª169¥187¡65¥72«79µ253¦98Å170¨250~PS~¦114«172»80~AFM~À201®201¡65¤163 +80²163¥205°221Ã68¡67 + +¦98±122©210¨207¥206ª186~\TeX/\LaTeX~¨116²206¤164¡65¤106·167³163¦179~|MakeTeXPK|~³111211À201¡65¥166ª186¥92¥206 +§89¬79¦98¨116²206µ111²123¬89211~PK~¦114«172¤163¦115¦98®201¡65¦219°202²163¥205¤167¡67¦211¦185À201¦252¥71¤163»221¯83§79ª186Ã66 +¥126³93©119¡65³163¦179¦219°202¥209~PS~À201²163¥205~PK~¦114«172ª186¥92¯224¡67·237µ77«101´163¬79³111¨199~PS~¦114«172¥178¶183 +¥88²123¦98~|psfonta.map|~¤164¡65|MakeTeXPK|~¥206¦185À201¤164ª186¦114«172§80Â95¥191110²163¥205¦114¬79§95 +¬176~PS~¦114«172¡93¨228¹234³111»221110µ248±122©210¦119¸203ª186¬219Ã246¨116²206¦211©119¡94¡67 + +%\section{¤163¦80¹113¸163¥173»79¤85¤167ª96·78¨198¶181} +%\label{sec:platforms} + +%\subsection{DOS} +%\label{sec:platform-dos} + +%\subsection{UNIX} +%\label{sec:platform-unix} + +\subsection{¦119¸203~\texttt{.fd}~À201} +\label{sec:install-.fd} + +·237§65110ª186¦114«172¡93TFM~À201®215¡66PK~¦114«172¡66©206~PS~¦114«172¡94«246·211¤87122´88¸96¤232¦161¦119¸203§180·237 +«225¡65±122¤93¶183110¾65·237¦97³93©119¬219Ã246ª186~|.fd|~À201¡67¥187¸96±78Â178122¤167¡67 + +\LaTeXe~ª186~\textsf{NFSS}~³87®230¤164¡65110´121122¤64º216¦114«172¥93§116¦179¤85¦67°209¼198¡71 +\begin{enumerate} +\item Encoding¡71½115½88¤232¦161¡65¦112~|T1|¡66|OT1|¡66|DC|~µ165¡67|U|~ª237¥220~unknown¡67 + CJK~¨116²206ª186½115½88¤232¦161¡93°209¦210~|fonts.txt|¡94¤64¬176¤229¥243¤182177©210¥206¡65¦112~|Bg5|¡66 + |GB|¡66|Bg5pmC|~µ165¡65¤64¬176~\textsf{NFSS}~©210¨207¥206¡65¦112~|C00|¡66~|C10|¡66 + |C01|~µ165¡67¦185³66¡65§89©119¸113¦98~|.fd|~À201¤164ª186½115½88¤232¦161»221¨207¥206«225ª204¡67¥72§94¤72©210¨207 + ¥206ª186\bigfive¬176¨210¡65~|C00|~¬79¥178»221©119¸113ª186¡67 +\item Family¡71¦114±218¡65¦112~|cm|¡66|cmss|¡66|cmtt|~µ165¡65CJK~¨116²206¦98¦119¸203\bigfiveª186 + ¦114«172»221¦219¦230©119¸113¡65¦253»221²197¦88~\textsf{NFSS}~ª186³87©119¡65§89©119¸113¦114±218ª186¦114¼198¤163¥105 + ¶87¹76¤173211¦114¥192¡67±122¥105°209¦210¥93§116¦98¸209¶125À201®215¤164ª186½100¨210¡65¦112~|c00kai.fd|¡67CJK~¨116 + ²206¥72·162®209¡66©250Å233¡66´208®209µ165ª237¥220¦114±218¡67§94¤72¥105¥206~|kai|¡66|song|¡66|ming|¡66|fs|¡66 + |black|¡66|round|~µ165µ165ª237¥220\bigfiveª186¦114±218¡67 +\item Series¡71¦114¨116¦67¡93¾238¦86ª186¤216¤111¡94¡65¦112~|m| (medium)¡66|b| (bold)¡66|bx| + (extended bold)~µ165¡65CJK~ª117¥206¦185³87®230¡67 +\item Shape¡71¦114§206ª172¡65¦112~|n|¡66|sl|¡66|ol|¡66|it|~µ165¡67CJK~ª117¥206¤167¡67 +\item Size¡71¦114¤106¤112¡93Â73¼198¡94¡65¦112~|10|¡66|12|~µ165 +\item |\baselineskip|¡71¬219¾70¨226¦230ª186°242·199½117¶161¶90¡65¤106³161¤192±161ª112¥206¤163¨236¦185°209¼198¡67 +\end{enumerate} + +®218¾218¥72¤87ª186±212122¡65¥72¤85Â178³230¤182²208¸211À201ª186µ178º99»80»121ª107¡65¥72~|c00kai.fd|¡93¦98~ +\texttt{texinput/Bg5}~¥216¿253¤85¡94À201¥93§116¤84211¥68110ª186«252¥79¡71 +\begin{enumerate} +\item |\ProvidesFile{c00kai.fd}{|{\em release-info}|}|¡71»161©250¥187À201¦87¨195Á215 + §75171½198¸252¤74¡67 +\item |\DeclareFontFamily{C00}{kai}{}|¡71»161©250¦185À201¥72~|C00|~ª186½115½88¥66´121122~ + |kai|~¦114±218¡67¨228¤164~|C00|~¬79~\textsf{NFSS} encoding¡67 +\item |\DeclareFontShape{C00}{kai}{m}{n}{<-> CJK * b5ka}{}|¡71¦185©82¥79ª186 + ²196¤173211°209¼198¸251½198Â248¡65¥105°209¦210~|fonts.txt|~ª186»161©250¡67¨228¤164~|*|~¸185¥107ª186°209¼198§89¬79 + ¤64²213¦114«172À201¦87ª186¦114186¡65CJK~¨116²206·124¦98§192º221¥91¤87¤71¦236¼198¦114¡65¦168¬176¦114«172¦87º217 + ¡93sub-font name¡94¡65¤163½215¬79~|.tfm|~À201¡66|.pfb|~À201©206~|pk|~À201¬210»221»80¦185¦87¤64 + 80¡67|CJK|~«104¬79¦114«172¤106¤112¨231¼198¡93size function¡94¡65CJK~¨116²206©119¸113¤70¼198211¦185Ã254 + ¨231¼198¡65¦112¡71 + \begin{verbatim} + CJK ¬219·237©243 `' (empty) ·78«252¨207¥206¦114ª186¤106¤112»80 latex ½115Ä182ª186¤6480¡67 + sCJK ¬219·237©243 `s' ¦80¤87¡65¦253¨250¦114¦179»126®201¤163Ä181§105¡93silent¡94¡67 + CJKfixed ¬219·237©243 `fixed' 89»221¨68ª186¦114¤106¤112¦98©119¸113ª186½100³242¤186¡65¤64«223 + ¨207¥206«252©119ª186¦114¡67 + sCJKfixed ¬219·237©243 `sfixed' ¦80¤87¡65¦253 keep silent¡67 + CJKsub ¬219·237©243 `sub' ¥72¥116¤64Ã254¦114«172´192¥78¡67 + CJKssub ¬219·237©243 `ssub' ¦80¤87¡65¦253 keep silent¡67 + \end{verbatim} + ¦112¦185¥105¥72«220¤232«75ª186¦80®201¨207¥206Â73°125¦114¤206¦86¶113¦114¡67 +\end{enumerate} + +³204Â178³230ª186¦119¸203¤232¦161´78¬79¡65¦112ª71§65¬79¥206\ttftopk¨211²163¥205¦114«172¡65«104±78¨228©210´163¨209ª186~ +|c00?????.fd|~½198»115¨236~\texttt{texinput/Bg5}~¤85¡7089¬79¥72\ntutocjk¬176¥68¡65¥231 +¦80²122¬176¤167¡70¥72¦185Ã254±192¡67 + +\subsection{¿233¥88¤164¤229~\LaTeX~¤229¥243»80¦114«172ª186Ã246«89} +\label{sec:portability} + +¦185³66©210«252ª186¿233¥88¥93¬65±113¿195¹245¡66À201®215¤206¯200±105µ165¡67ª237~\ref{tab:soft-vs-fonts}~¬79 +¥187¤229©210´163¤206ª186¤64¨199³110¥88³110Å233»80¨228©210¨207¥206¦114«172¶161ª186Ã246«89¡93°163¤70¯83§79»161©250¥126¡65³110Å233¤167 +ª169¥187¤10680¬210¬176¥187¤229¼182¼103®201³204ª241ª186ª169¥187¡94¡67¥209¦185ª237¥105ª190¡65PK~¦114¦98¹119µ248®201¬79¤163¥105©206 +¯202ª186¡65¦211~PS~¦114¦98¦67¦76¥93§116¦179~PostScript~À201®215¡93|.eps|¡66|.ps|~µ165¡94ª186¤229¥243®201 +¥231¥178»221¥206¨236¡67 +\begin{table}[htbp] + \begin{center} + \leavevmode + + \begin{tabular}{|>{\ttfamily}c|c|c|c|} \hline + ¿233¥88³110Å233 & ¥92¯224 & CJK PK~¦114«172 + & CJK PS~¦114«172 \\ \hline + xdvi & ¹119µ248 & \hookstroke + & \crossmark \\ + & & + & ¡93¯224¦179¤64211¹119³93¦114¡94 \\ \hline + dvisvga & ¹119µ248 & \hookstroke + & \crossmark \\ \hline + dvips & ¿233¥88¦220À201®215©206¦76ª237¾247 & \hookstroke + & \hookstroke \\ + ¡935.60~ª169¥187¥72¤85¡94 & & + & ¡93¦253¬176¥254³161¸252¤74¡94 \\ \hline + dvihp & ¿233¥88¦220À201®215©206¦76ª237¾247 & \hookstroke + & \crossmark \\ \hline + gs & ¹119µ248¤206¿233¥88 & \crossmark + & \hookstroke \\ \hline + \end{tabular} + + \caption{~\TeX~¬219Ã246³110Å233»80¨207¥206~CJK~¦114«172¶161¤167Ã246«89¡67} + \label{tab:soft-vs-fonts} + \end{center} +\end{table} + +110²163»115¤64½103¹207¤229¨19590ª186¤229³185¡65¤215¨228¬79¤164¤229¤229³185¡65¦114±218¡93font family¡94»80¨228¤216¤111 +¤106¤112¡93font size¡94ª186Å220¤198¬79¤163¥105©206¯202ª186¡67¹239¿233¥88®201¥178¶183ª186~PK~»80~PS~¦114«172¦211¨165¡65 +89¦98¦185ª172ª112¤85¤241¸251¤71ª204ª186®116§79¡65¦76ª237ª186¤232«75©202¤93¥105»161¬79¦85¦179¤100¬238¡7089¦98º207º208ª197¶161 +ª186¨207¥206¤87¡65¥105¯224´78¦179©210®116²167¡67¦93¬176¦80¤64¦114±218¦253¤163¦80¤106¤112ª186¦114¡65PK~¦114«172¥178»221¨67º216 +¨207¥206¨236ª186¤216¤111¬210¸252¤74¦220¨228¿233¥88À201¤164¡65¦211~PS~¦114«172¥117»221¤64¦184¡67 + +¥216«101¡65¤229³185¤164©210¦179¨207¥206¨236ª186~PFB~¦114«172¡6589110²163¥205¤186§116¦161ª186~PS~À201®215 +¡93self-contained Postscript output¡94¡65|dvips|~·124¥254³161¸252¤74¦220¨228¿233¥88¤164¡67¦211 +¤85¤64¦184¥88ª169ª186~|dvips|~µ123¦161¤164¡65±78¥105¯224°119¹239¨228¿233¥88À201¤164ª186¦185¶181¯202Â73¦179©210§239¶105¡70 +·78§89·115ª186ª169¥187¥117·124¸252¤74¦98¤229³185¤164¦179¨207¥206¨236ª186¦114¨228¦98~|.pfb|~À201¤164©210¹239À179¤167©119¸113ª186 +³161¤192¡67¡93¦98µ167ª204´250¸213~|dvips| 5.60~ª169®201¡65¼200®201µ76ª107¦168¥92¦97¨207¥206¤164¤229~CJK PS~¦114 +«172¡65¤163¹76¬219«72§214¤70¡67¡94 + +¥216«101¼200®201¥105¥206~|fontload|~³111211³110Å233¡65¹70¦168³111211¥92¯224¡67 + + +\section{§218ª186¨210¤108} +\label{sec:my-settings} + +¥216«101§218¨207¥206ª186¬79~Linux~§64·126¨116²206¡65\TeX/\LaTeX~«104¨207¥206~te\TeX~À244¹210¡65¬219Ã246ª186 +¥216¿253¦112¤85¡71 +\begin{itemize} +\item |/usr/local/lib/texmf| ¦115©241~\TeX/\LaTeX~¨116²206¡67 +\item |/usr/local/lib/ghostscript| ¦115©241~Ghostscript¡67 +\item |/usr/local/lib/ntuttf| ¦115©241~NTU TrueType~¦114«172¤206¥209\ntutocjk©210²163 + ¥205ª186¬219Ã246¦114«172¡67 +\item |~/CJK/4_1.0| ¦115©241¸209¶125ª186~CJK~¨116²206¡67 +\end{itemize} + +§218¥72¥191±96ª186¦119¸203µ123§199¡65±78~te\TeX~¦119¸203¦98~|/usr/local/lib/texmf|¡70¤167«225±78~ +CJK~¦98§218ª186~|$HOME/CJK|~¤85¸209¶125¡65CJK~³110Å233¤164©210¦179ª186À201®215«75²163¥205¦98~|CJK|~¤108¥216 +¿253¤164\footnote{¤167©210¥72±78~CJK ¦119¸203¦98¦219¤118211¤72ª186¥216¿253¤85¡65¬79¦93¬176~CJK~±96§243·115¡65 + ¤163¤232«75±96½208¨116²206º222²122ª204À87À87§239Å220³93©119¡67¦65¥91¤87¬176¤70¦219¤118À201®215¬121³113©202ª186¦210¼123¡65¦179 + ¦219¤118¤64¥247~CJK~ª186³93©119¡65211¤72»123¬176¡65¦219¤118ª186~CJK~¤229¥243¤126·124¦179¸251°170µ123«215ª186²190´211©202¡67 + 89§65¤83¬79¨116²206¤164116³100~CJK~³110Å233ª186¤72¡65¬198©206¬79¾227211~\TeX/\LaTeX~ª186º251Å64ª204¡65¦98 + ¦219¤118¨112¤72ª186¥216¿253¤85º222²122¨195©119´193§243·115~CJK¡65¬79211¤163¿249ª186¤232¦161}¡65¨210¦112¡71 +\begin{verbatim} + % cd + % gunzip CJK-4.1.0.src.tar.gz | tar xvf - +\end{verbatim} +¨195°181¥72¤85ª186³66²122¡71 +\begin{enumerate} +\item ¦98~|~/CJK|~¤85«216¥223¤64²197¸185¦161ª186À201®215³115µ178¡93symbolic link¡94¡65¦87¬176~ + |texinput|~¥66³115µ178¦220¥216«101~CJK~ª169¥187¦87¤85ª186~|texinput| ¡65 + \begin{verbatim} + % cd ~/CJK + % rm -f texinput + % ln -s 4_1.0/texinput texinput + \end{verbatim} +\item ½115Ä182¤64211·115ª186~|bg5conv|~°245¦230À201¡67 + \begin{verbatim} + % cd ~/CJK/4_1.0/utils/Bg5conv + % gcc -O -o bg5conv bg5conv.c + % mv bg5conv bg5latex ~/bin + \end{verbatim} + 89¤163¥117¬79¦119¸203µ185¦219¤118¥206¡65«104¥105¥72~|root|~ª186¨173¥247~|cp|~¦220~|/usr/local/bin|~ + ¥216¿253¤85¡67 +\item ¦98§218ª186~|$HOME|~¥216¿253¤85~|.cshrc|~À201¤164¡93¦93¬176§218¥206ª186¬79~tcsh¡94¡65¼87¥91¤64 + ¦230 + \begin{verbatim} + setenv TEXINPUTS ":~/CJK/texinput//" + \end{verbatim} +\item ²163¥205~|.tfm|~À201¤206~|.pfb|~¦114«172¡67¦98¦185§218«246·211\ntutocjk¤164¡65¤64¤64~ + ``make''~¥88¬219¹239ª186~|.pfb|~¦114«172¡65¦64~8~²213¡65¨67²213~55~211~ |.tfm|~¤206~|.pfb|~ + À201¡67§218±78³111¨199À201®215²190¦220~ + \texttt{/usr/local/lib/\linebreak[1]ntuttf/\linebreak[1]type1/}~¤206~ + \texttt{/usr/local/lib/ntuttf/afm/}~¬219Ã246©243¨228¦114±218ª186¥216¿253¤85¡67¨195±78 + ~|config.CJK|~¤206~|CJK.map|~²190¦220~|$TEXMF/dvips|~¤85¡67 +\item ³93©119~|.fd|~À201¡67¦93¬176§218¨207¥206ª186¬79¥72~PS~¦114«172¬176¥68ª186~PFB¡93¥209\ntutocjk²163 + ¥205¡94¤206¥209¨228²163¥205ª186~PK~¦114«172¡93¥209~|gsftopk|~²163¥205¡94¡65©210¥72§218ª189±181±196¥206 + \ntutocjk©210´163¨209ª186~|c00|*|.fd|~À201¡65¨83¦179§64¥244¦243§243§239¡93¦93¬176§218¦179³100¥244¨207¥166»80 + §218ª186¤117§64À244¹210¤6480 :-¡94¡67§218±78¨228²190¦220~|~/CJK/texinput/Bg5/|~¥216¿253¤85¡67 +\end{enumerate} + +\subsection{«216¥223¤229½90} +\label{sec:creating-tex} + +¤164¤229~CJK \TeX~¤229½90»80¤64¯235~\TeX~¤229½90ª186¤163¦80¥68110¦98©243¡71 +\begin{itemize} +\item ¦98©210¿215~\LaTeX~¤229¥243ª186~preamble¡93|\documentclass|~¦220~ + |\begin{document}|¡94°207°236¤164¡65¥178¶183¦179~|\usepackage{CJK}|~³111211©82¥79¡65§89¥178 + ¶183¸252¤74~|CJK.sty|¡67 +\item ¤164¤229¦114¥178¶183¦98~|CJK|~©206~|CJK*|~ª186¤164¤229À244¹210¤164¡67§89¡71 + \begin{verbatim} + \begin{CJK*}{}{} + ¤164¤229¬113¸168¡66³185¸96¡66¹207§206¡66ª237®230¡66°209¦210¤229Ä109¡66¡75µ165 + ... + \newpage + \end{CJK*} + \end{verbatim} +\item 110Å220´171¦114«172¥105¥206~|\CJKfamily|~©82¥79¡65¦112~|\CJKfamily{fs}|~±78¥72¤85ª186¦114 + «172§239¦168¥233§186¦114¡93·237µ77~|fs|~³111211¦114§206¦87º217¥178¶183©119¸113¦98~|c00fs.fd|~¤164¡94¡67 +\end{itemize} + +§218ª186¥206ª107³163¬79¥72¤64211¤164¤229À244¹210¥93¦237©210¦179ª186¤229³185¤186®101¡65¦112¹207~ +\ref{fig:my-example}~©210¥220¡67 + +\newsavebox{\myex} +\begin{lrbox}{\myex} + \begin{minipage}{.9\textwidth} + \footnotesize + \begin{verbatim} + \documentclass[12pt]{article} + \usepackage{CJK} + + \begin{document} + \begin{CJK*}{Bg5}{fs} + \CJKtilde + + \section{²196¤64¸96} + \label{sec:section-1} + °209¦210¹207~\ref{fig:apply-pk-and-ps-fonts}¡67 + + \begin{figure}[htbp] + \begin{center} + \leavevmode + \includegraphics{pkpsapps.eps} + \caption{|pk|~¦114«172»80~|.pfb|~¦114«172ª186À179¥206¹239À179¹207} + \label{fig:apply-pk-and-ps-fonts} + \end{center} + \end{figure} + + \bibliographystyle{plain} + \bibliography{mybib} + + \newpage %¨207¦179¥191½84ª186¤164¤229¿233¥88¡67 + \end{CJK*} + \end{document} + \end{verbatim} + \end{minipage} +\end{lrbox} + +\begin{figure}[htbp] + \begin{center} + \leavevmode + \fbox{\usebox{\myex}} + \caption{§218ª186~CJK~¤229¥243½100¨210¡67} + \label{fig:my-example} + \end{center} +\end{figure} + +\subsection{¥72~\LaTeXe\ CJK~½115±198ª169177} +\label{sec:clatexing} + +´78¦80¤64¯235ª186~\LaTeX~À201¤64¼203¡65¦253¥72~|bg5latex|~¨250¥78~|latex|¡65¦112¡71 +\begin{verbatim} + % bg5latex mylatex.tex + ©206ª204 + % bg5latex mylatex +\end{verbatim} + +\subsection{¹119Ä253} +\label{sec:preview} + +¤106³161¤192±161ª112¤85§218¥72~|xdvi|~¹119Ä253~|.dvi|~À201¡93¦98~Emacs~©206~Mule~¤16489¨207¥206~ +AUC\TeX~³111®77³110Å233¡65§243¯224Å227¥88¨228¬240¥88ª186¦97¤232¡65¤215¨228¬79¥117¹119Ä253¤229³185¤164ª186¤64¶244°207°236¡65 +À72®201¥105À203µ248¸211°207°236ª186±198ª169±161§206¡94¡67 + +¥116¥126¡65§218¤93·124µ248±161ª112¥206¤163¦80ª186¹119µ248µ123¦161¡67¤241¦112¦98~Linux~ª186~virtual terminal +mode~§218¥72~|dvisvga|~¹119µ248¡67¦98¯202¥70~|pk|~¦114«172©206¨83¦179~|xdvi|~ª186¤214¼198±161§206¤85¡65 +§218¤93¥206~|ghostview|~¹119µ248¸103¥209~|dvips|~²163¥205ª186~|.ps|~À201®215¡67 + +\subsection{¦67¦76} +\label{sec:printing} + +²163¥205¤206¦67¦76~|PostScript|~À201®215¬79§218³204±96¥206ª186¤232¦161¡65¦93¬176¦98§218ª186¤229³185¤164¡65¹207§206¬79¤163 +¥105¤214ª186¸234®198¡65¦211¥166204´88¥71³163¬79~|.eps|~ª186®230¦161¡93¥209~|xfig|¡66AutoCAD¡66|GnuPlot|¡66 +|xv|¡66¡75µ165©210²163¥205¡94¡67©210²163¥205ª186~|.ps|~À201¡65©206ª204¬79¥209~PostScript~¦76ª237¾247¡65¥231©206 +ª204³122¹76~ Ghostscript~ª186Â224´171¡65¦211¿233¥88¨236~Laserjet~©206~Deskjet~¬198©206¨236Â73°125¦161¦76 +ª237¾247¥104¡67 + +¤64¯235¦211¨165¡65¥72~|dvips cjk-doc|~·124²163¥205¥105¦67¦76ª186¿233¥88¡65¦65¥72~|lpr cjk-doc.ps|~ +ª186¦76ª237«252¥79¦67¦76§89¥105¡67¦253±12289¤163Ä64²163¥205¤164¤229~PK~¦114«172¡65¥66±122¤163¬79¨207¥206~PostScript~ +¦76ª237¾247¡65¤83¥206\ntutocjk¦119¸203~PS~¦114«172¡65¤93°119¹239~ Ghostscript~ª186³93©119¦119¸203¦110³111¨199 +¦114«172¡65¦211¥66±122ª186¦76ª237Á205°202µ123¦161¯224¥72~|gs|~¬176¥68¡93Linux¨116²206¤87¦104¼198³163¥72¦185¤232¦161³93©119¡94¡65 +«104§65¥105¥72ª189±181¥72~|lpr|~³111211©82¥79¦67¦76~ |.ps|~À201¡93¬198¦220¬79~|.dvi|~À201¡94¡67¦112¡71 +\begin{verbatim} + % dvips -P CJK cjk-doc + % lpr cjk-doc.ps +\end{verbatim} + +¥72~|dvihp|~²163¥205¦67¦76À201¤93¬79¤232¦161¤167¤64¡65¨228¿233¥88®230¦161¬176~PCL¡65©206¬79~HP~¦76ª237¾247ª186®230 +¦161¡67¦253¦93µ76ª107³66²122¤229³185¤164¥93§116ª186~PostScript~À201®215¡65©210¥72§218¨195¤163±96¥206¡67 + +·237110²163¥205¥105Ä226ª186¦67¦76À201®215®230¦161¡93self-contained PostScript file¡94¡65§218·124¥72²163¥205~ +Post\-Script~¡93|.ps|¡94ª186®230¦161¬176¥68¡67¦114«172¨211·189¤167¤64¬79¥209¹119µ248«225¦219°202²163¥205ª186~PK~ +¦114«172§64¬176~ |dvips|~ª186¿233¤74¦114«172¡67¦185¤232¦161¥105¥72¤85¦67©82¥79§185¦168¡71 +\begin{verbatim} + % dvips cjk_doc -o cjk-doc-contains-pk-fonts.ps +\end{verbatim} +¦185®201~|psfonts.map|~¤164»221¤163§116\ntutocjk©210²163¥205ª186¤164¤229¦114«172¡93CJK 4.0 ¥72¤87ª186ª169¥187 +¤164©210§116ª186\ntutocjk¡65¹119³93¬176¦185±161§206¡94¡65|dvips|~¤126·124¨250¥206¤164¤229~PK~¦114¡65©206¦112ª71¤164 +¤229~PK~¦114«172¤163¦115¦98ª186¸220¡65·124¦219°202²163¥205¤167¡67¦98¨207¥206~|xdvi|~©206¬219Ã246³110Å233¹119µ248®201¡65¦93¥72~ +PK~¦114«172¬176¥68¡65¦98¦114«172§228¤163¨236ª186±161ª112¤85¡65¥231·124¦219°202²163¥205¤167¡67 + +¥116¥126«104¬79¥79~|dvips|~¨250¥206¤164¤229~PS~¦114¡65¦98«246·211\ntutocjk¤164»161©250¦119¸203«225¡65©210¦179ª186¤164 +¤229~PS~¦114ª186¹239À179À201·124¦115¦98©243~|CJK.map|~À201¤164¡6789110¥72¦185¤232¦161²163¥205¥105Ä226¦161ª186~|.ps|~ +À201¡65¥178¶183¶105¤64¨66¦97¥72~|gs|~©206~|fontload|~µ165Ã254¦252ª186³110Å233¡65±78~PS~¦114«172¸252¤74¨236¿233¥88 +ª186À201®215¤164¡6789¥72~|fontload|~¦211¨165¡65¦98~UNIX~¨116²206¤85¡65¥105¥72¤85177ª186«252¥79¹70¦168¡71 +\begin{verbatim} + % dvips -P CJK -o cjk-doc-no-ps-fonts-contained.ps cjk_doc.dvi + % fload cjk-doc-no-ps-fonts-contained.ps > cjk-doc-contains-ps-fonts.ps + % lpr cjk-doc-contains-ps-fonts.ps +\end{verbatim} +¦185®201~|cjk-doc-contains-ps-fonts.ps|~©206~|cjk-doc-contains-ps-fonts.ps|~´78 +¬79§185¾227ª186~PS~À201®215¤70¡65¤93´78¬79»161¡65±122¥105¥72¥225¨236¥244¦243¤64¥120¤228´169¦179¦67¦76~PostScript~À201 +®215ª186¦76ª237¾247©206µ123¦161¤70¡67 + +¥72¤87´78¬79§218211¤72¹239~CJK~¤164¤229~\LaTeX~¨116²206ª186³93©119¡65¦179¤72Ä64·78´163¨209¦219¤118ª186¦119¸203¸103Å231¶220¡83 + + +\section{°221Ã68¸209¨77} +\label{sec:trouble-shooting} + +¦98¨207¥206¹119Ä253µ123¦161ª186®201212¡65¥105¯224·124¹74¨236ª186°221Ã68»80¨228¸209¨77ª186¤232¦161¦112¤85¡71 +\begin{itemize} +\item PK~¦114«172§228¤163¨236¡67 +\item ¤163·124¦219°202²163¥205~PK~¦114«172¡67 +\end{itemize} + +[³92¦104°221Ã68»80¨228¸209¨77¤232¦161©124¥188¾227²122¯199¤74] + + +%\section{¨228¥76} +%\label{sec:misc} + + +\section{·80Á194} +\label{sec:acknowledgements} + +\begin{itemize} +\item ¦179³111»242¦104¤72¡65°94Ä109³92¦104¤223¤79¡65§185¦168³92¦104¤232«75¥66¤186®101Â215´73ª186µ123¦161¡67 +\item ¦179§243¦104ª186¨207¥206ª204¡65¨207¥206³111¨199µ123¦161¡65¨207¥76204§243¤87¼104¼211¡67 +\item ³111º216¯83§79ª186¬219¤172¼118Å84¡65¥205¥205¤163®167¦97´96À244µ219¡65¤126´163¤201¤70§218204ª186¥205¬161¼104177¡67 +\end{itemize} + + +%\section{¥187¤229§64ª204} +%\label{sec:the-author} + +%§245§103¦116 (Chun-Yu Lee) +%d791013@ce.ntu.edu.tw ©206 \\ +%chunylee@ms1.hinet.net + + +%\bibliography{READMEb5} +%\bibliographystyle{plain} + + +\begin{thebibliography}{1} + +\bibitem{latex-companion:1993} +Michel Goossens, Frank Mittelbach, and Alexander Samarin. +\newblock {\em The \LaTeX Companion}. +\newblock Addison Wesley, 1993. + +\bibitem{tex-faq:1.9c} +Bobby Bodenheimer. +\newblock The new \TeX\ FAQ --- your 100 questions answered: + Version 1.9c, date 1994/12/06. +\newblock 1994. + +\bibitem{latex2nd} +Leslie Lamport. +\newblock {\em \LaTeX\ --- A Document Preparation System --- User's + Guide and Reference Manual}. +\newblock Addison Wesley, 2 edition, 1994. + +\end{thebibliography} + + +\appendix +\section{¦87µ252¸209Ä192} +\label{sec:terms} + +¤85¦67¦87µ252¬176¥187¤229¤164©210¨207¥206¡65¨195§189173©243¤85¦67·78«228¡71 + +\begin{description} +\item[PK~¦114«172:] PK fonts¡67¤64º216À163Á89¹76ª186Â73°125¦114«172®230¦161¡67¼115ª120¨207¥206¦98~ + TeX/\LaTeX~»221110¿233¥88Â73°125¦114ª186¦97¤232¡67¦112¹119µ248©206¦67¦76¿233¥88¡67¦98¦185°190«252¤164¤229~CJK + PK~¦114«172¡67 +\item[PS~¦114«172:] PostScript Type 1 fonts¡67PostScript~¦114¦179¼198º216«172¦161¡65¥187¤229 + ·78«252~Type 1~¦114«172¡67¨228¦179¨226º216®230¦161¡71PFA (Printer Font Ascii)~¤206~PFB + (Printer Font Binary)¡67¦98¦185°190«252¤164¤229~CJK PS~¦114«172¡67 +\item[¥68¾247¡66¤117§64¯184:] A host computer, work station, etc¡67ª120«252¬89»79´163¨209 + ¸234·189©206ª65°200ª186¹113¸163¡67¦112~FTP~¯184¡67 +\item[CTAN:] Comprehensive \TeX\ Archive Network¡67¥187¤229«252¦172¶176´88¥71©210¦179¦179 + Ã246~TeX/\LaTeX~¨116²206¤206¤229¥243ª186~FTP~¯184¡67¥216«101¤119ª190ª186~CTAN~¸212¦67©243ª254¿253~ + \ref{sec:ctan-mirrors}¡67 +\item[IFCSS:] The CCIC (Chinese Community Information Center) of IFCSS + (Independent Federation of Chinese Students and Scholars)¡67ª254¿253~ + \ref{sec:ifcss-mirrors}~¤164¬79´88211¦179¦87ª186~ifcss~¯184¡67 +\item[AFM~À201®215:] Adobe Font Metrics¡67¦115¦179½115½88¤206¦114½100³242µ165¸234®198¡67 +\item[TFM~À201®215:] \TeX\ Font Metrics¡67 +\item[|.fd|~À201®215:] ¦114«172´121122À201~(font description files)¡67°79¿253¬219Ã246©243¬89¤64 + º216¤186½88¡67 +\item[GS~©206~GhostScript:] ±96¥206ª186~PostScript~»121¨165¸209Ä182¾185¡93interpreter¡94 + ¤167¤64¡67 +\item[|afm2tfm|:] ±78~AFM~À201®215®230¦161Â224´171¦168~TFM~À201®215®230¦161ª186µ123¦161¡67 +\item[¤64²213¦114«172À201:] ¦112ª71¬79¨207¥206À163Á89¹76ª186¦114«172¡65§89¤163¬79¨207¥206~pmC~¶125À89ª186¦114±218¡65 + ¦64¦179~55~211¤108¦114«172À201¡67¨210¦112¡71|b5ka01.pfb|¡66|b5ka02.pfb|¡66¡75¡66 + |b5ka55.pfb|¡67 +\item[\textsf{NFSS}:] New Font Selection Scheme¡67¥209~Frank Mittelbach~ + ©77~Rainer Sch\"opf~©210´163¥88ª186¦114«172¿239¾220¨116²206¡67 +\end{description} + +\section{À201®215¨250±111} +\label{sec:getting-files} + +\begin{description} +\item[\LaTeXe~°245¦230À244¹210¡71] ¤64¯235¬210¦179¦168®77ª186¨116²206¨209¨207¥206ª204Â178³230¦119¸203¡65¦112¦98~DOS~ + ¤85ª186~em\TeX¡70¦98~Linux~¤85¦179~N\TeX¡66~te\TeX~µ165¡70UNIX~¤87«104¦112~web2c~ª186ª169 + ¥187µ165¡67³111¨199³163´178¦98~CTAN~ª186¥216¿253¤85¡67Ä180¦112~em\TeX~¦98~ + |systems/|\linebreak[1]|msdos/|\linebreak[1]|emtex|~¤164¡70N\TeX~¦98¡83¡83¡70 + web2c~ª186ª169¥187¦98¡83¡83¡67\LaTeXe~¨116²206¥187¨173«104¦98~CTAN¡71 + |macros/|\linebreak[1]|latex/|\linebreak[1]|base|~¤85¡67 +\item[\LaTeXe~CJK~¨116²206¡71] CTAN: |language/chinese/CJK|~©206~IFCSS host: + |tex/|\linebreak[1]|CJK.X_X.|\linebreak[1]|tar.gz|¡67 +\item[NTU TrueType~¦114«172¡71] IFCSS host: |fonts/big5/ms-win|¡67±78·162®209¡66©250 + Å233¡66¥233§186Å233µ165³161¤192¡93©206¥254³161¡94ª186~ARJ~À201¨250¦94«225¡65°209¦210»80³111¨199¦114«172¦98¦80¤64¥216¿253 + ª186»161©250À201¡93©206°209¦210ª254¦98\ntutocjk¤164ª186~|README|~À201¡94¡65±78¨228Á217236¦168211§79~TTF~ + ¦114«172¡67 +\item[\textsf{ntu2cjk, ttf2pk}:] ¦114«172²163¥205µ123¦161¡67¥166¥93§116¦98~¡167\LaTeXe\ CJK~ + ¨116²206¡168¤164¡67 +\item[GhostScript:] CTAN: + |support/|\linebreak[1]|ghostscript/|\linebreak[1]|aladdin|~©206~ + |support/|\linebreak[1]|ghostscript/|\linebreak[1]|gnu|¡67 +\item[|dvips|:] CTAN host: UNIX~ª169¦98~|dviware/dvips|¡70DOS~ª169¦98~ + |systems/msdos/|\linebreak[1]|dviware/|\linebreak[1]|dvips/|% + \linebreak[1]|dvips558.pc|¡67 +\item[|afm2tfm|:] ¥93§116¦98~dvips~¨116²206¤164¡67 +\item[|ps2pk|:] CTAN: |fonts/utilities/ps2pk|¡65©206¥93§116¦98¤64¯235®77¸203ª186~ + \TeX/\LaTeX~¨116²206¤164¡67 +\item[|gsftopk|:] CTAN: |fonts/utilities/gsftopk|¡65©206¥93§116¦98¤64¯235®77¸203ª186~ + \TeX/\LaTeX~¨116²206¤164¡67 +\item[|dvi2|xx:] ¦112~|dvilj|¡66|dvidm|¡66¡75¡67¦98~CTAN: |dviware|~¥216¿253¤85¡67 +\item[AUC\TeX:] CTAN: |support/auctex|~¥216¿253¤164ª186~ + |auctex.tar.gz|\linebreak[1]¡93~unix~¡94©206~|auctex.zip|~¡93dos¡94¡67 +\item[|fontload|:] CTAN: |fonts/utilities/fontload|¡67 +\item[Mule~ª186¤164¤229¿233¤74ª107¡71] IFCSS: |mule/lisp/quail-b5|¡67 +\end{description} + + +\section{¨228¥76¬219Ã246ª186³110Å233»80¤117¨227} +\label{sec:other-stuffs} + +\subsection{¦98~Linux~¨116²206¤87ª186\bigfive¤164¤229¨116²206¤206¼210À192²215º221¾247µ123¦161} +\label{sec:chinese-systems} + +\begin{itemize} +\item chdrv +\item yact +\item CXterm +\item xcin +\end{itemize} + +\subsection{¤164¤229½115¿232\ -- Mule} +\label{sec:mule} + +¨207¥206~Mule~¬176½115¿232¤164¤229~\LaTeX~¤229¥243ª186¤117¨227ª186¨207¥206ª204¡65¥105±78¤85177ª186³93©119¥91¦220~ +|$HOME/|\linebreak[1]|.emacs|~À201¤164¡71 +\begin{verbatim} + ;;; Chinese Big-5 environment + (set-primary-environment 'chinese) + (set-default-file-coding-system '*big5*) + (setq display-coding-system '*big5*) + (setq keyboard-coding-system '*big5*) + ;; input methods + (add-hook 'quail-package-alist '("tsangchi-b5" "quail/tsangchi-b5")) + (add-hook 'quail-package-alist '("quick-b5" "quail/quick-b5")) + ; the default input method + (setq-default quail-current-package + (assoc "tsangchi-b5" quail-package-alist)) +\end{verbatim} + +¤193´171¤16494¤229¿233¤74¥105«246~|C-]|¡65110¿239¾220¨228¥76ª186¿233¤74ª107¥105«246~|M-s|¡93|Alt-s|¡94¡67 + +³93©119¿233¤74ª107®201¥105¿239¾220¦219¤118²223º68ª186¡67¦98~IFCSS Mule~ª186¥216¿253¤164¡93°209¦210²196~ +\ref{sec:getting-files}~¸96¡94¦179¤64¨199¤164¤229¿233¤74ª107¡65¨228¤164¥93¬65¦179¡71 +\begin{center} + \begin{tabular}{ll}\hline + À201®215 & ¹239À179¤167¿233¤74ª107 \\\hline + cns-b5-input.tar.gz & ¤186§116~|tsangchi-b5.el|¡93220¾101¡94¤206 \\ + & |quick-b5.el|¡93Â178©246¡94µ165¿233¤74ª107 \\ + zozy.el.gz & ¹115³252ª96181 \\ + cj.el.gz & 220¾101 \\ + simplex.el.gz & Â178©246 \\ + punct-b5.el.gz & ¼208Â73²197¸185 \\ + qj-b5.el.gz & ¥254§206 \\ + etzy.el.gz & 202¤209ª96181 \\ + boshiamy.el.gz & å70½188¦204 \\ + array30.el.gz & ¦230¦67~30 \\\hline + \end{tabular} +\end{center} + +¥72¤87¬176¸251±96¨163ª186¿233¤74ª107¡67¸211¥216¿253¤164¥231¥93§116¤85¦67¿233¤74ª107¡71 +\begin{center} + \begin{tabular}{ll} \hline + À201®215 & ¹239À179¤167¿233¤74ª107 \\\hline + 4corner.el.gz & ¥124¨164¸185½88 \\ + ctlaub.el.gz & ¼66¿252²187¦161¸102181 \\ + ecdict.el.gz & 94º126Ã227¨229 \\ + hs.el.gz & µ216¶72 \\ + hsu.el.gz & ³92¤243ª96181 \\ + py-b5.el.gz & º126»121«247181 \\ + roman.el.gz & Ã185°168«247181 \\\hline + \end{tabular} +\end{center} + + +Á228¦110ª186~\LaTeX~¤229¥243À201¡65¥105°245¦230~|bg5latex|~½115Ä182¡67¥231¥105§81¥206~|cjk-enc.el|~³111211~ +Emacs Lisp~À201¡65±78¤229¥243¥253¦230Â224´171¦168~|.cjk|~À201¡65¦65¥72~|latex|~¶105¦230½115Ä182¡67§64ª107¬79 +¦98~|~/.emacs|~À201®215¤164¥91¤74¤85¦67¼198¦230¡93¨228¤164¨231¼198~ |write-cjk-file|~½208°209¦210~ +|cjk-enc.txt|~¡94¡71 +\begin{verbatim} + (load-library "cjk-enc") + + (defun write-cjk-file () + "Save current buffer and <buffername>.cjk in *cjk-coding*" + (interactive) + (setq coding file-coding-system) + (setq bufname (buffer-file-name)) + (string-match "\\(.*\\)\\.[^/]*$" bufname) + (setq body (substring bufname 0 (match-end 1))) + (setq newbufname (concat body ".cjk")) + (message "Saving %s and %s" bufname newbufname) + (write-file newbufname *cjk-coding*) + (write-file bufname coding)) +\end{verbatim} +¤167«225«75¥105¦98¨67¦184110°245¦230~|latex|~«101¡65¥206~|M-x write-cjk-file|~©82¥79¥253¦115À201¡65 +µ77«225¦65¥72~|latex|~½115Ã182¥68À201¦87»80±122ª186¤229¥243¥68À201¦87¤64¼203¡65¦253©181¦249À201¦87¬176~|.cjk|~ +ª186À201®215¡67 + +\subsection{\TeX/\LaTeX~ª186¦110À176¤226\ -- AUC\TeX} +\label{sec:auctex} + +Â178©246«252¤222¡71 +\begin{enumerate} +\item ·211²196~\ref{sec:mule}~¸96ª186¤232¦161±78~Mule~³93©119§180·237¡67 +\item «246·211~AUC\TeX~ª186¦119¸203«252¥220¦119¸203¡67©206«246·211~AUC\TeX~ª186~default~¤232¦161¦119¸203¡67 + ¤85¦67¼198¶181¥105°181¥105¤163°181¡67 +\item «216¥223¤64211~|bg5latex-batch|~À201¡65¤192§79¦112¤85¡71 + \begin{verbatim} + #! /bin/sh + f=`echo $1 | sed -e 's|\(.*\)\.[^/]*$|\1|'` + bg5conv < $1 > $f.cjk + latex \\nonstopmode\\input{$f.cjk} + \end{verbatim} +\item \label{CJK-C-cC-c}¦98~|.emacs|~¤164¥91¤74¡71 + \begin{verbatim} + (setq TeX-command-list + (append TeX-command-list + '(("CLaTeX" "bg5latex-batch %s " TeX-run-LaTeX nil t) + ("CLaTeX Interactive" "bg5latex %s " TeX-run-interactive nil t) + ("CPrint" "fload %f | lpr" TeX-run-command t nil) + ))) + \end{verbatim} + «104¥105¦98°245¦230~|C-c C-c|~©206~|C-c C-r|~®201¡65¦98110¿233¤74~|LaTeX|~ª186®201¾247¡65¿233¤74~ + |CLaTeX|¡67 +\item ¦98~|.emacs|~¤164¥91¤74¤85¦67¼198¦230¡65¥72«75±122ª186¤229¥243¦98±198ª169®201¡93¥254¤229«104°245¦230 + ~|C-c C-c CLaTeX|~¡65°207°236¥206~|C-c C-r CLaTeX|¡94¡6589¦179¿249»126¥105¥206~|C-c `|~ + ¬100Å231¿249»126©210¦98¡65¨195¥105§243¥191¤167¡67 + \begin{verbatim} + (add-hook 'TeX-translate-location-hook + '(lambda () + (if (string-match "\\(.*\\)\.cjk$" file) + (setq file + (concat + (substring file + (match-beginning 1) + (match-end 1)) + ".tex"))))) + \end{verbatim} +\item ©206ª204±122¦210¼123¥206~|cjk-enc.el|¡65«104¦98~|.emacs|~¤164¥91¤74¤85¦67¼198¦230¡71 + \begin{verbatim} + (defun TeX-run-CJK-LaTeX (name command file) + "Create a process for NAME using COMMAND to format + FILE with CJK/LaTeX." + (write-cjk-file) + (TeX-run-LaTeX name command file)) + + (if (not (assoc "CJKLaTeX" TeX-command-list)) + (setq TeX-command-list + (append TeX-command-list + '(("CJKLaTeX" "%l '\\nonstopmode\\input{%s.cjk}'" + TeX-run-CJK-LaTeX nil t) + )))) + \end{verbatim} + ¥117110±78¤87122¨207¥206~|CLaTeX|~ª186®201¾247¡65§239¦168¨207¥206~|CJKLaTeX|~§89¥105¡67¬100¿249¦80¼203¥206 + ~|C-c `|~¡67 + + ¦253110ª96·78¡65¨207¥206~|CJKLaTeX|~®201¡65¤229¥243¤164½208¤163110¨207¥206~|\usepackage{CJK}|~©206 + Ã254¦252ª186©82¥79¡67 +\end{enumerate} + +ª96·78¡65¤87122¨66Æ74¥117¾65¥206³230¤64~CJK \LaTeXe~¤229¥243¡67 + +% Not ready yet... +%¦112ª71¦98±122ª186¤229¥243¤164¦179¥206¨236~|\include|~³111211©82¥79¡65¦211±122¤180·81¥206¨236~AUC\TeX~ª186¥92¯224¡65 +%¥105§64¦112¤85ª186¥216¿253¦119±198¡71 + +% ./ ==> ¥187¼104¥216¿253¡65236©108¤229¥243¤167©241¸109¥216¿253¡67 +% ../ ==> ¤87¼104¥216¿253¡65¸109©241¥209~latex~«101¥209~bg5conv~Â224´171¹76ª186~|.cjk|~À201¡93¦93¦185 +% 89¦98¦185¤87¼104¥216¿253¤164¦179236©108¤229¥243¡65«104»221¯83§79ª96·78¡65¤163110¨207¥206»80¥187¼104¥216¿253¤164¦80¦87ª186 +% ¤229¥243¡94¡67¥116¥126¥93§116¤64~|Makefile|~¡93°209¦210¹207~ +% \ref{fig:makefile-for-multifile-latexing}~¤167¨210¤108¡94¡65¨228¤186®101¥68110¬176¦98¨67 +% ¦184~latex~«101¡65§243·115~|.cjk|~À201¡67 + +% \begin{verbatim} +% #! /bin/sh +% make bg5conv +% cd CJK +% latex \\nonstopmode\\input{$1} +% \end{verbatim} + + +% \begin{lrbox}{\myex} +% \begin{minipage}{.9\textwidth} +% \footnotesize +%\begin{verbatim} +%TEXs = abstract.tex archi.tex codebase.tex conclude.tex details.tex \ +% dsgnbase.tex engtool.tex examples.tex introd.tex kb_lsp.tex \ +% pjfinal.tex prg_gi.tex prg_s2c.tex related.tex represnt.tex \ +% sscdcb.tex sscddb.tex sscdgi.tex sta2con.tex title_pg.tex +%MISC = Makefile LaTeXsrc +%RCSs = $(wildcard $(SRCDIR)/*,v) + +%SRCDIR = CJK + +%.PHONY: check_srcdir bg5conv default + +%.DEFAULT: .tex .sty .bib .dvi .ps .lj .toc .lof .lot + +%default: +% @echo "There are the following targets:" +% @echo " bg5conv : Big5 CJK LaTeX file converted to LaTeX file." + +%bg5conv: check_srcdir $(TEXs) + +%check_srcdir: +% @if [ -f LaTeXsrc ]; then \ +% echo "Don't make at the LaTex source directory!"; \ +% echo "Copy the Makefile to upper directory and make there."; \ +% echo "e.g., cp Makefile ..; cd ..; make"; \ +% exit 1; \ +% fi +% @if [ ! -d $(SRCDIR) ]; then \ +% echo "$(SRCDIR) not found!"; \ +% exit 1; \ +% fi + +%$(TEXs): %.tex : $(SRCDIR)/%.tex +% bg5conv < $< > $@ +%\end{verbatim} +% \end{minipage} +% \end{lrbox} + +% \begin{figure}[htbp] +% \begin{center} +% \leavevmode +% \framebox[.9\texwidth]{\myex} +% \caption{À179¥73¦104171~CJK~¤229¥243À201ª186~Makefile~½100¨210¡67} +% \label{fig:makefile-for-multifile-latexing} +% \end{center} +% \end{figure} + + + +\section{CTAN¦98¦85¦97ª186À201®215°207} +\label{sec:ctan-mirrors} +(¥187¸96º75¦219~CTAN host~¤87ª186~README.mirrors) + +¬176´238¤214º244¸244¤87ª186116²252¡65«216Ä179©210¦179¨207¥206~CTAN~¸234·189ª186º244¤205¡65¯224¨207¥206·237¦97ª186©206³204ª241ª186~ +CTAN host¡67 + +¥216«101¤119ª190½198»115³161¤192~CTAN~À201®215ª186~FTP~¯184: +\begin{verbatim} + ftp.fcu.edu.tw (Taiwan) /pub2/tex + gate.sinica.edu.tw (Taiwan) /TeX + ftp.adfa.oz.au (Australia) /pub/tex/ctan + ftp.germany.eu.net (Deutschland) /pub/packages/TeX + ftp.uu.net (Virginia, USA) /pub/text-processing/TeX + nic.switch.ch (Switzerland) /mirror/tex + sunsite.dsi.unimi.it (Italia) /pub/TeX + sunsite.snu.ac.kr (Korea) /shortcut/CTAN +\end{verbatim} + +¥216«101¤119ª190½198»115¥254³161~CTAN~À201®215ª186~FTP~¯184: +\begin{verbatim} + dongpo.math.ncu.edu.tw (Taiwan) /tex-archive + ftp.ccu.edu.tw (Taiwan) /pub/tex + cis.utovrm.it (Italia) /TeX + ctan.unsw.edu.au (NSW, Australia) /tex-archive + ftp.center.osaka-u.ac.jp (Japan) /CTAN + ftp.cdrom.com (West coast, USA) /pub/tex/ctan + ftp.comp.hkbu.edu.hk (Hong Kong) /pub/TeX/CTAN + ftp.cs.rmit.edu.au (Australia) /tex-archive + ftp.cs.ruu.nl (The Netherlands) /pub/tex-archive + ftp.cstug.cz (The Czech Republic) /pub/tex/CTAN + ftp.duke.edu (North Carolina, USA) /tex-archive + ftp.ee.up.ac.za (South Africa) /tex-archive + ftp.funet.fi (Finland) /pub/TeX/CTAN + ftp.gwdg.de (Deutschland) /pub/dante + ftp.jussieu.fr (France) /pub4/TeX/CTAN + ftp.loria.fr (France) /pub/unix/tex/ctan + ftp.mpi-sb.mpg.de (Deutschland) /pub/tex/mirror/ftp.dante.de + ftp.nada.kth.se (Sweden) /pub/tex/ctan-mirror + ftp.rge.com (New York, USA) /pub/tex + ftp.riken.go.jp (Japan) /pub/tex-archive + ftp.tu-chemnitz.de (Deutschland) /pub/tex + ftp.uni-augsburg.de (Deutschland) /tex-archive + ftp.uni-bielefeld.de (Deutschland) /pub/tex + ftp.unina.it (Italia) /pub/TeX + ftp.uni-stuttgart.de (Deutschland) /tex-archive (/pub/tex) + ftp.univie.ac.at (\"Osterreich) /packages/tex + ftp.u-aizu.ac.jp (Japan) /pub/tex/CTAN + ftpserver.nus.sg (Singapore) /pub/zi/TeX + kadri.ut.ee (Estonia) /pub/tex + src.doc.ic.ac.uk (England) /packages/tex/uk-tex + sunsite.icm.edu.pl (Poland) /pub/CTAN + sunsite.queensu.ca (Canada) /pub/tex-archive + sunsite.unc.edu (North Carolina, USA) /pub/packages/TeX + wuarchive.wustl.edu (Missouri, USA) /packages/TeX +\end{verbatim} + +¨226211¥68110ª186~CTAN~¥68¾247: +\begin{verbatim} + ftp.dante.de (Deutschland) + -- anonymous ftp + /tex-archive (/pub/tex /pub/archive) + -- gopher on node gopher.dante.de + -- e-mail via ftpmail@dante.de + -- World Wide Web access on www.dante.de + -- Administrator: <ftpmaint@dante.de> + + ftp.tex.ac.uk (England) + -- anonymous ftp + /tex-archive (/pub/tex /pub/archive) + -- gopher on node gopher.tex.ac.uk + -- NFS mountable from + nfs.tex.ac.uk:/public/ctan/tex-archive + -- World Wide Web access on www.tex.ac.uk + -- Administrator: <ctan-uk@tex.ac.uk> +\end{verbatim} + + +\section{IFCSS~¦98¦85¦97ª186~FTP~¯184} +\label{sec:ifcss-mirrors} + +¥68110ª186~IFCSS~¯184¡71 \verb|ftp.ifcss.org:/pub/software| + +¨228¥76ª186~FTP~¯184: +\begin{verbatim} +Taiwan: ftp.edu.tw:/Chinese/ifcss/software [full] + ftp.ntu.edu.tw:/Chinese/ifcss/software [full] + iiiafs.iii.org.tw:/Chinese/ifcss/software [full] +CHINA, + Beijing: info.bta.net.cn:/pub/software [partial] + Guangdong: + info.gz.gdpta.net.cn:/pub/mirror/chnsoftware [partial] + Shanghai: info.sta.net.cn:/pub/software [partial] +HONG KONG,: ftp.cuhk.hk:/pub/chinese/ifcss/software [full] +SINGAPORE,: ftp.technet.sg:/pub/chinese [full] +USA, + California: cnd.org:/pub/software [full] + New Mexico: phaiakon.nmsu.edu:/pub/software [full] +\end{verbatim} + +%% start of trailer +\newpage +\end{CJK*} + +\end{document} + +%% Local Variables: +%% TeX-header-end: "%+ *[Ee]nd[ -]*[oO]f[ -]*[hH]eader" +%% TeX-trailer-start: "%+ *[Ss]tart[ -]*[oO]f[ -]*[tT]railer" +%% TeX-command-default: "CLaTeX" +%% TeX-master: t +%% End: diff --git a/Master/texmf-dist/doc/latex/CJK/doc/commands.txt b/Master/texmf-dist/doc/latex/CJK/doc/commands.txt new file mode 100644 index 00000000000..2b4ba0556e3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/commands.txt @@ -0,0 +1,375 @@ +This is the file commands.txt of the CJK macro package ver. 4.6.0 +(11-Aug-2005). + +Here is a list of all commands of CJK. + + +\begin{CJK}[<fontencoding>]{<encoding>}{<family>} +... +\end{CJK} + + This starts a CJK environment. + + Possible values for <encoding> are: + `Bg5', `Bg5+', `GB', `GBt', `GBK', `JIS', `SJIS', `KS', `UTF8', + `EUC-TW', `EUC-JP'. + + [`CNS1'-`CNS7', `CEFX', `CEFY' are also possible but make no + sense. These are used with CEF and Mule. The same holds for + `JIS2'.] + + Possible values for <fontencoding> are: + `' (empty, the default), `pmC' (for Bg5, GB, GBt, JIS, KS), + `dnp' (for JIS and SJIS), `wn' (for JIS), `HL' (for KS). + + Possible values for <family> are defined in the FD files which must + be configured for the available fonts. If empty, the default value + (`mj' for KS encoding, `song' for the rest) is used. + + Families can be changed with \CJKencfamily on a per-encoding base + and with \CJKfamily for all encodings. \CJKfamily overrides + \CJKencfamily; to have \CJKencfamily active you must assure that the + `family' parameter of the CJK environment is empty or that + \CJKfamily is defined as empty (inside the environment). + + Font encodings can be changed on a per-encoding base with + \CJKfontenc; \CJKenc always uses the specified font encoding. + + The hook \CJKhook is called on initializing the environment (used + by cjk-enc.el and VTeX, for example). + + Newlines and spaces after a CJK character are retained. If you want + to suppress a newline, finish the line with `%'. + + See also \CJKspace and \CJKnospace. + + +\begin{CJK*}[<fontencoding>]{<encoding>}{<family>} +... +\end{CJK*} + + The same as the CJK environment except that newlines and spaces + after a CJK character are swallowed. If you want a space after a CJK + character you must protect it (e.g., use `\ '). + + See also \CJKspace and \CJKnospace. + + +Text containing CJK characters should start with a fresh line (in the source +file, not in the output) after activating a CJK environment because TeX has +already read in the characters of the current line as non-active characters. + +You can stack CJK environments (i.e., saying \begin{CJK}...\end{CJK} again +inside of a CJK environment) if you have not set the `global' package +option, but it is possible that TeX's `save size' overflows. Use \CJKenc, +\CJKfontenc, \CJKfamily, and \CJKencfamily instead. See CJK.txt for CJK +package options which modify the scope of the CJK environment. + +To have different encodings/families on the same input line you must use +\CJKenc, \CJKfontenc, \CJKfamily, and/or \CJKencfamily. + +If you use cjk-enc.el, you should NOT open a CJK (or CJK*) environment! It +is done automatically. See cjk-enc.txt for details. + + +============================================================================== + + +The following commands are defined (or make sense) only inside of a CJK or +CJK* environment (except \CJKbold, \CJKnormal, \CJKencfamily, \CJKfontenc, +\CJKverbatim, \CJKhangul, \CJKhanja, \CJKhwkatakana, \CJKnohwkatakana, +\CJKaddEncHook, \CJKtolerance, \CJKboldshift). + + +\CJKcaption{<caption>} Load <caption>.cpx, a language/encoding specific + caption file. You need the SCRIPT style files of the + koma-script package to fully use them (see CJK.txt + for details). + + <caption>.cpx is a preprocessed version of + <caption>.cap. + + Example: + + \begin{CJK*}{Bg5}{song} + \CJKcaption{Bg5} + ... + \end{CJK*} + + +\CJKchar[<enc>]{<byte1>}{<byte2>} + Insert a CJK character literally. <byte1> and + <byte2> are the first and second byte of the CJK + character (in the selected encoding), the optional + parameter selects the encoding. You can use decimal, + hexadecimal, or octal notation. <byte1> and <byte2> + can be both in 7bit or 8bit (GL or GR) + representation. To select Unicode characters you + must specify `UTF8' encoding (but enter real Unicode + values). + + Examples: + + \CJKchar[Bg5]{217}{223} + \CJKchar[CNS1]{"57}{"4C} + \CJKchar[UTF8]{"0D9}{"04F} + + +\CJKenc{<encoding>} Change encoding. Contrary to \begin{CJK}{...}{...} + it is not necessary to start a new line after + \CJKenc. This command always uses the font encoding + selected with \CJKfontenc. + + \CJKenc acts globally if the `global' option is set. + + See fonts.txt for a mapping table between CJK + encoding names and the names of the FD files + finally used. + + Use the macro \CJKaddEncHook to add commands which + should be executed when a certain encoding is + selected. + + +\CJKfamily{<family>} Change family for all encodings. This command + overrides \CJKencfamily; to reactivate \CJKencfamily + say `\CJKfamily{}'. + + \CJKfamily acts globally if the `global' option is + set. + + +\CJKencfamily[<fontencoding>]{<encoding>}{<family>} + Change family for a certain encoding (and + font encoding). Can be overridden with \CJKfamily. + + The possible values of <family> are defined in the + encoding specific FD files. + + This command makes sense outside of a CJK + environment; it acts globally if the `global' option + is set. + + +\CJKfontenc{<encoding>}{<fontencoding>} + Change font encoding for a certain encoding. If you + select an encoding with \CJKenc, the font encoding + specified with \CJKfontenc for this encoding is + chosen. + + This command makes sense outside of a CJK + environment; it acts globally if the `global' option + is set. + + Example: + + \CJKencfamily{GBt}{hei} + \CJKfontenc{JIS}{dnp} + + \begin{CJK*}{Bg5}{fs} % this is equal to + % \begin{CJK*}{}{} + % \CJKenc{Bg5} + % \CJKfamily{fs} + + ... Text in Bg5 fangsong ... % c00fs.fd used + \CJKenc{GB} ... Text in GB fangsong ... % c10fs.fd used + \CJKfamily{kai} ... Text in GB kai ... % c10kai.fd used + \CJKenc{JIS} ... Text in JISdnp kai ... % c42kai.fd used + \CJKfamily{}% + \CJKenc{GBt} ... Text in GBt hei ... % c20hei.fd used + \end{CJK*} + + +\CJKindent The `classical' indentation for CJK documents is + exactly two ideographic spaces. \CJKindent sets + the paragraph indentation to this value, using + \parindent and the currently active CJK font. + + +\CJKkern To prevent a line break before a CJK character, say + \CJKkern. This command suppresses the insertion of + \CJKglue before the CJK character. + + +\CJKglue If you get overfull \hbox'es caused by CJK + characters, try to increase \CJKglue. The default + definition is + + \newcommand{\CJKglue}{\hskip 0pt plus 0.08\baselineskip} . + + \CJKglue is inserted by CJK between Chinese + characters (punctuation characters as defined in the + punctuation tables use an unbreakable glue; see + CJK.enc). You should separate non-Chinese text from + CJK characters with spaces to enable hyphenation. Or + you can say \CJKtilde. + + +\CJKtilde This command changes the definition of the active + `~' character from an unbreakable space to + + \def~{\hspace{0.25em plus 0.125em minus 0.08em}} . + + +\nbs The original meaning of `~' is preserved within \nbs, + a shorthand for the LaTeX command \nobreakspace. +\standardtilde To return to the original definition of `~' use this + command. + + +\CJKspace +\CJKnospace Switch from CJK to CJK* `mode' (\CJKnospace) or + vice versa (\CJKspace). + + +\CJKverbatim If the `verbatim' package is loaded it is possible + to improve the output automatically, namely, to + avoid breaking of overfull lines in a verbatim + environment. This command installs a hook to + suppress insertion of glue between CJK and Thai + glyphs. + + +\CJKhanja +\CJKhangul \CJKhanja deactivates the use of C61 font encoding + for hangul characters: All fonts used have C60 font + encoding. \CJKhangul is the opposite command. The + default is C61 for hangul. + + Archaic hangul elements (KS 0xA4D5-0xA4FE) and the + character KS 0xA4D4 are only accessible if \CJKhanja + is active. + + Both commands act globally if the `global' option is + set. + + These commands make sense outside of a CJK + environment. + + +\CJKhwkatakana +\CJKnohwkatakana \CJKnohwkatakana deactivates the use of the C49 + font encoding and maps half-width katakana + characters to full-width glyphs instead. + \CJKhwkatakana (the default) is the opposite + command. + + Both commands act globally if the `global' option is + set; they have only effect for SJIS input encoding. + + These commands make sense outside of a CJK + environment. + + +\CJKtolerance If you get overfull \hbox'es caused by KS + characters, try to increase \CJKtolerance. The + default definition is + + \newcommand{\CJKtolerance}{400} . + + Increasing \emergencystretch may help also. + + This command makes sense outside of a CJK + environment. + + +\CJKuppercase If Big 5, SJIS, Bg5+, or GBK characters are used + non-preprocessed, the LaTeX command \MakeUppercase + is disabled (otherwise wrong CJK characters would be + selected). In the unlikely case that you really need + \MakeUppercase, use \CJKuppercase instead. + + This restriction does not exist for preprocessed CJK + files, i.e., files processed with Bg5conv, SJISconv, + CEF5conv, CEFSconv, extconv, or cjk-enc.el, thus + \CJKuppercase is not defined in these cases. + + \CJKuppercase acts globally if the `global' option + is set. + + +\begin{Bg5text} +... +/end(Bg5text) + +\begin{SJIStext} +... +/end(SJIStext) Enable the use of Big 5/SJIS encoded characters + which contain `\', `{', and `}' as second bytes. See + CJK.txt for a complete discussion. You need these + environments only in rare cases where + bg5conv/sjisconv or cjk-enc.el can't be used. + +\begin{Bg5+text} +... +/end(Bg5+text) + +\begin{GBKtext} +... +/end(GBKtext) Enable the use of Big 5+/GBK encoded characters + which contain `\', `{', and `}' as second bytes. See + CJK.txt for a complete discussion. You need these + environments only in rare cases where extconv can't + be used. + + +\Unicode{<byte1>}{<byte2>} + Insert a Unicode character literally. <byte1> and + <byte2> are the first and second byte of the Unicode + character. You can use decimal, hexadecimal, or octal + notation. This command can only be used within UTF 8 + encoding. In all other encodings you must say + \CJKchar[UTF8]{<byte1>}{<byte2>} instead. + + +\CJKCJKchar +\CJKhangulchar +\CJKlatinchar These commands control the handling of + intercharacter glue. Only defined for UTF8 encoding. + \CJKCJKchar selects CJK style (using \CJKglue), + \CJKhangulchar selects hangul style (using + \CJKtolerance) and \CJKlatinchar uses none. Default + is \CJKCJKchar. + + Only 3-byte UTF-8 encoded characters (i.e., Unicode + characters in the range 0x800-0xFFFF) are affected; + two-byte encoded characters is handled as ordinary + characters (i.e., as if \CJKlatinchar were set). + + +\CJKbold +\CJKnormal These commands set and unset the \ifCJK@bold@ flag. + If set, boldface is emulated. + + Both commands are intended to appear in + \DeclareFontShape commands only (usually in FD + files); see fonts.txt for further details. + + +\CJKsymbol The CJK package uses this command instead of \symbol + to print a CJK character; it honours the + \ifCJK@bold@ flag: if set, boldface is emulated by + printing the character three times with slight + horizontal offsets. There should be hardly a reason + to ever use this command explicitly. +\CJKsymbols A similar command specific to HLaTeX font support. + It takes two characters which are then mapped to the + final glyph using TeX's ligature mechanism. + + +\CJKboldshift The horizontal shift used for imitating bold fonts. + Redefine this macro if the default value of 0.015em + is not satisfying. + + These commands make sense outside of a CJK + environment. + + +\CJKaddEncHook{<encoding>}{<body>} + This macro is primarily intended for packages. Use + it to append the code in <body> to a hook for + <encoding> which is executed each time <encoding> is + selected. For an example see CJKnumb.sty . + + +---End of commands.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/dvidrv.txt b/Master/texmf-dist/doc/latex/CJK/doc/dvidrv.txt new file mode 100644 index 00000000000..d655b3a1a53 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/dvidrv.txt @@ -0,0 +1,56 @@ +Using dvidrv.btm [emTeX for DOS and OS/2] +------------------------------------------- + +This batch file does the same as mktexpk does; it is a replacement for +dvidrv.exe of emTeX which can handle ttf2pk, hbf2gf, and ps2pk additionally +(the ps2pk part is untested yet; it uses ps2pkmfj of the 4allTeX +distribution and was basically copied from a similar script, also part of +4allTeX). + +First of all, create and install a set of TFM files as described in the +INSTALL file. + +Then configure the following variables in dvidrv.btm: + + ps2pk ... set it to `yes' if you want to use this program + ttf2pk ... ditto + hbf2gf ... ditto + + pkdir ... the place where PK files created by ps2pk, ttf2pk, + or hbf2gf should go to. dvidrv.btm adds + `\modeless\XXXdpi' or `\modeless\dpiXXX' to this + string (depending on the variables `pre_dpi' and + `post_dpi') + + ttfonts ... where the TrueType fonts files reside + ttfcfg ... where the auxiliary data files of ttf2pk reside + + hbfonts ... where the HBF files reside + hbfcfg ... the place where the hbf2gf configuration files are + +The last four variables in the above list support trailing `!' and `!!' for +recursive directory searching (see the file dvidrv.doc of the emTeX package +for details). + +Alternatively, you can set these variables in the environment; please note +that no spaces are allowed before and after the equal sign, e.g., + + set foo=bar + +is OK, but + + set foo = bar + +fails. + +Rename dvidrv.exe to dvidrv.ori or something similar and copy dvidrv.btm to +a directory in the path. + +Don't forget to update the DVIDRVFONTS and TEXTFM environment variables if +necessary. + +Under OS/2 dvips calls mfjob or hbf2gf itself; under DOS it creates a batch +file which must be called afterwards. + + +--- end of dvidrv.txt --- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/fdxfiles.txt b/Master/texmf-dist/doc/latex/CJK/doc/fdxfiles.txt new file mode 100644 index 00000000000..00413fe300b --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/fdxfiles.txt @@ -0,0 +1,103 @@ +This is the file fdxfiles.txt of the CJK macro package ver. 4.6.0 +(11-Aug-2005). + + +Extended font definition files +============================== + +The CJK package modifies LaTeX's font loading mechanism to input an extended +font definition file (with suffix `.fdx') immediately after a normal font +definition file (with suffix `.fd') has been loaded. A `.fdx' file is +optional. Here a list of useful commands---note that neither whitespace nor +linebreaks produce output while macros are defined in such files, which is +quite convenient. + +Immediately after selecting the proper subfont for a given input character, +the CJK package tests whether a macro + + \<encoding>/<family>/<series>/<shape>/<plane>/<code>/<direction> + +is defined. If it exists, it is executed instead of calling \CJKsymbol. + +For halfwidth katakana, the macro is called + + \<encoding>/<family>/<series>/<shape>/<code>/<direction> + +For fonts from HLaTeX the macro is called + + \<encoding>/<family>/<series>/<shape>/<byte1>/<byte2>/<direction> + +For UTF-8, only characters in the range 0x800-0xFFFF execute the test for +this macro. + +<code>, <byte1> and <byte2> are decimal numbers; <direction> is either `v' +or `h'. + +The following commands are intended for `.fdx' files: + +o For vertical writing, \CJKvdef should be used to (globally) define the + macros described above. It always prepends `<encoding>/<family>/'. + Example from c00bsmi.fdx: + + \CJKvdef{m/n/01/1}{\def\CJK@plane{v}\selectfont\CJKsymbol{4}} + + This defines macro `\C00/bsmi/m/n/01/1/v': If glyph 1 in subfont `01' + (`bsmilp01' in this example) should be typeset, it is replaced with + glyph 4 from subfont `v' (`bsmilpv'). + + \CJKhdef is the equivalent for horizontal writing. + +o Another macro is \CJKvlet, performing a global \let. Example (again + from c00bsmi.fdx): + + \CJKvlet{bx/n/01/1}{m/n/01/1} + + This makes `\C00/bsmi/bx/n/01/1/v' the same as `\C00/bsmi/m/n/01/1/v'. + + \CJKhlet is the equivalent for horizontal writing. + +CJKvert.sty provides additional macros: + +o Glyphs which shouldn't be rotated are available with \CJKsymbolsimple. + Here an example from c10gbsn.fdx: + + \CJKvdef{m/n/01/17}{\CJKsymbolsimple{17}} + + If glyph 17 in subfont `01' (`gbsnlp01') is requested, it is replaced + with itself but unrotated. + +o Some correction parameters are available to position glyphs of a given + font (i.e., all subfonts) while \CJKvert is active. + + \CJKvdef{norotate}{} + + The default of CJKvert.sty is to rotate all glyphs using the graphicx + package. If `norotate' is present in a `.fdx' file, glyphs accessed + with \CJKsymbol are not rotated. `fullheight', `height' and `offset' + are used only if `norotate' is not set. + + \CJKvdef{fullheight}{<dimension>} + + If defined, it sets the full height (height plus depth) of all CJK + glyphs accessed with \CJKsymbol to <dimension>. In most cases this + value is 1em. + + \CJKvdef{height}{<dimension>} + + If defined, it defines the height of all CJK glyphs accessed with + \CJKsymbol. Consequently, the depth is set to `fullheight - height'. + For example, the AFM file for `bsmilp01' gives 879 PS units for the + `Ascender' value. Since 1em is 1000 PS units, a proper value for + the `height' parameter is 0.88em. + + \CJKvdef{offset}{<dimension>} + + If defined, shift the (rotated) glyphs accessed with \CJKsymbol + vertically by <dimension>. + + \CJKvdef{simpleoffset}{<dimension>} + + If defined, shift all glyphs accessed with \CJKsymbolsimple vertically + by <dimension>. + +---End of fdxfiles.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/fonts.txt b/Master/texmf-dist/doc/latex/CJK/doc/fonts.txt new file mode 100644 index 00000000000..12bfb39ace4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/fonts.txt @@ -0,0 +1,254 @@ +This is the file fonts.txt of the CJK macro package ver. 4.6.0 +(11-Aug-2005). + +The fonts +--------- + +This file describes how to set up CJK fonts inside of LaTeX 2e. For a +description how to install TrueType or bitmap fonts please refer to the +INSTALL file. + + +CJK.sty uses NFSS (New Font Selection Scheme, part of LaTeX 2e) which has +some advantages over the font selection offered with pmC (for plain TeX and +LaTeX 2.09): + + o TeX fonts are loaded only on demand. This is especially useful with + Asian logographs. If you have e.g., three Chinese characters in your + text, pmC must load the whole Chinese font (about 85 TeX subfonts), + whereas LaTeX 2e loads only three subfonts normally. + + o As long as the limit of 256 TeX fonts is not exceeded, you can use + as many CJK fonts as you like (e.g., simplified and traditional + Chinese characters together with Japanese fonts in different sizes) + ---pmC is limited to two sizes and can only have two CJK fonts at + the same time. + + In the web2c TeX package (for Unix) you find a patch which allows + the use of more than 256 TeX fonts (up to about 1000; this is a + standard feature of web2c 7.2 and newer versions). + + Omega can use up to approx. 65000 fonts. + + o You need not care about the right size of CJK fonts in footnotes, + etc. They obey the NFSS (except encoding). + + Of course you must have access to CJK fonts. + + . Use pdftex and dvipdfmx which can handle TrueType fonts directly. + It is very easy to set up dvipdfmx for handling CJK subfonts; with + pdftex this is more complicated. See the file doc/pdf/HOWTO.txt + for more information. + + . Use fontforge to convert TrueType fonts to PS subfonts. Such + subfonts work with virtually all dvi drivers. The directory + utils/subfonts contain some scripts which help in the conversion + process. + + . Use hbf2gf for HBF pixel fonts to convert them to TFM and PK + fonts. + + . Use ttf2pk (and ttf2tfm) to convert TrueType fonts to TFM and PK + fonts. + +If you chose one font per active character as with the pmC macros, you would +waste character space (256 characters per font are possible starting with +TeX 3). Therefore CJK.sty expects the whole CJK font split in TeX subfonts +with 256 characters each. + +An example: + + GuoBiao-encoded simplified characters in song style at 12pt: + ^ ^ ^^ ^^ + + first byte second byte TeX subfont offset + ----------------------------------------------- + 0xA1 0xA1-0xFE gsso1201 0 + 0xA2 0xA1-0xFE gsso1201 94 + 0xA3 0xA1-0xE4 gsso1201 188 + 0xA3 0xE5-0xFE gsso1202 0 + 0xA4 0xA1-0xFE gsso1202 26 + 0xA5 0xA1-0xFE gsso1202 120 + . + . + . + 0xFE 0xA1-0xFE gsso1235 38 + + +To convert bitmap fonts to PK files with hbf2gf, you must get the +appropriate HBF (Hanzi Bitmap Font) header files or create if you can't find +the right one; these HBF files document CJK fonts completely. + +The HBF specification can be found here: + + http://www.ibiblio.org/pub/packages/ccic/software/info/HBF-1.1/ + +Various bitmap fonts together with HBF header files are collected here: + + http://www.ibiblio.org/pub/packages/ccic/software/fonts/ + + +The font definition files +------------------------- + +CJK fonts can be installed as easy as normal TeX fonts! (Well, probably this +is the first time you have to install a font for TeX---I strongly recommend +that you process and read the `fntguide' documentation which is part of the +LaTeX 2e base package. There you can also find a description of size +commands.) + +CJK.sty defines six new size commands: + + `CJK' corresponds to `' (empty) + `sCJK' corresponds to `s' + `CJKfixed' corresponds to `fixed' + `sCJKfixed' corresponds to `sfixed' + `CJKsub' corresponds to `sub' + `CJKssub' corresponds to `ssub' . + +For dnp fonts (i.e., real dnp fonts and Watanabe dnp fonts) and Watanabe +jfonts (which both use the same font encoding scheme) two additional +commands are provided: + + `DNP' corresponds to `' (empty) + `DNPgen' corresponds tp `gen' . + +Note that PS Wadalab fonts don't use these size functions (but are still in +DNP font order). + +For poor-man's boldface these size commands have been defined: + + `CJKb', `sCJKb', `CJKfixedb', `sCJKfixedb', `DNPb', `DNPgenb' . + +They are completely identical to its counterparts without the final `b'. The +only reason to use them is to make the fifth parameter of \DeclareFontShape +for bold series different from the one for medium series (LaTeX2e uses this +parameter as a macro name to execute loading-settings, thus they must not be +equal). + +The difference between the size functions just introduced and the original +commands defined by LaTeX 2e is that a CJK size function defines a class of +fonts: if you say as an example + + \DeclareFontShape{C00}{song}{m}{n}{<6> <7> <8> sCJKfixed * b5so07}{} , + +LaTeX 2e searches for fonts named b5so0701 - b5so0755 if the font size is 6, +7, or 8 pt; with other words, the CJK size functions append two digits to +the font name to select the proper subfonts. These digits are defined in the +`\CJK@...Encoding' macros; the macro \CJK@plane holds the current value (in +pmC compatibility mode and for UTF8 encoding, \CJK@plane holds hexadecimal +numbers; see JISdnp.enc for the dnp subfont names which are again +different). + +Here a more detailed example: + + \DeclareFontFamily{C10}{fs}{} + + \DeclareFontShape{C10}{fs}{m}{n}{<-> CJK * gsfs14}{} + \DeclareFontShape{C10}{fs}{bx}{n}{<-> CJKb * gsfs14}{\CJKbold} + +This defines a GB encoded font (LaTeX font encoding `C10') which has +fangsong shape (fs) in medium series (m) and emulated bold extended (bx) +series. The names of the subfonts are gsfs1401 - gsfs1432; all sizes are +available. (This is actually a font definition for a bitmap font which +corresponds to a size of 14pt if the printer resolution were 300 dpi; hbf2gf +magnifies it to any desired size.) + +The corresponding CJK environment would be + + \begin{CJK*}{GB}{fs} + ... + \end{CJK*} . + +To be consistent with the CJK package it is recommended that for each font +shape `m' and `bx' series are defined (some PS font styles from PSNFSS +define `b' instead of `bx'; in this case you should add a font substitution +entry in the FD file). The default CJK FD files define a `song' shape for +each encoding except for KS so that + + \begin{CJK*}{your-encoding}{} + ... + \end{CJK*} + +works (note the empty last parameter). See below for an additional reason. + +Here a table of the CJK (font) encodings and the corresponding NFSS font +encodings. + + Chinese: Bg5 C00 + Bg5pmC C01 + Bg5+ C09 + + GB C10 + GBpmC C11 + GBK C19 + + GBt C20 + GBtpmC C21 + + CNS1-7 C31-37 + + Japanese: JIS C40 + JISpmC C41 + JISdnp C42 + JISwn C43 + + JIS2 C50 + JIS2dnp C52 + + SJIS -> kana C49 (additionally) + + Korean: KS -> hanja C60 + -> hangul C61 + KSpmC C62 + KSHL -> hangulHL C63 + -> symbolHL C64 + -> hanjaHL C65 + + Unicode: UTF8 C70 + + CEF: CEFX C80 + CEFY C81 + + [Thai: C90] + + +Some remarks: + + o An NFSS font encoding for the CJK package consists of the letter `C' + followed by two digits; the first represents the CJK (input) + encoding, the second the CJK font encoding. Some CJK encodings need + more than one NFSS encoding to fully represent all characters. + + Note: Since LaTeX version 1996/12/01, the name of an FD file + consists only of lowercase letters, e.g., c00fs.fd. + + o You can't use the NFSS encodings (as defined above) directly! You + should always use the CJK interface (the exception is Thai; please + read cjk-enc.txt and thaifont.txt for details). + + o According to the NFSS rules the family name must not be longer than + five characters. In early versions of CJK the family `fangsong' was + used. This is no longer allowed and has been replaced with `fs'. + + This restriction is mainly for ancient operating systems like MS-DOS + which are limited to 8.3 filenames; today, there is no reason any + more to artificially shorten the family name. + + o If you declare an NFSS font encoding in the standard way the + corresponding FD file for the default font is loaded. Since a font + encoding can be defined only in the preamble, all CJK font encodings + must be registered before the document starts even if you use only + one or two encodings. For the CJK package this would cause the + loading of almost 30 font definition files (see the table above) + which is inacceptable. + + To avoid this overhead NFSS is faked with some rudimentary + definitions just enough to pass the NFSS tests of LaTeX 2e. Of + course this has a disadvantage: an unknown CJK family causes an + error instead of switching to the fallback family usually defined + with \DeclareFontSubstitution. Nevertheless, replacing an undefined + series or shape works correctly. + + +---End of fonts.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/history.2_5 b/Master/texmf-dist/doc/latex/CJK/doc/history.2_5 new file mode 100644 index 00000000000..f81f09a7d36 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/history.2_5 @@ -0,0 +1,202 @@ +This file is part of the CJK package Ver. 4.6.0 (11-Aug-2005). + +The history of the beta versions of the never released version 2.5 . +-------------------------------------------------------------------- + +Changes beta 1 -> beta 2: + hbf2gf: faster (search_min_max() removed) + feof() seems to be broken under Amiga gcc 2.6.3; replaced with + == EOF, etc. + some small bug fixes and typos + default value of target_size is now design_size (and not 10 pt) + +Changes beta 2 -> beta 3: + ttf2pk: ttfdir must now be defined only once (in MakeTeXPK/maketexp.btm) + ttf2pkl instead of ttf2pk at some places erroneously used + an updated (and modified) version of MakeTeXPK is used + Makefile under Unix erroneously used FS=MSDOS + +Changes beta 3 -> beta 4: + ttf2pk: MakeTeXPK couldn't create DC fonts correctly. + MakeTeXPK couldn't use already created .pk fonts in some cases; + you must now change the PKFONTS and PKFONTS.xdvi variable in + the kpathsearch configuration file (texmf.cnf) to add + `:$pkdir/ttf2pk' + ttf2pk.doc added + InstallFont added + hbf2gf: all float types changed to double. This makes life easier under + Amiga + pinyin.sty added + \CJKcaption command added + some caption files added. Works with the koma-script style files + included here (see below). Most of them are not complete now + wrong punctuation character offsets in Bg5.chr corrected + koma-script style files added. Note: this is only temporary until the + next official release of the koma-script package + +Changes beta 4 -> beta 5: + \CJK@enc replaced with specific encodings where possible + SJIS encoding scheme added (SJIS.enc, SJISconv.tex, etc.). Doesn't + currently work with CEF.sty + new commands \CJKCJK, \CJKhangul, and \CJKlatin for UTF8 encoding +* handling of intercharacter glue enhanced. Now there is no \CJKglue +* before and after a block of CJK characters. Note that this is a +* visually incompatible change to the previous versions of CJK! +* (see the command \CJKtilde also) + koma-script package removed (you should use the latest official release + now); caption files updated + mule2cjk added + \CJKtilde and \standardtilde added + MakeTeXPK hard linked into utils/hbf2gf + +Changes beta 5 -> beta 6: + gmulatex script added + \CJKhangul erroneously defined twice: \CJKCJK renamed into \CJKCJKchar, + \CJKhangul (in UTF 8 environment) into \CJKhangulchar, \CJKlatin into + \CJKlatinchar + the `global' option didn't work correctly; many \CJK@global's added + new command \CJKencshape to specify shapes on a per encoding base + \CJKchar didn't work in preprocessed mode + hbf2gf: new keyword `pk_files' (yes/no) + new calling mode for use with MakeTeXPK: + hbf2gf configuration_file [subfont_number resolution] + hbf2gf.cfg renamed to b5so12.cfg (MakeTeXPK needs this name) + some .cfg files added + other small changes + MakeTeXPK: taken from contrib/ttf2pk and enhanced to create CJK .pk + files on demand from bitmap files + name of the mode subdir changed from `(.../pk/)ttf2pk' to + `(.../pk/)CJK'. + maketexp.btm: similar changes as for MakeTeXPK; hard linked into + utils/hbf2gf + makettfp.btm: hard linked into utils/hbf2gf + latin-3 and latin-4 added to mule2cjk + +Changes beta 6 -> beta 7: + according to the newest LaTeX2e release, \MakeUppercase is disabled + instead of \uppercase in some cases. + a severe bug disabled Korean encoding + the encoding switching mechanism was broken; again many \CJK@global's + added + some commands which should be active only in certain encodings redefined + to work with the `global' option (Bg5text environment, \mj, etc.) + to use the Japanese DNP fonts, an encoding `JISdnp' and two size + functions (`DNP' and `DNPgen') are added +* a new unifying fontencoding scheme has been introduced: +* max. 4 characters encoding + max. 3 characters fontencoding +* examples: +* JISdnp, JISpmC, etc. +* this change causes many files to be renamed (e.g., +* Uhanja.fd->Uhanj.fd); there is also a bunch of new/redefined functions +* to support this: +* \CJKenc +* \CJKfontenc +* \CJKshape +* \CJKencshape +* CJK and CJK* environment +* SOME OF THE ABOVE CHANGES ARE NOT COMPATIBLE WITH PREVIOUS VERSIONS! + CJK characters in verbatim environments are now treated correctly + by mule2cjk. Latin-encodings still don't work there + hbf2gf: the collection of configuration files has been harmonized in + size + +changes beta 7 -> 3.0: + the protection mechanism has been completely rewritten. Encoding changes + now work in sectioning commands too. + + the pseudo-\if's has been replaced with real if's to avoid problems with + nested \if...\else...\fi constructions. + + CNS directory renamed to CEF. + + CEF macros CX, CY and U implemented. Font definition files for CX and CY + encodings added. + + CEF now works with SJIS encoding too. CEFSconv added. + + CNS.sty removed. Has been integrated into CJK.sty . + + there are now three internally used active characters: + ^^80, ^^A0: used by mule2cjk + ^^ff : used by CEFconv and mule2cjk. + we need those characters for verbatim environments. + + a new internal level introduced: + we now have + + active characters + | + +--------------> bindings (normal, preprocessed) <- new + | + active character macros + | + +--------------> encodings (GB, Bg 5, ...) + + | font encodings (none, dnp, pmC) + | + subfont selecting macros + | + +--------------> character macro sets (standard, Big 5, ...) + | + character selecting macros + + all encodings except UTF 8 now work in preprocessed mode too. + + some additional checks whether a loading of a certain binding/encoding/ + character set is neccessary. + + a new style option has been added: `active'. If activated, bindings are + local. Default is still `local' (with global bindings). You need this + option if you want to mix preprocessed text with non-preprocessed text + in nested CJK environments. This can happen if you merge texts in + various encodings. + + the offset for the roma subfont of dnp font encoding was incorrect. + + watanabe (a PD replacement of dnp fonts) font encoding for JIS added. + + \CJKchar has now an optional parameter to select the encoding. You can + also use this command with Unicode encoding; additionally you can + enter characters with or without the 8th bit set (GL or GR form) + except for SJIS, Bg5 and UTF8 encoding. + + two new size functions: `CJKsub' and `CJKssub'. They are similar to + `sub' and `ssub' except that the font substitution warnings appear + only once per CJK fontset. All .fd files updated. + + MULEenc.sty added. Is loaded automatically after a file has been + processed with mule2cjk. + + Latin encodings now work in verbatim environments also. + + switch -g from mule2cjk has been removed. It was never necessary since + `"' and `\"' in german.sty select the same macro. + + mule2cjk now inserts LaTeX2e macros (\textexclamdown, \textcent, etc.) + analogously to the latin[12].def files of the LaTeX2e distribution + (where applicable) for Latin encoded characters. + + the batch file muclatex processes mule encoded files which contain + CEF macros. + + Stephen Simpson <simpson@math.psu.edu> contributed a Bg 5 .fd file for + NTU TT fonts (ntu2cjk and ttf2pk). + + pinyin.sty didn't work in tabbing environments; the syllable \me was + missing; the syllables \Na and \na were wrongly defined (Michael E. + Deisher <deisher@enws261.eas.asu.edu>). + + pinyin.sty now accepts DC fonts too. + + all .bat and .cmd files now have LF/CR pairs as newlines. + + .bat and .cmd batch files added for all equivalent script files in the + utils directory. It might be useful to replace the TeX-coded + preprocessors with this filters since they are faster. + + all .bat and .cmd files call f_name.bat (f_name.cmd) to replace the + extension (usually .tex) with .cjk . + + hbf2gf always used 300dpi resolution if used in mf-like mode (Zhang + Zhengyou <ZhengYou.Zhang@sophia.inria.fr>). + +---End of history.2_5--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/history.txt b/Master/texmf-dist/doc/latex/CJK/doc/history.txt new file mode 100644 index 00000000000..db2d0a2180d --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/history.txt @@ -0,0 +1,1359 @@ +This file is part of the CJK package Ver. 4.2.0 (13-Dec-1998). + + +History of the CJK package +========================== + + +Version 1.0: first release. +01-June-1994 + + +Version 1.1: new: +20-Aug-1994 \CJK@char(x) simplified. + + CJK.txt updated. + + diff.txt added. + + +Version 2.0: new: +15-Sep-1994 support for Hangul: + virtual fonts / tfm files for Hangul standard fonts. + + changed: + font selection: modified .fd-files needed: + structure of .fd-files much more simplified. + + +Version 2.1: new: +28-Sep-1994 optional parameters to CJK size functions added. + + sCJK size function added. + + CJK* environment added: spaces after CJK characters are + swallowed. + + Utility programs hbf2hbf and hbf2cjk added. + + changed: + new Big 5 encoded fonts needed (more compressed)---saves + about 13 TeX subfonts per Big 5 encoded font. + + modified example .fd-files . + + errors: + Bg5text environment to pmC-Bg5 environment added. + + pmC emulation now uses compatible font names, i.e., + wcb5a1, wcb5a2, etc. + + +Version 2.2: new: +18-Oct-1994 CJK now supports hangul and hanja together. Two different + sets of subfonts are used as defined in Uhangul.fd and + Uhanja.fd . + + CJK punctuation characters (fullwidth comma, colon, + semicolon, etc.) don't start a line. CJK opening + braces, etc., don't end a line. + + \uppercase and \lowercase is now disabled if Big 5 + encoding is active. + + \lccode's is only reset if the new `lowercase' option is + set. This function is so seldom used that I decided to + separate it from setting \uccode's. You need less save + size if `encapsulated' is used without `lowercase'. + + C source of hbf2cjk replaced with CWEB source. + .dvi files of hbf2hbf and hbf2cjk added. + C source files of hbf2hbf and hbf2cjk produced by + CTANGLE added. + + \CJKtolerance added - this command for Hangul syllables + is the pendant to \CJKglue. + + changed: + hangul environment renamed to KS. + + modified example .fd-files. + + new Hangul .vf and .tfm files. + + definition of \CJKglue changed. + + HBF API now supports HBF 1.1 (CHARS optional). + + fine-tuning to hbf2cjk added + (Sam Chiu <ccc11@cus.cam.ac.uk>). + + errors: + CJK* didn't work in sectioning commands + (Wu Guangxi <wuxi@unixg.ubc.ca>). + + +Version 2.21: errors: +25-Oct-1994 CJK* didn't suppress spaces +(only CJK.sty) (Sam Chiu <ccc11@cus.cam.ac.uk>) + + +Version 2.3: new: +15-Nov-1994 JIS coding scheme/environment added. + + pmC-KS and pmC-JIS environments added. + + CNS coding scheme added. + + hbf2gf added. + This program merges bmf2gf, hbf2cjk, and hbf2hbf; it + is about 10 times faster than hbf2cjk. + Consequently, hbf2cjk and hbf2hbf were removed. + + changed: + only \uppercase disabled (see error). + + \CJK@char, etc., simplified. + + errors: + verbatim environments didn't work in Big 5 encoding + (Lee Chun-Yu <d791013@ce.ntu.edu.tw>). + + +Version 2.4: new: +03-Jan-1995 UTF 8 (Unicode) scheme added. + + option `unicode' to hbf2gf added: if `on', a two-digit + hexadecimal number is used as a running number + starting with the value of the first byte of the first + code range. + + Bg5conv.tex added: this is a small preprocessor which + converts Big 5 encoded characters `XY' into the form + `XZZZ.' . Now you can use Big 5 encoding without the + annoying Bg5text environment. + Auxiliary files: Bg5pp.enc, pmCsmpp.enc, and + bg5latex.bat . + + changed: + new versions of emx.exe, emx.dll (ver. 0.9a) and rsx.exe + (rel. 5) + + errors: + hbf2gf sometimes drew one pixel too much + (You Rey-Jer <you@gi4.bauingenieure.uni-stuttgart.de>). + + pmC encodings didn't work + (Zhang Zhengyou <Zhengyou.Zhang@sophia.inria.fr>). + + \CJK@charToHex and \CJK@numbToHex could erroneously change + page counter (Li Yu-Ray <r82111@ew.ee.ntu.edu.tw>). + + +Version 2.5: never released; 7 beta versions published. See file + history.2_5. + + +Version 3.0 there are too many changes to be described here in full +10-Oct-1995 detail. Please reread the various documentation files and + check the file history.2_5 too. + + new: + two contributed packages: ntu2cjk and ttf2pk. + + SJIS coding scheme added. + +* a new unifying fontencoding scheme has been introduced: +* max. 4 characters encoding + max. 3 characters +* fontencoding +* +* examples: +* JISdnp, JISpmC, etc. +* +* this change causes many files to be renamed (e.g., +* Uhanja.fd->Uhanj.fd); there is also a bunch of new/ +* redefined functions to support this: +* \CJKenc +* \CJKfontenc +* \CJKshape +* \CJKencshape +* CJK and CJK* environment +* +* SOME OF THE ABOVE CHANGES ARE NOT COMPATIBLE WITH +* PREVIOUS VERSIONS! + + two fontencodings added: `dnp' for DNP fonts and `wn' + for Watanabe fonts. + + four new size functions: `CJKsub', `CJKssub', `DNP', and + `DNPgen'. + + \CJKchar has now an optional parameter to select the + encoding. You can also use this command with Unicode + encoding; additionally you can enter characters with + or without the 8th bit set (GL or GR form) except for + SJIS, Bg5 and UTF8 encoding. + + a new internal level introduced: + we now have + + active characters + | + +--------------> bindings (normal, + | preprocessed) <- new + | + active character macros + | + +--------------> encodings (GB, Bg 5, ...) + + | font encodings (none, dnp, + | pmC) + | + subfont selecting macros + | + +--------------> character macro sets + | (standard, Big 5, ...) + | + character selecting macros + + a new style option has been added: `active'. If + activated, bindings are local. Default is still + `local' (with global bindings). You need this option + if you want to mix preprocessed text with + non-preprocessed text in nested CJK environments. This + can happen if you merge texts in various encodings. + + options `dos' and `dosdebug' to makefiles added for + compiling with djgpp. + + new keywords `design_size', `target_size', `tfm_files', + and `pk_files' added to hbf2gf. If `tfm_files' + (`pk_files') is `no', creation of .tfm-files + (.pk-files) is suppressed. + + new calling mode for hbf2gf for use with MakeTeXPK: + hbf2gf configuration_file [subfont_number resolution] + + a modified MakeTeXPK (and maketexp.btm) added to process + Chinese TrueType fonts (with ttf2pk) and CJK bitmap + fonts (with hbf2gf). + + pinyin.sty for writing pinyin syllables with tones. + + \CJKtilde and \standardtilde for embedding ordinary words + in CJK text. + + new command \CJKcaption to load a caption file. + + new commands \CJKCJKchar, \CJKhangulchar and + \CJKlatinchar added to specify character handling + (glue, discretionary). Only for UTF8 encoding needed. + Default is \CJKCJKchar. + + various caption files (.cap) added to be used in + conjunction with the KOMA-script document classes. + + MULE to CJK converter added. + + changed: + the protection scheme has been completely rewritten. + Encoding changes now work in sectioning commands too. + + reorganization of source tree. + + all occurrences of utf8 changed to UTF8 including + filenames. + + all occurrences of GBs changed to GB including filenames. + +* handling of intercharacter glue enhanced. Now there is +* no \CJKglue before and after a block of CJK +* characters. Note that this is a visually incompatible +* change to the previous versions of CJK! (See the +* command \CJKtilde also.) + + the definition of the CEF encoding has changed; it uses + now HTML-macros to identify CNS codes. Various + preprocessors has been added to handle these macros. + + CNS.sty removed. Has been integrated into CJK.sty . + + if only one of the keywords `dpi_x' or `dpi_y' is given + in the hbf2gf config file the other printer resolution + is set equal to the given one. + + the key values `on' and `off' in the hbf2gf config file + are replaced with `yes' and `no'. + + errors: + if two Big 5 environments were stacked, the Bg5text + environment was defined twice causing an error + (Yang Jinn S. <v30yjs@v0sun11.ccl.itri.org.tw>). + + \CJK@punctEnc was undefined in pmC-Bg5 environment + (Yang Jinn S. <v30yjs@v0sun11.ccl.itri.org.tw>). + + pmC-Bg5 encoding did not work in preprocessed mode + (Yang Jinn S. <v30yjs@v0sun11.ccl.itri.org.tw>). + + Bg5conv.tex and CEFconv.tex/CEF5conv.tex fail under the + web2c-TeX implementation because \write commands don't + output 8bit characters. C programs which do the same + were added. + + wrong \CJK@min and \CJK@max values for some encodings. + + some punctuation characters with Big 5 encoding had wrong + offsets (Li Yu-Ray <r82111@ew.ee.ntu.edu.tw>). + + `global' option didn't work correctly. + + \CJKchar didn't work in preprocessed mode + (Rob Lahaye <lahaye@amolf.amolf.nl>). + + all .bat and .cmd files call f_name.bat (f_name.cmd) to + replace the extension (usually .tex) with .cjk . + + +Version 3.0.1 new: +20-Nov-1995 hbf2gf config files for CNS added. + + changed: + .vf and .tfm files for Hangul have been removed; they + are now part of the Hangul font packages. + + CNS font definition files modified. + + `~', if \CJKtilde has been executed, now suppresses + spaces afterwards. + + (hopefully) better installation documentation. + + ttf2pk: improved scripts. + + the font directories (for web2c) in the various + script/config files have been standardized: + + the source bitmap fonts and its HBF header files are + now assumed to be in + +/usr/local/lib/font/{china,japan,korea,...}/font_name/ + + the hbf2gf configuration files in + +/usr/local/lib/hbf2gf/ + + the TeX font files in + +/usr/local/lib/texmf/fonts/{chinese,japanese,korean,...}/font_name/pk/CJK/ +/usr/local/lib/texmf/fonts/{chinese,japanese,korean,...}/font_name/{tfm,vf}/ + + the NTU TrueType fonts in + +/usr/local/lib/font/china/truetype . + + + errors: + standard.chr redefined the altchar macros erroneously + (Patrick Tuttle <n8442161@toad.lake.cs.wwu.edu>). + + MULEenc.sty failed with german.sty in sectioning + commands. + + mule2cjk didn't work with CNS planes 3-7. + + +Version 3.1.0: new: +20-Feb-1996 MakeTeXPK now supports DC (and TC) 1.2 fonts. + + JIS supplement character set (JIS X 0212-1990) + implemented. + + hbf2gf config file j2so12.cfg (for a JIS X 0212 font) + added. + + New parameter for hbf2gf: slant. Note that slanted + fonts are not common for CJK languages and should + be used only in special situations. + + Documentation about Japanese TeX systems and how to + handle Japanese with CJK contributed by TANAKA + Shinichiro <tanaka3@ifos.se.fujitsu.co.jp>. + + An introduction into the CJK package in Chinese + contributed by Lee Chun-Yu <d791013@ce.ntu.edu.tw>. + Consequently the outdated README.bg5 together with + bg5_test.tex has been removed. + + ntu2cjk version 1.3 . + + CEF example added. + + changed: + MULEenc.sty, mule2cjk: + \textcdot dropped; replaced with \textperiodcentered. + + MULEenc.sty: + definition of \textregistered dropped since it is + defined for all encodings in the latest LaTeX2e + release. + + CJK.sty: + \nbs is now defined as a shorthand for \nobreakspace. + + \space's added to font size functions analogously to + the latest LaTeX release. + + mule2cjk: + \nbs replaced with \nobreakspace. + + maketexp.btm: + small enhancements. + + f_name.bat: + slightly modified to make it run under 4DOS too. + + hbf2gf: + hbf.c updated to latest hbf version (17-Oct-1995). + errors: + maketexp.btm: + the ttfdir environment variable in the created + fonts.btm file was not set. + + Oh, oh, font creation with hbf2gf also didn't work... + + at one place two `%%' used instead of one. + + UJISwn.fd should now search for the right fonts. + + *.cap: + erroneously contained \@undefined instead of + \undefined. + + JIS.cap: + completely broken (sigh). Unbalanced \if... statements + caused unrecoverable errors. + + +Version 3.1.1: new: +20-Jun-1996 \CJKspace switches (inside of a CJK or CJK* environment) + from CJK* to CJK mode. + \CJKnospace switches from CJK to CJK* mode. + + support for Vietnamese with Mule. You need the vncmr-2.1 + package for fonts and LaTeX2e support. + + Latin 5 (ISO 8859-9) for Mule implemented. + + changed: + mule2cjk removed and replaced with cjk-enc.el which + defines a new output encoding scheme for Mule + (*cjk-coding*). See cjk-enc.doc for details. + + new protection scheme and changed macro definitions in + MULEenc.sty enables kerning for non-CJK languages. This + also makes most of the CJK macros significantly smaller. + + f_name.bat replaced with the latest version. + + some documentation improvements. + + \CJKhanja and \CJKhangul now also make sense outside of + KS encoding (useful in connection with mule2cjk). + + errors: + f_name.cmd doesn't work. All *.cmd removed. I have first + to learn REXX to write such batch files for OS/2. + + ttf2pk failed if the PK package size of a character was + 1024 (the same error is also in the pbm2pk program). + + hbf2gf didn't initialize mag_x/mag_y and dpi_x/dpi_y + correctly (Zhang Zhengyou + <Zhengyou.Zhang@sophia.inria.fr>). + + after closing a CJK environment not all characters above + 0x80 had been made non-active (a typo). + + pinyin.sty did not preserve the \a macro (used in + tabbing environments). + + single byte characters didn't work in SJIS encoding (a + typo). + + `:' and `.' do not work as parameter delimiters if these + characters are active (Daniel Flipo <?@?>). Now ^^ff + is used; the old macro ^^ff is now ^^a0; ^^a0 has + become ^^80. The old ^^80 macro has been removed since + the new version of mule2cjk always use the `global' + option of CJK which allows the use of (the new) ^^80 + instead. + + \CJKenc{SJIS} didn't work (Thomas Piekenbrock + <piekenbro@msmzid.frankfurt.hoechst-ag.d400.de>). + + SJISconv.tex didn't run (a senseless line called the + nonexistent macro \CJK@other) (Thomas Piekenbrock + <piekenbro@msmzid.frankfurt.hoechst-ag.d400.de>). + + JIS.cap didn't work (a typo). + + SJIS.cap didn't work either (forgot to edit). + + +Version 4.0.0: new: +20-Sep-1996 I did the final step. All CJK encodings now have all + NFSS attributes, namely family, series, and shape + (represented by \CJK@family, \CJK@series, and + \CJK@shape). \CJK@family is set by entering a CJK + environment in the same way as it was done in former + versions of this package. \CJK@series and \CJK@shape + are (usually) controlled by the standard NFSS commands + (e.g., \slshape, \textbf, etc.). + + To achieve this it was necessary to define (NFSS) + font encodings for the CJK package. All CJK font + encodings map to NFSS font encodings which start with + the letter `C', followed by two digits. Here is a + table: + + Chinese: Bg5 C00 + Bg5pmC C01 + + GB C10 + GBpmC C11 + + GBt C20 + GBtpmC C21 + + CNS1-7 C31-37 + + Japanese: JIS C40 + JISpmC C41 + JISdnp C42 + JISwn C43 + + JIS2 C50 + + SJIS -> kana C49 + (additionally) + + Korean: KS -> hanja C60 + -> hangul C61 + KSpmC C62 + KSHL -> hanjaHL C63 + -> hangulHL C64 + -> HLsymbolJ C65 + -> HLsymbolK C66 + + Unicode: UTF8 C70 + + CEF: CEFX C80 + CEFY C81 + + The first digit corresponds to a CJK (input) encoding + like Bg5 or JIS, the second digit represents either a + CJK font encoding or internal encodings necessary to + cover the selected CJK encoding. + + One consequence of this step is that you have to adapt + all .fd files to the new scheme. Look at the example + font definition files of the CJK package how to do it. + + You can't use e.g., `C01' directly! Use the CJK + interface (in this example \CJKfontenc[pmC]{Bg5}). + + Another consequence is that you are now limited to + five characters for the family name since it is part + of the .fd name (together with the NFSS font + encoding): e.g., `fangsong' is not longer allowed. I've + renamed this to `fs'. + + the new font encoding scheme of the HLaTeX package is + supported. You can select it with \CJKfontenc[HL]{KS} + or \begin{CJK}[HL]{KS}{...} . This is _not_ an + emulation of HLaTeX! See CJK.doc for details. + + poor-man's bold font has been introduced. To do this all + occurrences of \symbol has been replaced with the new + command \CJKsymbol which honours the \ifCJK@bold@ + flag. If set, a character is printed three times with + a small horizontal shift. You can modify this flag + with \CJKnormal and \CJKbold. These commands are + intended for use with \DeclareFontShape: + + \DeclareFontShape{C00}{CNS}{m}{n}{<-> CJK * csso12}{} + \DeclareFontShape{C00}{CNS}{bx}{n}{<-> CJKb * csso12}{\CJKbold} + + Additionally four size functions (CJKb, sCJKb, + CJKfixedb, sCJKfixedb) has been introduced which are + completely identical to its counterparts without the + final `b'. The only reason to use them is, as shown in + the above example, to make the fifth parameter of + \DeclareFontShape for bold series different from the + one for medium series (LaTeX2e uses this parameter as + a macro name to execute loading-settings, thus they + must not be equal). Redefine \CJKboldshift if the + default shift value of 0.015em is not optimal for the + specific font. + + support for ruby (= furigana) added. See rubi.doc for + details. + + ttf2pk: + TTF specific error handling enabled. + + Big 5 encoded TTF in format 4 can now be handled. + + hbf2gf: you can now use environment variables ($FOO or + ${FOO}) in the configuration file. Use $$ to get a + dollar sign. + + man pages added. + + more examples added. + + REXX scripts bg5latex.cmd, etc. (for OS/2) added + (contributed by Wonkoo Kim <wkim+@pitt.edu>). + + teTeX.doc added. + + changed: +* The CJK distribution has been divided into three +* packages: +* src The sources. Needed for all platforms +* bin Binaries compiled with emx for DOS and OS/2. +* rest Preformatted documentation (.dvi, .ps, +* output from cjk-enc.el) +* +* ALL FONT DEFINITION FILES HAVE BEEN CHANGED AND RENAMED! +* + \CJKshape and \CJKencshape renamed to \CJKfamily and + \CJKencfamily respectively. For backward compatibility + you can still use the old names. Nevertheless, they + now modify the font family parameter and no longer the + font shape parameter. + + all *conv.tex and its batch files removed. + + all converter programs now do not change the number of + lines in the output file. +* +* the UN*X converter batch files now replace the extension +* with .cjk instead of appending it. E.g. +* test.tex -> test.cjk (instead of test.tex.cjk) +* + f_name.bat provides a new environment variable %fu% + for a Unix-like path (using `/' instead of `\'). Now + you can run bg5latex.bat and the other DOS batch files + having a file name with a path as an argument. Please + replace all these batch files with the new ones. + + starting with this version ttf2pk is a direct part of + the CJK package. I maintain it. As a consequence the + ttf2pk directory tree has been moved into the utils + subdirectory. + + MakeTeXPK, MakeTTFPK: environment variable ttfdir and + hbf2gfdir renamed to TTFDIR and HBF2GFDIR + respectively. + + hbf2gf: sample configuration files now contain TDS + compliant directories. + + ttf2pk: + -c option removed which never worked. + + some redundant code removed. + + heavily reformatted. + + errors: +* PLEASE RECREATE ALL .TFM AND .PK FILES PRODUCED BY +* TTF2PK! +* Reason: the width values were resolution dependent. +* You should use the InstallFont script or instfont.btm +* for this job since the very bug in ttf2pk has not yet +* been fixed. Additionally you must install the new +* MakeTTFPK script. + + ttf2pk: + endchar didn't work correctly. + + punctuation characters in KS were not handled correctly. + + \CJKchar failed sometimes (Jinn S. Yang + <v30yjs@v0sun11.ccl.itri.org.tw>). + + Big 5/SJIS characters failed in headers, etc., if used + without preprocessor (Jinn S. Yang + <v30yjs@v0sun11.ccl.itri.org.tw>). + + +Version 4.0.1: appeared as a diff only---a typo in utils/ttf2pk/findex.c +26-Sep-1996 + + +Version 4.1.0: new: +20-Nov-1996 ttf2pk: + a new parameter -e has been introduced for selecting + the font encoding; possible values are `Big5' (the + default), `EUC' for extended Unix codes (JIS, GB, KS, + etc.), `SJIS', and `X'. The last value treats the TTF + file as SJIS encoded but expects start_char in JIS + encoding (routines are in coding.{c,h}). + + a new parameter -r has been introduced for rotating + the glyphs 90 degrees counter-clockwise if its value + is non-zero. See ttf2pk.1 for details. + + Some preliminary support for composite glyphs has been + included. Since hinting instructions are not supported + yet this is only of some academic interest. You can + watch the funny results with the mingli system font of + the traditional Chinese Windows 3.1 . + + Support for different horizontal and vertical + resolutions has been added. Now you have one more + parameter to call ttf2pk: + + ttf2pk pkname tfmname xres yscale startch nmbch ... + + Currently you have to change yscale by hand in + MakeTTFPK (or makettfp.btm). [yres = xres * scale] + + The source code has been prepared for pretty-printing + with c2cweb. Say `make documentation OS=<SYSTEM>' to + produce it (of course after installing the c2cweb + package). You find precomputed .dvi files in the + `rest' part of the CJK package. + + HSIEH Tung-Han <thhsieh@twclx.phys.ntu.edu.tw> + contributed NTeXb5.doc for installing the CJK package + under NTeX. + + hbf2gf: + if called in METAFONT-like mode, one additional + parameter has been added to allow printers with + different horizontal and vertical resolutions: + + hbf2gf config_file subfont_nmb x_resolution y_scale + + (y_resolution = x_resolution * y_scale; y_scale must + be a real number > 0; currently you must change y_scale + by hand in MakeTeXPK/maketexp.btm) + + hbf2gf now produces a .pl file even if in + METAFONT-like mode. + + a new config file option `rotation' rotates the glyphs + 90 degrees counter-clockwise if set to `yes'. + + vertical presentation forms of Big5 punctuation + characters added to punctuation tables in CJK.enc . + + CJKvert.sty for vertical typesetting added. This is an + experimental feature! Please read vertical.doc for + further details. + +* MakeTeXPK and friends: +* it's no longer necessary to rename TTF files to avoid +* underline characters. A configuration file is now used +* (ttf2pk.cfg) which resides in $TTF2PKDIR (usually +* $TEXMF/ttf2pk) to describe the various TTF files. +* Please rename e.g., ntukai.ttf back to ntu_kai.ttf . +* The environment variable $TTFDIR has become obsolete. + + The teTeX variants of the scripts can now produce tfm + files on demand---it's sufficient to simply install + the source files of a new font. + + changed: +* rubi.sty has been renamed to ruby.sty; the same is +* true for all commands in it: \ruby, \rubyoverlap, etc. + + new version (1.5) of ntu2cjk. + + hbf2gf: + the option `target_size' has been removed. It is + ignored now. + + under DOS and OS/2 both `\' and `/' are now recognized + as a path separator. + + ttf2pk: + the -s parameter (to select a design size) has been + removed. The program now always assume a design size + of 10pt. + + the parameter end_char has been replaced with + nmb_of_char (max. 256). + + begin_char can now be either decimal, hexadecimal + (prefix `0x'), or octal (prefix `0'). + + x_offset and y_offset behave now similar to hbf2gf + (and most people would expect it that way): a positive + x (y) value shifts right (up); default is zero for + both parameters using the default placement as given + in the TTF file. The values are no longer integers but + real numbers and should be multiples of design size. + + horz_esc and vert_esc are now real numbers too and + should be multiples of design size. + + you no longer need to use -W, -H, and -D for getting + resolution independent .tfm files. ttf2pk now + correctly uses the values of the TTF file. + +* PLEASE RECREATE ALL .TFM (AND .PK) FILES! Sorry for +* this inconvenience. I hope it is the last time. Due to +* some optimizations the .pk files are about 5% smaller +* now. + + The TTF part of the source code has been transformed + into a library (ttflib); the makefile has been + rewritten with a new syntax. Say `make' for details. + + utils/ttf2pk/README.b5 and INSTALL.bg5 removed. They + were out of date. + + modified MakeTTFPK/MakeTeXPK/InstallFont and + makettfp.btm/maketexp.btm/instfont.btm scripts. + + +Version 4.1.1: appeared as a diff only. +02-Dec-1996 + new: + cjktilde.el: + this file contains a minor mode (`cjk-tilde-mode') for + emacs to exchange the ` ' key with the `~' key. See + the documentation of \CJKtilde for details. + + changed: + directory cjk-enc renamed to lisp. + + errors: + the fullwidth double colon in GB encoding was missing in + the punctuation tables. + + +Version 4.1.2: new: +20-Feb-1997 ntu2cjk ver. 1.6 now supports the Jackson font (a Big 5 + encoded PostScript font). + + cjkspace.el: similar to cjktilde.el for cooperation with + AUCTeX. + + support files for NDOS contributed by KUO Yi-Liang + <c300711@ms5.hinet.net> . + + emTeX support documentation also contributed by + KUO Yi-Liang <c300711@ms5.hinet.net> . + + changed: + ttf2pk/src/Makefile: uses -C switch of GNU make now for + entering subdirectories. + + adaptation to LaTeX release 1996/12/01: + all .fd files now start with e.g., c00 instead of C00 + (nevertheless, the encoding is still called `C00'). + + all executables are now finished with exit() to avoid + additional security holes. + + Bg5rot.tex renamed to Bg5vert.tex . + + errors: + MakeTTFPK: + some sed programs can't understand the `\w' special + character (indicating a word constituent character); + has been replaced with `.'. + + it was not possible to open a CJK environment with + SJIS encoding a second time (Thomas Piekenbrock + <piekenbro@smzid.frankfurt.hoechst-ag.d400.de>). + + the same problem existed with UTF 8 encoding; + additionally the macros failed for protected + arguments. + + cjktilde.el: + if you assigned the minor mode to a key, the status + line was not updated. + + ttf2pk: + problems with empty glyphs fixed. + + problems with invalid index tables now lead to a + warning instead of a fatal error. + + +Version 4.1.3: new: +20-Jun-1997 hbf2gf can now create virtual Omega (.ofm) files. + + ttf2pk (and its scripts) now supports Unicode encoded + fonts. + + cjk-enc.el for emacs 20. + + Russian support (in T2 encoding) for Mule/emacs 20. + Please contact me for fonts, hyphenation patterns, and + macro packages. + + JIS X 0201 support for Mule/emacs 20. + + experimental support for Thai (only emacs 20). This is + basically C-TTeX version 1.51 adapted to CJK. Anybody + who is interested in this stuff (and has some + knowledge on Thai contrary to me :-) please contact + me so I can improve it. Please read cjk-enc.doc for + more details. + + ntu2cjk version 1.8: + now supports partial downloading of NTU fonts with + dvips. + + installation checklist added to INSTALL. + + installation instructions written in Chinese GB + contributed by YAO Fude <yao@everest.micro.umass.edu>. + + UTF8.tex example added. + + changed: + MULEenc.sty: + \hbar and \HBAR replaced with \textmalteseh and + \textmalteseH respectively according to the LaTeX2e + release June 1997. + + further simplifications. + + external CJK font packages, script and documentation + files updated to TDS standard. + + c70song.fd: + now uses cyberbit.ttf as default font. + + errors: + make*.btm scripts now really work :-) (thanks to + <rshuang@ms11.hinet.net>). + + c00cns.fd was incorrectly stored as c00CNS.fd . + + MULEenc.sty: + expansion macro improved (the old version prevented + kerning if used with e.g., \MakeUppercase). + + hbf2gf: + support for Unicode encoded HBF files was totally + broken. + + always used non-rotated x and y input sizes. + + the HBF interface now uses only one file handle per + opened font---previously it used one file handle per + HBF_CODE_RANGE line (Mark Leisher + <mleisher@crl.nmsu.edu>). + + ttf2pk: + can now handle fonts like avkv.ttf which have a + non-standard way to handle the end of the glyph index. + + a nasty allocation bug removed due to missing modulo + 65536 operations (thanks to YANG Ching-Hsiang + <jsyang@vlsi.ccl.itri.org.tw>). + + +Version 4.2.0: new: +13-Dec-1998 pinyin.sty: + support for EC fonts: the macron bar has been lowered + considerably. + + kerning in pinyin syllables is now identical to + unaccented syllables. + + teTeXb5.doc: + How to set up CJK with teTeX 0.9 (in Chinese). + Contributed by HSIEH Tung-Han + <thhsieh@twcpro.phys.ntu.edu.tw>. + + CJKnumb.sty: + new package for converting a number into a CJK + representation. It provides just one command, + \CJKnumber. + + CJK.sty: + new command \CJKaddEncHook for adding code which is + executed each time a certain encoding is selected. + + contrib/wadalab: + how to use Wadalab Japanese PostScript fonts with CJK. + Contributed by LEUNG Hin-Tak <htl10@cus.cam.ac.uk>. + + CJK.enc: + added C52 encoding (JIS2 in dnp font encoding). + + changed: + MULEenc.sty, cjk-enc.el: + updated to latest LaTeX 2e changes (1997/12/01 and + 1998/06/01): + \DH, \dh renamed to \DJ, \dj; LaTeX2e now provides + \textdegree, \textordfeminine, and \textordmasculine. + + updated to latest T2 changes: \CYRUKRI, \CYRUKRE and + its lowercase forms are renamed to \CYRII and \CYRIE + respectively. + + there is now a version of cjk-enc.el for emacs 20.3 + too. + + muletest.tex: + new translations; Russian now standard. + + thaiconv: + updated to include cttex 1.15 changes. + + a revised TDS structure for storing CJK fonts and + configuration files (see TDS.doc for details). + + compile.doc has been removed. + + NTeXb5.doc has been removed. + + ttf2pk.doc has been removed (it is now in the ttf2pk-old + package). + + the whole ttf2pk subdirectory has been removed. Get the + new ttf2pk program of the FreeType project (available + from ftp.freetype.org in the directory + pub/freetype/devel as the package + freetype-current.tar.gz)---the new ttf2pk can work + with composite fonts too and supports hinting. The old + ttf2pk is still available as ttf2pk-old.tar.gz . + + the whole ntu2cjk subdirectory has been removed. Get the + new ttf2pfb program of the FreeType project (see just + above for the location). ntu2cjk is still available as + ntu2cjk.tar.gz . + + the whole NDOS subdirectory has been removed because it + is completely out of date. + + CJK.sty: + caption files for preprocessed mode have now the + extension `.cpx' to simplify editing of cap files. + +* hbf2gf: +* completely redesigned to make calls in scripts for +* creating PK fonts easier. Please refer to hbf2gf.1 +* or hbf2gf.dvi for details. +* +* maketexp.btm, etc.: +* replaced with dvidrv.btm, a replacement for emTeX's +* dvidrv.exe; it is documented in dvidrv.doc . + + fonts from HLaTeX >= 0.97 are now supported. As a + consequence, support for older HLaTeX versions has + been withdrawn. The internal encoding C66 no longer + exists. + + cjk-enc.el: + function write-cjk-file added (thanks to David Fox + <fox@cat.nyu.edu>). + + errors: + pinyin.sty: + \O wasn't handled specially. + + CJK.sty now coexists with ArabTeX. + + possible save size overflow fixed (\CJK@temp was + assigned locally and globally at the same time). + + +Version 4.3.0: An intermediate version containing most features of 4.5.0 +04-Apr-2000 published on the TeX Live 5 CD. It has never been officially + released. + + +Version 4.4.0: An intermediate version containing most features of 4.5.0 +17-Apr-2001 published on the TeX Live 6 CD. It has never been officially + released. + +Version 4.5.0: An intermediate version containing most features of 4.5.1 +01-May-2002 published on the TeX Live 7 CD. It has never been officially + released. + +Version 4.5.1: new: +17-Jun-2002 CJKulem.sty: + Full underlining support using the latest version of + ulem.sty. + + Bg5+ and GBK charsets and encodings added (together with + `Bg5+text' and `GBKtext' environments). The encodings + are C09 and C19, respectively. + + `bg5+latex' and `gbklatex' scripts added (together + with its DOS and OS/2 pendants); both call the new + converter `extconv'. + + EUC-JP and EUC-TW encodings (*with* single shifts) added. + + SJIS encoding with DNP fontencoding. + + A configuration file `CJK.cfg' is read by CJK.sty just + before the \endinput command. + + CJKnumb.sty: + Added the macro \CJKdigits to CJKnumb.sty for printing + a (integer) number with CJK digits. + + Added macro \CJKnullspace to control the amount of + space inserted before and after a circle character + used for CJK digit zero. + + Added the macro \CJKindent to CJK.sty which sets the + paragraph indentation to two ideographic spaces. + + Added a test file `CJKbabel.tex' for testing CJK, + emacs 20, and the babel package. + + Thai support for Babel added. + + Added a test file `thai.tex' for testing Thai. + + cjk-enc.el: + Now works with XEmacs also (except for Thai). + + Support for ISO-8859-7 (Greek) added. + +* Support for multifile documents added. As a +* consequence, it is now necessary to specify the +* encoding of all files with local variables for Emacs +* (see the comments at the end of the files in the +* `examples' directory how to do that; the `coding: ...' +* line must exist. + + The translation tex->cjk is now executed only if the + source file is more recent than the corresponding + output file (it is still possible to force translation + though). + + Hyphenation patterns for unaccented pinyin syllables + (together with support for the Babel package) in + utils/pyhyphen. Documentation is in doc/pyhyphen.doc. + + pinyin.sty: + Added option `useCMmacron' (for LaTeX only) to use + a macron accent from the CM fonts in case the current + font doesn't have it (e.g., some versions of virtual + files for Palatino). + + Compound syllables can now be hyphenated. + + MULEenc.sty: + Added \CJKinclude{<file>}, \CJKinput{<file>}, and + \CJKbibliography{<file>} macros which behave similar + to \include, \input, and \bibliography but include + (input) <file>.cjk and <file>-cjk.bib instead. + + CJK.sty/MULEenc.sty: + The command \CJKverbatim suppresses insertion of glue + between CJK and Thai characters in verbatim + environments if the `verbatim' package is used. This + is useful if you have overlong lines. + + changed: + Thai support has been redesigned. The external program + `thaiconv' has been replaced by a Lisp file called + thai-word.el; ligatures in virtual Thai fonts are now + used to select the proper glyph representation forms. + See thaifont.doc and cjk-enc.doc for details. + + CNS stuff moved into a `CNS' directory. + +* CJK.sty/MULEenc.sty, +* cefconv, cef5conv, cefsconv, bg5conv, sjisconv, +* cjk-enc.el: +* The character slot 0xA0 is no longer used for +* \CJKchar; instead, the multiplex character 0x7F +* interface now handles this also. Additionally, +* character 0x7F (instead of 0xFF) is used as delimiting +* character. 0x7F is used for all CJK characters also in +* preprocessed mode---as a consequence, preprocessed and +* non-preprocessed data can be used simultaneously. +* +* You *must* update the *conv programs (if you use +* them). \CJKpreproc and \CNSpreproc now contain the +* current version string so you can check whether really +* the new versions are called. + + cjk-enc.el: + ET5 encoding for Vietnamese replaced with T5 encoding. + + The version for emacs 20 has been removed. Please + upgrade your emacs to 20.7 or newer. + + contrib/wadalab: + Use CJK font size functions instead of DNP ones. + + hbf2gf: + The configure option --with-kpathsea-dir has been + replaced with --with-kpathsea-include and + --with-kpathsea-lib to support web2c installations + with multiple architectures. + + errors: + cjk-enc.el: + The formatting parameter `%i' has been replaced with + `%d'. + + pmC.chr: + Missing \ifCJK@ added. + + Punctuation macros fixed. + + Bg5.chr: + Fixed a typo \CJK@temp -> \CJK@gtemp. + + hbf2gf: + Now works correctly with very large pixel sizes. + + Punctuation with half-width katakana in SJIS encoding + improved. + + A bug fixed which prevented the usage of caption files + together with hyperref. + + KS encoding with HLaTeX fontencoding now supports + punctuation also. + + Specifying a font size factor (like `CJK * [1.5]') in + FD files no longer produces a warning message for + all subfonts. + +Version 4.5.2: new: +28-Mar-2003 The new macro \CJKnohwkatakana prevents the use of the + C49 encoding for half-width katakana; instead, the + characters are mapped to full-width glyphs. The + opposite command is \CJKhwkatakana (the default). + + Improved support for pseudo-vertical typesetting. + + . CJKvert.sty provides new commands \CJKvert (the + default) and \CJKhorz to toggle pseudo-vertical + typesetting. + + . After loading CJKvert.sty, LaTeX reads file + `<foo>.fdv' (if it exists) immediately after reading + `<foo>.fd'. Such a file contains additional + information how to typeset a font vertically. Most + importantly, outline fonts can be configured so that + they are rotated with the graphicx package, making + it work with both dvips and pdfTeX. See + `vertical.doc' for more information. + + errors: + \CJKchar sometimes didn't accept 7bit representations. + + pinyin.sty: + Added missing syllables \chua, \den, \rua. + Make it work properly in tables. + + contrib/wadalab: + Older versions of the `makefont' script produce bad + hints for all Wadalab fonts. Either use the new + version to regenerate all fonts or use the new script + `fixwada' to correct fonts created with an old version + of `makefont'. + + EUC-TW.chr: Make it really work. + +Version 4.6.0: new: +11-Aug-2005 CJKutf8.sty merges basic LaTeX's and CJK's UTF-8 support. + See CJKutf8.doc for details. + + The two new macros \Thaispace and \Thainospace can be + used to control the EOL behaviour in Thai text blocks + if processed with cjk-enc.el. + + There are now scripts (for Unix) to call pdflatex + instead of latex: bg5pdflatex, sjispdflatex, etc.; + all scripts now pass parameters to latex (the program). + + New documentation files giving hints how to set up the + CJK package for optimal PDF output. + + New documentation file `reftex.doc' describing + customization for RefTeX (which is part of Emacs). + + CJKfntef.sty provides more font effects specific to + CJK scripts. See the example file CJKfntef.tex for + typical usage. + +* All .fdv-files have been renamed to use the suffix +* `.fdx' since they are no longer restricted to vertical +* writing direction. See the new file `fdxfiles.doc' +* for more information. + + changed: + All plain text documentation files now have the suffix + `.txt'. + +* Thai support has been improved. +* +* . Internally, the font creation process now uses +* fontinst to create the TFM files. As a consequence, +* virtual fonts are no longer necessary. +* +* . Due to an uncertain license, the `dbtt' font family +* has been replaced with `garuda', taken from +* thailatex version 0.3.5.1 which you can find at +* +* http://linux.thai.net/plone/TLWG/thailatex +* +* . The directory tree below `utils/thaifont' has been +* updated to reflect TDS 1.1, as supported by the +* forthcoming TeXLive 2005 and teTeX 3.0. +* +* Please replace all files related to Thai fonts in your +* TEXMF tree with the new fonts and font support files. + +* HLaTeX support has been updated to handle fonts from +* version 1.0.1---there are no longer MF source files, +* only PS fonts. Support for non-uhc fonts have been +* removed; you should upgrade to the latest HLaTeX font +* archives from CTAN. Please consult CJK.doc, section +* `Korean input', for the (slightly) changed font names of +* HLaTeX support. + + errors: + Some characters in Big 5 encoding disappeared without + a warning if pseudo-vertical writing was active. + + pinyin.sty: + Umlaut u with diacritc appeared bold. + + Umlaut u with macron above was broken. + + CJKulem.sty: + User-defined \CJKglue value was ignored. + + Line breaks before a post-punctuation CJK glyph + weren't disabled when \uline and friends were used. + + MULEenc.sty: + \textordfeminine and \textordmasculine were exchanged + if used with cjk-enc.el. + + contrib/wadalab/*.fdx: + Handle Hiragana-Katagana prolongation mark correctly. + + cjk-enc.el: + Multifile support was partially broken. + + CJKvert.sty: + Both \CJKvert and \CJKhorz had both local and global + effects. Now they are completely local. + +---End of history.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/japanese/README b/Master/texmf-dist/doc/latex/CJK/doc/japanese/README new file mode 100644 index 00000000000..ab5101887af --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/japanese/README @@ -0,0 +1,18 @@ +* The documentation files in this directory describe version 3.1.0; mule2cjk +* no longer exists---please read cjk-enc.txt for the new interaction between +* Mule and CJK. Until now I couldn't reach the author again. + +In this directory you find a suite of small documentation files which deal +with CJK and other Japanese features/systems in relation to TeX. They were +contributed by TANAKA Shinichiro <tanaka3@ifos.se.fujitsu.co.jp>. + +japanese.jis is the Japanese version of japanese.txt . Note that this file +and the file shibuaki.txt contain Japanese characters in JUNET encoding. + +Please send any comments and suggestions to the author of these doc files. +Questions related to non-CJK topics should be asked in the fj.comp.text +news group since the author only uses CJK. + + +Documentation how to use Wadalab fonts can be found in the contrib/wadalab +directory. diff --git a/Master/texmf-dist/doc/latex/CJK/doc/japanese/ascii.txt b/Master/texmf-dist/doc/latex/CJK/doc/japanese/ascii.txt new file mode 100644 index 00000000000..41815cca5a7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/japanese/ascii.txt @@ -0,0 +1,58 @@ +ASCII Co. was founded by Mr. Nishi Kazuhiko, Mr. Tsukamoto, and Mr. Gunji. +This company works in the software and publishing field. So ASCII was +interested in the TeX system. They developed "ASCII Nihongo TeX" in +cooperation with a group of the Keio University in 1987. ASCII Nihongo TeX +is freeware. ASCII Co. implemented this system on MS-DOS in 1989 and sold +it. ASCII Co. added the capability of vertical typesetting to Nihongo TeX--- +this is called the p version or pTeX (publishing TeX). + +ASCII translated some important books into the Japanese language. These +books are of course typesetted with Nihongo TeX. + + "The TeX book", "The Metafont book" Knuth. + + "LaTeX: A Document Preparation System" Lamport. + +Many articles about TeX appear in the "UNIX magazine" published monthly by +ASCII. + + +Some features of Nihongo TeX: + + 1. The dvi file format is different from the original TeX's dvi file + format. (NTT-JTeX's dvi file format is the same as original one. So we + can use NTT-JTeX's dviware for the CJK package.) + + 2. Nihongo TeX is not only capable of using TeX Font Metric files (tfm), + but can also use Japanese Font Metric files (jfm). The jfm file format + is defined as an extension of the tfm file format for Nihongo TeX. One + jfm file has about 7000 kanji character metrics and kerning + informations to cover entire JIS fonts (and thus avoiding subfonts). + [See shibuaki.txt for some details about space handling between + Japanese and ASCII characters.] + + 3. Characters can be printed vertically. + + +In 1992 Tsukamoto and Gunji retired from ASCII Co. and founded Impress Co., +and some engineers specialized on TeX moved from ASCII to Impress. + +Impress Co. works in same field as ASCII Co., namely software and +publishing. In 1994 Impress made and sold "TeX for Windows" based on an +older version of ASCII Nihongo TeX (a modified TeX version 2.99). This +system runs on Windows 3.1, Windows 95 or Windows NT and has been sold to +many PC users. Literature is also available for "TeX for Windows". + +A major drawback of this system is that it is not yet based on TeX 3 and +thus cannot fully support LaTeX2e or multilingual issues. + + +In November 1995 ASCII announced the latest version of Nihongo TeX (pTeX +2.1.1) which is based on TeX 3.1415; this package also contains a format +file of LaTeX2e <1995/06/01>. + +At the time of this writing (1996/02/09) ASCII Nihongo TeX's version is pTeX +2.1.4 . + + +Version 1.0 Beta2 (1996/02/09) written by tanaka3@ifos.se.fujitsu.co.jp diff --git a/Master/texmf-dist/doc/latex/CJK/doc/japanese/japanese.jis b/Master/texmf-dist/doc/latex/CJK/doc/japanese/japanese.jis new file mode 100644 index 00000000000..69e034c6d13 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/japanese/japanese.jis @@ -0,0 +1,642 @@ +This is the file japanese.jis of the CJK macro package ver. 4.1.0 +(20-Nov-1996). + +(Font metric $B$,(B $BF|K\8l(B PS $B%U%)%s%HFbB"$N(B PostScript $B%W%j%s%?!<$H6&MQ$7(B +$B$F;H$&;v$,2DG=$J(B) DNP $B%U%)%s%H$H!"EOJU%U%)%s%H$N;H$$J}$K$D$$$F$^$H$a$F(B +$B$"$j$^$9!#(B + +hbf2gf $B$H6&$K;H$&(B kanji48 font $B$N;H$$J}$OB>$N(B CJK bitmap files $B$HF1$8(B +$B$G$9!#>\:Y$O(B hbf2gf.txt $B$K=q$+$l$F$$$^$9!#(B + + +kanji48 font +------------ + +$B$3$N(B font $B$O$I$3$K$"$j$^$9$+!)(B) + +Host ftp.tex.ac.uk + Location: /pub/archive/fonts/CJK + FILE -rw-rw-r-- 1 ctan TeX 742459 Dec 1 00:01 kanji48.tar.gz +Host ftp.dante.de + Location: /tex-archive/fonts/CJK + FILE -rw-rw-r-- 1 Mr.Ftp server 742459 Dec 1 00:01 kanji48.tar.gz + +$B$^$?$O!"$"$J$?$N%5%$%H$N6a$/$N(B CTAN $B$N%_%i!<$r$7$F$$$k%5%$%H$K$"$j$^$9!#(B + + +$B$I$&$d$C$F(B CJK $B$+$i;H$&$N$G$9$+!)(B) + +$B0J2<$N$h$&$K(B CJK.sty $B$GF|K\8l$NJ8>O$r=q$$$F$/$@$5$$(B: + +with latex: + + \documentclass[a4paper]{article} + \topmargin=-3.5cm + \textheight=26cm + \usepackage{CJK} + \usepackage{indentfirst} + + \begin{document} + \begin{CJK*}{JIS}{song} + + ..... + < "$BF|K\8l$NJ8>O(B" > + ..... + + \end{CJK*} + \end{document} + + +with mulatex: + + \documentclass[a4paper]{article} + .... + \usepackage[global]{CJK} + \usepackage{indentfirst} + + \begin{document} + \begin{CJK*}{}{} + + ..... + < "$BF|K\8l$NJ8>O(B" > + ..... + + \end{CJK*} + \end{document} + + +CJK $B%Q%C%1!<%8$O(B CJK $B$H(B CJK* $B$H$$$$D$N4D6-$rDs6!$7$^$9!#(BCJK* $B$N4D6-(B +$B$O(B CJK $BJ8;z(B($BF|K\8l!"4Z9q8l!"Cf9q8l(B)$B$N8e$m$N6uGr$r05=L$7$^$9!#(BCJK $B$N4D(B +$B6-$O05=L$7$^$;$s!#(B + +$BF|K\8l$7$+=q$+$J$$$N$G$"$l$P!"(BCJK* $B$N4D6-$r;H$&$Y$-$G$7$g$&!#$I$&$7$F(B +$B$b(B(CJK* $B4D6-$NCf$G(B) CJK $BJ8;z$N8e$K6uGr$,I,MW$J>l9g$K$O(B `\ ' $B$d(B `{}' $B$J(B +$B$I$N$h$&$J(B TeX $B%3%^%s%I$r;H$o$J$1$l$P$J$j$^$;$s!#(B + +$B$^$?!"F|K\8l0J30$N8@8l$NCf$G$bF|K\8l$r=q$/$3$H$,$G$-$k$h$&$K!"(Bmulatex +$B$r;H$&$J$i!"(B + + \usepackage[global]{CJK} + +$B$H@k8@$9$k;v$r6/$/?d>)$7$^$9!#>\:Y$O(B mule2cjk.doc $B$r8+$F2<$5$$!#(B + + +DNP $B%U%)%s%H(B +------------ + +DNP fonts $B$H$O$J$s$G$9$+!)(B) + +DNP $B$H$OF|K\$NBg<j0u:~2q<R$G$"$kBgF|K\0u:~$N$3$H$G$9!#(BDNP $B%U%)%s%H$OBg(B +$BF|K\0u:~$K$h$C$F:n$i$l$?>&MQ%U%)%s%H$G$9!#<+J,$N%5%$%H$K$9$G$K(B DNP $B%U%)(B +$B%s%H$,%$%s%9%H!<%k$5$l$F$$$k$J$i!"$=$l$r$D$+$&$Y$-$G$7$g$&!#(BDNP $B%U%)%s(B +$B%H$r%(%_%e%l!<%H$9$k$?$a$KEOJU%U%)%s%H$r%+%9%?%^%$%:$7$?EOJU(B DNP $B%U%)(B +$B%s%H$O(B freeware $B$H$7$F;HMQ$9$k$3$H$,$G$-$^$9!#(BDNP $B%U%)%s%H$r%(%_%e%l!<(B +$B%H$9$kJ}K!$O%7%s%\%j%C%/%j%s%/$G$9!#(B + +$B$3$N(B font $B$O$I$3$K$"$j$^$9$+!)(B ) + + watanabe-dnp (pk files) + ftp.math.s.chiba-u.ac.jp://tex/watanabe-dnp/300 + jb10-300pk.tar.gz jb10-622pk.tar.gz jm10-329pk.tar.gz + jm10-746pk.tar.gz jb10-329pk.tar.gz jb10-746pk.tar.gz + jm10-360pk.tar.gz jm8-300pk.tar.gz jb10-360pk.tar.gz + jb8-300pk.tar.gz jm10-432pk.tar.gz jm9-300pk.tar.gz + jb10-432pk.tar.gz jb9-300pk.tar.gz jm10-518pk.tar.gz + jb10-518pk.tar.gz jm10-300pk.tar.gz jm10-622pk.tar.gz + tfm files + ftp.math.s.chiba-u.ac.jp://tex/watanabe-dnp/tfm-dnp.tar.gz + ftp.math.s.chiba-u.ac.jp://tex/watanabe-dnp/tfm.tar.gz + tools for symbolic link + ftp.math.s.chiba-u.ac.jp://tex/watanabe-dnp/fake.tar.gz + +$B$I$&$d$C$F%;%C%H%"%C%W$9$k$N$G$7$g$&$+!)(B) + + $B$"$J$?$N(B font $B%G%#%l%/%H%j$r(B $fonts $B$H2>Dj$7$^$9!#(B + (e.g. /usr/local/lib/tex/fonts/japan) + $B$5$i$K!">e5-$N%U%!%$%k$NCV$+$l$F$$$k%G%#%l%/%H%j$r(B $src $B$H2>Dj(B + $B$7$^$9!#(B + (e.g. /usr/local/src) + + ftp server $B$+$i(B get $B$7$?%U%!%$%k$rE83+$7$^$9!#(B + + % cd $src + % gunzip -c fake.tar.gz | tar xvf - + % gunzip -c jd....pk.tar.gz | tar xvf - + % gunzip -c jm....pk.tar.gz | tar xvf - + % gunzip -c tfm.tar.gz | tar xvf - + + $B%G%#%l%/%H%j$N:n@.!#(B + + % cd $fonts + % mkdir $fonts/watanabe-dnp + % mkdir $fonts/watanabe-dnp/jd300 + % mkdir $fonts/watanabe-dnp/tfm + + $B%U%!%$%k$r(B copy $B$7$^$9!#(B + + % cd $fonts/watanabe-dnp + % cp $src/fake/* . + % cp $src/tfm/* tfm + % cp $src/*pk/*pk jd300 + + $BA4$F$NEOJU%U%)%s%H$r:n@.$7$^$9!#(B + + % make mk-300ex + + $B%7%s%\%j%C%/%j%s%/$rD%$j$^$9!#(B + + % mkdir $fonts/dnp + % cd $fonts/dnp + % cp $fonts/watanabe-dnp/LNFAKE . + + $B<!$K(B dnp $B%G%#%l%/%H%j$N(B `LNFAKE' $B$rJT=8$7$^$9!#(B`wdir' $B$NItJ,$r(B + $B$"$J$?$,EOJU(B DNP $B%U%)%s%H$r%$%s%9%H!<%k$7$?%G%#%l%/%H%j$K%;%C%H(B + $B$7$^$9!#(B + + wdir=../watanabe-dnp/jd300/ + + $B$=$N8e!"0J2<$r<B9T$7$F2<$5$$!#(B + + % LNFAKE jm dm + % LNFAKE jb dg + + + $B%$%s%9%H!<%k8e$N%G%#%l%/%H%j!<%D%j!<$O0J2<$N$h$&$K$J$j$^$9(B: + + $fonts/ +- watanabe-dnp/ +-jd300/ (all pk files) + | | + | +-tfm/ + | | + | +-Makefile, FAKEDNP, FAKETFM, fake.c ... + | + +- dnp/ + + $fonts/watanabe-dnp/jd300 $B$H(B $fonts/dnp $B$@$1$,I,MW$J$N$G!"(B + $fonts/watanabe-dnp/tfm/ $B$dI,MW$NL5$$%U%!%$%k$O:o=|$7$F9=$$$^$;$s!#(B + + tfm $B$r%$%s%9%H!<%k$7$F$"$k%G%#%l%/%H%j$K0\$C$F!"0J2<$r<B9T$7$F$/$@(B + $B$5$$!#(B + + + % gunzip -c tfm-dnp.tar.gz | tar xvf - + + $B$=$l$+$i!"(Btfm-dnp $B$N%U%k%Q%9$r4D6-JQ?t(B TEXFONTS $B$KDI2C$7$F2<$5$$!#(B + + +$B$I$&$d$C$F(B CJK $B$+$i;H$&$N$G$9$+!)(B) + +DNP $B%U%)%s%H$G(B CJK.sty $B$r;H$&Nc$G$9!#(B + +with latex: + + \documentclass[a4paper]{article} + \topmargin=-3.5cm + \textheight=26cm + \usepackage{CJK} + \usepackage{indentfirst} + + \begin{document} + \begin{CJK*}[dnp]{JIS}{song} + + < "$BF|K\8l$NJ8>O(B" > + + \end{CJK*} + \end{document} + + +with mulatex: + + \documentclass[a4paper]{article} + .... + \usepackage[global]{CJK} + \usepackage{indentfirst} + + \CJKfontenc{JIS}{dnp} + + \begin{document} + \begin{CJK*}{}{} + + < "$BF|K\8l$NJ8>O(B" > + + \end{CJK*} + \end{document} + + +[$B$J$<!"(Bmulatex $B$H6&$K(B `\begin{CJK*}[dnp]{}{}' $B$H=q$$$F$O$$$1$J$$(B +$B$+$K$D$$$F$O!"(Bmule2cjk.doc $B$rFI$s$G2<$5$$(B] + + +$BEOJU(B $B%U%)%s%H(B +------------- + +$B%*%j%8%J%k$NEOJU%U%)%s%H$b$^$?!"(BCJK $B$N4D6-$G;H$&;v$,=PMh$^$9!#(B + +$B$3$N(B font $B$O$I$3$K$"$j$^$9$+!)(B) + + watanabe-jfonts (pk files) + ftp.iij.ad.jp://pub/TeX/fonts/watanabe-jfonts/300 + b250.lzh b274.lzh b300.lzh b329.lzh b360.lzh + b432.lzh b518.lzh b622.lzh b746.lzh m250.lzh + m274.lzh m300.lzh m329.lzh m360.lzh m432.lzh + m518.lzh m622.lzh m746.lzh + + ftp.iij.ad.jp://pub/TeX/fonts/watanabe-jfonts/400 + + tfm files + ftp.iij.ad.jp://pub/TeX/fonts/watanabe-jfonts/tfmfiles.lzh + + +$B$I$&$d$C$F(B CJK $B$+$i;H$&$N$G$9$+!)(B) + +$BEOJU%U%)%s%H$+$i(B CJK $B$r;H$&Nc$r0J2<$K<($7$^$9!#(B + +with latex: + + \documentclass[a4paper]{article} + \topmargin=-3.5cm + \textheight=26cm + \usepackage{CJK} + \usepackage{indentfirst} + + \begin{document} + \begin{CJK*}[wn]{JIS}{song} + + < "$BF|K\8l$NJ8>O(B" > + + \end{CJK*} + \end{document} + + +with mulatex: + + \documentclass[a4paper]{article} + .... + \usepackage[global]{CJK} + \usepackage{indentfirst} + + \CJKfontenc{JIS}{wn} + + \begin{document} + \begin{CJK*}{}{} + + < "$BF|K\8l$NJ8>O(B" > + + \end{CJK*} + \end{document} + + +compilation and coding-system +----------------------------- + +$B$b$7!"(Blatex $B%U%!%$%k$r(B latex $B%3%^%s%I$r;H$C$F%3%s%Q%$%k$9$k$J$i!"%U%!(B +$B%$%k$rF|K\8l(B EUC $B$GJ]B8$7$J$1$l$P$J$j$^$;$s!"$=$7$F(B + + latex yourfile + +$B$H$7$F(B latex $B%U%!%$%k$r=hM}$7$F2<$5$$!#(B + +[$B%U%!%$%k$r(B SJIS $B$GJ]B8$9$k;v=PMh$^$9!#$=$N;~$O(B CJK $B$N4D6-$K$*$1$k%(%s(B +$B%3!<%G%#%s%0%Q%i%a!<%?$r(B JIS $B$NBe$o$j$K(B SJIS $B$K$7$J$1$l$P$J$j$^$;$s!#(B +SJIS$B$N4D6-$G$b(B JIS $B$N%U%)%s%H$r;H$$$^$9!#(B] + +$B$b$7(B latex $B%U%!%$%k$r(B mulatex $B%3%^%s%I$r;H$C$F%3%s%Q%$%k$9$k$J$i!"(B +latex file $B$rJ]B8$9$k;~$K(B coding $B%7%9%F%`$K4X$7$F$$$/$D$+$NA*Br;h$r;}(B +$B$D;v$,=PMh$^$9!#(BCJK $B%Q%C%1!<%8$K%G%U%)%k%H$GIU$$$FMh$k(B mulatex $B$r;H$&(B +$B$J$i(B latex file $B$r(B Mule $B$N(B internal code$B$GJ]B8$7$F!"(B + + mulatex yourfile + +$B$H$7$F(B latex $B%U%!%$%k$r=hM}$7$F2<$5$$!#(B + +[mulatex $B$O(B CJK $B%Q%C%1!<%8$N(B utils/mule2cjk $B$H$$$&%G%#%l%/%H%j$KCV$+(B +$B$l$F$$$^$9!#(Bmule2cjk.doc $B$r;2>H$7$F2<$5$$!#(B] + +$B$7$+$7!"(BMule $B$N(B internal code $B$,I8=`$N%3!<%I7O$G$J$$$H$+!"(BMule $B0J30$G(B +$BFI$a$J$$$H$+!">-MhJQ$o$C$F$7$^$&$+$b$7$l$J$$$H$$$&M}M3$G!"(Blatex file +$B$r(B Mule $B$N(B internal code $B$GJ]B8$7$?$/$J$$>l9g$O!"(Blatex file $B$r!"(B +ISO2022 $B%(%s%3!<%G%#%s%0$r4p$K$7$?(B *junet* $B$GJ]B8$9$k$+!"(BX window +system $B$G(B Compound Text Encoding $B$H$7$F;H$o$l$F$$$k(B *ctext* $B$GJ]B8$9$k(B +$B$3$H$,$G$-$^$9!#0J2<$N$&$A$N0l$D$N(B mulatex shell script $B$GCV$-49$($F2<(B +$B$5$$!#(B + + : mulatex for *junet* + + % cat mulatex + #!/bin/sh + # mulatex : LaTeX2e for Mule's *junet* encoding + # + fname=`echo $1 | sed 's/\.[^\.]*$//g'` + coco '*junet*' '*internal*' < $1 | mule2cjk > $fname.cjk + st=$? + if [ $st -ne 0 ] ; then + exit $st + fi + latex $fname.cjk + st=$? + if [ -f $fname.cjk ] ; then + /bin/rm -f $fname.cjk + fi + exit $st + % + + : mulatex for *ctext* + + % cat mulatex + #!/bin/sh + # mulatex : LaTeX2e for Mule's *ctext* encoding + # + fname=`echo $1 | sed 's/\.[^\.]*$//g'` + coco '*ctext*' '*internal*' < $1 | mule2cjk > $fname.cjk + st=$? + if [ $st -ne 0 ] ; then + exit $st + fi + latex $fname.cjk + st=$? + if [ -f $fname.cjk ] ; then + /bin/rm -f $fname.cjk + fi + exit $st + % + +auctex $BL5$7$G(B mule $B$r;H$&>l9g$O!"0J2<$N(B Lisp code $B$r=i4|2=%U%!%$%k(B +`.emacs' $B$KIU$12C$($F2<$5$$!#(B + + : `.emacs' for *junet* + + (add-hook 'LaTeX-mode-hook + (function (lambda () + (set-file-coding-system *junet*) + ))) + + : `.emacs' for *ctext* + + (add-hook 'LaTeX-mode-hook + (function (lambda () + (set-file-coding-system *ctext*) + ))) + +`coco' $B$O(B Mule $B$N(B package $B$K4^$^$l$F$$$k%W%m%0%i%`$G$9!#(B + + +auctex +------ + +auctex $B$O(B TeX $B$H(B LaTeX $B%f!<%6!<$N$?$a$N(B elisp $B%Q%C%1!<%8$G$9!#(BCJK $B$N4D(B +$B6-$r(B auctex $B$KE}9g$9$k$N$O4JC1$G$9!#;H$$J}$O!"(Bdvi $B%U%!%$%k$r%3%s%Q%$%k(B +$B$9$k$?$a$N%?%$%W%;%C%H%3%^%s%I$,(B latex $B$G$O$J$/(B mulatex $B$G$"$kE@$r=|$1(B +$B$P!"I8=`$N(B LaTeX $B$HA4$/F1$8$G$9!#0J2<$N%3!<%I$r$"$J$?$N(B `.emacs' $B$+(B +($B$b$72DG=$J$i(B tex-site.el $B$K(B)$BDI2C$7$F2<$5$$!#(B + + : `.emacs' for auctex users + + (add-hook 'LaTeX-mode-hook + (function (lambda () + (set-file-coding-system *junet*) + (nconc + TeX-command-list + (list + (list "MuLaTeX" "aucmulatex %t" 'TeX-run-LaTeX nil t) + ) + ) + (setq TeX-command-default "MuLaTeX") + ))) + + + : mulatex for auctex users + + % cat aucmulatex + #!/bin/sh + # aucmulatex : LaTeX2e in auctex mode for Mule's *junet* encoding + # + fname=`echo $1 | sed 's/\.[^\.]*$//g'` + coco '*junet*' '*internal*' < $1 | mule2cjk > $fname.cjk + st=$? + if [ $st -ne 0 ] ; then + exit $st + fi + latex \\nonstopmode\\input{$fname.cjk} + st=$? + if [ -f $fname.cjk ] ; then + /bin/rm -f $fname.cjk + fi + exit $st + % + + $B$3$NNc$O!"(B*junet* $B$K$D$$$F$N$_=q$+$l$F$$$^$9$,!"$b$A$m$sB>$N%3!<%I(B + $B7O$G$bF1MM$K;H$($^$9!#(B + + +auctex (yet another usage) +---------------------------- + +Shell $B%9%/%j%W%H$r;H$C$?(B mulatex $B$NJQ$o$j$K(B $BD>@\(B elisp $B$r=q$/;v$b$G$-(B +$B$^$9!#(BLaTeX $B%U%!%$%k$,(B *junet* $B$d(B *ctext*, *euc-japan* $B$H$$$C$?%3!<%I(B +$B7O$G=q$+$l$F$$$?$H$7$F$b!"(BMule $B$O<+F0E*$K$=$l$i$N%3!<%I$rH=JL$9$k$G$7$g(B +$B$&!#0J2<$N%3!<%I$r$"$J$?$N(B `.emacs' $B$+(B($B$b$72DG=$J$i(B tex-site.el $B$K(B)$BDI(B +$B2C$7$F2<$5$$!#(B + + : `.emacs' for auctex user (for Mule 2.3 based on emacs 19.28) + + (add-hook 'LaTeX-mode-hook + (function (lambda () + (nconc + TeX-command-list + (list + (list "MuLaTeX" "latex '\\nonstopmode\\input{%c}'" + 'TeX-run-MuLaTeX nil t) + ) + ) + (nconc + TeX-expand-list + (list + (list "%c" 'file "cjk") + )) + (setq TeX-command-default "MuLaTeX") + ))) + + (define-program-coding-system nil "mule2cjk" *internal*) + + (defvar TeX-LaTeX-CJK-tmpfile nil) + + (defun TeX-MuLaTeX-sentinel (process name) + (prog1 + (TeX-LaTeX-sentinel process name) + (delete-file TeX-LaTeX-CJK-tmpfile))) + + ; customized from TeX-run-LaTeX + (defun TeX-run-MuLaTeX (name command file) + "Run mule2cjk and latex on current TeX buffer." + + (let ((TeX-LaTeX-CJK-tmpbuffer (generate-new-buffer-name "cjk"))) + (setq TeX-LaTeX-CJK-tmpfile (concat file ".cjk")) + (generate-new-buffer TeX-LaTeX-CJK-tmpbuffer) + (call-process-region + (point-min) (point-max) "mule2cjk" nil TeX-LaTeX-CJK-tmpbuffer nil) + (set-buffer TeX-LaTeX-CJK-tmpbuffer) + (write-region (point-min) (point-max) + TeX-LaTeX-CJK-tmpfile nil nil *internal*) + + (let ((process (TeX-run-format name command file))) + (setq TeX-sentinel-function 'TeX-MuLaTeX-sentinel) + (if TeX-process-asynchronous + process + (TeX-synchronous-sentinel name file process))) + (kill-buffer TeX-LaTeX-CJK-tmpbuffer))) + + +indentfirst.sty +--------------- + +$BF|K\8lJ8>O$NCJMn$N%$%s%G%s%H$N$D$1J}$O%*%j%8%J%k$N(B latex $B$N%$%s%G%s%H$N(B +$BIU$1J}$H0[$C$F$$$^$9!#$3$NLdBj$r2r7h$9$k$?$a$K!"(B`indentfirst.sty' $B$H$$(B +$B$&!">o$K:G=i$NCJMn$G%$%s%G%s%H$9$k$?$a$N%9%?%$%k%U%!%$%k$,(B LaTeX2e $B$N(B +official tool $B$NCf$K$"$j$^$9!#(B + +indentfirst.sty $B$O$I$3$K$"$j$^$9$+!)(B) + +Host ftp.dante.de + + Location: /tex-archive/macros/latex/packages/tools + FILE rw-rw-r-- 1492 Dec 14 17:46 indentfirst.dtx + +$B$^$?$O!"$"$J$?$N%5%$%H$N6a$/$N(B CTAN $B$N%_%i!<$r$7$F$$$k%5%$%H$K$"$j$^$9!#(B + +/pub/TeX/CTAN/macros/latex/packages/tools $B$K$"$kA4$F$N%U%!%$%k$r(B get +$B$7$F$=$3$K4^$^$l$k(B readme.txt $B$rFI$s$G$+$i%$%s%9%H!<%k$7$?J}$,$$$$$G(B +$B$7$g$&!#$=$NCf$K$ONc$($P(B tabular $B$d(B verbatim $B$H$$$C$?Hs>o$KM-MQ$J%9%?(B +$B%$%k%U%!%$%k$,4^$^$l$F$$$^$9!#(B + +\maketitle +---------- + +$BF|K\8l$N%?%$%H%k$r=q$-$?$$;~$O!"(B\maketitle $B%3%^%s%I$O(B CJK $B$N4D6-$NFbB&(B +$B$K$J$/$F$O$$$1$^$;$s!#$J$<$J$i!"F|K\8l$N%?%$%H%k$O(B CJK $BJ8;z$r4^$`$+$i(B +$B$G$9!#(B + +$BNc(B) + + \documentclass[a4paper]{article} + .... + \usepackage[global]{CJK} + \usepackage{indentfirst} + + \begin{CJK*}{}{} + \title{ < "$BF|K\8l$NJ8>O(B" > } + \author{ < "$BF|K\8l$NJ8>O(B" > } + \end{CJK*} + + \begin{document} + \begin{CJK*}{}{} + + \maketitle + ..... + < "$BF|K\8l$NJ8>O(B" > + ..... + + \end{CJK*} + \end{document} + + +JIS.cap +------- + +CJK $B$G$OF|K\8l(B caption $B$r;H$&$3$H$b$G$-$^$9!#$=$N$?$a$K$O!"(B($BI8=`$N(B +class $B$rCV$-49$($F$7$^$&(B) koma-script $B%Q%C%1!<%8$,I,MW$G$9!#(B($B>\$7$/$O(B +CJK.txt $B$N(B captions $B$r;2>H$7$F$/$@$5$$!#(B) + +[CJK 4.1.0 $B$h$jA0$N%P!<%8%g%s$G$O$3$N5!G=$OF|K\8l$K4X$7$F$&$^$/F0:n$7(B + $B$^$;$s!#(B] + + +Koma-script $B$O$I$3$K$"$j$^$9$+!)(B) + +Host ftp.dante.de + + Location: /tex-archive/macros/latex/contrib/supported + DIRECTORY rwxr-xr-x 1024 Jan 23 12:20 koma-script + +$B$^$?$O!"$"$J$?$N%5%$%H$N6a$/$N(B CTAN $B$N%_%i!<$r$7$F$$$k%5%$%H$K$"$j$^$9!#(B + +$B$I$&$d$C$F(B CJK $B$+$i;H$&$N$G$9$+!)(B) + +CJK JIS $B4D6-$NCf$G0J2<$N%3%^%s%I$r=q$/;v$K$h$C$F(B + + \CJKcaption{JIS} + +$BF|K\8l(B caption $B$rM-8z$K$9$k;v$,$G$-$^$9!#(B + + CJK.sty $B$H(B Koma-script $B$GF|K\8l(B caption $B$r;H$&$?$a$K$O(B, $B0J2<$NNc$r(B + $B$NMM$K$7$F$/$@$5$$!#(B + + % srcartcl is a stylefile of Koma-script + \documentclass{scrartcl} + \topmargin=-3.5cm + \textheight=26cm + \usepackage{CJK} + \usepackage{indentfirst} + + \begin{document} + \begin{CJK*}[dnp]{JIS}{song} + \CJKcaption{JIS} + + < "$BF|K\8l$NJ8>O(B " > + + % $BF|K\8l(B Caption + \refname{< "$BF|K\8l$NJ8>O(B " >} + + \end{CJK*} + \end{document} + + +\newpage +-------- + +CJK $B$N%3%^%s%I$,L$Dj5A$G$"$k$H$$$&%(%i!<$K=P$/$o$9>l9g$K$O!"(BCJK $B4D6-$,(B +$B=*N;$9$kD>A0$G$=$N%Z!<%8$r(B($B%a%b%j$+$i%U%!%$%k$X(B)$B=q$-=P$9I,MW$,$"$j$^$9!#(B +$B$J$<$J$i!"(BLaTeX $B$O(B CJK $B4D6-$r=*N;8e$K(B(CJK $B%3%^%s%I$r4^$`(B)$B%X%C%@$r(B($B%U%!(B +$B%$%k$X(B)$B=q$-9~$`$3$H$,$"$k$+$i$G$9!#(B($B>\$7$/$O(B CJK.txt $B$N(B Possible +errors $B$r;2>H$7$F$/$@$5$$!#(B) + + +$BNc(B) + + \documentclass[a4paper]{article} + \usepackage{CJK} + \usepackage{indentfirst} + + \begin{document} + \begin{CJK*}{JIS}{song} + + < "$BF|K\8l$NJ8>O(B" > + ..... + \newpage + \end{CJK*} + \end{document} + + +$BF|K\8l(B Postscript $B%W%j%s%?!<(B +---------------------------- + +$B<+J,$N%5%$%H$K(B /Ryumin-Light $B$H(B /GothicBBB-Medium $B$r<BAu$7$F$$$k$+!"$b(B +$B$7$/$O%(%_%e%l!<%H$G$-$kF|K\8l(B PS $B%U%)%s%H$rFbB"$7$F$$$k(B PostScript $B%W(B +$B%j%s%?!<$,$"$l$P!"(BDNP $B%U%)%s%H%a%H%j%C%/$r;}$D(B dnp-tfm (DNP fonts $B;2>H(B) +$B$K$h$C$F:n$i$l$?(B dvi $B%U%!%$%k$r4JC1$K0u:~$9$k;v$,$G$-$^$9!#(Bdvi2ps $B$OF|(B +$BK\8l(B PostScript $B%W%j%s%?$N%I%i%$%P!<%=%U%H$G$9!#$^$?F1MM$K(B DNP $B%U%)%s%H(B +$B$HF1$8%a%H%j%C%/$r;}$DEOJU(B DNP $B%U%)%s%H$r(B preview $B$K;H$&$3$H$b$G$-$^$9!#(B + +dvi2ps $B$O$I$3$K$"$j$^$9$+!)(B) + +Host ftp.math.s.chiba-u.ac.jp + + Location: /tex + FILE rw-r--r-- 112970 Dec 1 1994 dvi2ps-1.91j.tar.gz + + +------------------ +Version 1.0 Beta7 (1996/02/03) + Tanaka Shinichiro Email: tanaka3@ifos.se.fujitsu.co.jp + + + +---End of japanese.jis--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/japanese/japanese.txt b/Master/texmf-dist/doc/latex/CJK/doc/japanese/japanese.txt new file mode 100644 index 00000000000..e637fdb0d75 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/japanese/japanese.txt @@ -0,0 +1,637 @@ +This is the file japanese.txt of the CJK macro package ver. 4.1.0 +(20-Nov-1996). + +It concentrates on the use of DNP fonts (their font metrics can be used +in conjunction with PS printers which have their own builtin Japanese fonts) +and watanabe jfonts. + +The use of the kanji48 bitmap font together with hbf2gf is similar to all +other CJK bitmap files and is documented in detail in the file hbf2gf.txt . + + +kanji48 font +------------ + +Where is the font ? ) + +Host ftp.tex.ac.uk + Location: /pub/archive/fonts/CJK + FILE -rw-rw-r-- 1 ctan TeX 742459 Dec 1 00:01 kanji48.tar.gz +Host ftp.dante.de + Location: /tex-archive/fonts/CJK + FILE -rw-rw-r-- 1 Mr.Ftp server 742459 Dec 1 00:01 kanji48.tar.gz + +or your nearest CTAN mirror ftp sites. + + +How to use it in CJK ? ) + +Use CJK.sty with Japanese as follows: + +with latex: + + \documentclass[a4paper]{article} + \topmargin=-3.5cm + \textheight=26cm + \usepackage{CJK} + \usepackage{indentfirst} + + \begin{document} + \begin{CJK*}{JIS}{song} + + ..... + < Japanese text > + ..... + + \end{CJK*} + \end{document} + + +with mulatex: + + \documentclass[a4paper]{article} + .... + \usepackage[global]{CJK} + \usepackage{indentfirst} + + \begin{document} + \begin{CJK*}{}{} + + ..... + < Japanese text > + ..... + + \end{CJK*} + \end{document} + + +The package CJK offers two environments: CJK and CJK*. CJK* suppresses +spaces followed by a CJK character, whereas CJK doesn't. + +If you write only Japanese, you should use the CJK* environment. If you +really need a space directly followed by a JIS character, you must then use +TeX commands like `\ ', `{} ', etc. + +It is highly recommended to declare + + \usepackage[global]{CJK} + +if you use mulatex to be able to write Japanese inside of other +environments. See mule2cjk.doc for details. + + +DNP fonts +--------- + +What are DNP fonts ? ) + +DNP stands for "Dai Nippon Printing" (a big printing company in Japan). DNP +fonts are commercial fonts made by this company; if real DNP fonts have been +already installed at your site, you should use them. But watanabe-dnp fonts, +which are customized from watanabe-jfonts to emulate DNP fonts, are +freeware. The method of emulation is symbolic name linking. + + +Where are the fonts ? ) + + watanabe-dnp (pk files) + ftp.math.s.chiba-u.ac.jp://tex/watanabe-dnp/300 + jb10-300pk.tar.gz jb10-622pk.tar.gz jm10-329pk.tar.gz + jm10-746pk.tar.gz jb10-329pk.tar.gz jb10-746pk.tar.gz + jm10-360pk.tar.gz jm8-300pk.tar.gz jb10-360pk.tar.gz + jb8-300pk.tar.gz jm10-432pk.tar.gz jm9-300pk.tar.gz + jb10-432pk.tar.gz jb9-300pk.tar.gz jm10-518pk.tar.gz + jb10-518pk.tar.gz jm10-300pk.tar.gz jm10-622pk.tar.gz + tfm files + ftp.math.s.chiba-u.ac.jp://tex/watanabe-dnp/tfm-dnp.tar.gz + ftp.math.s.chiba-u.ac.jp://tex/watanabe-dnp/tfm.tar.gz + tools for symbolic link + ftp.math.s.chiba-u.ac.jp://tex/watanabe-dnp/fake.tar.gz + +How to set them up ? ) + + Suppose your fonts directory is $fonts , + (e.g. /usr/local/lib/tex/fonts/japan) + and your source directory in which the above files are put is $src. + (e.g. /usr/local/src) + + You should now expand all fonts that you've downloaded from the ftp + server. + + % cd $src + % gunzip -c fake.tar.gz | tar xvf - + % gunzip -c jd....pk.tar.gz | tar xvf - + % gunzip -c jm....pk.tar.gz | tar xvf - + % gunzip -c tfm.tar.gz | tar xvf - + + Make directories. + + % cd $fonts + % mkdir $fonts/watanabe-dnp + % mkdir $fonts/watanabe-dnp/jd300 + % mkdir $fonts/watanabe-dnp/tfm + + Copy files. + + % cd $fonts/watanabe-dnp + % cp $src/fake/* . + % cp $src/tfm/* tfm + % cp $src/*pk/*pk jd300 + + Make all watanabe-dnp fonts. + + % make mk-300ex + + Make symbolic links. + + % mkdir $fonts/dnp + % cd $fonts/dnp + % cp $fonts/watanabe-dnp/LNFAKE . + + Next, edit the file `LNFAKE' in the dnp directory. Make sure that + `wdir' is set to the directory where you have installed watanabe-dnp + fonts: + + wdir=../watanabe-dnp/jd300/ + + Then execute, + + % LNFAKE jm dm + % LNFAKE jb dg + + + The directory tree after the installation will look like this: + + $fonts/ +- watanabe-dnp/ +-jd300/ (all pk files) + | | + | +-tfm/ + | | + | +-Makefile, FAKEDNP, FAKETFM, fake.c ... + | + +- dnp/ + + You will need only the directories $fonts/watanabe-dnp/jd300 and + $fonts/dnp. You can remove $fonts/watanabe-dnp/tfm/ together with the + other now unnecessary files. + + Moving to your tfm directory, execute + + % gunzip -c tfm-dnp.tar.gz | tar xvf - + + Then add tfm-dnp (with the full path) to the TEXFONTS environment + variable. + + +How to use them in CJK ? ) + +See the following examples how to use CJK.sty with DNP fonts. + +with latex: + + \documentclass[a4paper]{article} + \topmargin=-3.5cm + \textheight=26cm + \usepackage{CJK} + \usepackage{indentfirst} + + \begin{document} + \begin{CJK*}[dnp]{JIS}{song} + + <Japanese text> + + \end{CJK*} + \end{document} + + +with mulatex: + + \documentclass[a4paper]{article} + .... + \usepackage[global]{CJK} + \usepackage{indentfirst} + + \CJKfontenc{JIS}{dnp} + + \begin{document} + \begin{CJK*}{}{} + + <Japanese text> + + \end{CJK*} + \end{document} + + +[Read the file mule2cjk.doc for an explanation why you can't say + `\begin{CJK*}[dnp]{}{}' with mulatex.] + + +watanabe jfonts +--------------- +You can also use the original watanabe jfonts in a CJK environment. + +Where are the fonts ? ) + + watanabe-jfonts (pk files) + ftp.iij.ad.jp://pub/TeX/fonts/watanabe-jfonts/300 + b250.lzh b274.lzh b300.lzh b329.lzh b360.lzh + b432.lzh b518.lzh b622.lzh b746.lzh m250.lzh + m274.lzh m300.lzh m329.lzh m360.lzh m432.lzh + m518.lzh m622.lzh m746.lzh + + ftp.iij.ad.jp://pub/TeX/fonts/watanabe-jfonts/400 + + tfm files + ftp.iij.ad.jp://pub/TeX/fonts/watanabe-jfonts/tfmfiles.lzh + + +How to use them in CJK ? ) + +See the following examples how to use CJK.sty with watanabe jfonts. + +with latex: + + \documentclass[a4paper]{article} + \topmargin=-3.5cm + \textheight=26cm + \usepackage{CJK} + \usepackage{indentfirst} + + \begin{document} + \begin{CJK*}[wn]{JIS}{song} + + <Japanese text> + + \end{CJK*} + \end{document} + + +with mulatex: + + \documentclass[a4paper]{article} + .... + \usepackage[global]{CJK} + \usepackage{indentfirst} + + \CJKfontenc{JIS}{wn} + + \begin{document} + \begin{CJK*}{}{} + + <Japanese text> + + \end{CJK*} + \end{document} + + +compilation and coding-system +----------------------------- + +If you use `latex' to compile latex files, you must save these files in +Japanese EUC and say + + latex yourfile + +to process these files. + +[You can also save the file in SJIS encoding; then you must use `SJIS' + instead of `JIS' as the encoding parameter in the CJK environment. Note + that SJIS uses the JIS fonts.] + +If you use `mulatex' to compile latex files, there are several possibilities +in which coding-system you can save your latex files. If you use the +original mulatex script file that comes with the CJK package, you must save +these files in Mule's internal code and say + + mulatex yourfile + +to process these files. + +[mulatex is in utils/mule2cjk in CJK package directory. ref: mule2cjk.doc] + +But if you do not like the idea of saving latex files in Mule's internal +encoding (this coding-system is not a standard coding-system, can not be +read without Mule and will be changed in the future), you can save them in +*junet*, which is based on ISO-2022 encoding, or in *ctext*, which is used +in the X window system as Compound Text Encoding. Then replace the mulatex +shell script with one of the following examples. + + + : mulatex for *junet* + + % cat mulatex + #!/bin/sh + # mulatex : LaTeX2e for Mule's *junet* encoding + # + fname=`echo $1 | sed 's/\.[^\.]*$//g'` + coco '*junet*' '*internal*' < $1 | mule2cjk > $fname.cjk + st=$? + if [ $st -ne 0 ] ; then + exit $st + fi + latex $fname.cjk + st=$? + if [ -f $fname.cjk ] ; then + /bin/rm -f $fname.cjk + fi + exit $st + % + + : mulatex for *ctext* + + % cat mulatex + #!/bin/sh + # mulatex : LaTeX2e for Mule's *ctext* encoding + # + fname=`echo $1 | sed 's/\.[^\.]*$//g'` + coco '*ctext*' '*internal*' < $1 | mule2cjk > $fname.cjk + st=$? + if [ $st -ne 0 ] ; then + exit $st + fi + latex $fname.cjk + st=$? + if [ -f $fname.cjk ] ; then + /bin/rm -f $fname.cjk + fi + exit $st + % + +If you use Mule (without auctex), add one of the following pieces of +Lisp code to your .emacs initialization file. + + : `.emacs' for *junet* + + (add-hook 'LaTeX-mode-hook + (function (lambda () + (set-file-coding-system *junet*) + ))) + + : `.emacs' for *ctext* + + (add-hook 'LaTeX-mode-hook + (function (lambda () + (set-file-coding-system *ctext*) + ))) + +The program `coco' is included in the Mule package. + + +auctex +------ + +auctex is an elisp package for TeX and LaTeX users. It is easy to integrate +the CJK environment into auctex; the usage is very similar to ordinary LaTeX +with the exception that the typesetting command to compile a .dvi file is +not `latex' but `mulatex'. + +Add the following code to your .emacs file (or, if possible, to +tex-site.el). + + : `.emacs' for auctex users + + (add-hook 'LaTeX-mode-hook + (function (lambda () + (set-file-coding-system *junet*) + (nconc + TeX-command-list + (list + (list "MuLaTeX" "aucmulatex %t" 'TeX-run-LaTeX nil t) + ) + ) + (setq TeX-command-default "MuLaTeX") + ))) + + + : mulatex for auctex users + + % cat aucmulatex + #!/bin/sh + # aucmulatex : LaTeX2e in auctex mode for Mule's *junet* encoding + # + fname=`echo $1 | sed 's/\.[^\.]*$//g'` + coco '*junet*' '*internal*' < $1 | mule2cjk > $fname.cjk + st=$? + if [ $st -ne 0 ] ; then + exit $st + fi + latex \\nonstopmode\\input{$fname.cjk} + st=$? + if [ -f $fname.cjk ] ; then + /bin/rm -f $fname.cjk + fi + exit $st + % + + This example describes only the usage for *junet*. Of course, you can use + other coding systems too. + + +auctex (yet another usage) +---------------------------- + +You can directly write elisp code instead of using a mulatex shell script +(not for the faint-hearted :-). If TeX files are written in *junet*, *ctext*, +*euc-japan* ... encoding, Mule will understand the input files automatically. +Add the following code to your .emacs file (or, if possible, to tex-site.el). + + : `.emacs' for auctex user (for Mule 2.3 based on emacs 19.28) + + (add-hook 'LaTeX-mode-hook + (function (lambda () + (nconc + TeX-command-list + (list + (list "MuLaTeX" "latex '\\nonstopmode\\input{%c}'" + 'TeX-run-MuLaTeX nil t) + ) + ) + (nconc + TeX-expand-list + (list + (list "%c" 'file "cjk") + )) + (setq TeX-command-default "MuLaTeX") + ))) + + (define-program-coding-system nil "mule2cjk" *internal*) + + (defvar TeX-LaTeX-CJK-tmpfile nil) + + (defun TeX-MuLaTeX-sentinel (process name) + (prog1 + (TeX-LaTeX-sentinel process name) + (delete-file TeX-LaTeX-CJK-tmpfile))) + + ; customized from TeX-run-LaTeX + (defun TeX-run-MuLaTeX (name command file) + "Run mule2cjk and latex on current TeX buffer." + + (let ((TeX-LaTeX-CJK-tmpbuffer (generate-new-buffer-name "cjk"))) + (setq TeX-LaTeX-CJK-tmpfile (concat file ".cjk")) + (generate-new-buffer TeX-LaTeX-CJK-tmpbuffer) + (call-process-region + (point-min) (point-max) "mule2cjk" nil TeX-LaTeX-CJK-tmpbuffer nil) + (set-buffer TeX-LaTeX-CJK-tmpbuffer) + (write-region (point-min) (point-max) + TeX-LaTeX-CJK-tmpfile nil nil *internal*) + + (let ((process (TeX-run-format name command file))) + (setq TeX-sentinel-function 'TeX-MuLaTeX-sentinel) + (if TeX-process-asynchronous + process + (TeX-synchronous-sentinel name file process))) + (kill-buffer TeX-LaTeX-CJK-tmpbuffer))) + + +indentfirst.sty +--------------- + +Japanese style of indenting paragraphs is different from the original latex. +There is a style file called `indentfirst.sty' in the official LaTeX2e +`tools' package which always indents the first paragraph. + +Where is indentfirst.sty ? ) + +Host ftp.dante.de + + Location: /tex-archive/macros/latex/packages/tools + FILE rw-rw-r-- 1492 Dec 14 17:46 indentfirst.dtx + +or your nearest CTAN mirror ftp sites. + +You should get all files in /pub/TeX/CTAN/macros/latex/packages/tools, read +the readme.txt file and install them. There are many, many useful styles in it. +(e.g. tabular or verbatim etc.) + + +\maketitle +---------- + +When you write Japanese titles, make sure that the \maketitle command +is inside of a CJK environment because it contains CJK characters. + +example ) + + \documentclass[a4paper]{article} + .... + \usepackage[global]{CJK} + \usepackage{indentfirst} + + \begin{CJK*}{}{} + \title{ < Japanese Text > } + \author{ < Japanese Text > } + \end{CJK*} + + \begin{document} + \begin{CJK*}{}{} + + \maketitle + ..... + < Japanese Text > + ..... + + \end{CJK*} + \end{document} + + + +JIS.cap +------- + +CJK provides Japanese captions. You need the koma-script package (which is a +replacement of the standard classes) to use the caption files. (ref: `CJK +captions' in CJK.txt) + +[This feature does not work for Japanese in CJK versions prior to 4.1.0] + + +Where is Koma-script ? ) + +Host ftp.dante.de + + Location: /tex-archive/macros/latex/contrib/supported + DIRECTORY rwxr-xr-x 1024 Jan 23 12:20 koma-script + +or your nearest CTAN mirror ftp sites. + +How to use it in CJK ? ) + +Inside of your CJK JIS environment, put + + \CJKcaption{JIS} + +to activate Japanese captions. + + To use CJK.sty and Koma-script for Japanese captions, see the + example below. + + % srcartcl is a stylefile of Koma-script + \documentclass{scrartcl} + \topmargin=-3.5cm + \textheight=26cm + \usepackage{CJK} + \usepackage{indentfirst} + + \begin{document} + \begin{CJK*}[dnp]{JIS}{song} + \CJKcaption{JIS} + + <Japanese text> + + % Japanese Caption + \refname{<Japanese text>} + + \end{CJK*} + \end{document} + + +\newpage +-------- + +If you encounter an undefined CJK command (just before leaving the CJK +environment), it is necessary to flush out the page, because LaTeX sometimes +writes the headers _after_ the environment was closed. (ref: `Possible +errors' in CJK.txt) + + +example ) + + \documentclass[a4paper]{article} + \usepackage{CJK} + \usepackage{indentfirst} + + \begin{document} + \begin{CJK*}{JIS}{song} + + < Japanese text > + ..... + \newpage + \end{CJK*} + \end{document} + + +Japanese PostScript printer +--------------------------- + +If your site has a postscript printer with builtin Japanese PS fonts +that implements /Ryumin-Light and /GothicBBB-Medium, or a printer that +can emulate these fonts, you can easily use it to print out a dvi file +made from dnp-tfm (see DNP fonts). `dvi2ps' is a tool to drive printer +resident Japanese PS fonts. You can also use watanabe-dnp fonts for +previewing, as their metric files are the same. + +Where is dvi2ps ? ) + +Host ftp.math.s.chiba-u.ac.jp + + Location: /tex + FILE rw-r--r-- 112970 Dec 1 1994 dvi2ps-1.91j.tar.gz + + +------------------ +Version 1.0 Beta8 (1996/02/09) + Tanaka Shinichiro Email: tanaka3@ifos.se.fujitsu.co.jp + + + +---End of japanese.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/japanese/jp-fonts.txt b/Master/texmf-dist/doc/latex/CJK/doc/japanese/jp-fonts.txt new file mode 100644 index 00000000000..49d2bae5190 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/japanese/jp-fonts.txt @@ -0,0 +1,54 @@ +Data: Japanese Fonts Environment + + +Phototypesetting systems and font makers. + Syaken + Morisawa + Ryobi + +Font makers. + Dai Nippon Screen + Font Works + Ricoh ---> TrueType fonts (MS-mincho, MS-gothic; used in + Japanese MS-Windows) + (some further companies also make Japanese PS fonts, e.g. URW from + Germany) + +Printing companies. + Dai Nippon Printing (DNP) + Tokyo Syoseki Printing + Toppan Printing + (these are only the biggest companies; many further printing + companies are active in Japan) + +(Ref: `Dai' means `Big'. `Nippon' means `Japan'. `Syoseki' means `books'. + Ricoh is not only a font maker.) + + + 1. Syaken Co is the most famous and biggest company dealing with + phototypesetting systems and fonts in Japan. + + 2. Syaken does not make PostScript Fonts. Their fonts are used + only on Syaken's special phototypesetting machines which many + printing companies use. + + 3. Morisawa made Postscript Fonts in cooperation with Adobe Inc. + It is famous that their fonts have strong software copy + protection. + + 4. There are inexpensive PS fonts called `HEISEI Mincho' and + `HEISEI Gothic' made by the Nippon standard association (I + don't know the exact English name of this association). These + fonts are not so beautiful as Morisawa's PS fonts but cheaper. + + 5. In former times pure PostScript printers only had Morisawa's PS + fonts as builtin fonts. Now there are also pure PS printers + that use builtin Heisei fonts. + + 6. The dvi2ps program outputs Morisawa's font metrics. + + +This document contains no information about the relation about ASCII Nihongo +TeX and Syaken's phototypesetting machines. + +Version 1.0B4 (1996/02/09) written by tanaka3@ifos.se.fujitsu.co.jp diff --git a/Master/texmf-dist/doc/latex/CJK/doc/japanese/jp-tex.txt b/Master/texmf-dist/doc/latex/CJK/doc/japanese/jp-tex.txt new file mode 100644 index 00000000000..8effc418322 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/japanese/jp-tex.txt @@ -0,0 +1,50 @@ +Data: NTT-JTeX's Standard Fonts Environment. + + (La)TeX file + | + +--- dnp-tfm (DNP font metrics) + | + dvi file + | + +-----------------------+-----------------------+ + | | | + dvips-5.58 dvips-5.58 dvi2ps-1.91j + | or dvi2ps-1.91j | or dvi2ps-1.91j | + | | | + real DNP fonts watanabe-dnp fonts Japanese PostScript + (pk fonts) (pk fonts) fonts + | | | + | | | + PostScript PostScript Japanese PostScript + Printer Printer Printer + (or dot Printer (or dot Printer + with GhostScript) with GhostScript) + + 1. Real DNP fonts are commercial fonts sold by DNP. + DNP Fonts are *not* PostScript fonts but PK fonts. + + 2. Watanabe DNP fonts are freeware. That have same font metrics as + real DNP Fonts but have different font names. + + 3. DNP fonts are more beautiful than any available freeware fonts. + (The book written about NTT-JTeX is printed by DNP.) + + 4. NTT-JTeX uses DNP Font Metrics by default. + dvi2ps is standard dviware for NTT-JTeX. + + 5. The printer resident PostScript fonts have no relation to DNP + fonts. + + 6. But dvi2ps use `DNP Font Metrics' to drive printer resident + PostScript fonts. + + 7. Recently PostScript fonts are more used than DNP fonts since + Japanese PostScript printers are now inexpensive in Japan. + + +This document contains no information about TrueType and outline (vector) +fonts. + +Version 1.0B4 (1996/02/09) written by tanaka3@ifos.se.fujitsu.co.jp + + diff --git a/Master/texmf-dist/doc/latex/CJK/doc/japanese/preview.txt b/Master/texmf-dist/doc/latex/CJK/doc/japanese/preview.txt new file mode 100644 index 00000000000..574eb29925b --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/japanese/preview.txt @@ -0,0 +1,39 @@ +Data: NTT-JTeX's Preview Environment. + + (La)TeX file + | + +--- dnp-tfm (DNP fonts metric) + | + dvi file + | + +-----------------------+-----------------------+ + | | | + | | | + real DNP fonts watanabe-dnp fonts Outline fonts + (pk fonts) (pk fonts) (vector fonts) + | | | + xdvi-20 xdvi-20 [ Now investigating ] + + + 1. If you use real DNP fonts or watanabe-dnp fonts for printing, + you should use them to preview dvi files too. + + 2. If you use a Japanese Postscript printer for printing, there + are different possibilities to preview dvi files. + + 1) pk fonts. + + Because dvi files are made from dnp-tfm, you can preview the + dvi files by real DNP fonts or watanabe-dnp fonts. + + Of course Japanese PS fonts are not exactly equal to DNP + fonts. + + 2) outline fonts. + + Outline fonts need less disc space than PK fonts. You can + use outline fonts (often called vector fonts) to preview + them. + + +Version 1.0B3 (1996/02/09) written by tanaka3@ifos.se.fujitsu.co.jp diff --git a/Master/texmf-dist/doc/latex/CJK/doc/japanese/shibuaki.txt b/Master/texmf-dist/doc/latex/CJK/doc/japanese/shibuaki.txt new file mode 100644 index 00000000000..ca317a82fd0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/japanese/shibuaki.txt @@ -0,0 +1,150 @@ + +Handling of space between Kanji and non-Kanji characters. + + +1. Shibuaki or Yonbuaki ($B;MJ,$"$-(B) + + + + <Japanese Text> English word <Japanese Text> + ^ ^ + This point This point + + This space is called "Shibuaki" which has a width of a quarter of a kanji + font width. It is used only between Kanji and non-Kanji characters. + (between Kanji and Kanji only stretchable glue is used; between + ASCII and ASCII ordinary space.) + + +2. Yakumono($BLsJ*(B) + + Here are the rules how and where to use Shibuaki. + +2.1 Yakumono for ASCII characters + + rules: + + 0 No shibuaki between previous kanji character and the ASCII + character, and between next kanji character and the ASCII + character. + + <Kanji character><ASCII character><Kanji Character> + + 1 Shibuaki space only between previous kanji character and the + ASCII character. + + <Kanji character> <ASCII character><Kanji Character> + ^ + shibuaki + + 2 Shibuaki space only between next kanji character and the ASCII + character. + + <Kanji character><ASCII character> <Kanji Character> + ^ + shibuaki + + 3 Shibuaki spaces between kanji characters and ASCII word. + + <Japanese Text> English word <Japanese Text> + ^ ^ + shibuaki shibuaki + + + Rule 3 is always used by all printable ASCII characters without + the following yakumono ASCII characters. + + [This is data from ASCII-Nihongo TeX.] + + % ASCII yakumono characters and the corresponding rules + ( 1 + ) 2 + [ 1 + ] 2 + ` 1 + ' 2 + ; 2 + , 2 + . 2 + +2.2 Yakumono for kanji characters + + rules: + + 0 No shibuaki space between previous ASCII character and the kanji + character, and between next ASCII character and the kanji + character. + + <ASCII character><Kanji character><ASCII character> + + 1 No shibuaki space between previous ASCII character and the kanji + character. + + <ASCII character><Kanji character> <ASCII character> + ^ + shibuaki + + 2 No shibuaki space between next ASCII character and the kanji + character. + + <ASCII character> <Kanji character><ASCII character> + ^ + shibuaki + + 3 Shibuaki spaces between kanji character and ASCII characters + + <ASCII character> <Kanji character> <ASCII character> + ^ ^ + shibuaki shibuaki + + Rule 3 is always used by all kanji characters without the following + yakumono kanji characters. + + [This is data from ASCII-Nihongo TeX.] + + % Kanji yakumono characters and the corresponding rules + $B!"(B 1 + $B!#(B 1 + $B!$(B 1 + $B!%(B 1 + $B!((B 1 + $B!)(B 1 + $B!K(B 1 + $B!J(B 2 + $B!O(B 1 + $B!N(B 2 + $B!Q(B 1 + $B!P(B 2 + $B!F(B 2 + $B!G(B 1 + $B!H(B 2 + $B!I(B 1 + $B!L(B 2 + $B!M(B 1 + $B!R(B 2 + $B!S(B 1 + $B!T(B 2 + $B!U(B 1 + $B!V(B 2 + $B!W(B 1 + $B!X(B 2 + $B!Y(B 1 + $B!Z(B 2 + $B![(B 1 + $B!=(B 0 + $B!A(B 0 + $B!D(B 0 + $B!o(B 0 + $B!k(B 1 + $B!l(B 1 + $B!m(B 1 + + + + +Reference: "Nihongo TeX technical book I" ASCII co. + $BF|K\8l(BTeX$B%F%/%K%+%k%,%$%I(B I $B%"%9%-!<=PHG6I(B + 2200 yen. + + +Version 1.0B1 written by tanaka3@ifos.se.fujitsu.co.jp diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdf/READMEb5.pdf b/Master/texmf-dist/doc/latex/CJK/doc/pdf/READMEb5.pdf Binary files differnew file mode 100644 index 00000000000..a11129fc8d5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdf/READMEb5.pdf diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdf/READMEgb.pdf b/Master/texmf-dist/doc/latex/CJK/doc/pdf/READMEgb.pdf Binary files differnew file mode 100644 index 00000000000..bbb003139ea --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdf/READMEgb.pdf diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdf/c90.pdf b/Master/texmf-dist/doc/latex/CJK/doc/pdf/c90.pdf Binary files differnew file mode 100644 index 00000000000..16bae556d44 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdf/c90.pdf diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/HOWTO.txt b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/HOWTO.txt new file mode 100644 index 00000000000..1579492ca88 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/HOWTO.txt @@ -0,0 +1,425 @@ +How to make PDF files using CJK/LaTeX with embedded TrueType fonts + +Hin-Tak Leung <htl10@users.sourceforge.net> +December 2003 + + +Introduction +------------ + +Existing CJK/LaTeX instruction for high-quality print-out tends to suggest +permanently converting TrueType fonts (which had a better availability) to +postscript sub-fonts; this document covers how to use TrueType fonts +directly, and also preparing such PDF documents. Today, the PDF output +format is slightly more popular than PostScript; also, even on US English +systems, CJK font packs are available for font substitution in Adobe Acrobat +Reader (and similar mechanisms exist for xpdf and ghostscript), which allows +the generation of PDF files containing only important textual content but no +embedded fonts. Such files are small enough to be e-mailed while preserving +formatting, provided the recipient has the font packs installed. This +document also covers the issues with no-embedded-font PDF files at the very +end as well. + +The following steps are discussed below in greater detail: + + 1. Finding the fonts. + 2. Getting and building some software: ttf2tfm, dvipdfmx. + Some other nice optional software: oto, the other freetype/freetype2 + demo tools, ttfm, ttx. + 3. Using ttf2tfm, generating *.tfm and *.enc files for each font. + 4. Putting the fonts, the *.tfm files, and the *.enc files into the right + place in your system. + 5. Configuring dvipdfmx to use the new fonts. + 6. (optional) Configuring pdflatex to use the new fonts also. + 7. Configuring CJK/LaTeX to use those fonts. + 8. Testing. + 9. Problems and tips. + +I can read both traditional and simplified Chinese, and a substantial amount +of Japanese, but there isn't any Korean-specific info here. Hopefully this +is useful enough as a starting point at least for Korean-related +experiments. + +The two most important references during this venture was the FreeBSD +(Taiwan) Chinese HOWTO (it is substantially better and more up-to-date than +the GNU/Linux one), and Edward G. J. Lee's various treatises on the net, +particularly his `mycjk' notes. Unfortunately both are available in Chinese +only, I believe. + + +1. Fonts +======== + + Chinese + ------- + + Arphic donated 4 high-quality Chinese fonts to the open-source community: + two for traditional and two for simplified Chinese, respectively. They are + shipped with Redhat 9 (which I used for most of this work) and Debian 3 + and possibly also other GNU/Linux distributions; they can be downloaded + from Arphic's home site and, probably more convenient, from + + ftp://ftp.gnu.org/gnu/non-gnu/chinese-fonts-truetype/ + + and its mirrors. Tip: Use `unzip -L' to convert file names to lowercase. + + Redhat 9 also ships zysong, a simplified Chinese font. This font seems to + be licensed to Redhat only since it isn't found in other GNU/Linux + distributions. It is part of the package "ttfonts-zh_CN-2.12-1.noarch.rpm", + together with the two Arphic simplified Chinese fonts, on the 3rd CD + of the Redhat 9 CD set. + + The Ministry of Education in Taiwan released a few fonts for + standardization: Currently two are available from the ministry's home page + (http://www.edu.tw/mandr/index.htm), but there are old versions with + different type faces floating around in the net. + + CwTeX (a Chinese-enabled LaTeX implementation in Taiwan) ships 5 fonts. + (http://ccms.ntu.edu.tw/~ntut019/cwtex/cwtex.html) + + Still available is the set of 8 TrueType fonts from NTU which were widely + used previously for CJK/LaTeX documents (http://input.cpatch.org/font/ntu/). + + There is also a set of 10 quite fancy and unusual fonts for traditional + Chinese, developed by Dr Hann-Tzong Wang + (http://140.135.64.77/teacher/htwang/htwang.htm). It is distributed as + one of the standard font sets for FreeBSD Taiwan. + (http://www.freebsd.org/cgi/pds.cgi?ports/chinese/wangttf). + + Japanese + -------- + + Redhat 9 and SuSE both ship the Kochi Gothic and Mincho fonts; Debian + ships Watanabe Mincho and Wadalab Gothic as part of the XTT TrueType font + server. The packages are: "ttfonts-ja-1.2-21.noarch.rpm" on the 3rd disc + of the Redhat 9 CD set, "ttf-kochi-mincho-0.2.20020727-81.noarch.rpm" and + "ttf-kochi-gothic-0.2.20030118-17.noarch.rpm" on SuSe 8.2, + "xtt-fonts" for Debian systems. + + Other source of fonts (e.g. Win2k/WinXP/Win2k3 ships a few as standard, + and also localized version of MS Office, etc.) are mostly proprietary. + + These instructions are known to work on those also, but I don't want to + go into specific details... + + +2. ttf2tfm and dvipdfmx +======================= + + The specific details about compiler switches, include paths, are for + the Redhat 9 distribution. You may have to adapt them. + + ttf2tfm + ------- + + ttf2tfm is part of ttf2pk package which is itself part of + freetype-contrib, a suite of programs depending on the FreeType 1 library. + Most GNU/Linux systems ship both FreeType 2 and FreeType 1 (that's the + case for RH9, in fact), which are *not* compatible. So I decided to build + the latest FreeType 1 static version and made freetype-contrib depend on + that to avoid using the out-dated library shipped with my system. The + mentioned packages can be downloaded from ftp.freetype.org. + + Unpack freetype-current (adapt the `/home/hleung' part to suit yourself), + then do + + cd /home/hleung/freetype-current + ./configure --enable-static --disable-shared --prefix=/home/hleung + make + + Now unpack freetype-contrib-current inside the freetype-current tree, then + do + + cd freetype-contrib-current/ttf2pk + CFLAGS=-I../../lib/ LDFLAGS=-L../../lib/.libs ./configure \ + --with-kpathsea-lib=/usr/lib --with-kpathsea-include=/usr/include + make + make install + + Important: At the end, you need to manually copy the data/*.sfd files into + ${TEXMF}/ttf2tfm and also ${TEXMF}/ttf2pk (a soft link from + ${TEXMF}/ttf2tfm to ${TEXMF}/ttf2pk will do also). + + [The recent TeX directory structure (TDS), version 1.1, comes with a new + subdirectory fonts/sfd, to be accessed with the kpathsea variable + $SFDFONTS. ttf2tfm and other programs available in the TeXLive + distribution have already been updated to use it.] + + The man pages of ttf2tfm and ttf2pk give detailed explanation of all + command line arguments. + + Tip: I find a utility called "checkinstall" quite useful. Instead of `make + install' one calls `checkinstall' which does the same as `make install' + but also integrates the data nicely into the package management system for + Redhat/Debian/Slackware; this gives cleaner upgrades and uninstalls. + + dvipdfmx + -------- + + http://project.ktug.or.kr/dvipdfmx/ + + For dvipdfmx I use + + CFLAGS='-I/usr/kerberos/include -O2 -march=i386 -mcpu=i686' ./configure + make + make install + + The include path is due to dependency on the kerberos library for PDF + encryption. Important: The 10 Wang fonts have some peculiarities; I + submitted a preliminary patch which the author has much refined and + incoporated into a new release. You need a version newer than 2003-08-11 + if you want to use this set of fonts. From the ChangLog of dvipdfmx: + + 2003-08-11 Jin-Hwan Cho <chofchof@ktug.or.kr> + * A faked font name was used for TrueType fonts without any PS + font name as suggested by Hin-Tak Leung. + + [The recent TeX directory structure (TDS), version 1.1, comes with a new + subdirectory fonts/sfd, to be accessed with the kpathsea variable + $SFDFONTS. dvipdfmx and other programs available in the TeXLive + distribution have already been updated to use it.] + + +3. Generating ttf and enc files +=============================== + + OpenType Organizer (oto) : http://sourceforge.net/projects/oto/ + True Type Font Manager (ttfm): + - part of Chinese GNU/Linux Extention http://cle.linux.org.tw/ + + You need to know what cmap (character map) the TrueType font (*.ttf or + *.ttc) contains. The utility programs oto, ftdump (two versions! -- + FreeType 1 and FreeType 2 both have this demo program, showing quite + different information), and ttfinfo (part of ttfm) can show this info, and + some other information about your font as well. Only ftdump works on + TrueType collections (*.ttc), but the other two have their strengths also + (ttfinfo gives the most straightforward info, while oto gives some details + that ftdump doesn't show). + + For detailed information on cmaps in a font you can use ttx, a tool to + assemble and disassemble OpenType fonts. It is available from + http://fonttools.sf.net. + + If there is a Unicode cmap you can use ttf2tfm's `U*.sfd' files (see the + `@...@' argument for ttf2tfm); the command line for ttf2tfm is simpler + also. Otherwise you need to specify the platform (-P) and encoding (-E) + IDs. + + Here is what works for me for the fonts I mentioned. Important: The font + stem name needs to be unique. Additionally, dvipdfmx doesn't like numbers + in the font stem name. I use a 4-letter combination. By LaTeX convention + it shouldn't be longer than 5 letters. + + ttf2tfm bkai00mp.ttf -q -w bkai@UBig5@ + ttf2tfm bsmi00lp.ttf -q -w bsmi@UBig5@ + ttf2tfm gbsn00lp.ttf -q -w gbsn@UGB@ + ttf2tfm gkai00mp.ttf -q -w gkai@UGB@ + + ttf2tfm zysong.ttf -q -w zysg@UGB@ + + ttf2tfm kai-linux.ttf -P 3 -E 4 -q -w mekl@Big5@ + ttf2tfm edustd-15.ttf -P 3 -E 4 -q -w mest@Big5@ + ttf2tfm moe_kai.ttf -P 3 -E 4 -q -w meko@Big5@ + ttf2tfm moe_sung.ttf -P 3 -E 4 -q -w meso@Big5@ + + ttf2tfm ntu_li_m.ttf -P 3 -E 4 -q -w ntli@Big5@ + ttf2tfm ntu_br.ttf -P 3 -E 4 -q -w ntbr@Big5@ + ttf2tfm ntu_fs_m.ttf -P 3 -E 4 -q -w ntfs@Big5@ + ttf2tfm ntu_kai.ttf -P 3 -E 4 -q -w ntka@Big5@ + ttf2tfm ntu_mb.ttf -P 3 -E 4 -q -w ntmb@Big5@ + ttf2tfm ntu_mm.ttf -P 3 -E 4 -q -w ntmm@Big5@ + ttf2tfm ntu_mr.ttf -P 3 -E 4 -q -w ntmr@Big5@ + ttf2tfm ntu_tw.ttf -P 3 -E 4 -q -w nttw@Big5@ + + ttf2tfm mttf.ttf -q -w cwtm@UBig5@ + ttf2tfm kttf.ttf -q -w cwtk@UBig5@ + ttf2tfm fttf.ttf -q -w cwtf@UBig5@ + ttf2tfm bbttf.ttf -q -w cwtb@UBig5@ + ttf2tfm rttf.ttf -q -w cwtr@UBig5@ + + ttf2tfm kochi-gothic.ttf -w kcgt@UJIS@ + ttf2tfm kochi-mincho.ttf -w kcmc@UJIS@ + + ttf2tfm wadalab-gothic.ttf -P 3 -E 2 -w wdgt@SJIS@ + ttf2tfm watanabe-mincho.ttf -P 3 -E 2 -w wnmc@SJIS@ + + The Wang's font set has some unusual properties, and need either + a new version of freetype 1 (after 2003-10 from CVS), or a slightly + modified "Big5.sfd", called "wcl.sfd" here: + + ttf2tfm wcl-01.ttf -P 3 -E 4 -q -w wclj@wcl@ + ttf2tfm wcl-02.ttf -P 3 -E 4 -q -w wclk@wcl@ + ttf2tfm wcl-03.ttf -P 3 -E 4 -q -w wcll@wcl@ + ttf2tfm wcl-04.ttf -P 3 -E 4 -q -w wclm@wcl@ + ttf2tfm wcl-05.ttf -P 3 -E 4 -q -w wcln@wcl@ + ttf2tfm wcl-06.ttf -P 3 -E 4 -q -w wclp@wcl@ + ttf2tfm wcl-07.ttf -P 3 -E 4 -q -w wclq@wcl@ + ttf2tfm wcl-08.ttf -P 3 -E 4 -q -w wclr@wcl@ + ttf2tfm wcl-09.ttf -P 3 -E 4 -q -w wcls@wcl@ + ttf2tfm wcl-10.ttf -P 3 -E 4 -q -w wclt@wcl@ + + As an example, here is what I do for a well-known proprietary simplified + Chinese font which has only a cmap for simplified Chinese: + + ttf2tfm gkai00m.ttf -P 3 -E 3 -q -w gkaim@EUC@ + + Here an example for a TrueType collection: + + ttf2tfm dcai5.ttc -q -w dcaiq@UJIS@ + + +4. Putting the files where they should be +========================================= + + This is somewhat related to how kpathsea works and how latex (the program) + find its files. It is possible to set individual environment variables for + each of these items, but it is easier to set one: $TEXMF to a list of + locations, with a tree parallel to the system tree. Then do the following: + + . Put the *.tfm files into a subdirectory of ${TEXMF}/fonts/tfm. + . Put the *.enc files into a subdirectory of ${TEXMF}/dvips. + . Put the *.ttf (or *.ttc) files into a subdirectory of + ${TEXMF}/fonts/truetype. + . Put the *.sfd files into ${TEXMF}/ttf2tfm or a subdirectory of it. + Don't forget to either copy them into ${TEXMF}/ttf2pk also or to set up + a link from ${TEXMF}/ttf2pk to ${TEXMF}/ttf2tfm. + + Reason: dvipdfmx searches SFD files (which it needs for reassembling) + under ${TEXMF}/ttf2pk although we don't use ttf2pk anywhere. ttf2tfm + looks for them under its own name, of course. + + [The recent TeX directory structure (TDS), version 1.1, comes with a new + subdirectory fonts/sfd, to be accessed with the kpathsea variable + $SFDFONTS. dvipdfmx and other programs available in the TeXLive + distribution have already been updated to use it.] + + Important: Run texhash (mktexlsr) to rebuild the kpathsea database, + otherwise files won't be found. You have been warned! + + +5., 6. Configuring dvipdfmx and (optionally) pdflatex +===================================================== + + cid-x.map, dvipdfmx.cfg, *.map + + See for example, my own "cid-x.map" for the main font config file of + dvipdfmx -- all my own customization is at the very end after the line + "Hin-Tak Leung's custom setup below:". For each font xxxx, one needs + to add a line "f xxxx.map" into "dvipdfmx.cfg", and a fontmap + file "xxxx.map" into the dvipdfmx config directory -- + ${TEXMF}/dvipdfm/config/ on my system (the missing + "x" is not a typo, as dvipdfmx originally derived from dvipdfm). + I have included cwbt.map, for one of the CwTeX fonts, as an example, + and my dvipdfmx.cfg as well. + + Because I have a fair number of fonts I like to add, I wrote a little + perl script "gen-map.pl", which generates all the *.map files plus + a file called "map.list" which I can simply append to dvipdfmx.cfg, + from an internal table at the very top of the script. + + pdflatex needs the same fontmap files for each new font - copy them into + ${TEXMF}/dvips/config/. Modify the updmap script which is used for + updating both pdflatex.cfg and dvips.cfg, and run the updmap script. + On teTeX 1.0.x, one needs to add to the "extra_modules=" entry the + *.map files for each font. My modified updmap is included as an + example "updmap.my", found as "/usr/share/texmf/dvips/config/updmap" on + a RH 9 system. On teTeX 2.0.x, updmap has a separate config file + updmap.cfg located in ${TEXMF}/web2c/. + + +7. Configuring CJK/LaTeX +======================== + + Copy the whole `texinput' directory of the CJK package into a directory + which is in your $TEXINPUTS path. Also create some new *.fd files there. + My "c00cwtb.fd" is included as an example; again, since I have quite + a few font files, I have created some template fd files as c*tmpl.fd, + and duplicating and change every "tmpl" string to "cwtb" inside + as needed like this: + cp c00tmpl.fd c00cxtb.fd + perl -pi -e "s/tmpl/cwtb/;" c00cwtb.fd + + If you use Big5 or Shift-JIS encoding, compile the bg5conv and + sjisconv utilities; under Unix-like systems you can use the bg5pdflatex + and sjispdflatex scripts to access them conveniently. + + +8. Testing +========== + + Just pick the relevant files in the CJK/examples directory and change the + font name to match. Either call pdflatex or call latex followed by + dvipdfmx. In general, I found that dvipdfmx generates much smaller files + (1/3 to 1/2 size). + + +9. Problems +=========== + + a. files can't be found + + This is the most frequent problem. Setting the environment variable + KPATHSEA_DEBUG to -1 activates full debugging; you can then check + how latex/dvipdfmx/pdflatex tries to find those files. See the + kpathsea info pages for more details on debugging output. + + For latex (the program) you only need the new custom-made *.fd files, + the files from CJK/texinput, and the tfm files. The *.fd files could be + broken -- check their contents. latex (the program) neither needs the + *.enc files nor the font files themselves. + + If latex (the program) works, but dvipdfmx doesn't, then your dvipdfmx + configuration probably needs some tuning. Alternatively, the map files + or the font files are not found, etc. Note that dvipdfmx neither needs + the tfm files, nor the CJK/LaTeX input files, but it does need the + enc files. + + pdflatex does everything in one step, so everything needs to be in the + right place. + + b. Acrobat on GNU/Linux doesn't print PDF files generated with dvipdfmx + + The problem is probably caused by ghostscript version 7.x which chokes + on the intermediate postscript file under some command options. + Upgrading to ghostscript 8.x should fix this printfilter problem. It is + *strongly* recommended to use ghostscript 8.11 or newer due to severe + problems with earlier versions. + + c. no-font-embedded PDF files + + This is quite simple to do with dvipdfmx: Just put an extra `!' + (exclamation mark) in the dvipdfmx configuration file in front of the + font which shouldn't be embedded. + + A problem can arise if the PDF reader is not able to find a proper + substitution font if the font specified in the document isn't available. + I did some investigation and had a long discussion with the author of + dvipdfmx about this. Basically, it seems that win32 Acrobat Reader 6.x + will substitute any missing fonts with fonts from the Adobe CJK font + packs or from the system. Acrobat reader 5.x for GNU/Linux will only do + so -- and only with fonts from the CJK packs, not from the X server -- + if the font name is one of the well-known ones for that region: + SimHei, SimSun (found on most MS Windows boxes), and some fonts of Arphic + and Dynafont which are very popular in the far east. Otherwise, + it aborts with an error message. + + Besides the proprietary fonts mentioned in the last paragraph, only + Wang's fonts can be configured currently to be not embedded so that + acroread on GNU/Linux accepts them. I have spent much time looking + into this issue and apparently Acroread on GNU/Linux seems to do + font substitutions by looking at the capital letters in the font name. + Due to the missing PS name of the Wang's fonts (and our dvipdfmx + work-around on 2003-08-11 using the file name -- happened to be all + lowercase -- as the missing font name), they work by luck. + + Both xpdf and ghostscript will substitute any missing fonts with a + specific font per language, if suitably configured. On Redhat 9, the + heavily adapted ghostscript will substitute automatically if some named + fonts from the CD are installed (without any extra effort); for xpdf it + is an extra few lines of configuration in ${HOME}/.xpdfrc to tell it + what font to use from the X server for substituting a missing font for a + particular language. So ghostscript works out of the box for a full RH + installation, whereas xpdf doesn't, but xpdf is more configurable and + the setting of what fall-back font to use can differ per user. + +--- end --- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/bkai.map b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/bkai.map new file mode 100644 index 00000000000..71d205d501f --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/bkai.map @@ -0,0 +1,55 @@ +bkai01 bkai01 <bkai01.enc <bkai00mp.ttf +bkai02 bkai02 <bkai02.enc <bkai00mp.ttf +bkai03 bkai03 <bkai03.enc <bkai00mp.ttf +bkai04 bkai04 <bkai04.enc <bkai00mp.ttf +bkai05 bkai05 <bkai05.enc <bkai00mp.ttf +bkai06 bkai06 <bkai06.enc <bkai00mp.ttf +bkai07 bkai07 <bkai07.enc <bkai00mp.ttf +bkai08 bkai08 <bkai08.enc <bkai00mp.ttf +bkai09 bkai09 <bkai09.enc <bkai00mp.ttf +bkai10 bkai10 <bkai10.enc <bkai00mp.ttf +bkai11 bkai11 <bkai11.enc <bkai00mp.ttf +bkai12 bkai12 <bkai12.enc <bkai00mp.ttf +bkai13 bkai13 <bkai13.enc <bkai00mp.ttf +bkai14 bkai14 <bkai14.enc <bkai00mp.ttf +bkai15 bkai15 <bkai15.enc <bkai00mp.ttf +bkai16 bkai16 <bkai16.enc <bkai00mp.ttf +bkai17 bkai17 <bkai17.enc <bkai00mp.ttf +bkai18 bkai18 <bkai18.enc <bkai00mp.ttf +bkai19 bkai19 <bkai19.enc <bkai00mp.ttf +bkai20 bkai20 <bkai20.enc <bkai00mp.ttf +bkai21 bkai21 <bkai21.enc <bkai00mp.ttf +bkai22 bkai22 <bkai22.enc <bkai00mp.ttf +bkai23 bkai23 <bkai23.enc <bkai00mp.ttf +bkai24 bkai24 <bkai24.enc <bkai00mp.ttf +bkai25 bkai25 <bkai25.enc <bkai00mp.ttf +bkai26 bkai26 <bkai26.enc <bkai00mp.ttf +bkai27 bkai27 <bkai27.enc <bkai00mp.ttf +bkai28 bkai28 <bkai28.enc <bkai00mp.ttf +bkai29 bkai29 <bkai29.enc <bkai00mp.ttf +bkai30 bkai30 <bkai30.enc <bkai00mp.ttf +bkai31 bkai31 <bkai31.enc <bkai00mp.ttf +bkai32 bkai32 <bkai32.enc <bkai00mp.ttf +bkai33 bkai33 <bkai33.enc <bkai00mp.ttf +bkai34 bkai34 <bkai34.enc <bkai00mp.ttf +bkai35 bkai35 <bkai35.enc <bkai00mp.ttf +bkai36 bkai36 <bkai36.enc <bkai00mp.ttf +bkai37 bkai37 <bkai37.enc <bkai00mp.ttf +bkai38 bkai38 <bkai38.enc <bkai00mp.ttf +bkai39 bkai39 <bkai39.enc <bkai00mp.ttf +bkai40 bkai40 <bkai40.enc <bkai00mp.ttf +bkai41 bkai41 <bkai41.enc <bkai00mp.ttf +bkai42 bkai42 <bkai42.enc <bkai00mp.ttf +bkai43 bkai43 <bkai43.enc <bkai00mp.ttf +bkai44 bkai44 <bkai44.enc <bkai00mp.ttf +bkai45 bkai45 <bkai45.enc <bkai00mp.ttf +bkai46 bkai46 <bkai46.enc <bkai00mp.ttf +bkai47 bkai47 <bkai47.enc <bkai00mp.ttf +bkai48 bkai48 <bkai48.enc <bkai00mp.ttf +bkai49 bkai49 <bkai49.enc <bkai00mp.ttf +bkai50 bkai50 <bkai50.enc <bkai00mp.ttf +bkai51 bkai51 <bkai51.enc <bkai00mp.ttf +bkai52 bkai52 <bkai52.enc <bkai00mp.ttf +bkai53 bkai53 <bkai53.enc <bkai00mp.ttf +bkai54 bkai54 <bkai54.enc <bkai00mp.ttf +bkai55 bkai55 <bkai55.enc <bkai00mp.ttf diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/cid-x.map b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/cid-x.map new file mode 100644 index 00000000000..595d421b813 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/cid-x.map @@ -0,0 +1,364 @@ +%% FONTMAP: CID-keyed font mapping file for dvipdfmx +%% ================================================= +%% +%% Last modified: April 2, 2002 +%% +%% +%% SYNOPSIS +%% -------- +%% +%% TFMNAME[@SFDNAME@] ENCNAME [:INDEX:][!]FONTNAME[,VARIANT] [OPTIONS] +%% +%% +%% DESCRIPTION +%% ----------- +%% +%% 1) TFMNAME[@SFDNAME@] +%% +%% TFM name is specified in the field `TFMNAME' without extension (.tfm), +%% and the subfont definition name in the field `SFDNAME' without +%% extension (.sfd). For example, jbtm@UKS@ specifies the TFM names, +%% jbtm01 - jbtm35, used in the CJK package. +%% +%% 2) ENCNAME +%% +%% CMap resource name is specified in the field `ENCNAME'. It is used in +%% dvipdfmx to convert double-byte character codes to CID numbers. +%% For more details, see `doc/README'. +%% +%% 3) [:INDEX:][!]FONTNAME[,VARIANT] +%% +%% Font name is specified in the field `FONTNAME' with or without +%% extension. The field `INDEX' is used for TrueType collections (.ttc) +%% to specify the font index number. In the case of ordinary TrueType +%% fonts (.ttf) the field should be `0'. The character `!' enables the +%% no-embedding option. The stylistic variants (Bold, Italic, BoldItalic) +%% are specified in the filed `VARIANT'. See examples below. +%% +%% 4) [OPTIONS] +%% +%% All options available in the original dvipdfm are also valid here. +%% However, the slant option [-s number] is ignored for vertical mode, +%% and the remap option [-r] is always ignored since it doesn't make +%% sense for CID-keyed fonts. +%% +%% +%% ** IMPORTANT ** +%% +%% There is no default CMap, and the keyword `none' in the `ENCNAME' field is +%% not allowed for CID-keyed font. Valid CMap name should be recorded in the +%% `ENCNAME' field. Otherwise, the font will not be treated as a CID-keyed font. +%% +%% The format of the font mapping file is not compatible with the jpatch patch +%% which expects keyword `none' or `default' in the `ENCNAME' field. +%% +%% Be sure that all CMaps used in the font mapping file are under the directory +%% `${TEXMF}/dvipdfm/CMap', and all subfont definition files under the +%% directory `${TEXMF}/dvipdfm/base'. CMap file name should coincide with CMap +%% name. +%% +%% +%% EXAMPLES +%% -------- +%% +%% 1) Pre-defined CIDFonts +%% +%% Minimal font information required by PDF viewers are available from +%% dvipdfmx built-in data. The built-in data does not contain any glyph +%% data required to render actual shape of each characters. Hence, PDF +%% viewers must substitute those fonts with suitable one available from +%% the system. The reproducibility and the correctness of document layout +%% opened on the remote system is not always guaranteed, however, it seems +%% not to cause any problems in general if you does not use special +%% characters in your document. Please use those fonts if you are sure that +%% all peoples that receives your documents have usable fonts installed on +%% their system. It greatly reduces size of resulting PDF documents because +%% no glyph data are embedded. +%% +%% Here is the list of pre-defined CIDFonts in dvipdfmx. +%% +%% --------------------------------------------------------- +%% Language Acrobat pre-defined CIDFonts +%% --------------------------------------------------------- +%% Chinese/Simplified STSong-Light +%% Chinese/Traditional MHei-Medium, MSung-Light +%% Japanese HeiseiMin-W3, HeiseiKakuGo-W5 +%% Korean HYGoThic-Medium, HYSMyeongJo-Medium +%% --------------------------------------------------------- + +%rml H HeiseiMin-W3 +%gbm H HeiseiKakuGo-W5 +%rmlv V HeiseiMin-W3 +%gbmv V HeiseiKakuGo-W5 + +%% ** PostScript "standard" fonts (Japanese) are also pre-defined. +%% +%% Ryumin-Light, GothicBBB-Medium (Adobe-Japan1-2) + +rml H Ryumin-Light +gbm H GothicBBB-Medium +rmlv V Ryumin-Light +gbmv V GothicBBB-Medium + +%% Note. If you apply vertical version (WMode 1) of CMaps to horizontal +%% fonts (e.g., rml), dvipdfmx does horizontal positioning while PDF +%% viewers apply vertical positioning for that font. +%% +%% Note. On some Mac platforms, Ryumin-Light and GothicBBB-Medium are not +%% handled properly by Adobe products. Especially, if you have those fonts +%% in the OCF format, you may want to avoid them. +%% +%% +%% 2) OpenType CIDFonts (CIDFontType0) +%% +%% Postscript CID-keyed fonts are supported only in the CFF OpenType format +%% with Type 2 charstrings. +%% +%% o Kozuka-Mincho sold by Adobe: + +kml H KozMinPro-Regular.otf + +%% o CFF/OpenType version of Kochi CIDFont: + +kochi-min H Kochi-Mincho.otf +kochi-got H Kochi-Gothic.otf + +%% The suffix `.otf' is optional. Please use suffix `.otf' if needed. +%% +%% +%% 3) TrueType CIDFonts (CIDFontType2) +%% +%% TrueType (.ttf) and TrueType collection (.ttc) are supported. +%% +%% o Japanese MS-Windows fonts + +msmin H :0:msmincho +msgot H :0:msgothic + +%% MS-Mincho with proportional latin and kana: + +msminp H :1:msmincho + +%% o Kochi is TrueType (not a collection): + +kmin H :0:kochi-mincho +kgot H :0:kochi-gothic + +%% o Korean MS-Windows fonts with stylistic variants (no-embedding) + +%jbtm@UKS@ UniKS-UCS2-H :0:!batang.ttc +%jbtmo@UKS@ UniKS-UCS2-H :0:!batang.ttc,Italic +%jbtb@UKS@ UniKS-UCS2-H :0:!batang.ttc,Bold +%jbtbo@UKS@ UniKS-UCS2-H :0:!batang.ttc,BoldItalic + +%% o Baekmuk fonts (used with HLaTeX package) + +%bbtm@KS-HLaTeX@ KSCms-UHC-H :0:batang.ttf +%bbtmo@UKS-HLaTeX@ UniKS-UCS2-H :0:batang.ttf -s .167 + + +%% Font Licensing Issue +%% -------------------- +%% +%% If you try to use the following font, + +hgskai H :0:hgrsksj + +%% you will see the following message: +%% +%% ** Embedding disabled due to licensing restriction ** +%% +%% As this message indicates, font embedding is disabled because embedding +%% is not allowed for this font. Also, please note that any documents that +%% contains font with `Preview & Print' embedding licensing can be opened +%% only for the purpose of previewing and/or printing. When fonts with this +%% type of license are encountered, you will see the following message: +%% +%% ** NOTICE: This document contains `Preview & Print' only licensed font ** +%% +%% In this case, you cannot distribute resulting PDF document if you are not +%% absolutely sure that you are not violating license you acquired. +%% +%% +%% Other Encodings +%% --------------- +%% +%% Only 16-bit encodings are supported. The DVI format specification allows +%% 24-bit and 32-bit (signed) long character codes, though. +%% +%% 1) JIS C 6226 (JIS78) character set with NEC extensions, ISO-2022-JP encoding: + +rmlx Ext-H Ryumin-Light + +%% or Shift-JIS encoding: + +rmlsjx Ext-RKSJ-H Ryumin-Light + +%% 2) Hojo-Kanji (JIS X 0212-1990): Adobe-Japan2 character collection + +hjmin Hojo-H :0:msmincho +hjminv Hojo-V :0:msmincho + +%% You need ToUnicode CMap for the Adobe-Japan2 character collection. +%% If you cannot find it, copy and paste from the "ToUnicode Mapping File +%% Tutorial" (Adobe Technical Note #5411). Please change the CMap name and +%% the ordering string from `Adobe-Japan2-000' to `Adobe-Japan2-UCS2' and +%% from `Adobe_Japan2_000' to `Adobe_Japan2_UCS2', respectively. You must +%% save it as Adobe-Japan2-UCS2. +%% +%% 3) Unicode encodings, Omega requires them. (not fully tested.) +%% +%% o Chinese + +ombkai UniCNS-UCS2-H :0:bkai00mp +ombsmi UniCNS-UCS2-H :0:bsmi00lp +omgkai UniGB-UCS2-H :0:gkai00mp +omgbsn UniGB-UCS2-H :0:gbsn00lp + +%% o Japanese + +omrml UniJIS-UCS2-H Ryumin-Light + +%% o Korean + +omgtm UniKS-UCS2-H HYGoThic-Medium +omubt UniKS-UCS2-H :0:batang + +%% 4) UTF8 encodings with CJK package +%% +%% It is possible to use several languages in a document with CJK package +%% via the UTF8 encoding. + +cyberb@Unicode@ Identity-H :0:cyberbit.ttf + +%% Bitstream Cyberbit font is available at: +%% +%% http://ftp.netscape.com/pub/communicator/extras/fonts/windows/ReadMe.htm +%% +%% +%% Custom CMap and Specialized Font +%% -------------------------------- +%% +%% All TrueType font should have TrueType cmap (character codes to +%% glyph indices mapping) table with platform ID 3, and encoding ID +%% 1. If you are using CMap `Dummy-H' having, say, registry string +%% `My' and ordering string `Ordering' to map character codes used in +%% the DVI file to CIDs, you must also have CMap resource named +%% `My-Ordering-UCS2' (for encoding ID 1) which defines mapping from +%% CID to character code used in the TrueType font: +%% +%% myfont Dummy-H :0:myfont.ttf +%% +%% Some font that have 511 glyphs (one for .notdef), split into two +%% single-byte fonts for use with `plain' TeX, tied up to a single +%% CID-keyed font: +%% +%% math1 Math-Symbol1 :0:msymbol.ttf +%% math2 Math-Symbol2 :0:msymbol.ttf +%% +%% Arabic as CID-Keyed font: +%% +%% omarb UniArab-UCS2 :0:arabuni.ttf +%% +%% At present, accessing glyphs via glyph indices directly is not supported. +%% It will be supported if someone need it. +%% +%% Please make your CMap resource file as simple as possible. The built-in +%% CMap parser will fail if the structure of CMap file is too complicated. +%% +%% +%% TODO +%% ---- +%% +%% o Supports TrueType UCS4 cmap table +%% +%% o Supports TrueType Symbol cmap table (under consideration) +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Hin-Tak Leung's custom setup below: % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +cwtb@UBig5@ UniCNS-UCS2-H :0:bbttf.ttf +cwtf@UBig5@ UniCNS-UCS2-H :0:fttf.ttf +cwtk@UBig5@ UniCNS-UCS2-H :0:kttf.ttf +cwtm@UBig5@ UniCNS-UCS2-H :0:mttf.ttf +cwtr@UBig5@ UniCNS-UCS2-H :0:rttf.ttf +% +mekl@Big5@ ETen-B5-H :0:kai-linux.ttf +mest@Big5@ ETen-B5-H :0:edustd-15.ttf +mesx@Big5@ ETen-B5-H :0:edustds1.ttf +mesy@Big5@ ETen-B5-H :0:edustds2.ttf +meko@Big5@ ETen-B5-H :0:moe_kai.ttf +meso@Big5@ ETen-B5-H :0:moe_sung.ttf +% +bkai@UBig5@ UniCNS-UCS2-H :0:bkai00mp.ttf +bsmi@UBig5@ UniCNS-UCS2-H :0:bsmi00lp.ttf +% +gbsn@UGB@ UniGB-UCS2-H :0:gbsn00lp.ttf +gkai@UGB@ UniGB-UCS2-H :0:gkai00mp.ttf +% +ntbr@Big5@ ETen-B5-H :0:ntu_br.ttf +ntfs@Big5@ ETen-B5-H :0:ntu_fs_m.ttf +ntka@Big5@ ETen-B5-H :0:ntu_kai.ttf +ntli@Big5@ ETen-B5-H :0:ntu_li_m.ttf +ntmb@Big5@ ETen-B5-H :0:ntu_mb.ttf +ntmm@Big5@ ETen-B5-H :0:ntu_mm.ttf +ntmr@Big5@ ETen-B5-H :0:ntu_mr.ttf +nttw@Big5@ ETen-B5-H :0:ntu_tw.ttf +% +wclj@Big5@ ETen-B5-H :0:wcl-01.ttf +wclk@Big5@ ETen-B5-H :0:wcl-02.ttf +wcll@Big5@ ETen-B5-H :0:wcl-03.ttf +wclm@Big5@ ETen-B5-H :0:wcl-04.ttf +wcln@Big5@ ETen-B5-H :0:wcl-05.ttf +wclp@Big5@ ETen-B5-H :0:wcl-06.ttf +wclq@Big5@ ETen-B5-H :0:wcl-07.ttf +wclr@Big5@ ETen-B5-H :0:wcl-08.ttf +wcls@Big5@ ETen-B5-H :0:wcl-09.ttf +wclt@Big5@ ETen-B5-H :0:wcl-10.ttf +% +zysg@UGB@ UniGB-UCS2-H :0:zysong.ttf +% +wnmc@SJIS@ Ext-RKSJ-H :0:watanabe-mincho.ttf +wdgt@SJIS@ Ext-RKSJ-H :0:wadalab-gothic.ttf +% +kcgt@UJIS@ UniJIS-UCS2-H :0:kochi-gothic.ttf +kcmc@UJIS@ UniJIS-UCS2-H :0:kochi-mincho.ttf +% +ykah@Big5@ ETen-B5-H :0:yka00hp.ttf +gtrl@Big5@ ETen-B5-H :0:gtr00lp.ttf +gtrm@Big5@ ETen-B5-H :0:gtr00mp.ttf +leim@Big5@ ETen-B5-H :0:lei00mp.ttf +heim@Big5@ ETen-B5-H :0:hei01mp.ttf +sunm@Big5@ ETen-B5-H :0:sun00mp.ttf +% +gbsnl@EUC@ GB-EUC-H :0:gbsn00l.ttf +ggtrl@EUC@ GB-EUC-H :0:ggtr00l.ttf +gkaim@EUC@ GB-EUC-H :0:gkai00m.ttf +gleim@EUC@ GB-EUC-H :0:glei00m.ttf +gsinm@EUC@ GB-EUC-H :0:gsin00m.ttf +tgtrl@EUC@ GB-EUC-H :0:tgtr00l.ttf +tkaim@EUC@ GB-EUC-H :0:tkai00m.ttf +tleim@EUC@ GB-EUC-H :0:tlei00m.ttf +tooru@EUC@ GB-EUC-H :0:toor00u.ttf +tovru@EUC@ GB-EUC-H :0:tovr00u.ttf +tsinm@EUC@ GB-EUC-H :0:tsin00m.ttf +% +dcaiq@UJIS@ UniJIS-UCS2-H :0:dcai5.ttc +dcailq@UJIS@ UniJIS-UCS2-H :0:dcail5.ttc +dcaisq@UJIS@ UniJIS-UCS2-H :0:dcais5.ttc +dccryq@UJIS@ UniJIS-UCS2-H :0:dccry5.ttc +dchgmq@UJIS@ UniJIS-UCS2-H :0:dchgm5.ttc +dchleiq@UJIS@ UniJIS-UCS2-H :0:dchlei5.ttc +dcinlq@UJIS@ UniJIS-UCS2-H :0:dcinl5.ttc +dckgmc@UJIS@ UniJIS-UCS2-H :0:dckgmc.ttc +dclkaiq@UJIS@ UniJIS-UCS2-H :0:dclkai5.ttc +dcysmr@UJIS@ UniJIS-UCS2-H :0:dcysm7.ttc +dfcrdp@UJIS@ UniJIS-UCS2-H :0:dfcrd3.ttc +dffrsp@UJIS@ UniJIS-UCS2-H :0:dffrs3.ttc +dfgskr@UJIS@ UniJIS-UCS2-H :0:dfgsk7.ttc +dfkaie@UJIS@ UniJIS-UCS2-H :0:dfkaie.ttc +dfkbtp@UJIS@ UniJIS-UCS2-H :0:dfkbt3.ttc +dfoyjq@UJIS@ UniJIS-UCS2-H :0:dfoyj5.ttc +dfryss@UJIS@ UniJIS-UCS2-H :0:dfrys9.ttc +dfshtq@UJIS@ UniJIS-UCS2-H :0:dfsht5.ttc +dfshtr@UJIS@ UniJIS-UCS2-H :0:dfsht7.ttc +dfskair@UJIS@ UniJIS-UCS2-H :0:dfskai7.ttc diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/cwtb.map b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/cwtb.map new file mode 100644 index 00000000000..964c65c84a1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/cwtb.map @@ -0,0 +1,55 @@ +cwtb01 cwtb01 <cwtb01.enc <bbttf.ttf +cwtb02 cwtb02 <cwtb02.enc <bbttf.ttf +cwtb03 cwtb03 <cwtb03.enc <bbttf.ttf +cwtb04 cwtb04 <cwtb04.enc <bbttf.ttf +cwtb05 cwtb05 <cwtb05.enc <bbttf.ttf +cwtb06 cwtb06 <cwtb06.enc <bbttf.ttf +cwtb07 cwtb07 <cwtb07.enc <bbttf.ttf +cwtb08 cwtb08 <cwtb08.enc <bbttf.ttf +cwtb09 cwtb09 <cwtb09.enc <bbttf.ttf +cwtb10 cwtb10 <cwtb10.enc <bbttf.ttf +cwtb11 cwtb11 <cwtb11.enc <bbttf.ttf +cwtb12 cwtb12 <cwtb12.enc <bbttf.ttf +cwtb13 cwtb13 <cwtb13.enc <bbttf.ttf +cwtb14 cwtb14 <cwtb14.enc <bbttf.ttf +cwtb15 cwtb15 <cwtb15.enc <bbttf.ttf +cwtb16 cwtb16 <cwtb16.enc <bbttf.ttf +cwtb17 cwtb17 <cwtb17.enc <bbttf.ttf +cwtb18 cwtb18 <cwtb18.enc <bbttf.ttf +cwtb19 cwtb19 <cwtb19.enc <bbttf.ttf +cwtb20 cwtb20 <cwtb20.enc <bbttf.ttf +cwtb21 cwtb21 <cwtb21.enc <bbttf.ttf +cwtb22 cwtb22 <cwtb22.enc <bbttf.ttf +cwtb23 cwtb23 <cwtb23.enc <bbttf.ttf +cwtb24 cwtb24 <cwtb24.enc <bbttf.ttf +cwtb25 cwtb25 <cwtb25.enc <bbttf.ttf +cwtb26 cwtb26 <cwtb26.enc <bbttf.ttf +cwtb27 cwtb27 <cwtb27.enc <bbttf.ttf +cwtb28 cwtb28 <cwtb28.enc <bbttf.ttf +cwtb29 cwtb29 <cwtb29.enc <bbttf.ttf +cwtb30 cwtb30 <cwtb30.enc <bbttf.ttf +cwtb31 cwtb31 <cwtb31.enc <bbttf.ttf +cwtb32 cwtb32 <cwtb32.enc <bbttf.ttf +cwtb33 cwtb33 <cwtb33.enc <bbttf.ttf +cwtb34 cwtb34 <cwtb34.enc <bbttf.ttf +cwtb35 cwtb35 <cwtb35.enc <bbttf.ttf +cwtb36 cwtb36 <cwtb36.enc <bbttf.ttf +cwtb37 cwtb37 <cwtb37.enc <bbttf.ttf +cwtb38 cwtb38 <cwtb38.enc <bbttf.ttf +cwtb39 cwtb39 <cwtb39.enc <bbttf.ttf +cwtb40 cwtb40 <cwtb40.enc <bbttf.ttf +cwtb41 cwtb41 <cwtb41.enc <bbttf.ttf +cwtb42 cwtb42 <cwtb42.enc <bbttf.ttf +cwtb43 cwtb43 <cwtb43.enc <bbttf.ttf +cwtb44 cwtb44 <cwtb44.enc <bbttf.ttf +cwtb45 cwtb45 <cwtb45.enc <bbttf.ttf +cwtb46 cwtb46 <cwtb46.enc <bbttf.ttf +cwtb47 cwtb47 <cwtb47.enc <bbttf.ttf +cwtb48 cwtb48 <cwtb48.enc <bbttf.ttf +cwtb49 cwtb49 <cwtb49.enc <bbttf.ttf +cwtb50 cwtb50 <cwtb50.enc <bbttf.ttf +cwtb51 cwtb51 <cwtb51.enc <bbttf.ttf +cwtb52 cwtb52 <cwtb52.enc <bbttf.ttf +cwtb53 cwtb53 <cwtb53.enc <bbttf.ttf +cwtb54 cwtb54 <cwtb54.enc <bbttf.ttf +cwtb55 cwtb55 <cwtb55.enc <bbttf.ttf diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/dvipdfmx.cfg b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/dvipdfmx.cfg new file mode 100644 index 00000000000..eb65cdcf479 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/dvipdfmx.cfg @@ -0,0 +1,164 @@ +% original config -- Made by MAW on 8/31/99 +% Distiller template examples. Uncomment +% the appropriate one, or (preferably) create your own. +% Put %i in the command line where the input file name should go. +% Put %o in the command line where the output file name should go. +% (dvipdfm must be able to supply the output file name to your +% command line) +% Put %b in the line somewhere if you want to specify the +% "base" name of the input file, e.g., "foo" instead of "foo.eps" +% +% Note that it's probably a good idea to fully qualify +% the paths so you can be sure what you are running + +% The following line works with Frank Siegert's pstill +% D "/usr/local/bin/pstill -c -o %o %i" + +% The following line works with GhostScript +% UNIX/Linux (borrowed from W32TeX by Akira Kakuto) +D "gs -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false -dAutoFilterColorImages=false -dGrayImageFilter=/FlateEncode -dColorImageFilter=/FlateEncode -dUseFlateCompression=true -sOutputFile=%o %i -c quit" +% Win32 (borrowed from W32TeX by Akira Kakuto) +% D "gswin32c -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false -dAutoFilterColorImages=false -dGrayImageFilter=/FlateEncode -dColorImageFilter=/FlateEncode -dUseFlateCompression=true -sOutputFile=%o %i -c quit" +% The following line works on compressed or uncompressed postscript with GhostScript +% UNIX/Linux (borrowed from W32TeX by Akira Kakuto) +% D "zcat -f %i | gs -q -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dUseFlateCompression=true -sOutputFile=%o - -c quit" +% Win32 (borrowed from W32TeX by Akira Kakuto) +% D "gzcat -f %i | gswin32c -q -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dUseFlateCompression=true -sOutputFile=%o - -c quit" + +% The following line works with Adobe Acrobat Distiller +% D "/usr/local/bin/distill -quiet -pairs %i %o" + +% Set default paper size here +p a4 + +% The "g" option specifies the amount to "grow" annotations by +% Many TeX macro pages set the annotation bounding box equal +% to the TeX box that encloses the material. That's not always +% what you want +g 1 + +% PDF version stamp to use in output file and max version of files +% allowed to be included (3 for 1.3, 4 for 1.4) +V 3 + +% Key bits for PDF encryption (40 - 128) +K 40 + +% Permission flag for PDF encryption: Revision will be 3 if the key size +% is greater than 40 bits. +% +% 0x0004 (Revision 2) Print the document. +% (Revision 3) Print the document (possibly not at the highest quality +% level, depending on whether bit 12[0x0800] is also set). +% 0x0008 Modify the contents of the document by operations other than those +% controlled by bits 6[0x0020], 9[0x0100], and 11[0x0400]. +% 0x0010 (Revision 2) Copy or otherwise extract text and graphics from the +% document, including extracting text and graphics (in support of +% accessibility to disabled users or for other purposes). +% (Revision 3) Copy or otherwise extract text and grphics from the +% document by operations other than that controlled by bit 10[0x0200]. +% 0x0020 Add or modify text annotations, fill in interactive form fields, +% and, if bit 4[0x0008] is also set, create or modify interactive +% form fields (including signature fields). +% +% (Revision 3 only) +% 0x0100 Fill in existing interactive form fields (including signature +% fields), even if bit 6 is clear. +% 0x0200 Extract text and graphics (in support of accessibility to disabled +% users or for other purposes). +% 0x0400 Assemble the document (insert, rotate, or delete pages and create +% bookmarks or thumbnail images), even if bit 4 is clear. +% 0x0800 Print the document to a representation from which a faithful digital +% copy of the PDF content could be generated. When this bit is clear +% (and bit 3 is set), printing is limited to a low-level representation +% of the appearance, possibly of degraded quality. +P 0x003C + +% Font map files +% +f cmr.map +f psbase14.map +% Most distributions now use these names +f lw35urw.map +% Some use these names +% f lw35urwa.map +f cid-x.map +% Added by Hin-Tak Leung below this point: +f cwtb.map +f cwtf.map +f cwtk.map +f cwtm.map +f cwtr.map +f mekl.map +f mest.map +f mesx.map +f mesy.map +f meko.map +f meso.map +f bkai.map +f bsmi.map +f gbsn.map +f gkai.map +f ntbr.map +f ntfs.map +f ntka.map +f ntli.map +f ntmb.map +f ntmm.map +f ntmr.map +f nttw.map +f wclj.map +f wclk.map +f wcll.map +f wclm.map +f wcln.map +f wclp.map +f wclq.map +f wclr.map +f wcls.map +f wclt.map +f zysg.map +f wnmc.map +f wdgt.map +f kcgt.map +f kcmc.map +f acrj.map +f acrg.map +f acrb.map +f ykah.map +f gtrl.map +f gtrm.map +f leim.map +f heim.map +f sunm.map +f gbsnl.map +f ggtrl.map +f gkaim.map +f gleim.map +f gsinm.map +f tgtrl.map +f tkaim.map +f tleim.map +f tooru.map +f tovru.map +f tsinm.map +f dcaiq.map +f dcailq.map +f dcaisq.map +f dccryq.map +f dchgmq.map +f dchleiq.map +f dcinlq.map +f dckgmc.map +f dclkaiq.map +f dcysmr.map +f dfcrdp.map +f dffrsp.map +f dfgskr.map +f dfkaie.map +f dfkbtp.map +f dfoyjq.map +f dfryss.map +f dfshtq.map +f dfshtr.map +f dfskair.map diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/gen-map.pl b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/gen-map.pl new file mode 100644 index 00000000000..737304da361 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/gen-map.pl @@ -0,0 +1,120 @@ +#!/usr/bin/perl -w + +@font_list = +( + "cwtb", "bbttf.ttf", 55, + "cwtf", "fttf.ttf", 55, + "cwtk", "kttf.ttf", 55, + "cwtm", "mttf.ttf", 55, + "cwtr", "rttf.ttf", 55, +# + "mekl", "kai-linux.ttf", 58, + "mest", "edustd-15.ttf", 55, + "mesx", "edustds1.ttf", 55, + "mesy", "edustds2.ttf", 55, + "meko", "moe_kai.ttf", 58, + "meso", "moe_sung.ttf", 58, +# + "bkai", "bkai00mp.ttf", 55, + "bsmi", "bsmi00lp.ttf", 55, +# + "gbsn", "gbsn00lp.ttf", 32, + "gkai", "gkai00mp.ttf", 32, +# + "ntbr", "ntu_br.ttf", 58, + "ntfs", "ntu_fs_m.ttf", 58, + "ntka", "ntu_kai.ttf", 58, + "ntli", "ntu_li_m.ttf", 58, + "ntmb", "ntu_mb.ttf", 58, + "ntmm", "ntu_mm.ttf", 58, + "ntmr", "ntu_mr.ttf", 58, + "nttw", "ntu_tw.ttf", 58, +# + "wclj", "wcl-01.ttf", 55, + "wclk", "wcl-02.ttf", 55, + "wcll", "wcl-03.ttf", 55, + "wclm", "wcl-04.ttf", 55, + "wcln", "wcl-05.ttf", 55, + "wclp", "wcl-06.ttf", 55, + "wclq", "wcl-07.ttf", 55, + "wclr", "wcl-08.ttf", 55, + "wcls", "wcl-09.ttf", 55, + "wclt", "wcl-10.ttf", 55, +# + "zysg", "zysong.ttf", 32, +# + "wnmc", "watanabe-mincho.ttf", 35, + "wdgt", "wadalab-gothic.ttf", 35, +# + "kcgt", "kochi-gothic.ttf", 31, + "kcmc", "kochi-mincho.ttf", 31, +# + "acrj", "kochi-mincho.ttf", 31, + "acrg", "gbsn00lp.ttf", 32, + "acrb", "bsmi00lp.ttf", 55, +# +"ykah", "yka00hp.ttf", 57, +"gtrl", "gtr00lp.ttf", 57, +"gtrm", "gtr00mp.ttf", 57, +"leim", "lei00mp.ttf", 57, +"heim", "hei01mp.ttf", 57, +"sunm", "sun00mp.ttf", 57, +# +"gbsnl", "gbsn00l.ttf",32, +"ggtrl", "ggtr00l.ttf",32, +"gkaim", "gkai00m.ttf",32, +"gleim", "glei00m.ttf",32, +"gsinm", "gsin00m.ttf",32, +"tgtrl", "tgtr00l.ttf",32, +"tkaim", "tkai00m.ttf",32, +"tleim", "tlei00m,ttf",32, +"tooru", "toor00u.ttf",32, +"tovru", "tovr00u.ttf",32, +"tsinm", "tsin00m.ttf",32, +# +"dcaiq", "dcai5.ttc", 31, +"dcailq", "dcail5.ttc", 31, +"dcaisq", "dcais5.ttc", 31, +"dccryq", "dccry5.ttc", 31, +"dchgmq", "dchgm5.ttc", 31, +"dchleiq", "dchlei5.ttc", 31, +"dcinlq", "dcinl5.ttc", 31, +"dckgmc", "dckgmc.ttc", 31, +"dclkaiq", "dclkai5.ttc", 31, +"dcysmr", "dcysm7.ttc", 31, +"dfcrdp", "dfcrd3.ttc", 31, +"dffrsp", "dffrs3.ttc", 31, +"dfgskr", "dfgsk7.ttc", 31, +"dfkaie", "dfkaie.ttc", 31, +"dfkbtp", "dfkbt3.ttc", 31, +"dfoyjq", "dfoyj5.ttc", 31, +"dfryss", "dfrys9.ttc", 31, +"dfshtq", "dfsht5.ttc", 31, +"dfshtr", "dfsht7.ttc", 31, +"dfskair", "dfskai7.ttc", 31, +# +); + +open(LISTFILE, "> map.list"); + +$list_length = (scalar @font_list ) /3 ; +for ($i = 0; $i < $list_length ; $i++) +{ + $stem = shift @font_list; + $font = shift @font_list; + $entries = shift @font_list; + print LISTFILE "f ", $stem, ".map\n"; + open(MAPFILE, "> ${stem}.map"); + + for ($j=1; $j<= $entries ; $j++) + { + $j_pad = sprintf "%2.2d", $j; + print MAPFILE + $stem, $j_pad, " ", $stem, $j_pad, " <", + $stem, $j_pad, ".enc <", + $font, "\n"; + } + close(MAPFILE); +} +close(LISTFILE); + diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/map.list b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/map.list new file mode 100644 index 00000000000..ae1fcd4ad12 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/map.list @@ -0,0 +1,78 @@ +f cwtb.map +f cwtf.map +f cwtk.map +f cwtm.map +f cwtr.map +f mekl.map +f mest.map +f mesx.map +f mesy.map +f meko.map +f meso.map +f bkai.map +f bsmi.map +f gbsn.map +f gkai.map +f ntbr.map +f ntfs.map +f ntka.map +f ntli.map +f ntmb.map +f ntmm.map +f ntmr.map +f nttw.map +f wclj.map +f wclk.map +f wcll.map +f wclm.map +f wcln.map +f wclp.map +f wclq.map +f wclr.map +f wcls.map +f wclt.map +f zysg.map +f wnmc.map +f wdgt.map +f kcgt.map +f kcmc.map +f acrj.map +f acrg.map +f acrb.map +f ykah.map +f gtrl.map +f gtrm.map +f leim.map +f heim.map +f sunm.map +f gbsnl.map +f ggtrl.map +f gkaim.map +f gleim.map +f gsinm.map +f tgtrl.map +f tkaim.map +f tleim.map +f tooru.map +f tovru.map +f tsinm.map +f dcaiq.map +f dcailq.map +f dcaisq.map +f dccryq.map +f dchgmq.map +f dchleiq.map +f dcinlq.map +f dckgmc.map +f dclkaiq.map +f dcysmr.map +f dfcrdp.map +f dffrsp.map +f dfgskr.map +f dfkaie.map +f dfkbtp.map +f dfoyjq.map +f dfryss.map +f dfshtq.map +f dfshtr.map +f dfskair.map diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/Bg5/c00cwtb.fd b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/Bg5/c00cwtb.fd new file mode 100644 index 00000000000..5b8d9b788bf --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/Bg5/c00cwtb.fd @@ -0,0 +1,11 @@ +% This is the file c00cwtb.fd of the CJK package +\def\fileversion{4.6.0} +\def\filedate{2005/08/11} +\ProvidesFile{c00cwtb.fd}[\filedate\space\fileversion] + +\DeclareFontFamily{C00}{cwtb}{\hyphenchar \font\m@ne} + +\DeclareFontShape{C00}{cwtb}{m}{n}{<-> CJK * cwtb}{} +\DeclareFontShape{C00}{cwtb}{bx}{n}{<-> CJKb * cwtb}{\CJKbold} + +\endinput diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/Bg5/c00tmpl.fd b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/Bg5/c00tmpl.fd new file mode 100644 index 00000000000..9cd2431850a --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/Bg5/c00tmpl.fd @@ -0,0 +1,11 @@ +% This is the file c00tmpl.fd of the CJK package +\def\fileversion{4.6.0} +\def\filedate{2005/08/11} +\ProvidesFile{c00tmpl.fd}[\filedate\space\fileversion] + +\DeclareFontFamily{C00}{tmpl}{\hyphenchar \font\m@ne} + +\DeclareFontShape{C00}{tmpl}{m}{n}{<-> CJK * tmpl}{} +\DeclareFontShape{C00}{tmpl}{bx}{n}{<-> CJKb * tmpl}{\CJKbold} + +\endinput diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/GB/c10tmpl.fd b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/GB/c10tmpl.fd new file mode 100644 index 00000000000..485fa676cee --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/GB/c10tmpl.fd @@ -0,0 +1,10 @@ +% This is the file c10tmpl.fd of the CJK package +\def\fileversion{4.6.0} +\def\filedate{2005/08/11} +\ProvidesFile{c10tmpl.fd}[\filedate\space\fileversion] +\DeclareFontFamily{C10}{tmpl}{\hyphenchar \font\m@ne} + +\DeclareFontShape{C10}{tmpl}{m}{n}{<-> CJK * tmpl}{} +\DeclareFontShape{C10}{tmpl}{bx}{n}{<-> CJKb * tmpl}{\CJKbold} + +\endinput diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/JIS/c40tmpl.fd b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/JIS/c40tmpl.fd new file mode 100644 index 00000000000..f2e007ec7d7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/JIS/c40tmpl.fd @@ -0,0 +1,10 @@ +% This is the file c40tmpl.fd of the CJK package +\def\fileversion{4.6.0} +\def\filedate{2005/08/11} +\ProvidesFile{c40tmpl.fd}[\filedate\space\fileversion] + +\DeclareFontFamily{C40}{tmpl}{\hyphenchar \font\m@ne} + +\DeclareFontShape{C40}{tmpl}{m}{n}{<-> CJK * tmpl}{} +\DeclareFontShape{C40}{tmpl}{bx}{n}{<-> CJKb * tmpl}{\CJKbold} +\endinput diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/SJIS/c49tmpl.fd b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/SJIS/c49tmpl.fd new file mode 100644 index 00000000000..41a37cf4000 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/texinput/SJIS/c49tmpl.fd @@ -0,0 +1,10 @@ +% This is the file c49song.fd of the CJK package +\def\fileversion{4.6.0} +\def\filedate{2005/08/11} +\ProvidesFile{c49song.fd}[\filedate\space\fileversion] + +\DeclareFontFamily{C49}{song}{\hyphenchar \font\m@ne} + +\DeclareFontShape{C49}{song}{m}{n}{<-> CJK * tmpl}{} +\DeclareFontShape{C49}{song}{bx}{n}{<-> CJKb * tmpl}{\CJKbold} +\endinput diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/updmap.my b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/updmap.my new file mode 100755 index 00000000000..a020e035ee5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/updmap.my @@ -0,0 +1,161 @@ +#!/bin/sh +# Thomas Esser, 1998, 1999. Public domain. + +########################################################################### +# updmap: create psfonts.map, ps2pk.map and pdftex.map from smaller +# "modules". To recreate the map files, just run the command: +# ./updmap +########################################################################### + +########################################################################### +# Configuration section: +########################################################################### + +# Add any extra modules here. See the definition of common_modules below +# for an example of the correct syntax. If you just want to use the type1 +# version for the computer modern fonts by default in dvips (instead of +# the metafont based bitmap fonts), just change the definition of +# type1_default that is given below. +# +# An alternative to adding map files here is to edit the files +# config/dvips/config.ps +# pdftex/config/pdftex.cfg +# in a local texmf tree. +extra_modules=" +cwtb.map +cwtf.map +cwtk.map +cwtm.map +cwtr.map +mekl.map +mest.map +mesx.map +mesy.map +meko.map +meso.map +bkai.map +bsmi.map +gbsn.map +gkai.map +ntbr.map +ntfs.map +ntka.map +ntli.map +ntmb.map +ntmm.map +ntmr.map +nttw.map +wclj.map +wclk.map +wcll.map +wclm.map +wcln.map +wclp.map +wclq.map +wclr.map +wcls.map +wclt.map +zysg.map +wnmc.map +wdgt.map +kcgt.map +kcmc.map +acrj.map +acrg.map +acrb.map +" + +########################################################################### +# Set up the standard Laserwriter fonts: +# urw-kb: these are included in teTeX's texmf tree +# urw-urw: these are included in ghostscript 4.0 and later. Adjust the +# search paths for type1 and afm files in texmf.cnf if you set +# this +# adobe-kb: use this if you have the original Adobe fonts. Install the +# type1 and afm files with Berry names. +########################################################################### + +lw35=urw-kb # URW fonts (download type1 files using Berry names) +# lw35=urw-urw # URW fonts (download type1 files using URW names) +# lw35=adobe-kb # Adobe fonts (download type1 files using Berry names) + +########################################################################### +# Set to true to use postscript type1 versions for fonts with existing +# metafont versions. +########################################################################### + +type1_default=false +# type1_default=true + +########################################################################### +# Add common map files here: +########################################################################### +common_modules=" + charter.map context.map lucidabr.map marvosym.map mathpi.map + mathpple-ext.map mt-plus.map mt-yy.map omega.map utopia.map + xypic.map txr4.map pxr4.map pazo.map $extra_modules +" + +########################################################################### +# End of configuration section. +########################################################################### + +########################################################################### +# Type1 fonts with Metafont equivalents. When not generating resolution +# independent postscript or pdf, we prefer the Metafont variants for these. +########################################################################### +mf_modules=" + bsr.map bsr-interpolated.map cmcyr.map cs.map hoekwater.map pl.map +" + +########################################################################### +# These are used by dvips: +########################################################################### +lw35_modules=" + *-adobe-bi.map + $common_modules +" + +########################################################################### +# Add CM + AMS fonst if configured: +########################################################################### +if test "x$type1_default" = xtrue; then + lw35_modules="$lw35_modules $mf_modules" +fi + +########################################################################### +# ps2pk has no "built in" fonts and needs to download everything: +########################################################################### +ps2pk_modules=" + *-$lw35.map +" + +########################################################################### +# pdftex has the acrobat fonts (subset of the lw35 fonts) built in, but +# needs to download fonts for ExtendFont / SlantFont: +########################################################################### +pdftex_modules=" + $mf_modules + + *ar-ext-$lw35.map + *ar-std-adobe-bi.map + *lw35extra-$lw35.map + mtsupp-ext-$lw35.map + mtsupp-std-adobe-bi.map + + $common_modules +" + +# Create psfonts.map ps2pk.map and pdftex.map: +for file in psfonts.map ps2pk.map pdftex.map; do +cat >$file <<eof +% $file: maintained by the script updmap in \$TEXMFMAIN/dvips/config. +% The preferred way to add things to this file is to put the extra lines +% into a separate file and add that filename to the updmap script. Then, +% run the updmap script to recreate this file. +eof +done + +cat $lw35_modules | grep -v '^%' | grep . | sort | uniq >> psfonts.map +cat $ps2pk_modules | grep -v '^%' | grep . | sort | uniq >> ps2pk.map +cat $pdftex_modules | grep -v '^%' | grep . | sort | uniq >> pdftex.map diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/wcl.sfd b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/wcl.sfd new file mode 100644 index 00000000000..594a36acbad --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pdfhowto/examples/wcl.sfd @@ -0,0 +1,62 @@ +# Big5.sfd +# +# subfont numbers for Big 5 encoding and its corresponding code ranges +# to be used with the CJK package for LaTeX. + +01 0xA140_0xA17E 0xA1A1_0xA1FE 0xA240_0xA27E 0xA2A1_0xA2C4 +02 0xA2C5_0xA2FE 0xA340_0xA37E 0xA3A1_0xA3FE 0xA440_0xA468 +03 0xA469_0xA47E 0xA4A1_0xA4FE 0xA540_0xA57E 0xA5A1_0xA5ED +04 0xA5EE_0xA5FE 0xA640_0xA67E 0xA6A1_0xA6FE 0xA740_0xA77E 0xA7A1_0xA7B3 +05 0xA7B4_0xA7FE 0xA840_0xA87E 0xA8A1_0xA8FE 0xA940_0xA957 +06 0xA958_0xA97E 0xA9A1_0xA9FE 0xAA40_0xAA7E 0xAAA1_0xAADC +07 0xAADD_0xAAFE 0xAB40_0xAB7E 0xABA1_0xABFE 0xAC40_0xAC7E 0xACA1_0xACA2 +08 0xACA3_0xACFE 0xAD40_0xAD7E 0xADA1_0xADFE 0xAE40_0xAE46 +09 0xAE47_0xAE7E 0xAEA1_0xAEFE 0xAF40_0xAF7E 0xAFA1_0xAFCB +10 0xAFCC_0xAFFE 0xB040_0xB07E 0xB0A1_0xB0FE 0xB140_0xB16F +11 0xB170_0xB17E 0xB1A1_0xB1FE 0xB240_0xB27E 0xB2A1_0xB2F4 +12 0xB2F5_0xB2FE 0xB340_0xB37E 0xB3A1_0xB3FE 0xB440_0xB47E 0xB4A1_0xB4BA +13 0xB4BB_0xB4FE 0xB540_0xB57E 0xB5A1_0xB5FE 0xB640_0xB65E +14 0xB65F_0xB67E 0xB6A1_0xB6FE 0xB740_0xB77E 0xB7A1_0xB7E3 +15 0xB7E4_0xB7FE 0xB840_0xB87E 0xB8A1_0xB8FE 0xB940_0xB97E 0xB9A1_0xB9A9 +16 0xB9AA_0xB9FE 0xBA40_0xBA7E 0xBAA1_0xBAFE 0xBB40_0xBB4D +17 0xBB4E_0xBB7E 0xBBA1_0xBBFE 0xBC40_0xBC7E 0xBCA1_0xBCD2 +18 0xBCD3_0xBCFE 0xBD40_0xBD7E 0xBDA1_0xBDFE 0xBE40_0xBE76 +19 0xBE77_0xBE7E 0xBEA1_0xBEFE 0xBF40_0xBF7E 0xBFA1_0xBFFB +20 0xBFFC_0xBFFE 0xC040_0xC07E 0xC0A1_0xC0FE 0xC140_0xC17E 0xC1A1_0xC1C1 +21 0xC1C2_0xC1FE 0xC240_0xC27E 0xC2A1_0xC2FE 0xC340_0xC365 +22 0xC366_0xC37E 0xC3A1_0xC3FE 0xC440_0xC47E 0xC4A1_0xC4EA +23 0xC4EB_0xC4FE 0xC540_0xC57E 0xC5A1_0xC5FE 0xC640_0xC67E 0xC6A1_0xC6B0 +24 0xC6B1_0xC6FE 0xC740_0xC77E 0xC7A1_0xC7FE 0xC840_0xC854 +25 0xC855_0xC87E 0xC8A1_0xC8FE 0xC940_0xC97E 0xC9A1_0xC9D9 +26 0xC9DA_0xC9FE 0xCA40_0xCA7E 0xCAA1_0xCAFE 0xCB40_0xCB7D +27 0xCB7E 0xCBA1_0xCBFE 0xCC40_0xCC7E 0xCCA1_0xCCFE 0xCD40_0xCD43 +28 0xCD44_0xCD7E 0xCDA1_0xCDFE 0xCE40_0xCE7E 0xCEA1_0xCEC8 +29 0xCEC9_0xCEFE 0xCF40_0xCF7E 0xCFA1_0xCFFE 0xD040_0xD06C +30 0xD06D_0xD07E 0xD0A1_0xD0FE 0xD140_0xD17E 0xD1A1_0xD1F1 +31 0xD1F2_0xD1FE 0xD240_0xD27E 0xD2A1_0xD2FE 0xD340_0xD37E 0xD3A1_0xD3B7 +32 0xD3B8_0xD3FE 0xD440_0xD47E 0xD4A1_0xD4FE 0xD540_0xD55B +33 0xD55C_0xD57E 0xD5A1_0xD5FE 0xD640_0xD67E 0xD6A1_0xD6E0 +34 0xD6E1_0xD6FE 0xD740_0xD77E 0xD7A1_0xD7FE 0xD840_0xD87E 0xD8A1_0xD8A6 +35 0xD8A7_0xD8FE 0xD940_0xD97E 0xD9A1_0xD9FE 0xDA40_0xDA4A +36 0xDA4B_0xDA7E 0xDAA1_0xDAFE 0xDB40_0xDB7E 0xDBA1_0xDBCF +37 0xDBD0_0xDBFE 0xDC40_0xDC7E 0xDCA1_0xDCFE 0xDD40_0xDD73 +38 0xDD74_0xDD7E 0xDDA1_0xDDFE 0xDE40_0xDE7E 0xDEA1_0xDEF8 +39 0xDEF9_0xDEFE 0xDF40_0xDF7E 0xDFA1_0xDFFE 0xE040_0xE07E 0xE0A1_0xE0BE +40 0xE0BF_0xE0FE 0xE140_0xE17E 0xE1A1_0xE1FE 0xE240_0xE262 +41 0xE263_0xE27E 0xE2A1_0xE2FE 0xE340_0xE37E 0xE3A1_0xE3E7 +42 0xE3E8_0xE3FE 0xE440_0xE47E 0xE4A1_0xE4FE 0xE540_0xE57E 0xE5A1_0xE5AD +43 0xE5AE_0xE5FE 0xE640_0xE67E 0xE6A1_0xE6FE 0xE740_0xE751 +44 0xE752_0xE77E 0xE7A1_0xE7FE 0xE840_0xE87E 0xE8A1_0xE8D6 +45 0xE8D7_0xE8FE 0xE940_0xE97E 0xE9A1_0xE9FE 0xEA40_0xEA7A +46 0xEA7B_0xEA7E 0xEAA1_0xEAFE 0xEB40_0xEB7E 0xEBA1_0xEBFE 0xEC40 +47 0xEC41_0xEC7E 0xECA1_0xECFE 0xED40_0xED7E 0xEDA1_0xEDC5 +48 0xEDC6_0xEDFE 0xEE40_0xEE7E 0xEEA1_0xEEFE 0xEF40_0xEF69 +49 0xEF6A_0xEF7E 0xEFA1_0xEFFE 0xF040_0xF07E 0xF0A1_0xF0EE +50 0xF0EF_0xF0FE 0xF140_0xF17E 0xF1A1_0xF1FE 0xF240_0xF27E 0xF2A1_0xF2B4 +51 0xF2B5_0xF2FE 0xF340_0xF37E 0xF3A1_0xF3FE 0xF440_0xF458 +52 0xF459_0xF47E 0xF4A1_0xF4FE 0xF540_0xF57E 0xF5A1_0xF5DD +53 0xF5DE_0xF5FE 0xF640_0xF67E 0xF6A1_0xF6FE 0xF740_0xF77E 0xF7A1_0xF7A3 +54 0xF7A4_0xF7FE 0xF840_0xF87E 0xF8A1_0xF8FE 0xF940_0xF947 +55 0xF948_0xF97E 0xF9A1_0xF9FE 0xFA40_0xFA65 + +# eof diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pinyin.txt b/Master/texmf-dist/doc/latex/CJK/doc/pinyin.txt new file mode 100644 index 00000000000..9acf4ea7afd --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pinyin.txt @@ -0,0 +1,55 @@ +This is the file pinyin.txt of the CJK macro package ver. 4.6.0 +(11-Aug-2005). + +pinyin.sty +---------- + +This style file (which can be also used under plain TeX) enables the input +of pinyin syllables with tones. + +Say + + \usepackage{pinyin} + +to load all pinyin macros under LaTeX2e; say `\input pinyin.sty' under plain +TeX. + +An example explains best how to input pinyin: + + \Wo3 \hen3 \xi3\huan1 \chi1 \Zhong1\guo2 \cai4. + +Note there is no fifth tone marker in pinyin (Zhuyinfuhao uses a dot to +indicate the fifth tone; on the other hand no marker is used for the first +tone). Nevertheless you can say e.g., \ne5 to get the syllable `ne' without a +tone. + + +There are some special cases: + + o use `v' instead of `u umlaut' in pinyin syllables (these are \lv, + \lve, \nv, \nve and its uppercase forms). Example: + + \nv3'\er2 daughter + + The appearance of u umlaut with additional tone markers has been + tested with the standard cm, ec, and PostScript fonts. + + o use \Long and \LONG instead of \long and \Long (which you would + expect): \long is a very important internal TeX command. Many + packages would fail if we redefined \long. + + +Problems: + + The following macros are redefined if you load pinyin.sty: + + \a, \chi, \cong, \ge, \hang, \le, \min, \mu, \ne, \ni, \nu, \o, \pi, + \Pi, \Re, \tan, \xi, \Xi. + + They are available as \PY... (\PYchi, \PYcong, etc.). + + If this is not enough, you can say \PYdeactivate to restore the original + definitions (and reactivate these syllables with \PYactivate). + + +---End of pinyin.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/pyhyphen.txt b/Master/texmf-dist/doc/latex/CJK/doc/pyhyphen.txt new file mode 100644 index 00000000000..dc80bc2379b --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/pyhyphen.txt @@ -0,0 +1,107 @@ +This is the file pyhyphen.txt of the CJK macro package ver. 4.6.0 +(11-Aug-2005). + +Hyphenation patterns for unaccented pinyin syllables +---------------------------------------------------- + +Sometimes it makes sense to use unaccented pinyin syllables for common names +and phrases which are repeated frequently; sometimes you are in an +environment which doesn't allow accented pinyin syllables at all. For such +cases it is desirable to have correct hyphenation, avoiding manually added +hints using e.g., `\-' between the syllables. + +Fortunately, due to the limited numbers of Chinese pinyin syllables (407 for +Mandarin), it is easy to create hyphenation patterns. The logical +consequence is to add a new `language' to the Babel package, and exactly +this can be found in the directory utils/pyhyphen. + + +Installation +------------ + +This is fairly straightforward. Move the Babel language definition file +pinyin.ldf file to a place found by TeX. If you e.g., maintain a local TEXMF +tree, a good place would be $TEXMFLOCAL/tex/generic/babel/pinyin.ldf. +Similarly, move the pinyin hyphenation pattern file pyhyph.tex into your +(local) TEXMF tree: The analogous place would be +$TEXMFLOCAL/tex/generic/hyphen/pyhyph.tex. + +Now run texconfig (or a similar tool) to add pyhyph.tex to the used +hyphenation patterns. In the usual case you have to add a line saying + + pinyin pyhyph.tex + +to the hyphenation configuration file language.dat. Finally, build a new +format file (usually the command `initex latex.ltx'); in most cases this +happens automatically. + +Using Babel ensures that it works both with LaTeX and Plain TeX. + + +Usage +----- + +Do something like this: + + \documentclass[...]{...} + + \usepackage[T1]{fontenc} + \usepackage[pinyin,german,english]{babel} + ... + + \begin{document} + ... + \foreignlanguage{pinyin}{some pinyin syllables} + ... + \end{document} + + +Note 1: pinyin.ldf is intentionally very minimal. Don't expect that e.g., + \chapter yields a pinyin version of the Chinese word for `chapter'. + It might be useful to define a shorthand macro like the following: + + \newcommand{\py}[1]{\foreignlanguage{pinyin}{#1}} + + Now you can simply say + + \py{Beijing} + +Note 2: The hyphenation patterns use `umlaut u' with code position 0xFC + (this is latin-1 and T1 encoding). You can also use OT1 encoding, + but then the patterns containing `umlaut u' won't work. + Additionally, the quote character `'' is used as a letter which is + needed to resolve ambiguities like this: + + Xi'an <-> Xian + + If a syllable not at the beginning of a word starts with a vowel + (i.e., `a', `e', or `o'), you must precede it with a quote + character. Example: + + Tian'anmen + + The hyphenation patterns correctly treat it as Tian'-an-men. + + The shorthand `"u' (as used in German) is available to input + `umlaut u'. + +Note 3: Most Babel language support files define a `<language>.sty' file + also. This is not true for pinyin! pinyin.sty is used for accented + pinyin syllables which don't need a special hyphenation support. + (pinyin.sty works with Plain TeX also.) + + +Technical details +----------------- + +The dictionary used to construct the hyphenation patterns has been created +with the small C program `pinyin.c' which simply combines all existing +Chinese syllable pairs, inserting quote characters where needed. Then, +`patgen' has been run on the dictionary; `pinyin.tr' defines the used +character set. + +Due to the regularity of the word combinations, only two-letter patterns of +the first level are needed to find all possible breaks without a single +error or omission. + +---End of pyhyphen.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/reftex.txt b/Master/texmf-dist/doc/latex/CJK/doc/reftex.txt new file mode 100644 index 00000000000..7d390a2d95d --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/reftex.txt @@ -0,0 +1,34 @@ +This is the file reftex.txt of the CJK macro package ver. 4.6.0 +(11-Aug-2005). + +RefTeX +------ + +To make RefTeX aware of \CJKinput and \CJKbibliography, add the following +two lines to your .emacs file: + + (add-to-list 'reftex-include-file-commands "CJKinclude") + (add-to-list 'reftex-bibliography-commands "CJKbibliography") + +These two variables have been added to RefTeX in July 2002. + +Older versions (like 4.16) which don't have them must be patched directly. +In reftex.el: + +1097c1097 +< (include-re (concat wbol "\\\\\\(include\\|input\\)[{ \t]+\\([^} \t\n\r]+\\)")) +--- +> (include-re (concat wbol "\\\\\\(include\\|input\\|CJKinput\\)[{ \t]+\\([^} \t\n\r]+\\)")) + +In reftex-parse.el: + +333c333 +< "\\(\\`\\|[\n\r]\\)[ \t]*\\\\\\(no\\)?bibliography{[ \t]*\\([^}]+\\)" nil t) +--- +> "\\(\\`\\|[\n\r]\\)[ \t]*\\\\\\(no\\|CJK\\)?bibliography{[ \t]*\\([^}]+\\)" nil t) + +Changes for even older RefTeX versions (before Aug 1999 which only have +reftex.el) are virtually the same. + + +---End of reftex.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/ruby.txt b/Master/texmf-dist/doc/latex/CJK/doc/ruby.txt new file mode 100644 index 00000000000..bdc8c37f4d4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/ruby.txt @@ -0,0 +1,139 @@ +This is the file ruby.txt of the CJK macro package ver. 4.6.0 (11-Aug-2005). + +What is ruby? +------------- + +To cite Martin Duerst (mduerst@w3.org) who wrote a proposal for ruby in HTML +documents: + + + Ruby are small characters used for annotations of a text, at the right + side for vertical text, and atop for horizontal text, to indicate the + reading (pronounciation) of ideographic characters. [...] + + The name `ruby' is the name of the 5.5 point type size in British + terminology; this was the size most used for ruby. [...] + + Ruby are in most cases set at half the size of the main letters, + resulting in a possible two ruby characters per main character, and + taking up half of the width of the main characters. However, at least up + to five ruby characters per main character are possible (an example is + `u-ke-ta-ma-wa-...'), and so various solutions, from leaving white space + in the main text to having the ruby overlap the next characters of the + main text, are possible (the later is possible in Japanese especially + because in many cases, the characters around an ideograph with ruby are + syllabic, and therefore the assignment of ruby to main characters poses + no problems for the reader). [...] + + Ruby are particularly frequent in Japanese, because of the way CJK + ideographs are used in Japanese. Ideographs can have many different + readings (pronounciations) because different readings were taken over + from different regions of China and at different times when the + characters where adopted in Japan. Also, these characters are used to + write indigenous Japanese words, and many readings may be possible + because the ideograph might cover many different concepts distinguished + in the Japanese language. [...] The main use of ruby today is in + magazines of all levels, and of course in educational material. Ruby are + also used in educational material in China and Taiwan. + + In Japan, the term `furigana' is also used instead of `ruby'. `Furigana' + is composed of the verb `furu' (to attach, sprinkle, ...) and `gana' + (either hiragana or katakana, one of the two Japanese syllabaries usually + used for ruby). + + + +Usage +----- + +Here a typical example: + + + \documentclass{article} + + \usepackage{CJK} + \usepackage[overlap, CJK]{ruby} + + + \begin{document} + + \begin{CJK*}{JIS}{song} + + ....Japanese text.....\ruby{base character(s)}{ruby}.... + + \end{CJK*} + + \end{document} + + +The following options can be selected: + + `overlap' and `nooverlap', as described above. \rubyoverlap and + \rubynooverlap are the corresponding commands to modify the overlap flag. + `overlap' is the default. + + `CJK' and `latin'. The corresponding commands are \rubyCJK and \rubylatin. + Use these commands similar to \CJKnospace and \CJKspace to suppress or + not suppress spaces after a \ruby macro and to get/avoid insertion of + glue. `CJK' is the default. + +The command \rubysize defines the factor between the size of the base +character and the ruby. Its default value is 0.4 . Usually you get some +error messages about size substitution (the reason is that LaTeX 2e always +defines a default error font) which can be safely ignored if you use ttf2pk +or hbf2gf since these programs compute fonts for (almost) any font size. In +the unlikely case that you need latin fonts as ruby it may be necessary to +adapt your FD definition files if the particular font supports non-standard +sizes (e.g., EC, Sauter, PS) and you really want exactly that size. + +The command \rubysep defines the separation between the base character and +the ruby. Its default value is -0.5ex. + +To avoid lines sticking together the value of \lineskiplimit has been set +to 1pt. It may be necessary to increase this value for larger font sizes. + +Note that all \ruby... commands are local, i.e., they obey groups. + + +Implementation specific details +------------------------------- + +There are a number of possibilities how ruby can interact with other CJK +characters. + + o The ruby has a smaller width than its base character: + + The behaviour is identical to an ordinary CJK character. + + o The ruby has a greater width than its base character: + + + Overlapping ruby: + + . If the previous or next character is a CJK character + (ordinary or punctuation), insert unbreakable glue between. + + . If the previous or next character is a ruby, handle both + ruby as non-overlapping and insert unbreakable glue between. + + . A ruby at the beginning of a paragraph is treated as if the + nonoverlap option had been set. To force an overlapping ruby + you have to start the paragraph with a \leavevmode command. + + + Non-overlapping ruby: + + . If the previous or next character is a CJK character + (ordinary or punctuation), insert unbreakable glue between. + +If `latin' is active, no glue at all is inserted. + + +Technical details +----------------- + +ruby.sty introduces a third variation of a small kern (3sp) to inform the +next CJK or ruby macro that the previous character was an overlapping ruby +with the ruby's width greater than its base character. The global variable +\ruby@width then contains this width. + + +---End of ruby.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/thaifont.txt b/Master/texmf-dist/doc/latex/CJK/doc/thaifont.txt new file mode 100644 index 00000000000..e22a311b0db --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/thaifont.txt @@ -0,0 +1,129 @@ +This is the file thaifont.txt of the CJK macro package ver. 4.6.0 +(11-Aug-2005). + +Thai font support in the CJK package +------------------------------------ + +Version 4.6.0 of the CJK package has improved support for Thai. This file +describes how to install and use the fonts. Please refer to cjk-enc.txt how +to set up cjk-enc.el (which automatically loads thai-word.el for finding +word breaks). + +The directory structure in utils/thaifont/texmf already reflects the +directory structure of a standard TEXMF tree, version 1.1. Example: + + utils/thaifont/texmf/fonts/enc/dvips/thai/c90.enc -> + /usr/local/share/texmf/fonts/enc/dvips/thai/c90.enc + +To create TFM files for other Thai fonts, use the utility files in the +`thaifont/tools' directory. Details how to do that can be found in +`thaifonts/tools/INSTALL'. The file thaifont/tools/c90.etx gives the +theoretical background on the used font encoding and ligature mechanism; +a pre-formatted version can be found in CJK's doc bundle. + + +Installation +------------ + +. It is assumed that you have already installed the main parts of the CJK + package (as described in the doc/INSTALL file). + +. Get the latest thailatex package from + + http://linux.thai.net/plne/TLWG/thailatex + + and install the Type 1 font families `garuda' and `norasi'. You should use + thailatex version 0.3.5.1 or newer. Recommended locations are + + TEXMF/fonts/type1/public/{garuda,norasi}/ . + + Fot historical reasons, you must remove the underscore from the font names + to stay within the 8.3 filename limit imposed by some operating systems. + Additionally, you should append the letter `n' to the normal shape's font. + + Examples: + + garuda.pfb -> TEXMF/fonts/type1/public/garuda/garudan.pfb + norasi_bi.pfb -> TEXMF/fonts/type1/public/norasi/norasibi.pfb + + Note that the TeX metric files of thailatex bundle are incompatible with + CJK's Thai implementation. Nevertheless, it is possible to use both at the + same time if desired. This is the very reason that the Babel language + support file of the CJK package is called `thaicjk.ldf', not `thai.ldf'. + +. Install all files from utils/thaifont/texmf in your TEXMF tree. This + should be straightforward. + +. Font definition files for Thai are in CJK's texinput/thai directory. To + simplify font handling with LaTeX, `gar' and `nrsr' are aliased to `cmr', + `cmss', and `cmtt'. If you want to use other fonts, you have to adapt + c90cmr.fd, c90cmss.fd, and c90cmtt.fd accordingly. + +. There are two possibilities how to make the Thai PostScript fonts known to + the various DVI drivers (and pdftex). The recommended way is to include + the files `garuda.map' and `norasi.map' in the `updmap.cfg' configuration + script by adding the following two lines: + + Map garuda.map + Map norasi.map + + Older versions of updmap which don't have updmap.cfg must be patched + directly by adding the map files to the `extra_modules' variable: + + extra_modules=" + dbtt.map + norasi.map + " + + After executing updmap, the fonts are known to all programs which uses the + map files. + + For dvips, you can also use the `config.norasi' and `config.garuda' files + on the command line: + + dvips -P norasi ... + + This method doesn't work with pdfTeX (which doesn't understand the `-P' + option). + +. Run mktexlsr or a similar program to update the TEXMF file database. + + +Usage +----- + +Thai support has been fully integrated into the Babel system. For example, +to have Thai as a secondary language and US English as the primary language, +say + + \documentclass{...} + + ... + \usepackage[thaicjk,USenglish]{babel} + ... + + + \begin{document} + + ... + \begin{otherlanguage}{thaicjk} + Thai text + \end{otherlanguage} + + ... + +`thaicjk' changes the baseline stretch to 1.2, activates \frenchspacing, and +modifies the \today command to use the proper Thai values and names. + +The just sketched outline works without cjk-enc also (but no word breaks are +inserted automatically); you must then insert + + \addto\extrasthaicjk{\fontencoding{C90}\selectfont} + +in the preamble of your document to make Babel switch to Thai font encoding +on entering the `thaicjk' language environment. + +For use of cjk-enc.el please read `cjk-enc.txt'. + + +---End of thaifont.txt--- diff --git a/Master/texmf-dist/doc/latex/CJK/doc/vertical.txt b/Master/texmf-dist/doc/latex/CJK/doc/vertical.txt new file mode 100644 index 00000000000..cbcdea13c20 --- /dev/null +++ b/Master/texmf-dist/doc/latex/CJK/doc/vertical.txt @@ -0,0 +1,96 @@ +This is the file vertical.txt of the CJK macro package ver. 4.6.0 +(11-Aug-2005). + + +Vertical typesetting +==================== + +TeX itself can't support vertical typesetting. Nevertheless, it is possible +to emulate it by rotating glyphs by 90 degrees. + +The CJK package supports two different approaches: + +o Provide fonts which already contain rotated glyphs. In this case, the + only difference to normal typesetting is the emulation of bold + characters by printing a character three times with slight vertical + offsets instead of horizontal ones. Both hbf2gf and ttf2pk can produce + rotated bitmap fonts. The major disadvantage is that it doesn't work + well for outline fonts since there is no portable way to implement + rotation on the font level which works for both PostScript and PDF + output. + + You need a `.fdx' file for this option which at least contains + `\CJKvdef{norotate}{}'. + +o Use the graphicx package to rotate glyphs. A disadvantage is that + processing of a document is much slower and that documents tend to be + much larger in size. On the other hand, PDF and PostScript output can be + produced from identical sources since graphicx hides the implementation + differences. + + This works even without a `.fdx' file in case CJK's default rotation + parameters are fine. + +Loading CJKvert.sty activates vertical support. The two commands to be used +in documents are \CJKvert and \CJKhorz which do the obvious. \CJKvert is +the default. The two commands act locally, not globally. + +Some glyphs can't be used directly for vertical typesetting; a simple +rotation by 90 degrees would produce ugly results for various reasons: + +o Many punctuation characters have special vertical representation forms. + Some fonts contain proper vertical glyphs, but many don't. In the latter + case it is necessary to provide alternative methods to improve the + optical appearance. + +o Non-rotated (latin) text within rotated (CJK) text is aligned + differently as if text is written horizontally. Rotated glyphs thus must + be slightly shifted. + +o Some fonts contain CJK glyphs without quadratic bounding boxes but only + monospaced advance widths. It is then necessary to provide glyph + dimensions to assure monospaced advance heights after rotation. + +See the documentation file `fdxfiles.txt' for details on setting up +extended font definition files which can handle those items. + + +Fonts with vertical representation forms +---------------------------------------- + +OpenType fonts intended for vertical typesetting normally contain a GSUB +feature called `vert' which provides a mapping to vertical instead of +horizontal representation forms. ttf2tfm automatically takes care of it (see +below), but if such fonts have been converted to sets of Type 1 subfonts +this feature is lost. + +A solution to this problem is to collect all vertical representation glyphs +in a special Type 1 subfont. See the scripts vertical.pe, vertref.pe (for +FontForge), and makefdx.pl (for Perl) in the directory utils/subfonts which +do that. + +At the moment of this writing, only the fonts bsmi00lp.ttf and bkai00mp.ttf +for traditional Chinese have been transformed to Type 1 subfonts together +with a font with vertical representation glyphs (bsmilpv.pfb and +bkaimpv.pfb). They are part of the corresponding CJK font bundles found on +CTAN. See the file INSTALL for more information. + + +Rotated fonts +------------- + +o To install a rotated font to be handled by hbf2gf, simply proceed as + usual, with one difference: You have to add a line + + rotation yes + + to the hbf2gf configuration file of this font. x_offset and y_offset + values must be adjusted too. Look at the example configuration file + b5kr12.cfg for details---as you can see, the name of the non-rotated + font (b5ka12) has been changed to `b5kr12'. + +o With ttf2tfm, use the `-x' switch to activate rotation. For details + please refer to the man pages of ttf2tfm and ttf2pk. + + +---End of vertical.txt--- |