# [XeTeX] tabular troubles

Jonas Wellendorf Jonas.Wellendorf at cms.uib.no
Tue Apr 12 13:28:51 CEST 2005

This one is fairly basic, I presume: How do I insert at table with the
font specified by fontspec? I have tried to do as in the example below
but the table is typeset with the wrong font. I can do the tables with
the tabbing-environment instead, but I have the same problem with
linguex.sty  which I will be using a lot.

Thank you,
Jonas W.

%&program=xelatex
%&encoding=UTF-8 Unicode

\documentclass[a4paper]{article}
\usepackage{fontspec,xunicode}

\begin{document}
\fontspec{Hoefler Text}
Why isn’t the table typeset with Hoefler?
\begin{table}[htdp]
\caption{default}
\begin{center}
\begin{tabular}{|c|c|c|}
\hline
Where & is & Hoefler?\\
\hline
\end{tabular}
\end{center}
\label{default}
\end{table}%
\end{document}