Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The fontspec properties seem to work not correctly inside a floating environment, if used with LuaLaTeX.

\documentclass{article}

\usepackage{fontspec}

\begin{document}
{
\fontspec[Color=FF0000]{DejaVu Sans}
This is a test for fontspec.
}

\begin{table}
{
\fontspec[Color=FF0000]{DejaVu Sans}
This is a test for fontspec.
}
\end{table}
\end{document}

This little example works well with XeLaTeX, but compiled with LuaLaTeX Version beta-0.70.2 (TeX Live 2012), the text inside the table environment is printed black instead of red.

Is there some way to fix this behavior with LuaLaTeX? Using XeLaTeX is not really a workaround since I depend heavyly on LuaLaTeX's capabilities.

share|improve this question
    
Works perfectly with TL2012 (LuaTeX, Version beta-0.71.0-2012080520 (rev 4356); fontspec.sty 2012/05/06 v2.2b). –  Martin Schröder Sep 9 '12 at 16:19
    
I can replicate the problem using fontspec 2012/05/06 v2.2b and LuaTeX Version beta-0.70.2-2012062819 which is the latest version available through normal channels I think. –  Alan Munn Sep 9 '12 at 17:22
add comment

closed as too localized by Stephan Lehmke, Guido, Kurt, lockstep, Thorsten Dec 2 '12 at 7:09

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.