diff options
Diffstat (limited to 'fonts')
22 files changed, 81 insertions, 30 deletions
diff --git a/fonts/scholax/README b/fonts/scholax/README index 5b48986a84..37b03e5283 100644 --- a/fonts/scholax/README +++ b/fonts/scholax/README @@ -8,6 +8,9 @@ The licence of fourier-GUTenberg is LPPL (Latex Public Project Licence) and the licence for TeXGyre fonts is equivalent to the LPPL, so this package is released under the LPPL. -Current version: 1.00 2019-12-30 +Current version: 1.01 2020-01-01 + +Changes in version 1.01 +Corrected theoremfont code in scholax.sty and modified documentation accordingly. Please sent bug reports, comments and suggestions to msharpe at ucsd dot edu.
\ No newline at end of file diff --git a/fonts/scholax/doc/scholax-doc.pdf b/fonts/scholax/doc/scholax-doc.pdf Binary files differindex 0e3b77c6bd..50a1860f83 100644 --- a/fonts/scholax/doc/scholax-doc.pdf +++ b/fonts/scholax/doc/scholax-doc.pdf diff --git a/fonts/scholax/doc/scholax-doc.tex b/fonts/scholax/doc/scholax-doc.tex index 5dd693c125..ffb3d1fc06 100644 --- a/fonts/scholax/doc/scholax-doc.tex +++ b/fonts/scholax/doc/scholax-doc.tex @@ -17,28 +17,33 @@ \usepackage[T1]{fontenc} \usepackage{textcomp} \usepackage[varqu,varl]{zi4}% inconsolata -\usepackage{amsmath,amsthm} +\usepackage{amsmath,amsthm} \usepackage[scaled=1.075,ncf]{newtxmath} % option vvarbb gives you stix blackboard bold %\useosf % use oldstyle figures except in math -%SetFonts +%SetFonts \newtheoremstyle{oldplain} {\topsep} % ABOVESPACE {\topsep} % BELOWSPACE {\itshape} % BODYFONT {} % INDENT (empty value is the same as 0pt) {\bfseries} % HEADFONT - {.} % HEADPUNCT + {.} % HEADPUNC {5pt plus 1pt minus 1pt} % HEADSPACE {} % CUSTOM-HEAD-SPEC \theoremstyle{oldplain} \newtheorem{oldthm}{Theorem}[section] + +%\newtheoremstyle{plain} +% {\medskipamount} % ABOVESPACE +% {\medskipamount} % BELOWSPACE +% {\thfamily} % BODYFONT +% {} % INDENT (empty value is the same as 0pt) +% {\bfseries} % HEADFONT +% {.} % HEADPUNCT +% {5pt plus 1pt minus 1pt} % HEADSPACE +% {} % CUSTOM-HEAD-SPEC \theoremstyle{plain} -\makeatletter -\let\thm\relax -\let\@thm\relax -\let\c@thm\relax -\makeatother \newtheorem{thm}{Theorem}[section] \usepackage{trace} \title{ScholaX} @@ -54,7 +59,7 @@ \maketitle \section*{In short} -{\tt ScholaX} has a text part and a math support part that is called with an option to {\tt newtxmath}. The text component has many of the options and macros that are part of the {\tt newtxtext} package, but with Times fonts replaced by {\tt TeXGyreScholaX} fonts, the latter being an an extension of the TeXGyreSchola fonts which in turn extended the URW rendering of New Century Schoolbook that was donated as open source to the Ghostscript project. The font is based on early nineteenth century ``Scotch'' type, whose dominant features are low contrast as compared to, say, Times and Baskerville, and a relatively tall x-height. Its revivals gained popularity because of studies indicating its readability by children leading to its adoption in many texts for that market. Now that I am approaching the age where second childhood is not uncommon, the font is looking more interesting. +{\tt ScholaX} has a text part and a math support part that is called with an option to {\tt newtxmath}. The text component has many of the options and macros that are part of the {\tt newtxtext} package, but with Times fonts replaced by {\tt TeXGyreScholaX} fonts, the latter being an an extension of the {\tt TeXGyreSchola} fonts which in turn extended the URW rendering of \emph{New Century Schoolbook} that was donated as open source to the Ghostscript project. The font is based on early nineteenth century ``Scotch'' type, whose dominant features are low contrast as compared to, say, Times and Baskerville, and a relatively tall x-height. Its revivals gained popularity because of studies indicating its readability by children leading to its adoption in many texts for that market. Now that I am approaching the age where second childhood is not uncommon, the font is looking more interesting. Slanted and Bold Slanted styles are provided in addition to the basic Regular, Bold, Italic and Bold Italic. @@ -76,22 +81,49 @@ The option {\tt osf} has the same effect as the macro \verb|\useosf|, which must This option makes {\tt osf} the default figure style in small cap text. {\tt theoremfont:}\\ -This option defines a new text family, {\tt thfamily}, amounting to Italic with upright punctuation glyphs. -(This differs from the behaving in earlier packages, which involved redefining the meaning of \verb|\textsl| and substituting it for \verb|\textit| in the definition of the {\tt plain} theorem style.)\\ +This option makes use of a new text font family, {\tt thfamily}, amounting to Italic with upright punctuation glyphs. +(This differs from the behavior in earlier packages, which involved redefining the meaning of \verb|\slshape| and substituting it for \verb|\itshape| in the definition of the {\tt plain} theorem style.)\\ {\thfamily This is how the \verb|\thfamily| looks: it is Italic but has upright punctuation symbols :;!? etc. The figures are not changed, but should in many cases be tabular lining figures, accessed using, e.g.,\/} \verb|\texttlf|. -The {\tt theoremfont} option changes the default font used for the {\tt plain} theorem style of {\tt amsthm} to use \verb|\thfamily|. For example, with this option, you get theorem statements like this: +There are two ways to make use of \verb|\thfamily| for body text in theorem-like text. +\begin{itemize} +\item +\textbf{(for {\tt amsthm} only)}---add the option {\tt theoremfont} to {\tt scholax}, which will patch the \verb|\th@plain| command which stores the definition of the plain theorem format, replacing \verb|\itshape| by \verb|\thfamily|. Then, in your document preamble, make the usual theorem specifications, like +\begin{verbatim} +\theoremstyle{plain} +\newtheorem{thm}{Theorem}[section] +\end{verbatim} +\item +In your document preamble, make a new definition of the plain theorem format. For {\tt amsthm}, this would be like +\begin{verbatim} +\newtheoremstyle{plain} + {\medskipamount} % ABOVESPACE + {\medskipamount} % BELOWSPACE + {\thfamily} % BODYFONT <<<<<<<<<NOTE THE CHANGE FROM \itshape + {} % INDENT (empty value is the same as 0pt) + {\bfseries} % HEADFONT + {.} % HEADPUNCT + {5pt plus 1pt minus 1pt} % HEADSPACE + {} % CUSTOM-HEAD-SPEC +\end{verbatim} +and then proceed as above with +\begin{verbatim} +\theoremstyle{plain} +\newtheorem{thm}{Theorem}[section] +\end{verbatim} +If you are using another theorem package (e.g., {\tt ntheorem, theorem}) you will have instead to to add your own descriptors as specified in the its documentation and set the body font to \verb|\thfamily|. The {\tt theoremfont} option is useless in this case. +\end{itemize} +After doing this, you should get output like this: \begin{thm} -This is Theorem Italic: text numbers are upright---12345; punctuation is in many cases upright (also, parens, braces \{\} and brackets []). What about question marks and exclamations? Also upright! [These fit better with math mode punctuation and figures, like: for all $x\in[0,1]$, let $f(x)\coloneq \exp(\alpha x)$]. +This is Theorem Italic: text numbers are upright---12345; punctuation is in many cases upright (also, parens, braces \{\} and brackets []). What about question marks and exclamations? Also upright! [These fit better with math mode punctuation and figures, like: for all $x\in[0,1]$, let $f(x)\coloneq \exp(\alpha x)$.] \end{thm} Compare this to traditional {\tt plain} theorem style of the same text: \begin{oldthm} -This is Theorem Italic: text numbers are upright---12345; punctuation is in many cases upright (also, parens, braces \{\} and brackets []). What about question marks and exclamations? Also upright! [These fit better with math mode punctuation and figures, like: for all $x\in[0,1]$, let $f(x)\coloneq \exp(\alpha x)$]. +This is Theorem Italic: text numbers are upright---12345; punctuation is in many cases upright (also, parens, braces \{\} and brackets []). What about question marks and exclamations? Also upright! [These fit better with math mode punctuation and figures, like: for all $x\in[0,1]$, let $f(x)\coloneq \exp(\alpha x)$.] \end{oldthm} -If you are using another theorem package (e.g., {\tt ntheorem, theorem}) you will have to add your own descriptors as specified in the its documentation and set the body font to \verb|\thfamily|. {\tt sups:}\\ This makes superior figures to be used in footnote markers except in minipages. This option is prevented when using the KOMA classes, with which it may conflict. The option has no effect if you define a non-default handling of footnote markers in your preamble before loading {\tt scholax}. @@ -124,7 +156,7 @@ If you were to change the default behavior with the option \begin{verbatim} raisefrac=0em \end{verbatim} -you would get a fraction with the denominator's baseline at the baseline of the \verb|\textin| figures, namely {\tt .111em}. Those who wish the fractional part to be vertically centered with respect to lining figures should specify +you would get a fraction with the denominator's baseline at the baseline of the \verb|\textin| figures, namely {\tt -.111em}. Those who wish the fractional part to be vertically centered with respect to lining figures should specify \begin{verbatim} raisefrac=.052em \end{verbatim} diff --git a/fonts/scholax/opentype/TeXGyreScholaX-Bold.otf b/fonts/scholax/opentype/TeXGyreScholaX-Bold.otf Binary files differindex c317fbc3bb..1b8d57fcbb 100644 --- a/fonts/scholax/opentype/TeXGyreScholaX-Bold.otf +++ b/fonts/scholax/opentype/TeXGyreScholaX-Bold.otf diff --git a/fonts/scholax/opentype/TeXGyreScholaX-BoldItalic.otf b/fonts/scholax/opentype/TeXGyreScholaX-BoldItalic.otf Binary files differindex 07a5fbe77a..9470ca7743 100644 --- a/fonts/scholax/opentype/TeXGyreScholaX-BoldItalic.otf +++ b/fonts/scholax/opentype/TeXGyreScholaX-BoldItalic.otf diff --git a/fonts/scholax/opentype/TeXGyreScholaX-BoldSlanted.otf b/fonts/scholax/opentype/TeXGyreScholaX-BoldSlanted.otf Binary files differindex 84c02fb251..468b88a37c 100644 --- a/fonts/scholax/opentype/TeXGyreScholaX-BoldSlanted.otf +++ b/fonts/scholax/opentype/TeXGyreScholaX-BoldSlanted.otf diff --git a/fonts/scholax/opentype/TeXGyreScholaX-Italic.otf b/fonts/scholax/opentype/TeXGyreScholaX-Italic.otf Binary files differindex e977483669..c360bf6406 100644 --- a/fonts/scholax/opentype/TeXGyreScholaX-Italic.otf +++ b/fonts/scholax/opentype/TeXGyreScholaX-Italic.otf diff --git a/fonts/scholax/opentype/TeXGyreScholaX-Regular.otf b/fonts/scholax/opentype/TeXGyreScholaX-Regular.otf Binary files differindex 9115c618b3..af8b2755e9 100644 --- a/fonts/scholax/opentype/TeXGyreScholaX-Regular.otf +++ b/fonts/scholax/opentype/TeXGyreScholaX-Regular.otf diff --git a/fonts/scholax/opentype/TeXGyreScholaX-Slanted.otf b/fonts/scholax/opentype/TeXGyreScholaX-Slanted.otf Binary files differindex 0e42ec4477..a2ad82b466 100644 --- a/fonts/scholax/opentype/TeXGyreScholaX-Slanted.otf +++ b/fonts/scholax/opentype/TeXGyreScholaX-Slanted.otf diff --git a/fonts/scholax/tex/scholax.sty b/fonts/scholax/tex/scholax.sty index 98c2043a5f..cfe25b49e5 100644 --- a/fonts/scholax/tex/scholax.sty +++ b/fonts/scholax/tex/scholax.sty @@ -1,7 +1,7 @@ %% \NeedsTeXFormat{LaTeX2e} -\def\fileversion{1.00} -\def\filedate{2019/12/30} +\def\fileversion{1.01} +\def\filedate{2020/01/01} \ProvidesPackage{scholax} [\filedate\space v\fileversion] @@ -164,10 +164,31 @@ OsF}\fontshape{sc}\selectfont #1}% {\not@math@alphabet\thfamily\relax \fontfamily\thdefault\selectfont} -\ifzcs@thrm - \ifdefined\newtheoremstyle %amsthm and ntheorem, not theorem.sty - \@ifpackageloaded{ntheorem}\relax{% - \newtheoremstyle{plain} +%\ifzcs@thrm +% \patchcmd{\th@plain}{\itshape}{\thfamily}{\message{Replaced itshape by thfamily in theorem style plain.}}{\message{Unable to replace itshape by thfamily in theorem style plain.}} +%\fi + +%\def\thrmplain{\ifzcs@thrm% +% \ifdefined\newtheoremstyle %amsthm and ntheorem, not theorem.sty +% \@ifpackageloaded{ntheorem}\relax{% +% \newtheoremstyle{plain} +% {\medskipamount} % ABOVESPACE, was \topsep +% {\medskipamount} % BELOWSPACE, was \topsep +% {\thfamily} % BODYFONT--\thfamily is defined to be \itshape with upright figures and punctuation +% {} % INDENT (empty value is the same as 0pt) +% {\bfseries} % HEADFONT--you may want to add \tlfstyle so the number is tab lining, regardless of text figure selection +% {.} % HEADPUNCT +% {5pt plus 1pt minus 1pt} % HEADSPACE +% % CUSTOM-HEAD-SPEC\newtheorem{thm}{Theorem}[section] +% } % end @ifpackageloaded +% \fi% +%\fi} + + + +\AtEndPreamble{% +\ifzcs@thrm% + \newtheoremstyle{plain} {\medskipamount} % ABOVESPACE, was \topsep {\medskipamount} % BELOWSPACE, was \topsep {\thfamily} % BODYFONT--\thfamily is defined to be \itshape with upright figures and punctuation @@ -175,13 +196,8 @@ OsF}\fontshape{sc}\selectfont #1}% {\bfseries} % HEADFONT--you may want to add \tlfstyle so the number is tab lining, regardless of text figure selection {.} % HEADPUNCT {5pt plus 1pt minus 1pt} % HEADSPACE - % CUSTOM-HEAD-SPEC\newtheorem{thm}{Theorem}[section] - } % end @ifpackageloaded - \fi% -\fi - - -\AtEndPreamble{% + {} % CUSTOM-HEAD-SPEC[ +\fi% \renewcommand*{\rmdefault}% {TeXGyreScholaX-\TeXGyreScholaX@figurealign\TeXGyreScholaX@figurestyle} \newcommand*{\thdefault}{zcsth-\TeXGyreScholaX@figurestyle} diff --git a/fonts/scholax/tfm/TeXGyreScholaX-Bold.tfm b/fonts/scholax/tfm/TeXGyreScholaX-Bold.tfm Binary files differnew file mode 100644 index 0000000000..d176c8cc47 --- /dev/null +++ b/fonts/scholax/tfm/TeXGyreScholaX-Bold.tfm diff --git a/fonts/scholax/tfm/TeXGyreScholaX-BoldItalic.tfm b/fonts/scholax/tfm/TeXGyreScholaX-BoldItalic.tfm Binary files differnew file mode 100644 index 0000000000..c3c35200d6 --- /dev/null +++ b/fonts/scholax/tfm/TeXGyreScholaX-BoldItalic.tfm diff --git a/fonts/scholax/tfm/TeXGyreScholaX-BoldSlanted.tfm b/fonts/scholax/tfm/TeXGyreScholaX-BoldSlanted.tfm Binary files differnew file mode 100644 index 0000000000..6e8f63b72d --- /dev/null +++ b/fonts/scholax/tfm/TeXGyreScholaX-BoldSlanted.tfm diff --git a/fonts/scholax/tfm/TeXGyreScholaX-Italic.tfm b/fonts/scholax/tfm/TeXGyreScholaX-Italic.tfm Binary files differnew file mode 100644 index 0000000000..d68b5b0d74 --- /dev/null +++ b/fonts/scholax/tfm/TeXGyreScholaX-Italic.tfm diff --git a/fonts/scholax/tfm/TeXGyreScholaX-Regular.tfm b/fonts/scholax/tfm/TeXGyreScholaX-Regular.tfm Binary files differnew file mode 100644 index 0000000000..b09578df4b --- /dev/null +++ b/fonts/scholax/tfm/TeXGyreScholaX-Regular.tfm diff --git a/fonts/scholax/tfm/TeXGyreScholaX-Slanted.tfm b/fonts/scholax/tfm/TeXGyreScholaX-Slanted.tfm Binary files differnew file mode 100644 index 0000000000..8e855c9127 --- /dev/null +++ b/fonts/scholax/tfm/TeXGyreScholaX-Slanted.tfm diff --git a/fonts/scholax/type1/TeXGyreScholaX-Bold.pfb b/fonts/scholax/type1/TeXGyreScholaX-Bold.pfb Binary files differindex f50a86605d..0f01ce303d 100644 --- a/fonts/scholax/type1/TeXGyreScholaX-Bold.pfb +++ b/fonts/scholax/type1/TeXGyreScholaX-Bold.pfb diff --git a/fonts/scholax/type1/TeXGyreScholaX-BoldItalic.pfb b/fonts/scholax/type1/TeXGyreScholaX-BoldItalic.pfb Binary files differindex 223486e4c7..f1a1cd7df0 100644 --- a/fonts/scholax/type1/TeXGyreScholaX-BoldItalic.pfb +++ b/fonts/scholax/type1/TeXGyreScholaX-BoldItalic.pfb diff --git a/fonts/scholax/type1/TeXGyreScholaX-BoldSlanted.pfb b/fonts/scholax/type1/TeXGyreScholaX-BoldSlanted.pfb Binary files differindex 5ed9c4ba12..e3257948b1 100644 --- a/fonts/scholax/type1/TeXGyreScholaX-BoldSlanted.pfb +++ b/fonts/scholax/type1/TeXGyreScholaX-BoldSlanted.pfb diff --git a/fonts/scholax/type1/TeXGyreScholaX-Italic.pfb b/fonts/scholax/type1/TeXGyreScholaX-Italic.pfb Binary files differindex 2684e6a239..b38ef0b622 100644 --- a/fonts/scholax/type1/TeXGyreScholaX-Italic.pfb +++ b/fonts/scholax/type1/TeXGyreScholaX-Italic.pfb diff --git a/fonts/scholax/type1/TeXGyreScholaX-Regular.pfb b/fonts/scholax/type1/TeXGyreScholaX-Regular.pfb Binary files differindex 316c49bb74..4bbd13f908 100644 --- a/fonts/scholax/type1/TeXGyreScholaX-Regular.pfb +++ b/fonts/scholax/type1/TeXGyreScholaX-Regular.pfb diff --git a/fonts/scholax/type1/TeXGyreScholaX-Slanted.pfb b/fonts/scholax/type1/TeXGyreScholaX-Slanted.pfb Binary files differindex 59f0465480..077516efa3 100644 --- a/fonts/scholax/type1/TeXGyreScholaX-Slanted.pfb +++ b/fonts/scholax/type1/TeXGyreScholaX-Slanted.pfb |