[XeTeX] Problem using XeTeXinterchartoks

Barry MacKichan barry at mackichan.com
Tue Mar 4 00:17:19 CET 2008


Thank you Jonathan. That did the trick. The point that other readers of 
this list should note is:

The MikTeX 2.7 release of XeTeX does not support XeTeXinterchartoks as 
expected unless you update unicode-letters.tex and rebuild the XeLaTeX 
and XeTeX formats.

--Barry

Jonathan Kew wrote:
>
> On 3 Mar 2008, at 9:04 pm, Barry MacKichan wrote:
>
>> I am having trouble using XeTeXinterchartoks. My TeX file is below, 
>> and the resulting PDF file is attached. The Chinese characters appear 
>> in the first line (showing that \zhfam is defined correctly), but in 
>> the second line, there is blank space where the Chinese characters 
>> should be. Any help would be appreciated, such as a correction of 
>> this file or a link to a complete working sample.
>
> The first thing to check would be whether the characters involved have 
> the expected \XeTeXcharclass values; e.g., try inserting
>
>   \showthe\XeTeXcharclass`多
>
> in your document, and see if it reports 1.
>
> If not, you'll need to rebuild the format with an updated 
> unicode-letters.tex file (see the xetex subversion repository); this 
> initializes a lot of characters based on the Unicode standard, though 
> you may still wish to add further definitions for particular purposes.
>
> JK
>
>
>>
>> I am using XeTeX version 0.997 svn 539, the one included in the 
>> MikTeX download.
>>
>> Thanks,
>>
>> Barry MacKichan
>>
>> \documentclass{article}%
>> \usepackage{amsmath}
>> \usepackage{amsfonts}
>> \usepackage{fontspec}
>> \usepackage{xltxtra}
>> \usepackage{xunicode}
>>
>> \newfontfamily\zhfam{MingLiU}
>> \XeTeXinterchartokenstate = 1
>> \XeTeXinterchartoks 0 1 {\begingroup\zhfam}
>> \XeTeXinterchartoks 1 0 {\endgroup}
>> \XeTeXinterchartoks 255 1 {\begingroup\zhfam}
>> \XeTeXinterchartoks 1 255 {\endgroup}
>>
>> \begin{document}
>> Here is some text: \begingroup\zhfam 多項式函數: \endgroup
>> \\
>> Now is the time to write: 多項式函數:
>> \\
>> \end{document}<shorttest.pdf>_______________________________________________ 
>>
>> XeTeX mailing list
>> postmaster at tug.org
>> http://tug.org/mailman/listinfo/xetex
>
>
>


More information about the XeTeX mailing list