[OS X TeX] Color in Koma letter docs under TL-2010

Herbert Schulz herbs at wideopenwest.com
Mon Sep 27 16:33:23 EDT 2010


On Sep 27, 2010, at 11:59 AM, Stephen Anderson wrote:

>> Date: Fri, 24 Sep 2010 18:34:33 -0400
>> From: Alan Munn <amunn at gmx.com>
>> Subject: Re: [OS X TeX] Color in Koma letter docs under TL-2010
>> To: TeX on Mac OS X Mailing List <macosx-tex at email.esm.psu.edu>
>> Message-ID: <717230B9-4233-4DC6-97A7-E506F42B41C5 at gmx.com>
>> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>> 
>> Hi Steve, I don't use scrlttr2 for letters, and trying to put your  
>> code into a minimal document produced lots of errors.  But when I  
>> pushed through the errors, it finally spat out the letterhead in blue.
>> 
>> Could you post a minimal example document with your letterhead that  
>> doesn't work?
> 
> Here's one.  I can quite reliably switch between blue header (correct) and black (incorrect) by switching between TL-2209 and TL-2010 in the TeX distribution manager:
> 
> %!TEX TS-program = XeLaTeX-xdv2pdf
> \documentclass[fontsize=12pt,paper=letter,fromalign=left,backaddress=false,parskip=half]{scrlttr2}
> \usepackage[T1]{fontenc}
> \usepackage{textcomp}
> \usepackage{fontspec}
> \usepackage{xunicode}% provides unicode character macros 
> \usepackage{xltxtra} % provides some fixes/extras 
> \usepackage{fontspec,xltxtra,xunicode}
> \defaultfontfeatures{Mapping=tex-text}
> \setmainfont[ItalicFont={YaleAdmin-Italic},BoldFont={YaleAdmin-BoldRoman},BoldItalicFont={YaleAdmin-BoldItalic},SmallCapsFont={YaleAdmin-SmallCap}]{YaleAdmin}
> \newfontfamily\headingfont[Mapping=tex-text,ItalicFont={YaleDesign-Italic},BoldFont={YaleDesign-BoldRoman}]{YaleDesign}
> \usepackage{color}
> \definecolor{Yale-blue}{rgb}{.012,.184,.388}
> \KOMAoptions{fromalign=right,fromlogo=true,foldmarks=false}
> \setkomavar{fromlogo}{\color{Yale-blue} \parbox{3in}{\headingfont\Huge {Yale University} \vspace{1.5in}}}
> \setkomavar{fromaddress}{\headingfont\color{Yale-blue} \scriptsize  \ \\ \ \\ \ \\
> \parbox{2in}{\flushleft  \itshape \ {Department of Linguistics}\\
> \ {370 Temple Street}\ \\
> \ {P.O.\ Box 208366}\\
> \ {New Haven, Connecticut 06520-8366}\\
> \ \\
> \ {Telephone: 203.432.2456}\\
> \  {Email:sra at yale.edu}}}
> \setkomavar{signature}{Stephen R. Anderson}
> \makeatletter
> \@setplength{sigindent}{0in} 
> \makeatother
> \renewcommand{\raggedsignature}{\raggedright} % make the signature 
> \begin{document}
> \begin{letter}{Addressee}
> \opening{To Whom It May Concern:}
> Foo Far Bahz.
> \closing{Sincerely yours,}
> \end{letter}
> \end{document} 
> 
>> Also, did you run TL Utility to update all the packages to the most  
>> recent versions after installing TL2010?
> 
> Yup.
> 
> Thanks for any help,
> 
> -- 
> 
> Steve Anderson
> 

Howdy,

No problem here. Put

\listfiles

at the top of your document and compare to this list:

 *File List*
scrlttr2.cls    2010/09/17 v3.07 KOMA-Script document class (letter)
scrkbase.sty    2010/09/17 v3.07 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
 scrbase.sty    2010/09/17 v3.07 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty    2009/03/25 v3.03 KOMA-Script package (loading files)
scrsize12pt.clo    2010/09/17 v3.07 KOMA-Script font size class option (12pt)
typearea.sty    2010/09/17 v3.07 KOMA-Script package (type area)
     DIN.lco    2010/09/17 v3.07 KOMA-Script letter-class-option
 xltxtra.sty    2010/09/20 v0.5e Improvements for the "XeLaTeX" format
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
fontspec.sty    2010/09/27 v2.1a Advanced font selection for XeLaTeX/LuaLaTeX
   expl3.sty    2010/09/16 v2022 L3 Experimental code bundle wrapper
 l3names.sty    2010/09/20 v2034 L3 Experimental Naming Scheme for TeX Primitiv
es
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
l3basics.sty    2010/09/20 v2037 L3 Experimental basic definitions
 l3expan.sty    2010/09/20 v2037 L3 Experimental Argument Expansion module
    l3tl.sty    2010/09/21 v2040 L3 Experimental Token Lists
l3intexpr.sty    2010/09/22 v2045 L3 Integer Expressions
 l3quark.sty    2010/09/20 v2036 L3 Experimental Quark Commands
   l3seq.sty    2010/03/29 v1879 L3 Experimental sequences and stacks
  l3toks.sty    2010/09/20 v2037 L3 Experimental Token Registers
   l3int.sty    2010/09/19 v2029 L3 Experimental Integer module
   l3prg.sty    2010/09/22 v2043 L3 Experimental control structures
 l3clist.sty    2010/09/20 v2037 L3 Experimental comma separated lists
 l3token.sty    2010/09/19 v2029 L3 Experimental token investigation and manipu
lation
  l3prop.sty    2010/03/21 v1857 L3 Experimental Property Lists
   l3msg.sty    2010/03/23 v1866 L3 Experimental LaTeX Messages module
    l3io.sty    2010/05/22 v1923 L3 Experimental i/o module
  l3skip.sty    2010/09/23 v2047 L3 Experimental skip registers
   l3box.sty    2010/09/22 v2044 L3 Experimental Box module
l3keyval.sty    2010/04/11 v1890 L3 Experimental keyval processing
  l3keys.sty    2010/05/24 v1931 L3 Experimental key-value support
l3precom.sty    2010/02/09 v1793 L3 Experimental precompilation module
  l3xref.sty    2010/02/09 v1786 L3 Experimental cross referencing
  l3file.sty    2010/03/21 v1853 L3 Experimental file loading
    l3fp.sty    2010/09/19 v2029 L3 Experimental floating-point operations
l3luatex.sty    2010/07/18 v1985 L3 Experimental LuaTeX functions
    calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
  xparse.sty    2010/05/23 v1927 Generic document command parser
 xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
 xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
fontspec-patches.sty    2010/09/27 v2.1a Advanced font selection for XeLaTeX/Lu
aLaTeX
fixltx2e.sty    2006/09/13 v1.1m fixes to LaTeX
 fontenc.sty
  eu1enc.def    2010/05/27 v0.1h Experimental Unicode font encodings
  eu1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
xunicode.sty    2010/05/18 v0.95 provides access to latin accents and many othe
r characters in Unicode lower plane
fontspec.cfg
realscripts.sty    2010/09/20 v0.2 Access OpenType subscripts and superscripts
metalogo.sty    2010/05/29 v0.12 Extended TeX logo macros
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
   xetex.def    2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)

   color.sty    2005/11/14 v1.0j Standard LaTeX Color (DPC)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
 ***********

Two things: I see no need for fontenc or textcomp with this document; you have xunicode, fontspec and xltxtra loaded multiple times; especially look at the version of fontspec which has a fix for a problem with color (it's now at v2.1a).

One Warning: If you used TLU today and did a ``critical update'' of tlmgr you probably didn't pick up several updates (including fontspec 2.1a?). There will be an update for TLU (to fix a change in the behavior of tlmgr) ASAP but you can pick up the ``missing'' updates now by running

sudo tlmgr update --all

(and giving your admin password) in Terminal.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the MacOSX-TeX mailing list