Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Direc­tory tex-archive/language/chinese/zhmcjk

                          ==================
                            zhmCJK Package
                          ==================

Introduction
------------

zhmCJK is a package written to ease the complex CJK fonts setup.  All CJK
fonts may share the same .tfm metrics.  The package sets the NFSS font
definition and actual font maappings using TeX macros dynamically.  As a
result, zhmCJK provides similar faculties and interface of xeCJK, TrueType CJK
fonts are used to generate PDF output with pdfTeX or DVIPDFMx driver.

This package is licensed under LPPL.

Installation
------------

This package consists of the files zhmCJK.dtx,
                                zhmCJK.ins,
                                zhmCJK.lua,
          and the derived files zhmCJK.sty,
                                zhmCJK.pdf,
                                zhmCJK-test.tex,
                                README.txt,               (from zhmCJK.dtx)
                                zhmCJK.map,
                                texfonts.map,
                                zhmCJK.tfm,
                                fallback/zhm*/zhm**.tfm.  (from zhmCJK.lua)

* Compile zhmCJK.lua with command

      texlua zhmCJK.lua map

  to generate zhmCJK.map, texfonts.map, zhmCJK.tfm.

  Or, for MiKTeX only, use

      texlua zhmCJK.lua nomap

  to generate fallback/zhm*/zhm**.tfm. (32 subdirectories, 8192 TFM files)

* Compile zhmCJK.ins using an 8-bit TeX engine to obtain zhmCJK.sty,
  zhmCJK-test.tex and this README.txt file.

* Compile zhmCJK.dtx using pdflatex or latex+dvipdfmx to obtain the
  documentation zhmCJK.pdf.

* Copy the files into proper directories searched by TeX.
  TDS tree:

    TEXMF/doc/latex/zhmCJK/zhmCJK-test.tex
    TEXMF/doc/latex/zhmCJK/zhmCJK.pdf
    TEXMF/doc/latex/zhmCJK/README.txt
    TEXMF/fonts/map/fontname/texfonts.map
    TEXMF/fonts/map/fontname/zhmCJK.map
    TEXMF/fonts/tfm/zhmCJK/zhmCJK.tfm
    TEXMF/source/latex/zhmCJK/zhmCJK.dtx
    TEXMF/source/latex/zhmCJK/zhmCJK.ins
    TEXMF/source/latex/zhmCJK/zhmCJK.lua
    TEXMF/tex/latex/zhmCJK/zhmCJK.sty

  If texfonts.map already exists, merge the contents of old texfonts.map and
  the new one, or simply append this line to the old texfonts.map:

    include zhmCJK.map

  Or, for MiKTeX only, instead of copying texfonts.map, zhmCJK.map and
  zhmCJK.tfm, copy all fallback/zhm*/zhm**.tfm into:

    TEXMF/fonts/tfm/zhmCJK/fallback/zhm*/zhm**.tfm

* Run texhash to refresh file name data base.

Basic Usage
-----------

zhmCJK provides similar syntax to xeCJK, while the underlying package is CJK
under pdfTeX or DVIPDFMx engine.  A TeX source file is encoded in UTF-8 by
default.

The package provides the following commands to define a CJK font family:

    \setCJKmainfont[options]{ttf-file-name}
    \setCJKsansfont[options]{ttf-file-name}
    \setCJKmonofont[options]{ttf-file-name}
    \setCJKfamilyfont{family}[options]{ttf-file-name}

For example, this setup some Chinese fonts on MS Windows:

    \usepackage{zhmCJK}
    \setCJKmainfont[BoldFont=simhei.ttf, ItalicFont=simkai.ttf]{simsun.ttc}

You can read the PDF document (in Chinese) for more detailed explanations.

Author
------

Leo Liu

Email: leoliu.pku@gmail.com

If you are interested in the process of development you may observe

    http://code.google.com/p/leoliu-tex-pkg/

--- end of README ---

Files

Name Size Date Notes
README 3355 2013-08-12 08:41
fallback.tar.bz2 46995 2013-08-08 16:54
texfonts.map 20 2013-08-12 08:41
zhmCJK-test.tex 1411 2013-08-12 08:41
zhmCJK.dtx 49279 2013-08-10 07:26
zhmCJK.ins 3737 2013-08-10 07:32
zhmCJK.lua 5574 2012-02-11 07:38
zhmCJK.map 186113 2013-08-12 08:41
zhmCJK.pdf 227592 2013-08-12 08:41
zhmCJK.sty 11908 2013-08-12 08:41
zhmCJK.tfm 1252 2013-08-12 08:41

Down­load the con­tents of this pack­age in one zip archive (297.6k).

zh­mCJK – Sim­plify con­fig­u­ra­tion of CJK in­stal­la­tions for Chi­nese

The pack­age is de­signed to ease the com­plex busi­ness of set­ting up CJK fonts. The pack­age re­lies on the fact at all CJK fonts share the same met­rics; it pro­vides macros that cre­ate the NFSS font def­i­ni­tion and ac­tual font map­pings dy­nam­i­cally.

As a re­sult, zmhCJK pro­vides sim­i­lar fa­cil­i­ties and in­ter­faces to those of xeCJK; TrueType CJK fonts may be used to gen­er­ate PDF out­put with pdfTeX or with the DVIPDFMx driver.

Pack­age De­tailszh­mCJK
Ver­sion0.9
Li­censeThe LaTeX Project Public Li­cense
Copy­right2012 Leo Liu
Main­tainerLeo Liu
TDS archivezhmcjk.tds.zip
Topics sup­port for type­set­ting Chi­nese lan­guages
font se­lec­tion, map­ping, etc.
fonts for far east­ern lan­guages (Chi­nese, Ja­panese and Korean)
Guest Book Sitemap Contact