texlive[43659] Master/texmf-dist: variablelm (31mar17)

commits+karl at tug.org commits+karl at tug.org
Sat Apr 1 01:22:27 CEST 2017


Revision: 43659
          http://tug.org/svn/texlive?view=revision&revision=43659
Author:   karl
Date:     2017-04-01 01:22:27 +0200 (Sat, 01 Apr 2017)
Log Message:
-----------
variablelm (31mar17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/fonts/variablelm/README.md
    trunk/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.pdf
    trunk/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.tex
    trunk/Master/texmf-dist/tex/latex/variablelm/variablelm.sty

Modified: trunk/Master/texmf-dist/doc/fonts/variablelm/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/variablelm/README.md	2017-03-31 23:22:13 UTC (rev 43658)
+++ trunk/Master/texmf-dist/doc/fonts/variablelm/README.md	2017-03-31 23:22:27 UTC (rev 43659)
@@ -11,7 +11,7 @@
 
 ## Version
 
-1.0
+1.1
 
 ## Requirements
 
@@ -35,6 +35,8 @@
 
  * scale: Roman, italic, bold, bold italic, small caps
  * ttscale: fixed (\ttfamily)
+ * sfscale: sans-serif (\sffamily)
+ * encoding: font encoding (default: T1)
  * variablett: same the lmodern.sty
  * lighttt: same the lmodern.sty
 

Modified: trunk/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.tex
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.tex	2017-03-31 23:22:13 UTC (rev 43658)
+++ trunk/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.tex	2017-03-31 23:22:27 UTC (rev 43659)
@@ -6,7 +6,7 @@
 
 \title{Control the Scaling for the Latin Modern Fonts}
 \author{Yuwsuke KIEDA}
-\date{2017/02/10 v1.0}
+\date{2017/03/31 v1.1}
 
 \begin{document}
 
@@ -48,6 +48,8 @@
 \begin{itemize}
  \item [\textendash] \texttt{scale}: Roman, italic, bold, bold italic, small caps
  \item [\textendash] \texttt{ttscale}: fixed (\verb!\ttfamily!)
+ \item [\textendash] \texttt{sfscale}: sans-serif (\verb!\sffamily!)
+ \item [\textendash] \texttt{encoding}: font encoding (default: T1)
  \item [\textendash] \texttt{variablett}: same the lmodern.sty
  \item [\textendash] \texttt{lighttt}: same the lmodern.sty
 \end{itemize}

Modified: trunk/Master/texmf-dist/tex/latex/variablelm/variablelm.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/variablelm/variablelm.sty	2017-03-31 23:22:13 UTC (rev 43658)
+++ trunk/Master/texmf-dist/tex/latex/variablelm/variablelm.sty	2017-03-31 23:22:27 UTC (rev 43659)
@@ -1,4 +1,4 @@
-\ProvidesPackage{variablelm}[2017/02/10 v1.0 to control the scaling for Latin Modern Fonts by Yuwsuke KIEDA]
+\ProvidesPackage{variablelm}[2017/03/08 v1.1 to control the scaling for Latin Modern Fonts by Yuwsuke KIEDA]
 
 \RequirePackage{xkeyval}
 \@ifpackageloaded{lmodern}{}{\@latexerr{You must be load "lmodern" package}\@ehb}
@@ -8,10 +8,12 @@
 \DeclareOptionX{scale}[1.0]{\def\alphabet at scale{#1}}
 \DeclareOptionX{ttscale}[1.0]{\def\alphabet at scale@tt{#1}}
 \DeclareOptionX{sfscale}[1.0]{\def\alphabet at scale@sf{#1}}
+\DeclareOptionX{encoding}[T1]{\def\alphabet at scale@encoding{#1}}
 
 \@ifundefined{alphabet at scale}{\def\alphabet at scale{1.0}}{}
 \@ifundefined{alphabet at scale@tt}{\def\alphabet at scale@tt{\alphabet at scale}}{}
 \@ifundefined{alphabet at scale@sf}{\def\alphabet at scale@sf{\alphabet at scale}}{}
+\@ifundefined{alphabet at scale@encoding}{\def\alphabet at scale@encoding{T1}}
 
 \renewcommand{\rmdefault}{vlmr}
 \renewcommand{\sfdefault}{vlmss}
@@ -24,22 +26,23 @@
 
 \ProcessOptionsX
 
-\SetSymbolFont{operators}   {normal}{OT1}{vlmr} {m}{n}
-\SetSymbolFont{letters}     {normal}{OML}{vlmm} {m}{it}
-\SetSymbolFont{symbols}     {normal}{OMS}{vlmsy}{m}{n}
+\@ifpackageloaded{fontenc}{}{\RequirePackage[\alphabet at scale@encoding]{fontenc}}
+
+\SetSymbolFont{operators}{normal}{\alphabet at scale@encoding}{vlmr}{m}{n}
+\SetSymbolFont{letters}{normal}{OML}{vlmm}{m}{it}
+\SetSymbolFont{symbols}{normal}{OMS}{vlmsy}{m}{n}
 \SetSymbolFont{largesymbols}{normal}{OMX}{vlmex}{m}{n}
-\SetSymbolFont{operators}   {bold}  {OT1}{vlmr} {bx}{n}
-\SetSymbolFont{letters}     {bold}  {OML}{vlmm} {b}{it}
-\SetSymbolFont{symbols}     {bold}  {OMS}{vlmsy}{b}{n}
-\SetSymbolFont{largesymbols}{bold}  {OMX}{vlmex}{m}{n}
+\SetSymbolFont{operators}{bold}{\alphabet at scale@encoding}{vlmr}{bx}{n}
+\SetSymbolFont{letters}{bold}{OML}{vlmm}{b}{it}
+\SetSymbolFont{symbols}{bold}{OMS}{vlmsy}{b}{n}
+\SetSymbolFont{largesymbols}{bold}{OMX}{vlmex}{m}{n}
 
-\SetMathAlphabet{\mathbf}{normal}{OT1}{vlmr}{bx}{n}
-\SetMathAlphabet{\mathsf}{normal}{OT1}{vlmss}{m}{n}
-\SetMathAlphabet{\mathit}{normal}{OT1}{vlmr}{m}{it}
-\SetMathAlphabet{\mathtt}{normal}{OT1}{vlmtt}{m}{n}
-\SetMathAlphabet{\mathbf}{bold}  {OT1}{vlmr}{bx}{n}
-\SetMathAlphabet{\mathsf}{bold}  {OT1}{vlmss}{bx}{n}
-\SetMathAlphabet{\mathit}{bold}  {OT1}{vlmr}{bx}{it}
-\SetMathAlphabet{\mathtt}{bold}  {OT1}{vlmtt}{m}{n}
-
+\SetMathAlphabet{\mathbf}{normal}{\alphabet at scale@encoding}{vlmr}{bx}{n}
+\SetMathAlphabet{\mathsf}{normal}{\alphabet at scale@encoding}{vlmss}{m}{n}
+\SetMathAlphabet{\mathit}{normal}{\alphabet at scale@encoding}{vlmr}{m}{it}
+\SetMathAlphabet{\mathtt}{normal}{\alphabet at scale@encoding}{vlmtt}{m}{n}
+\SetMathAlphabet{\mathbf}{bold}{\alphabet at scale@encoding}{vlmr}{bx}{n}
+\SetMathAlphabet{\mathsf}{bold}{\alphabet at scale@encoding}{vlmss}{bx}{n}
+\SetMathAlphabet{\mathit}{bold}{\alphabet at scale@encoding}{vlmr}{bx}{it}
+\SetMathAlphabet{\mathtt}{bold}{\alphabet at scale@encoding}{vlmtt}{m}{n}
 \endinput



More information about the tex-live-commits mailing list