LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Thu, 16 Jul 2015 18:44:24 +0100
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Message-ID: <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset="windows-1252"; format=flowed
From: David Carlisle <[log in to unmask]>
Parts/Attachments: text/plain (38 lines)
On 16/07/2015 17:54, Stephan Hennig wrote:
> Hi,
>
> the following example, which uses a \fontspec statement in a tabular
> column declaration as per >{}
>

Hmm. Will's call really but the lookahead for optional argument is
what's causing the problem, so a workaround is

\listfiles
\documentclass{article}
\usepackage{fontspec}
\usepackage{array}
\begin{document}
% \begin{tabular}{>{\sffamily}l}% works
% \begin{tabular}{>{\fontfamily{lmss}\selectfont}l}% works
\begin{tabular}{>{\fontspec{Latin Modern Sans}\relax}l}% fails/works
   text
\end{tabular}
\end{document}

David


________________________________


The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is:

Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.



This e-mail has been scanned for all viruses by Microsoft Office 365.

________________________________

ATOM RSS1 RSS2