LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
David Carlisle <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Thu, 16 Jul 2015 18:44:24 +0100
Content-Type:
text/plain
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