[XeTeX] Slightly embarrassed.... why does \newfontfamily not do what I expect?
Ross Moore
ross at ics.mq.edu.au
Sat Nov 21 05:03:53 CET 2009
On 21/11/2009, at 1:05 PM, Wilfred van Rooijen wrote:
> Hi all,
>
> The "problem" happens in a table. In the following example, the 日
> 本語 appears in the normal text, but not in the table (?)
You need to use \setromanfont
to establish a font family for the whole document,
at all sizes, within all environments, except for
any that you override with other font-switch commands.
>
> \documentclass[a4paper,draft,oneside,article]{memoir}
> \usepackage{fontspec}
> \usepackage{hyperref}
\setromanfont{Kozuka Mincho Pr6N}
>
> \begin{document}
>
> %\newfontfamily\cjkfont{Kozuka Mincho Pr6N}
> %\cjkfont
>
> English, Nederlands, 日本語. But in a table:
>
> \begin{table}[ht]
> \begin{center}
> \caption[]{The caption}
> \begin{tabular}{ccc}
> English & Nederlands & 日本語 \\
> \end{tabular}
> \end{center}
> \end{table}
>
> \end{document}
>
> If I put \cjkfont just prior to the 日本語 in the table, the
> characters do show up. I guess some font settings happen when going
> into a table? Is it maybe that the font-size is smaller for table
> entries?
>
> Cheers,
> Wilfred
Hope this helps,
Ross
------------------------------------------------------------------------
Ross Moore ross at maths.mq.edu.au
Mathematics Department office: E7A-419
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia 2109 fax: +61 (0)2 9850 8114
------------------------------------------------------------------------
More information about the XeTeX
mailing list