[XeTeX] Defining fonts for table columns in XeLaTeX
Pavel Straňák
stranak at ufal.ms.mff.cuni.cz
Sun Jun 19 23:17:41 CEST 2005
I am trying to typeset a vocabulary with 3-column tables of Chinese,
Pinyin and Czech. For each column I want to use a diferent font (in
all tables). When I define custom columns (see below), I end up with
following error.
Thanks for any advice.
Pavel
> [10]
> ! Font \zf at fonttwo=Gentium Italic/B at 10.0pt not loaded: Not
> enough room left.
>
> \ifEqFonts ...fi \font \zf at fonttwo = "#2" at 10pt
> \edef \@tempb
> {\fontname \...
> l.432 女兒 & n
> u3 er2 & \\
>
>
>
>
This is a begining of my file, there are basically just many such
tables and some texts:
> %!TEX TS-program = xelatex
> %!TEX encoding = UTF-8 Unicode
> \documentclass[11pt, a4paper]{article}
> \usepackage{fontspec, xunicode}
> \defaultfontfeatures{Mapping=tex-text}
> \usepackage[parfill]{parskip}
> \usepackage{array}
> \widowpenalty=10000
> \clubpenalty=10000
>
> \title{我的漢語詞典}
> \author{\textsc{Pavel Straňák}}
> \date{}
>
> %%%%%%%%%%%%
> \newcommand{\he}{\fontspec{STHeiti}}
> \newcommand{\himaru}{\fontspec{Hiragino Maru Gothic Pro W4}}
> \newcommand{\ka}{\fontspec{STKaiti}}
> \newcommand{\so}{\fontspec{STSong}}
> \newcommand{\fs}{\fontspec[Bold=STHeiti]{STFangsong}}
> \newcommand{\mi}{\fontspec{Minion Pro}}
> \newcommand{\gentium}{\fontspec{Gentium}}
> \newcommand{\gentiumIt}{\fontspec{Gentium Italic}}
> \newcommand{\lekce}[1]{\bigskip\section*{\he{#1}}}
> \newcommand{\slov}{\subsection*{\he{生詞:}}}
> \newcommand{\neuz}{\ensuremath{\sim}}
>
> \newcolumntype{H}{>{\fs}l}
> \newcolumntype{P}{>{\gentiumIt}l}
> %\newcolumntype{P}{>{\textit}l}
> %\newcolumntype{C}{>{\textbf}p{10cm}}
> \newcolumntype{C}{>{\gentium}p{10cm}}
>
>
> %%%%%%%%%%%%
>
> \begin{document}
> \ka
> \maketitle
>
> \lekce{第一課}
> \slov
> \begin{tabular}{HPC}
> 你 & n\u{i} & ty\\
> 好 & ha\u{o} & dobrý\\
> 你好 & n\u{i} ha\u{o} & Dobrý den.\\
> 再 & za\`{i} & brzy\\
> 見(见) & jia\`{n} & (vidět)\\
> 再見 & za\`{i} jia\`{n} & Na shledanou.\\
> \end{tabular}
> ...
>
>
More information about the XeTeX
mailing list