diff options
author | Karl Berry <karl@freefriends.org> | 2023-04-15 20:48:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-04-15 20:48:48 +0000 |
commit | 880c315ac7515f87b23225533220d6d5692380b6 (patch) | |
tree | 171594f1d5e09bb092bdb79204c54d76d60f0c35 /Master/texmf-dist/tex/context/third/simpleslides | |
parent | a5922e4bc3ff8085de1c44a8b3f2054641f905e4 (diff) |
context-simpleslides (15apr23)
git-svn-id: svn://tug.org/texlive/trunk@66855 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/third/simpleslides')
-rw-r--r-- | Master/texmf-dist/tex/context/third/simpleslides/s-simpleslides-fontsdefault.mkiv | 47 |
1 files changed, 28 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/context/third/simpleslides/s-simpleslides-fontsdefault.mkiv b/Master/texmf-dist/tex/context/third/simpleslides/s-simpleslides-fontsdefault.mkiv index 95781180fa9..153b19a6d71 100644 --- a/Master/texmf-dist/tex/context/third/simpleslides/s-simpleslides-fontsdefault.mkiv +++ b/Master/texmf-dist/tex/context/third/simpleslides/s-simpleslides-fontsdefault.mkiv @@ -1,6 +1,6 @@ %D \module %D [ file=simpleslides-f-default, -%D version=2009.03.30 +%D version=2023.04.13 %D title=\CONTEXT\ Style File, %D subtitle=Presentation Module simpleslides --- Default font setup, %D author=Aditya Mahajan and Thomas A. Schmitz, @@ -8,6 +8,7 @@ %D copyright={Aditya Mahajan and Thomas A. Schmitz}] %C %C Copyright 2007 Aditya Mahajan and Thomas A. Schmitz +%C Maintained by Henning Hraban Ramm since 2022. %C This file may be distributed under the GNU General Public License v. 2.0. \writestatus{simpleslides}{loading default font setup} @@ -16,18 +17,18 @@ \unprotect -\setupbodyfontenvironment[default][em=italic] +\setupbodyfontenvironment[default][em=italic] %D The fontsize is set via the \type{size}||key; it will be used in numerous %D setup||commands. In earlier versions, I had used the \tex{processaction} %D mechanism to define the \tex{NormalSize} and \tex{TitleSize}, but Aditya %D rightly pointed out that this is somewhat inflexible. I now set the font %D dimensions directly; \tex{TitleSize} is calculated from \tex{NormalSize}. I -%D do a few tests to get nice sizes. +%D do a few tests to get nice sizes. -\newdimen\simpleslidesNormalSize -\newdimen\simpleslidesTitleSize -\newdimen\simpleslidesSlideTitleSize +\newdimen\simpleslidesNormalSize +\newdimen\simpleslidesTitleSize +\newdimen\simpleslidesSlideTitleSize \simpleslidesNormalSize=\moduleparameter{simpleslides}{size}\relax @@ -50,16 +51,16 @@ %D The bodyfont needs to be defined so \CONTEXT\ can calculate size switches, %D math formulas, etc. -\starttypescript [serif] [default] [size] -\definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize] [rm] [default] +\starttypescript [serif] [default] [size] +\definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize] [rm] [default] \stoptypescript -\starttypescript [sans] [default] [size] -\definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize] [ss] [default] +\starttypescript [sans] [default] [size] +\definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize] [ss] [default] \stoptypescript -\starttypescript [mono] [default] [size] -\definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize] [tt] [default] +\starttypescript [mono] [default] [size] +\definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize] [tt] [default] \stoptypescript @@ -71,10 +72,10 @@ %D Adventor (the TeXGyre clone of Gothic), Schola (the TeXGyre clone of %D Schoolbook), Bonum (the TeXGyre clone of Bookman), Termes (the TeXGyre clone %D of Times), Pagella (the TeXGyre clone of Palatino), Heros (the TeXGyre clone -%D of Helvetica), and Chancery (the TeXGyre clone of Chancery). Since the -%D definition of typescripts etc. varies according to the \TeX-engine used, we -%D have to branch the code here. This is awkward, but for the time being, I see -%D no other way. +%D of Helvetica), Chancery (the TeXGyre clone of Chancery), and IBM Plex(Sans). +%D Since the definition of typescripts etc. varies according to the \TeX-engine +%D used, we have to branch the code here. This is awkward, but for the time being, +%D I see no other way. \startsetups simpleslides:font:LatinModern \setupbodyfont[\NormalSize] @@ -84,7 +85,7 @@ \setupbodyfont[ss,\NormalSize] \stopsetups -\usetypescriptfile[type-otf] %Isn't this included by default? +%\usetypescriptfile[type-otf] %Isn't this included by default? %AM: For all the fonts, I have used traditional names rather than TeX Gyre %names. @@ -122,7 +123,7 @@ \starttypescript [chancery] \definetypeface [chancery] [rm] [serif] [chancery] [default] - \stoptypescript + \stoptypescript \usetypescript[chancery] \setupbodyfont[chancery,\NormalSize] \stopsetups @@ -168,10 +169,18 @@ \setupbodyfont[postscript,\NormalSize] \stopsetups +\startsetups simpleslides:font:Plex + \setupbodyfont[plex,\NormalSize] +\stopsetups + +\startsetups simpleslides:font:PlexSans + \setupbodyfont[plex,ss,\NormalSize] +\stopsetups + \doifsetupselse{simpleslides:font:\moduleparameter{simpleslides}{font}} {\setups{simpleslides:font:\moduleparameter{simpleslides}{font}}} {\setups{simpleslides:font:LatinModern}% - \message{There is no setup for + \writestatus{simpleslides}{There is no setup for "font=\moduleparameter{simpleslides}{font}". Latin Modern Sans will be used as a fallback}} |