diff options
author | Norbert Preining <norbert@preining.info> | 2023-04-15 03:01:57 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-04-15 03:01:57 +0000 |
commit | 78e6b19d4678a9d641c4afa4ca800288cfa0a9d5 (patch) | |
tree | ad774593055c02ade73402379b9df52568f6940f /macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-fontsdefault.mkiv | |
parent | b17717e3829bc08efb71ec2537d9d894c8b82d45 (diff) |
CTAN sync 202304150301
Diffstat (limited to 'macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-fontsdefault.mkiv')
-rw-r--r-- | macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-fontsdefault.mkiv | 47 |
1 files changed, 28 insertions, 19 deletions
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-fontsdefault.mkiv b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-fontsdefault.mkiv index 95781180fa..153b19a6d7 100644 --- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-fontsdefault.mkiv +++ b/macros/context/contrib/context-simpleslides/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}} |