Dear KOMA-script users,
For the first time, I am typing a letter using KOMA-script's scrlttr2 document class. I am experiencing a small problem with Smallcaps: according to pdflatex they are not available in the font, while I know that they are. I am using the URW Garamond font from CTAN, installed exactly according to the readme's instructions. Using scrartcl, I do not run into this problem.
Minimal example en log below.
Thanks for any pointers,
Diederick
-----letter
\documentclass[fontsize=12pt,a4paper]{scrlttr2} \usepackage[english]{babel} % font and input setup \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} %\usepackage[activate,tracking,spacing]{microtype} % Microtypography - extra nice layout! \renewcommand{\rmdefault}{ugm} % use URW Garamond as default font %\microtypecontext{spacing=nonfrench} % KOMA options \KOMAoptions{pagenumber=off,backaddress=false} % no page numbers and no return address \begin{document} \LoadLetterOption{DINmtext} % address - setting for every letter \makeatletter \@addtoplength{firstheadvpos}{-2.8pt} \makeatother \setkomavar{fromname}{Diederick C.~Niehorster} \setkomavar{fromaddress}{address} \setkomavar{subject}{subject} \setkomavar{fromemail}{a@b.com} \setkomavar{date}{\today} \begin{letter}{addressee's address} \opening{Dear Mr.~X,} I am currently a first-year \textsc{M.Phil} student in the department of Psychology. \closing{Yours Truly,} \end{letter}
% can start another letter here - I guess we could do a whole bunch of
% letters with different addresses using TikZ' foreach package
\end{document}
----- log
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=pdflatex 2009.3.24) 6 APR 2009 10:44 entering extended mode **minexamp.tex (minexamp.tex LaTeX2e <2005/12/01> Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge rman, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded. ("C:\Program Files\MiKTeX 2.7\tex\latex\koma-script\scrlttr2.cls" Document Class: scrlttr2 2009/01/24 v3.02b KOMA-Script document class (letter) ("C:\Program Files\MiKTeX 2.7\tex\latex\koma-script\scrkbase.sty" Package: scrkbase 2009/01/24 v3.02b KOMA-Script package (KOMA-Script-dependent basics and keyval usage) ("C:\Program Files\MiKTeX 2.7\tex\latex\koma-script\scrbase.sty" Package: scrbase 2009/01/24 v3.02b KOMA-Script package (KOMA-Script-independent basics and keyval usage) ("C:\Program Files\MiKTeX 2.7\tex\latex\graphics\keyval.sty" Package: keyval 1999/03/16 v1.13 key=value parser (DPC) \KV@toks@=\toks14 ) ("C:\Program Files\MiKTeX 2.7\tex\latex\koma-script\scrlfile.sty" Package: scrlfile 2008/07/09 v3.00 KOMA-Script package (loading files) Package scrlfile, 2008/07/09 v3.00 KOMA-Script package (loading files) Copyright (C) Markus Kohm ))) Class scrlttr2 Info: File `scrsize12pt.clo' used to setup font sizes on input l ine 1069. ("C:\Program Files\MiKTeX 2.7\tex\latex\koma-script\scrsize12pt.clo" File: scrsize12pt.clo 2009/01/24 v3.02b KOMA-Script font size class option (12p t) ) ("C:\Program Files\MiKTeX 2.7\tex\latex\koma-script\typearea.sty" Package: typearea 2009/01/24 v3.02b KOMA-Script package (type area) Package typearea, 2009/01/24 v3.02b KOMA-Script package (type area) Copyright (C) Frank Neukam, 1992-1994 Copyright (C) Markus Kohm, 1994- \ta@bcor=\skip41 \ta@div=\count79 Package typearea Info: You've used standard option `a4paper'. (typearea) This is correct! (typearea) Internaly I'm using `paper=a4'. (typearea) If you'd like to set the option with \KOMAoptions, (typearea) you'd have to use `paper=a4' there (typearea) instead of `a4paper', too. \ta@hblk=\skip42 \ta@vblk=\skip43 \ta@temp=\skip44 Package typearea Info: These are the values describing the layout: (typearea) DIV = 12 (typearea) BCOR = 0.0pt (typearea) \paperwidth = 597.50793pt (typearea) \textwidth = 448.13095pt (typearea) DIV departure = -6% (typearea) \evensidemargin = 2.4185pt (typearea) \oddsidemargin = 2.4185pt (typearea) \paperheight = 845.04694pt (typearea) \textheight = 635.5pt (typearea) \topmargin = -41.72441pt (typearea) \headheight = 18.125pt (typearea) \headsep = 21.75pt (typearea) \topskip = 12.0pt (typearea) \footskip = 50.75pt (typearea) \baselineskip = 14.5pt (typearea) on input line 1042. )) Class scrlttr2 Info: Letter-Class-Option `DIN' loaded on input line 2. ("C:\Program Files\MiKTeX 2.7\tex\latex\koma-script\DIN.lco" File: DIN.lco 2009/01/24 v3.02b KOMA-Script letter-class-option ) ("C:\Program Files\MiKTeX 2.7\tex\generic\babel\babel.sty" Package: babel 2008/07/06 v3.8l The Babel package ************************************* * Local config file bblopts.cfg used * ("C:\Program Files\MiKTeX 2.7\tex\latex\00miktex\bblopts.cfg" File: bblopts.cfg 2006/07/31 v1.0 MiKTeX 'babel' configuration ) ("C:\Program Files\MiKTeX 2.7\tex\generic\babel\english.ldf" Language: english 2005/03/30 v3.3o English support from the babel system ("C:\Program Files\MiKTeX 2.7\tex\generic\babel\babel.def" File: babel.def 2008/07/06 v3.8l Babel common definitions \babel@savecnt=\count80 \U@D=\dimen102 ) \l@canadian = a dialect from \language\l@american \l@australian = a dialect from \language\l@british \l@newzealand = a dialect from \language\l@british )) ("C:\Program Files\MiKTeX 2.7\tex\latex\base\inputenc.sty" Package: inputenc 2006/05/05 v1.1b Input encoding file \inpenc@prehook=\toks15 \inpenc@posthook=\toks16 ("C:\Program Files\MiKTeX 2.7\tex\latex\base\utf8.def" File: utf8.def 2006/03/30 v1.1i UTF-8 support for inputenc Now handling font encoding OML ... ... no UTF-8 mapping file for font encoding OML Now handling font encoding T1 ... ... processing UTF-8 mapping file for font encodingT1 ("C:\Program Files\MiKTeX 2.7\tex\latex\base\t1enc.dfu" File: t1enc.dfu 2006/03/30 v1.1i UTF-8 support for inputenc [...] ) Now handling font encoding OT1 ... ... processing UTF-8 mapping file for font encodingOT1 ("C:\Program Files\MiKTeX 2.7\tex\latex\base\ot1enc.dfu" File: ot1enc.dfu 2006/03/30 v1.1i UTF-8 support for inputenc [...] ) Now handling font encoding OMS ... ... processing UTF-8 mapping file for font encodingOMS ("C:\Program Files\MiKTeX 2.7\tex\latex\base\omsenc.dfu" File: omsenc.dfu 2006/03/30 v1.1i UTF-8 support for inputenc defining Unicode char U+00A7 (decimal 167) defining Unicode char U+00B6 (decimal 182) defining Unicode char U+00B7 (decimal 183) defining Unicode char U+2020 (decimal 8224) defining Unicode char U+2021 (decimal 8225) defining Unicode char U+2022 (decimal 8226) ) Now handling font encoding OMX ... ... no UTF-8 mapping file for font encoding OMX Now handling font encoding U ... ... no UTF-8 mapping file for font encoding U defining Unicode char U+00A9 (decimal 169) defining Unicode char U+00AA (decimal 170) defining Unicode char U+00AE (decimal 174) defining Unicode char U+00BA (decimal 186) defining Unicode char U+02C6 (decimal 710) defining Unicode char U+02DC (decimal 732) defining Unicode char U+200C (decimal 8204) defining Unicode char U+2026 (decimal 8230) defining Unicode char U+2122 (decimal 8482) defining Unicode char U+2423 (decimal 9251) )) ("C:\Program Files\MiKTeX 2.7\tex\latex\base\fontenc.sty" Package: fontenc 2005/09/27 v1.99g Standard LaTeX package ("C:\Program Files\MiKTeX 2.7\tex\latex\base\t1enc.def" File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file LaTeX Font Info: Redeclaring font encoding T1 on input line 43. )) No file minexamp.aux. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 15. LaTeX Font Info: ... okay on input line 15. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 15. LaTeX Font Info: ... okay on input line 15. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 15. LaTeX Font Info: ... okay on input line 15. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 15. LaTeX Font Info: ... okay on input line 15. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 15. LaTeX Font Info: ... okay on input line 15. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 15. LaTeX Font Info: ... okay on input line 15. LaTeX Font Info: Try loading font information for T1+ugm on input line 15. ("C:\Program Files\MiKTeX 2.7\tex\latex\ugm\t1ugm.fd" File: t1ugm.fd 2005/01/13 Fontinst v1.927 font definitions for T1/ugm. ) Package scrbase Info: `\ccname' at language `english' already defined (scrbase) --> skipped on input line 15. Package scrbase Info: `\enclname' at language `english' already defined (scrbase) --> skipped on input line 15. Package scrbase Info: `\headtoname' at language `english' already defined (scrbase) --> skipped on input line 15. Package scrbase Info: `\pagename' at language `english' already defined (scrbase) --> skipped on input line 15. Package scrbase Info: No captions found for `USenglish' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `USenglish' (scrlttr2) --> skipped on input line 15. Package scrbase Info: No captions found for `american' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `american' (scrlttr2) --> skipped on input line 15. Package scrbase Info: No captions found for `british' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `british' (scrlttr2) --> skipped on input line 15. Package scrbase Info: No captions found for `UKenglish' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `UKenglish' (scrlttr2) --> skipped on input line 15. Package scrbase Info: No captions found for `german' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `german' (scrlttr2) --> skipped on input line 15. Package scrbase Info: No captions found for `ngerman' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `ngerman' (scrlttr2) --> skipped on input line 15. Package scrbase Info: No captions found for `austrian' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `austrian' (scrlttr2) --> skipped on input line 15. Package scrbase Info: No captions found for `french' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `french' (scrlttr2) --> skipped on input line 15. Package scrbase Info: No captions found for `italian' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `italian' (scrlttr2) --> skipped on input line 15. Package scrbase Info: No captions found for `spanish' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `spanish' (scrlttr2) --> skipped on input line 15. Package scrbase Info: No captions found for `croatian' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `croatian' (scrlttr2) --> skipped on input line 15. Package scrbase Info: No captions found for `dutch' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `dutch' (scrlttr2) --> skipped on input line 15. Package scrbase Info: No captions found for `finnish' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `finnish' (scrlttr2) --> skipped on input line 15. Package scrbase Info: No captions found for `norsk' (scrbase) --> skipped on input line 15. Class scrlttr2 Info: no date found for language `norsk' (scrlttr2) --> skipped on input line 15. Class scrlttr2 Info: used language is `english'. (scrlttr2) Supported languages are `english', `UKenglish', (scrlttr2) `british', `american', `USenglish', (scrlttr2) `german', `ngerman', `austrian', (scrlttr2) `dutch', `italian', `spanish', (scrlttr2) `croatian', `finnish', `norsk' on input line 15. Class scrlttr2 Info: Letter-Class-Option `DINmtext' loaded on input line 16. ("C:\Program Files\MiKTeX 2.7\tex\latex\koma-script\DINmtext.lco" File: DINmtext.lco 2009/01/24 v3.02b KOMA-Script letter-class-option ) Foldmarks: yes Head of first page Foot of first page Address (addressee) Location field: empty Reference line: only place and date Title: no Subject: before opening LaTeX Font Info: Font shape `T1/ugm/bx/n' in size <12> not available (Font) Font shape `T1/ugm/b/n' tried instead on input line 30. LaTeX Font Warning: Font shape `T1/ugm/m/sc' undefined (Font) using `T1/ugm/m/n' instead on input line 32. LaTeX Font Info: External font `cmex10' loaded for size (Font) <12> on input line 35. LaTeX Font Info: External font `cmex10' loaded for size (Font) <8> on input line 35. LaTeX Font Info: External font `cmex10' loaded for size (Font) <6> on input line 35. [1 {C:/Documents and Settings/All Users/Application Data/MiKTeX/2.7/pdftex/config/ pdftex.map}] (minexamp.aux) LaTeX Font Warning: Some font shapes were not available, defaults substituted. ) Here is how much of TeX's memory you used: 1817 strings out of 95304 23479 string characters out of 1183032 112667 words of memory out of 1500000 5033 multiletter control sequences out of 110000 16311 words of font info for 28 fonts, out of 3000000 for 5000 14 hyphenation exceptions out of 8191 36i,6n,43p,237b,180s stack positions out of 5000i,500n,10000p,200000b,50000s {C:/Program Files/MiKTeX 2.7/fonts/enc/dvips/fontname/8r.enc}<C:/Program File s/MiKTeX 2.7/fonts/type1/urw/garamond/ugmm8a.pfb><C:/Program Files/MiKTeX 2.7/f onts/type1/urw/garamond/ugmr8a.pfb> Output written on minexamp.pdf (1 page, 32440 bytes). PDF statistics: 15 PDF objects out of 1000 (max. 8388607) 0 named destinations out of 1000 (max. 131072) 1 words of extra memory for PDF output out of 10000 (max. 10000000)
There are no small capitals defined at t1ugm.fd
When LaTeX finds a font selection command, it search at the font definition list of the current font family for the font to be loaded. For ugm in T1 font encoding this comes from file t1ugm.fd. If there is a definition for the wanted font, it switches to the resulting font. If there's no definition it uses a standard replacement.
There's no sc-Definition at t1ugm.fd. Such a definition would start with:
\DeclareFontShape{T1}{ugm}{m}{sc}{
. There's even no replacement defined at t1ugm.fd. Because of this the standard replacement is used and message:is generated.
You'll get the same warning using:
This is not a problem of KOMA-Script.
BTW: KOMA-Script does not change the LaTeX font selection scheme. Because of this, font selection problems are almost never KOMA-Script problems.
BTW: You should use markup-code at your postings.
ah, mathdesign's URW Garamond provided the smallcaps
Dear Markus,
Thank you for your answer. As I noted in my first post, a manuscript with scrartcl didn't seem to have the same problem, hence I though it somehow was a problem with scrlttr2. It turned out that in my article I was also using
\usepackage[garamond]{mathdesign}
, which provided the smallcaps.Well, figured that out now, thank you again for your answer.
P.S. formatting changed above, using markup-code
Best,
Diederick