diff options
author | Karl Berry <karl@freefriends.org> | 2008-08-12 00:00:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-08-12 00:00:12 +0000 |
commit | 32514addcd2b369a74cb384f0274598e5574ce21 (patch) | |
tree | 85dc5545c7bfd89ab620f5a3c7da57bb0d896913 /Master/texmf-dist/tex/latex/gmdoc/gmdocc.cls | |
parent | 6e415c97f0911faa1cda349f351adf41d775958a (diff) |
gmdoc update (11aug08)
git-svn-id: svn://tug.org/texlive/trunk@10266 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/gmdoc/gmdocc.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/gmdoc/gmdocc.cls | 54 |
1 files changed, 34 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/gmdoc/gmdocc.cls b/Master/texmf-dist/tex/latex/gmdoc/gmdocc.cls index c1dd06eb6aa..59ccceecc28 100644 --- a/Master/texmf-dist/tex/latex/gmdoc/gmdocc.cls +++ b/Master/texmf-dist/tex/latex/gmdoc/gmdocc.cls @@ -33,10 +33,11 @@ % \chschange{v0.76}{2007/11/13}{257} % \chschange{v0.77}{2007/11/16}{262} % \chschange{v0.78}{2007/11/19}{267} +% \chschange{v0.79}{2008/8/3}{271} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{gmdocc} - [2007/11/19 v0.78 a class for gmdoc driver files (GM)] + [2008/08/03 v0.79 a class for gmdoc driver files (GM)] % % \division{Intro} @@ -239,14 +240,18 @@ % will be turned true in line \ref{ofstrue} \AtBeginDocument{% \@ifXeTeX{% - % ^^A \def\f@encoding{U}\selectfont - \setromanfont[Mapping=tex-text]{#1}% + \defaultfontfeatures{Numbers={OldStyle,Proportional}}% + \setmainfont[Mapping=tex-text]{#1}% + \setsansfont[Mapping=tex-text, Scale=MatchLowercase]{Latin Modern Sans}% + \setmonofont[Scale=MatchLowercase]{Latin Modern Mono}% \let\sl\it \let\textsl\textit }{}}% } \gm@DOX{minion}{\gmcc@setfont{Minion Pro}} -\gm@DOX{pagella}{\gmcc@setfont{TeX Gyre Pagella}} +\gm@DOX{pagella}{\gmcc@setfont{TeX Gyre Pagella}% + \def\gmcc@PAGELLA{1}% +} @@ -256,6 +261,9 @@ \gm@EOX{mptt=0}% We default to set the marginpar typewriter font to % OpenType LMTT LC. +% \HideDefining\DeclareOptionX +\DeclareOptionX*{\PassOptionsToPackage{\CurrentOption}{gmdoc}} + \ProcessOptionsX[gmcc]<> @@ -290,7 +298,7 @@ \fi % of ifSecondClass'es \cs{else} (a~feature under construction).\fi -\RequirePackage{gmutils}% earlier to provide |\@ifXeTeX|. +\RequirePackage{gmutils}[2008/08/03]% earlier to provide |\@ifXeTeX|. \ifgmcc@mwcls\afterfi\ParanoidPostsec\fi @@ -324,15 +332,16 @@ \def\ocircum {\^o}% \def\oumlaut {\"o}% \def\uumlaut {\"u}% -\else% this case hapens only with \XeTeX. +\else% this case happens only with \XeTeX. \let\do\relaxen \do\Finv\do\Game\do\beth\do\gimel\do\daleth% these five caused the - % `already defined' error. + % `already defined' error. + \let\@zf@euenctrue\zf@euencfalse \XeTeXthree - %^^A \setromanfont{LMRoman12}% Regular +%^^A \setromanfont{LMRoman12}% Regular %^^A \setsansfont{LMSans10}% Regular %^^A \setmonofont{LMTypewriter10}% Regular - \let\fontencoding\@gobble +%^^A \let\fontencoding\@gobble \def\agrave {\char"00E0 }% \def\cacute {\char"0107 }% Note the space to be sure the number % ends here. @@ -377,16 +386,18 @@ % suitable for the marginpar CS marking. \def\marginpartt{\normalfont\fontseries{lc}\ttfamily}}{}% \else - \IfFileExists{/media/BleuDeParis/texmf/tex/xelatex/crop.cfg}% - {\def\mpttversion{1}}{}% my system doesn't see LMTT LC, so on my - % computer I~have to tell \XeTeX explicitly where the font is. - \ifcase\mpttversion - \font\marginpartt= lmtypewriter10-lightcondensed.otf at 10.95pt - \or% (when =1, on my computer that is) - \font\marginpartt= % - [/home/natror/.fonts/lmtypewriter10-lightcondensed.otf] at 10.95pt - \else % other values allow you to define |\marginpartt| yourself. - \fi +%^^A \IfFileExists{/media/BleuDeParis/texmf/tex/xelatex/crop.cfg}% +%^^A {\def\mpttversion{1}}{}% my system doesn't see LMTT LC, so on my +%^^A % computer I~have to tell \XeTeX explicitly where the font is. +%^^A \ifcase\mpttversion +%^^A \font\marginpartt= lmtypewriter10-lightcondensed.otf at 10.95pt +%^^A \or% (when =1, on my computer that is) +%^^A \font\marginpartt= % +%^^A lmtypewriter10-lightcondensed.otf at 10.95pt +%^^A [/home/natror/.fonts/lmtypewriter10-lightcondensed.otf] at 10.95pt +%^^A \else % other values allow you to define |\marginpartt| yourself. +%^^A \fi + \def\marginpartt{\fontspec{LMTypewriter10 LightCondensed}}% %^^A~ \iffontchar \marginpartt 32 \show\relax \else \show\par\fi %^^A~ %^^A~ LMTypewriter10-LightCondensed.pfb at 10.95pt @@ -398,6 +409,9 @@ %^^A~ /home/natror/.fonts/lmtypewriter10-lightcondensed.otf \fi +\ifnum1=0\csname gmcc@PAGELLA\endcsname\relax + \RequirePackage{pxfonts,tgpagella,qpxmath}% +\fi % ^^A\setcounter{IndexColumns}{2} narrow columns do spare space and % ^^A~look better @@ -437,7 +451,7 @@ \exhyphenpenalty\hyphenpenalty% 'cause \pk{mwcls} set it |=10000| due % to Polish customs. -\VerbT1% to ensure T1 font encoding in verbatims (in code). +%^^A\VerbT1% to ensure T1 font encoding in verbatims (in code). \RequirePackage{amssymb} \def\EOFMark{\rightline{\ensuremath{\square}}} |