texlive[64959] Master/texmf-dist: stealcaps (7nov22)

commits+karl at tug.org commits+karl at tug.org
Mon Nov 7 21:26:16 CET 2022


Revision: 64959
          http://tug.org/svn/texlive?view=revision&revision=64959
Author:   karl
Date:     2022-11-07 21:26:16 +0100 (Mon, 07 Nov 2022)
Log Message:
-----------
stealcaps (7nov22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/stealcaps/README.md
    trunk/Master/texmf-dist/doc/latex/stealcaps/stealcaps.pdf
    trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.dtx
    trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.ins
    trunk/Master/texmf-dist/tex/latex/stealcaps/stealcaps.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/CormorantSC-Regular.ttf
    trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/EBGaramond-Regular.ttf
    trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcaps-test.pdf
    trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcaps-test.tex

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/EBGaramond.ttf.zip
    trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/brelaregular.otf
    trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcapitals-test.pdf
    trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcapitals-test.tex

Modified: trunk/Master/texmf-dist/doc/latex/stealcaps/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/stealcaps/README.md	2022-11-07 20:24:37 UTC (rev 64958)
+++ trunk/Master/texmf-dist/doc/latex/stealcaps/README.md	2022-11-07 20:26:16 UTC (rev 64959)
@@ -11,11 +11,16 @@
 With XeLaTeX or LuaLaTeX, correpsondingly,
 it has to be `fontspec` compliant.
 
+Furthermore in Xe(La)TeX or Lua(La)TeX you can use `\renewcaps{<font name>}`
+to load a dedicated only small capitals font like
+
+    \renewcaps{Cormorant SC}.
+
 Package dependencies: `pgfopts`, `iftex`, `fontspec`.
 
-This is version 1.0 of the package.
+This is version 1.1 of the package.
 
-Copyright (C) 2018 by Ruben Giannotti
+Copyright (C) 2018-2022 by Ruben Giannotti
 
 ---
 

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

Added: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/CormorantSC-Regular.ttf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/CormorantSC-Regular.ttf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/CormorantSC-Regular.ttf	2022-11-07 20:24:37 UTC (rev 64958)
+++ trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/CormorantSC-Regular.ttf	2022-11-07 20:26:16 UTC (rev 64959)

Property changes on: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/CormorantSC-Regular.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/EBGaramond-Regular.ttf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/EBGaramond-Regular.ttf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/EBGaramond-Regular.ttf	2022-11-07 20:24:37 UTC (rev 64958)
+++ trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/EBGaramond-Regular.ttf	2022-11-07 20:26:16 UTC (rev 64959)

Property changes on: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/EBGaramond-Regular.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/EBGaramond.ttf.zip
===================================================================
(Binary files differ)

Deleted: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/brelaregular.otf
===================================================================
(Binary files differ)

Deleted: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcapitals-test.pdf
===================================================================
(Binary files differ)

Deleted: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcapitals-test.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcapitals-test.tex	2022-11-07 20:24:37 UTC (rev 64958)
+++ trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcapitals-test.tex	2022-11-07 20:26:16 UTC (rev 64959)
@@ -1,22 +0,0 @@
-% arara: xelatex
-\documentclass{article}
-\usepackage{lipsum}
-\usepackage{iftex}
-\ifPDFTeX
-  \usepackage[from=ppl]{stealcaps}
-\else
-  \usepackage{fontspec}
-    \setmainfont{Brela}
-  \usepackage[from={EB Garamond}]{stealcaps}
-\fi
-
-\providecommand*\pkg{\textsc}
-
-\title{Testing the \pkg{stealcaps} package}
-\author{Ruben Giannotti}
-\date{\today}
-
-\begin{document}
-\maketitle
-\lipsum
-\end{document}

Added: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcaps-test.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcaps-test.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcaps-test.pdf	2022-11-07 20:24:37 UTC (rev 64958)
+++ trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcaps-test.pdf	2022-11-07 20:26:16 UTC (rev 64959)

Property changes on: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcaps-test.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcaps-test.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcaps-test.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcaps-test.tex	2022-11-07 20:26:16 UTC (rev 64959)
@@ -0,0 +1,26 @@
+% arara: xelatex
+\documentclass{article}
+\usepackage[from={EB Garamond}]{stealcaps}
+% or try
+% \usepackage{stealcaps}
+% \renewcaps{Cormorant SC}
+
+\usepackage{titlesec}
+  \titleformat{\section}
+    {\scshape\normalsize\MakeLowercase}{\thesection}{1em}{}
+
+\usepackage{lipsum}
+
+\newcommand*\pkg{\textsc}
+
+\title{Test file for the \pkg{stealcaps} package}
+\author{Ruben Giannotti}
+\date{\today}
+
+\begin{document}
+\maketitle
+
+\section{Lorem ipsum}
+
+\lipsum[3]
+\end{document}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcaps-test.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.dtx	2022-11-07 20:24:37 UTC (rev 64958)
+++ trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.dtx	2022-11-07 20:26:16 UTC (rev 64959)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 2018 by Ruben Giannotti 
+% Copyright (C) 2018-2022 by Ruben Giannotti 
 % <ruben dot giannotti at gmx dot net>
 % -------------------------------------------------------
 % 
@@ -30,7 +30,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}
 %<package>\ProvidesPackage{stealcaps}
 %<*package>
-  [2018/01/21 v1.0 Steal small capitals (RG)]
+  [2022/11/07 v1.1 Steal small capitals (RG)]
 %</package>
 %
 %<*driver>
@@ -37,6 +37,7 @@
 \documentclass{ltxdoc}
 \usepackage{amssymb,parskip}
 \providecommand*\pkg{\textsf}
+\providecommand*\vrs{\textsf}
 \providecommand*\option{\textit}
 \providecommand*\url{\texttt}
 \providecommand*\email{\texttt}
@@ -49,7 +50,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{43}
+% \CheckSum{59}
 %
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -69,6 +70,7 @@
 %
 %
 % \changes{v1.0}{2018/01/21}{Initial version}
+% \changes{v1.1}{2022/11/07}{Added the renewcaps macro for Xe(La)\TeX or Lua(La)\TeX}
 %
 % \GetFileInfo{stealcaps.dtx}
 %
@@ -113,6 +115,17 @@
 % In the first case you have to make sure the font name is NFSS compliant.
 % Otherwise, it has to be \pkg{fontspec} compliant.
 %
+% As for \vrs{v1.1} in Xe\LaTeX{} and Lua\LaTeX{} you are able
+% to use
+%
+% |\renewcaps{|\(\langle\)\textit{font name}\(\rangle\)|}|
+%
+% to override |\scshape| alltogether.
+% This is mainly meant to be used if you have a single purpose font
+% that provides only small capitals, e.g.:
+%
+% |\renewcaps{Cormorant SC}|.
+%
 % \StopEventually{}
 %
 % The implementation is rather simple and straightforward.
@@ -140,7 +153,7 @@
 %    \begin{macrocode}
 \pgfkeys{
   /stc/.cd,
-  from/.store in=\font at wildcard@stc
+  from/.store in=\font at from@stc
 }
 \ProcessPgfOptions{/stc}
 %    \end{macrocode}
@@ -164,20 +177,42 @@
 \fi
 %    \end{macrocode}
 %
-% At last, we load the replacement font
+% The replacement font is loaded by
 % employing |\font at stc| inside a group
-% and substitute the small captials fonts.
+% and substituting the small captials fonts
+% employing |\DeclareFontShape| with 'ssub'.
 %
 %    \begin{macrocode}
 \begingroup
-  \font at stc\font at wildcard@stc\selectfont at or@relax at stc
-  \DeclareFontShape{\f at encoding}{\rmdefault}{m}{sc}{%
-    <-> ssub * \f at family/m/sc
-  }{}
-  \DeclareFontShape{\f at encoding}{\rmdefault}{bx}{sc}{%
-    <-> ssub * \f at family/bx/sc
-  }{}
+  \ifx\font at from@stc\@empty\else
+    \font at stc\font at from@stc\selectfont at or@relax at stc
+    \DeclareFontShape{\f at encoding}{\rmdefault}{m}{sc}{%
+      <-> ssub * \f at family/m/sc
+    }{}
+    \DeclareFontShape{\f at encoding}{\rmdefault}{bx}{sc}{%
+      <-> ssub * \f at family/bx/sc
+    }{}
+  \fi
 \endgroup
 %    \end{macrocode}
+%
+% At last there is a user macro for XeTeX and LuaTeX environments
+% to renew |\scshape| to a dedicated only small capitals TrueType
+% or OpenType font, e.g. |\renewcaps{Cormorant SC}|.
+%
+%    \begin{macrocode}
+\newcommand*\renewcaps[1]{%
+  \ifPDFTeX
+    \typeout{%
+      You tried to use |\renewcaps| in pdfLaTeX,
+      which isn't needed.
+      Or did you mean to use XeLaTeX or LuaLaTeX?
+    }
+  \else
+    \providefontfamily\scshape{#1}%
+    \renewfontfamily\scshape{#1}%
+  \fi
+}
+%    \end{macrocode}
 %\Finale
 \endinput

Modified: trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.ins	2022-11-07 20:24:37 UTC (rev 64958)
+++ trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.ins	2022-11-07 20:26:16 UTC (rev 64959)
@@ -1,4 +1,4 @@
-% Copyright (C) 2018 by Ruben Giannotti
+% Copyright (C) 2018-2022 by Ruben Giannotti
 % <ruben dot giannotti at gmx dot net>
 % -------------------------------------------------------
 % 
@@ -28,7 +28,7 @@
 
 This is a generated file.
 
-Copyright (C) 2018 by Ruben Giannotti
+Copyright (C) 2018-2022 by Ruben Giannotti
 <ruben dot giannotti at gmx dot net>
 -------------------------------------------------------
 
@@ -62,10 +62,10 @@
 \Msg{* To finish the installation you have to move the following *}
 \Msg{* file into a directory searched by TeX:                    *}
 \Msg{*                                                           *}
-\Msg{*     stealcaps.sty                                        *}
+\Msg{*     stealcaps.sty                                         *}
 \Msg{*                                                           *}
 \Msg{* To produce the documentation run the file                 *}
-\Msg{* stealcaps.dtx through LaTeX.                             *}
+\Msg{* stealcaps.dtx through LaTeX.                              *}
 \Msg{*                                                           *}
 \Msg{* Happy TeXing!                                             *}
 \Msg{*                                                           *}

Modified: trunk/Master/texmf-dist/tex/latex/stealcaps/stealcaps.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/stealcaps/stealcaps.sty	2022-11-07 20:24:37 UTC (rev 64958)
+++ trunk/Master/texmf-dist/tex/latex/stealcaps/stealcaps.sty	2022-11-07 20:26:16 UTC (rev 64959)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (C) 2018 by Ruben Giannotti
+%% Copyright (C) 2018-2022 by Ruben Giannotti
 %% <ruben dot giannotti at gmx dot net>
 %% -------------------------------------------------------
 %% 
@@ -31,7 +31,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{stealcaps}
-  [2018/01/21 v1.0 Steal small capitals (RG)]
+  [2022/11/07 v1.1 Steal small capitals (RG)]
 \RequirePackage{pgfopts}
 \RequirePackage{iftex}
 \ifPDFTeX\else
@@ -39,7 +39,7 @@
 \fi
 \pgfkeys{
   /stc/.cd,
-  from/.store in=\font at wildcard@stc
+  from/.store in=\font at from@stc
 }
 \ProcessPgfOptions{/stc}
 \def\font at xe@or at lua@stc{\fontspec}
@@ -52,14 +52,28 @@
   \let\font at stc\font at xe@or at lua@stc
 \fi
 \begingroup
-  \font at stc\font at wildcard@stc\selectfont at or@relax at stc
-  \DeclareFontShape{\f at encoding}{\rmdefault}{m}{sc}{%
-    <-> ssub * \f at family/m/sc
-  }{}
-  \DeclareFontShape{\f at encoding}{\rmdefault}{bx}{sc}{%
-    <-> ssub * \f at family/bx/sc
-  }{}
+  \ifx\font at from@stc\@empty\else
+    \font at stc\font at from@stc\selectfont at or@relax at stc
+    \DeclareFontShape{\f at encoding}{\rmdefault}{m}{sc}{%
+      <-> ssub * \f at family/m/sc
+    }{}
+    \DeclareFontShape{\f at encoding}{\rmdefault}{bx}{sc}{%
+      <-> ssub * \f at family/bx/sc
+    }{}
+  \fi
 \endgroup
+\newcommand*\renewcaps[1]{%
+  \ifPDFTeX
+    \typeout{%
+      You tried to use |\renewcaps| in pdfLaTeX,
+      which isn't needed.
+      Or did you mean to use XeLaTeX or LuaLaTeX?
+    }
+  \else
+    \providefontfamily\scshape{#1}%
+    \renewfontfamily\scshape{#1}%
+  \fi
+}
 \endinput
 %%
 %% End of file `stealcaps.sty'.



More information about the tex-live-commits mailing list.