[texhax] Weirdness with bold, italic and colored text and the fontspec package

Philip Taylor (Webmaster, Ret'd) P.Taylor at Rhul.Ac.Uk
Thu Nov 18 22:35:33 CET 2010


Seems fine with additional braces :

%%!TEX TS-program = latex
\documentclass{article}
\usepackage{fontspec}
%\usepackage[usenames]{color}
\usepackage{xcolor}
\definecolor{color13}{cmyk}{0,0.87,0.87,0}
\begin{document}
\fontsize{14}{14}
\fontspec{DejaVu Sans}
{\textit {italic}}{\fontspec[Color=color13]{DejaVu Sans}\textit {red italic}} {\fontspec[Color=color13]{DejaVu Sans}\bfseries{\textit {red bold italic}}}{\bfseries{\textit {bold italic}}}
\end{document}

Philip Taylor
--------
Peter Davis wrote:
> %%!TEX TS-program = latex
>
> \documentclass{article}
>
>
> \usepackage{fontspec}
>
> %\usepackage[usenames]{color}
>
> \usepackage{xcolor}
>
> \definecolor{color13}{cmyk}{0,0.87,0.87,0}
>
>
> \begin{document}
>
>
> \fontsize{14}{14}
>
> \fontspec{Minion Pro}
>
>
> {\textit italic}{\fontspec[Color=color13]{Minion Pro}\textit red italic}
> {\fontspec[Color=color13]{Minion Pro}\bfseries{\textit red bold
> italic}}{\bfseries{\textit bold italic}}
>
>
> \end{document}
>


More information about the texhax mailing list