summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/fonts/variablelm/README.md4
-rw-r--r--Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.pdfbin131091 -> 131567 bytes
-rw-r--r--Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.tex4
-rw-r--r--Master/texmf-dist/tex/latex/variablelm/variablelm.sty39
4 files changed, 27 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/fonts/variablelm/README.md b/Master/texmf-dist/doc/fonts/variablelm/README.md
index 2f3ed5e8985..e7503348cfc 100644
--- a/Master/texmf-dist/doc/fonts/variablelm/README.md
+++ b/Master/texmf-dist/doc/fonts/variablelm/README.md
@@ -11,7 +11,7 @@ For example: Japanese--Latin.
## Version
-1.0
+1.1
## Requirements
@@ -35,6 +35,8 @@ Remark: \texttt{amsmath} is for \verb!\big!, \verb!\Big!, \verb!\bigg!, etc.
* 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
diff --git a/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.pdf b/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.pdf
index 595e0ad38b7..5a5d8278d80 100644
--- a/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.pdf
+++ b/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.tex b/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.tex
index 41d49292d03..1bbcdd08b35 100644
--- a/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.tex
+++ b/Master/texmf-dist/doc/fonts/variablelm/control_scaling_lm_fonts.tex
@@ -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 @@ Remark: \texttt{amsmath} is for \verb!\big!, \verb!\Big!, \verb!\bigg!, etc.
\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}
diff --git a/Master/texmf-dist/tex/latex/variablelm/variablelm.sty b/Master/texmf-dist/tex/latex/variablelm/variablelm.sty
index a9bffefac8d..ae9dc27b494 100644
--- a/Master/texmf-dist/tex/latex/variablelm/variablelm.sty
+++ b/Master/texmf-dist/tex/latex/variablelm/variablelm.sty
@@ -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@scale{#1}}
\DeclareOptionX{ttscale}[1.0]{\def\alphabet@scale@tt{#1}}
\DeclareOptionX{sfscale}[1.0]{\def\alphabet@scale@sf{#1}}
+\DeclareOptionX{encoding}[T1]{\def\alphabet@scale@encoding{#1}}
\@ifundefined{alphabet@scale}{\def\alphabet@scale{1.0}}{}
\@ifundefined{alphabet@scale@tt}{\def\alphabet@scale@tt{\alphabet@scale}}{}
\@ifundefined{alphabet@scale@sf}{\def\alphabet@scale@sf{\alphabet@scale}}{}
+\@ifundefined{alphabet@scale@encoding}{\def\alphabet@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}
-\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}
-
-\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}
+\@ifpackageloaded{fontenc}{}{\RequirePackage[\alphabet@scale@encoding]{fontenc}}
+\SetSymbolFont{operators}{normal}{\alphabet@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}{\alphabet@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}{\alphabet@scale@encoding}{vlmr}{bx}{n}
+\SetMathAlphabet{\mathsf}{normal}{\alphabet@scale@encoding}{vlmss}{m}{n}
+\SetMathAlphabet{\mathit}{normal}{\alphabet@scale@encoding}{vlmr}{m}{it}
+\SetMathAlphabet{\mathtt}{normal}{\alphabet@scale@encoding}{vlmtt}{m}{n}
+\SetMathAlphabet{\mathbf}{bold}{\alphabet@scale@encoding}{vlmr}{bx}{n}
+\SetMathAlphabet{\mathsf}{bold}{\alphabet@scale@encoding}{vlmss}{bx}{n}
+\SetMathAlphabet{\mathit}{bold}{\alphabet@scale@encoding}{vlmr}{bx}{it}
+\SetMathAlphabet{\mathtt}{bold}{\alphabet@scale@encoding}{vlmtt}{m}{n}
\endinput