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

Stephen Anderson sra at yale.edu
Mon Sep 27 12:59:01 EDT 2010


> 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




More information about the MacOSX-TeX mailing list