Comprehensive TeX Archive Network

Direc­tory tex-archive/macros/latex/contrib/xcjk2uni



The xCJK2uni pack­age pro­vides com­mands to con­vert CJK char­ac­ter to Uni­code in non-UTF-8 en­cod­ing. It pro­vides hooks for hyperref to get the cor­rect book­marks. It also pro­vides some /ToUnicode map­ping file for CJK sub­font. They can be used with cmap pack­age and make CJK char­ac­ter search­able and copy­able in PDF files gen­er­ated by pdfLaTeX.

Ba­sic Usage

The pack­age pro­vides the fol­low­ing macros:


Set the cur­rent en­cod­ing. The de­fault en­cod­ing is GBK.


Con­vert a sin­gle CJK char­ac­ter to its Uni­code. It re­quires two steps of ex­pan­sion.


Con­vert the .sfd co­or­di­nate to its Uni­code. It re­quires two steps of ex­pan­sion.

You can read the pack­age man­ual (in Chi­nese) for more de­tailed ex­pla­na­tions.


This pack­age is a part of the ctex-kit project.

Is­sues and pull re­quests are wel­come.

Copy­right and Li­cence

Copyright (C) 2013-2014, 2016 by Qing Lee <sobenlee@gmail.com>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
version. This version of this license is in
and the latest version of this license is in
and version 1.3 or later is part of all distributions of
LaTeX version 2005/12/01 or later.
This work has the LPPL maintenance status `maintained'.
The Current Maintainer of this work is Qing Lee.
This package consists of the file  xCJK2uni.dtx,
             and the derived files xCJK2uni.pdf,
                                   c****.cmap, and
                                   README.md (this file).


Name Size Date Notes
README.md 2566 2016-05-14 13:25
xCJK2uni.dtx 29826 2016-05-14 11:49
xCJK2uni.ins 4797 2016-05-14 13:25
xCJK2uni.pdf 141596 2016-05-14 13:26

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

xcjk2uni – Con­vert CJK char­ac­ters to Uni­code, in pdfTeX

The pack­age pro­vides com­mands to con­vert CJK char­ac­ters to Uni­code in non-UTF-8 en­cod­ing; it pro­vides hooks to sup­port hy­per­ref in pro­duc­ing cor­rect book­marks.

The bun­dle also pro­vides /ToUni­code map­ping file(s) for a CJK sub­font; these can be used with the cmap pack­age, al­low­ing searches of, and cut-and-paste op­er­a­tions on a PDF file gen­er­ated by pdfTeX..

Pack­age De­tailsxcjk2uni
Li­censeThe LaTeX Project Public Li­cense 1.3
Main­tainerQing Lee
TDS archivexcjk2uni.tds.zip
Con­tained inTeX Live as xcjk2uni
MiKTeX as xcjk2uni
Topics ac­cess PDF fea­tures
Guest Book Sitemap Contact Contact Author