texlive[51909] Master/texmf-dist: superiors (19aug19)

commits+karl at tug.org commits+karl at tug.org
Mon Aug 19 22:57:34 CEST 2019


Revision: 51909
          http://tug.org/svn/texlive?view=revision&revision=51909
Author:   karl
Date:     2019-08-19 22:57:34 +0200 (Mon, 19 Aug 2019)
Log Message:
-----------
superiors (19aug19)

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

Modified: trunk/Master/texmf-dist/doc/fonts/superiors/README
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/superiors/README	2019-08-19 20:30:58 UTC (rev 51908)
+++ trunk/Master/texmf-dist/doc/fonts/superiors/README	2019-08-19 20:57:34 UTC (rev 51909)
@@ -1,11 +1,14 @@
 This small package provides a means of adding to or modifying the superior figures used for footnote and endnote markers in any font collection.
 
-Current version: 1.05
+Current version: 1.06
 
 This material is subject to the LaTeX Project Public License. See 
 http://www.ctan.org/license/lppl1.3
 for the details of that license.
 
+Changes in 1.06
+Added more abbreviations and added a check for KOMA, with which it is incompatibe.
+
 Changes in 1.05
 1. Added option to allow the tfm containing the superior figures to be specified by an abbreviation.
 2. Modified code so that options supspaced and raised actually do what they are claimed to do.

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

Modified: trunk/Master/texmf-dist/doc/fonts/superiors/superiors-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/superiors/superiors-doc.tex	2019-08-19 20:30:58 UTC (rev 51908)
+++ trunk/Master/texmf-dist/doc/fonts/superiors/superiors-doc.tex	2019-08-19 20:57:34 UTC (rev 51909)
@@ -9,7 +9,7 @@
 \usepackage[TS1,T1]{fontenc}
 \usepackage{textcomp}
 \usepackage[scaled=.85]{beramono} 
-\usepackage[libertine,cmbraces]{newtxmath}
+\usepackage[libertine]{newtxmath}
 \makeatletter
 \def\libertine at figurestyle{OsF}
 \makeatother
@@ -27,11 +27,20 @@
 \section{Briefly}
 The default behavior of footnote and endnote markers in \LaTeX\ is to print the number as if it were a mathematical superscript. In most cases, this means the size is about 70\% of the normal lining figure and the top is somewhat above the tops of capital letters. In many cases, the superscript figure is simply reduced in all dimensions by about 70\%, making them appear rather slight, though overly tall. (The \textsf{libertine} package used for preparing this document has a custom footnote illustrated below.)
 
-As an alternative, one may use superior figures---small figures, usually 50\% to 60\% of the height of lining figures, like \textsu{1234567890}. Commonly, they are designed so that the tops of the numbers are aligned with the tops of the capital letters in the font, though sometimes a little higher, corresponding to the ascender height. PostScript fonts have for a long time mostly contained just a small subset $\{1,2,3\}$ of the possible superior digits, and most OpenType fonts in the Adobe portfolio, other than the most popular and the most recent, contain the same small subset. Moreover, the \textsf{TS1} encoding includes slots for only those three superior figures. Even the recent STIX collection contains just the basic three.
+As an alternative, one may use superior figures---small figures, usually 50\% to 60\% of the height of lining figures, like \textsu{1234567890}. Commonly, they are designed so that the tops of the numbers are aligned with the tops of the capital letters in the font, though sometimes a little higher, corresponding to the ascender height. PostScript fonts have for a long time mostly contained just a small subset $\{1,2,3\}$ of the possible superior digits, and most OpenType fonts in the Adobe portfolio, other than the most popular and the most recent, contain the same small subset. Moreover, the \textsf{TS1} encoding includes slots for only those three superior figures. Even the recent STIX collection contains just the basic three, at least in its original distribution.
 
 
-This package allows you to add a full set of superior figures to a font family that lacks one. It uses two predefined collections---the default is {\tt ntxsups-Regular-t1}, drawn from TeX Gyre Termes, while the second, {\tt libertinesups}, is taken from Libertine-Legacy. (The standard \textsf{libertine} package provides no access to these glyphs other than through footnote markers.) In addition, you may specify any \TeX\ tfm whose figure slots contain superior figures. The package also allows you to scale the size of the imported figures, to take into account your general font scaling,  and to specify an amount by which to raise the imported, rescaled figures. You may also specify a spacing to apply before the footnote marker, using the option {\tt supspaced}. The package should be loaded after your Roman text font package\footnote{The {\tt newtxtext} package uses the {\tt ntxsups-*} superiors contained in the newtx package by default for footnote markers.}. 
+This package allows you to add a full set of superior figures to a font family that lacks one. It uses two predefined collections---the default is {\tt ntxsups-Regular-t1}, drawn from TeX Gyre Termes, while the second, {\tt libertinesups}, is taken from Libertine-Legacy. (The standard \textsf{libertine} package provides no access to these glyphs other than through footnote markers.) In addition, you may specify any \TeX\ tfm whose figure slots contain superior figures. The package also allows you to scale the size of the imported figures, to take into account your general font scaling,  and to specify an amount by which to raise the imported, rescaled figures. You may also specify a spacing to apply before the footnote marker, using the option {\tt supspaced}. The package should be loaded \textbf{after} your Roman text font package\footnote{The {\tt newtxtext} package uses the {\tt ntxsups-*} superiors contained in the newtx package by default for footnote markers.} so that it overwrites any existing definitions of \verb|\sustyle| (a switch to turn on superior letters and figures, usually employed within braces to limit its effect, \verb|\textsu| (a macro that applies the \verb|\sustyle| switch to its argument) and the footnote style macros. 
 
+\textsc{Important Notes:} \\
+\begin{itemize}
+\item
+\verb|\sustyle| is a simple text switch---the value of the parameter {\tt raised} is ignored;
+\item \verb|\textsu| is a macro that reads the value of {\tt raised} and, if it is non-zero, created an \verb|\hbox| from its argument and raises it by the specified amount. In the latter case, the argument must be short as line breaks will not happen. If on the other hand {\tt raised} has a zero value, \verb|\textsu| acts like \verb|\sustyle|, permitting line breaks to occur.
+\item This package is not compatible with KOMA classes or packages and will stop loading if one is detected, leaving only a line in the log file.
+
+\end{itemize}
+
 \textsc{Sample Invocations:}
 
 \begin{itemize}
@@ -104,6 +113,10 @@
 Baskervaldx
 garamondx
 XCharter
+baskervillef
+cochineal
+stickstoo
+fbb
 Adobe Bembo Std
 Adobe Caslon Pro
 Adobe Warnock Pro
@@ -121,10 +134,10 @@
 
 You may, as of version 1.05, refer to a font to use for superior figures by using an abbreviated form. The following abbreviations are known to {\tt superiors} and may be activated by setting the option {\tt supsfam} to one of:
 \begin{verbatim}
-newtx   ---ntxsups-Regular-ot1,%
-newtxtext   ---ntxsups-Regular-ot1,%
-newpx   ---zplsups-Regular-ot1,%
-newpxtext  ---zplsups-Regular-ot1,%
+newtx   ---ntxsups-Regular-t1,%
+newtxtext   ---ntxsups-Regular-t1,%
+newpx   ---zplsups-Regular-t1,%
+newpxtext  ---zplsups-Regular-t1,%
 libertine  ---libertinesups,%
 garamondx  ---NewG8-sups,%
 zgm        ---NewG8-sups,%
@@ -131,6 +144,10 @@
 erewhon    ---Erewhon-Regular-sup-t1,%
 xcharter   ---XCharter-Roman-sup-t1,%
 baskervaldx   ---Baskervaldx-Reg-sup-t1
+baskervillef   ---BaskervilleF-Regular-sup-t1
+cochineal    ---Cochineal-Roman-sup-t1
+stickstoo    ---SticksToo-Regular-sup-t1
+fbb      ---fbb-Regular-sup-t1
 \end{verbatim}
 For example, loading {\tt superiors} with the line
 \begin{verbatim}
@@ -138,7 +155,7 @@
 \end{verbatim}
 has the same effect as
 \begin{verbatim}
-\usepackage[supstfm=zplsups-Regular-ot1]{superiors}
+\usepackage[supstfm=zplsups-Regular-t1]{superiors}
 \end{verbatim}
 but may be easier to remember.
 \end{document}  
\ No newline at end of file

Modified: trunk/Master/texmf-dist/tex/latex/superiors/superiors.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/superiors/superiors.sty	2019-08-19 20:30:58 UTC (rev 51908)
+++ trunk/Master/texmf-dist/tex/latex/superiors/superiors.sty	2019-08-19 20:57:34 UTC (rev 51909)
@@ -1,14 +1,26 @@
 \NeedsTeXFormat{LaTeX2e}
-\def\superiorsVersion{1.05}
-\def\superiorsDate{2015/03/01}
+\def\superiorsVersion{1.06}
+\def\superiorsDate{2019/08/18}
 \ProvidesPackage{superiors}[\superiorsDate\space-\space\superiorsVersion
  superiors (License LPPL) Michael Sharpe]
+\newif\ifsuperiors at KOMA
+\@ifundefined{KOMAClassName}{}{\superiors at KOMAtrue}
+\@ifundefined{ver at scrextend.sty}{}{\superiors at KOMAtrue}
+\ifsuperiors at KOMA
+	\message{Cannot load superiors with any KOMA class or package.^^J}
+	\endinput
+\fi
 \RequirePackage{xkeyval}
 \RequirePackage{pgffor}
-
+% Ensure that T1 is loaded, but don't change existing default encoding
+\def\t at one{T1}
+\ifx\encodingdefault\t at one\else%
+	\usepackage[T1,\encodingdefault]{fontenc}
+\fi
 \def\sups at tfm{ntxsups-Regular-t1}
 \let\sups at fam\@empty
 \newdimen\superiors at scale
+\newdimen\superiors at raise
 \def\superiors at raised{\z@}
 \def\superiors at spaced{.04em}
 \def\superiors at scaledval{1.0}
@@ -27,6 +39,7 @@
 
 \ProcessOptions*
 
+\setlength{\superiors at raise}{\superiors at raised}
 \setlength{\superiors at scale}{\superiors at scaledval\p@}
 \superiors at scale=\superiors at supscale\superiors at scale %
 \def\superiors at scaled{s*[\strip at pt\superiors at scale]}
@@ -33,16 +46,25 @@
 \let\superiors at makefnmark\@makefnmark
 
 \ifx\sups at fam\@empty\else%
-\foreach\x/\y in {newtx/ntxsups-Regular-ot1,%
-newtxtext/ntxsups-Regular-ot1,%
-newpx/zplsups-Regular-ot1,%
-newpxtext/zplsups-Regular-ot1,%
+\foreach\x/\y in {newtx/ntxsups-Regular-t1,%
+newtxtext/ntxsups-Regular-t1,%
+newpx/zplsups-Regular-t1,%
+newpxtext/zplsups-Regular-t1,%
 libertine/libertinesups,%
 garamondx/NewG8-sups,%
 zgm/NewG8-sups,%
 erewhon/Erewhon-Regular-sup-t1,%
 xcharter/XCharter-Roman-sup-t1,%
-baskervaldx/Baskervaldx-Reg-sup-t1}
+baskervaldx/Baskervaldx-Reg-sup-t1,%
+baskervillef/BaskervilleF-Regular-sup-t1,%
+Baskervillef/BaskervilleF-Regular-sup-t1,%
+cochineal/Cochineal-Roman-sup-t1,%
+Cochineal/Cochineal-Reoman-sup-t1,%
+cochineal/Cochineal-Regular-sup-t1,%
+stickstoo/SticksToo-Regular-sup-t1,%
+stickstootext/SticksToo-Regular-sup-t1,%
+SticksToo/SticksToo-Regular-sup-t1,%
+fbb/fbb-Regular-sup-t1}
 {\ifx\x\sups at fam\xdef\sups at tfm{\y}\breakforeach\fi}
 \fi
 
@@ -54,8 +76,12 @@
   \not at math@alphabet\sustyle\relax
   \usefont{U}{zsups}{m}{n}}
 
-\def\textsu#1{\raisebox{\superiors at raised}{\hbox{{\sustyle#1}}}}
-
+\ifdim\superiors at raise=\z@
+	\DeclareRobustCommand{\textsu}[1]{{\sustyle#1}}
+\else
+	\DeclareRobustCommand{\textsu}[1]{%
+	\raisebox{\superiors at raised}{\hbox{{\sustyle#1}}}}
+\fi
 %\def\@makefnmark{\hbox{\textsu{\hspace*{\superiors at spaced}\@thefnmark}}}
 \def\f@@tn at te{footnote}
 \def\@makefnmark{%



More information about the tex-live-commits mailing list