texlive[46434] Master: stealcaps (24jan18)

commits+karl at tug.org commits+karl at tug.org
Wed Jan 24 22:52:41 CET 2018


Revision: 46434
          http://tug.org/svn/texlive?view=revision&revision=46434
Author:   karl
Date:     2018-01-24 22:52:41 +0100 (Wed, 24 Jan 2018)
Log Message:
-----------
stealcaps (24jan18)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/stealcaps/
    trunk/Master/texmf-dist/doc/latex/stealcaps/README.md
    trunk/Master/texmf-dist/doc/latex/stealcaps/stealcaps.pdf
    trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/
    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
    trunk/Master/texmf-dist/source/latex/stealcaps/
    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/
    trunk/Master/texmf-dist/tex/latex/stealcaps/stealcaps.sty
    trunk/Master/tlpkg/tlpsrc/stealcaps.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/stealcaps/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/stealcaps/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/stealcaps/README.md	2018-01-24 21:52:41 UTC (rev 46434)
@@ -0,0 +1,42 @@
+# The `stealcaps` package
+
+This package enables you to borrow small capitals
+from another font than the main document font.
+For that simply load the package and specify the replacement font
+vie the key-value-option 'from', i.e.
+
+    \usepackage[from=<font name>]{stealcaps}.
+
+In case you use pdfLaTeX the font name has to be NFSS compliant.
+With XeLaTeX or LuaLaTeX, correpsondingly,
+it has to be `fontspec` compliant.
+
+Package dependencies: `pgfopts`, `iftex`, `fontspec`.
+
+This is version 1.0 of the package.
+
+Copyright (C) 2018 by Ruben Giannotti
+
+---
+
+This work may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either
+version 1.3c of this license or (at your option) any
+later version. The latest version of this license is in
+  http://www.latex-project.org/lppl.txt
+and version 1.3 or later is part of all distributions
+of LaTeX version 2005/12/01 or later.
+
+This work has the LPPL maintenance status `maintained'.
+
+The Current Maintainer of this work is Ruben Giannotti.
+
+This work consists of the files
+   stealcaps.dtx,
+   stealcaps.ins
+and the derived file stealcaps.sty.
+
+To install the package
+
+ 1. run `latex stealcaps.ins`
+ 2. move 'stealcaps.sty' to locations where LaTeX will find it


Property changes on: trunk/Master/texmf-dist/doc/latex/stealcaps/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/stealcaps/stealcaps.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/stealcaps/stealcaps.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/stealcaps/stealcaps.pdf	2018-01-24 21:51:12 UTC (rev 46433)
+++ trunk/Master/texmf-dist/doc/latex/stealcaps/stealcaps.pdf	2018-01-24 21:52:41 UTC (rev 46434)

Property changes on: trunk/Master/texmf-dist/doc/latex/stealcaps/stealcaps.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/EBGaramond.ttf.zip
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/EBGaramond.ttf.zip
===================================================================
--- trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/EBGaramond.ttf.zip	2018-01-24 21:51:12 UTC (rev 46433)
+++ trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/EBGaramond.ttf.zip	2018-01-24 21:52:41 UTC (rev 46434)

Property changes on: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/EBGaramond.ttf.zip
___________________________________________________________________
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/brelaregular.otf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/brelaregular.otf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/brelaregular.otf	2018-01-24 21:51:12 UTC (rev 46433)
+++ trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/brelaregular.otf	2018-01-24 21:52:41 UTC (rev 46434)

Property changes on: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/brelaregular.otf
___________________________________________________________________
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/stealcapitals-test.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcapitals-test.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcapitals-test.pdf	2018-01-24 21:51:12 UTC (rev 46433)
+++ trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcapitals-test.pdf	2018-01-24 21:52:41 UTC (rev 46434)

Property changes on: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcapitals-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/stealcapitals-test.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcapitals-test.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcapitals-test.tex	2018-01-24 21:52:41 UTC (rev 46434)
@@ -0,0 +1,22 @@
+% 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}


Property changes on: trunk/Master/texmf-dist/doc/latex/stealcaps/testfile/stealcapitals-test.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.dtx	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.dtx	2018-01-24 21:52:41 UTC (rev 46434)
@@ -0,0 +1,183 @@
+% \iffalse meta-comment
+%
+% Copyright (C) 2018 by Ruben Giannotti 
+% <ruben dot giannotti at gmx dot net>
+% -------------------------------------------------------
+% 
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) any
+% later version. The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions
+% of LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+% 
+% The Current Maintainer of this work is Ruben Giannotti.
+%
+% This work consists of the files
+%   stealcaps.dtx 
+%   stealcaps.ins
+% and the derived file stealcaps.sty.
+%
+% \fi
+%
+% \iffalse
+%<*driver>
+\ProvidesFile{stealcaps.dtx}
+%</driver>
+%<package>\NeedsTeXFormat{LaTeX2e}
+%<package>\ProvidesPackage{stealcaps}
+%<*package>
+  [2018/01/21 v1.0 Steal small capitals (RG)]
+%</package>
+%
+%<*driver>
+\documentclass{ltxdoc}
+\usepackage{amssymb,parskip}
+\providecommand*\pkg{\textsf}
+\providecommand*\option{\textit}
+\providecommand*\url{\texttt}
+\providecommand*\email{\texttt}
+\providecommand*\important{$\blacktriangleright$\space Important note:\space}
+\EnableCrossrefs
+\CodelineIndex
+\begin{document}
+  \DocInput{stealcaps.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+% \CheckSum{43}
+%
+% \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
+%   Lower-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
+%   Digits        \0\1\2\3\4\5\6\7\8\9
+%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%   Dollar        \$     Percent       \%     Ampersand     \&
+%   Acute accent  \'     Left paren    \(     Right paren   \)
+%   Asterisk      \*     Plus          \+     Comma         \,
+%   Minus         \-     Point         \.     Solidus       \/
+%   Colon         \:     Semicolon     \;     Less than     \<
+%   Equals        \=     Greater than  \>     Question mark \?
+%   Commercial at \@     Left bracket  \[     Backslash     \\
+%   Right bracket \]     Circumflex    \^     Underscore    \_
+%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%   Right brace   \}     Tilde         \~}
+%
+%
+% \changes{v1.0}{2018/01/21}{Initial version}
+%
+% \GetFileInfo{stealcaps.dtx}
+%
+% \DoNotIndex{\newcommand,\newenvironment,\!,\@empty,\@gobble,\@gobbletwo}
+% \DoNotIndex{\@ifpackageloaded,\@ifpackagewith,\@ifundefined,\@namedef}
+% \DoNotIndex{\@nil,\@onlypreamble,\@tempa,\@tempb,\@tempswafalse,\def}
+% \DoNotIndex{\@tempswatrue,\^,\-,\active,\begingroup,\catcode,\@car,\@cdr}
+% \DoNotIndex{\edef,\else,\endgroup,\endinput,\expandafter,\fi,\if}
+% \DoNotIndex{\if at tempswa,\ifcase,\ifnum,\ifx,\lccode,\let,\lowercase}
+% \DoNotIndex{\MessageBreak,\next,\number,\numexpr,\or,\PackageError}
+% \DoNotIndex{\PackageWarning,\PackageWarningNoLine,\strip at prefix,\@@end}
+% \DoNotIndex{\relax,\space,\string,\DeclareOption,\ProcessOptions}
+% \DoNotIndex{\meaning,\ifdefined,\csname,\chardef,\endcsname,\protect}
+% \DoNotIndex{\input,\RequirePackage,\global,\ifcsname,\makeatother}
+% \DoNotIndex{\@makeother,\the,\toks@}
+%
+% \title{The \pkg{stealcaps} package\thanks{This document
+%   corresponds to \pkg{stealcaps}~\fileversion, dated \filedate.}}
+% \author{Ruben Giannotti\thanks{\email{ruben dot giannotti at gmx dot net}}}
+%
+% \maketitle
+%
+% This little package is mainly meant to be used
+% when there is a (TrueType or OpenType) font
+% that does not provide real small capitals.
+% Some tend to use uppercased letters
+% as a workaround -- it is a bad workaround!
+% In fact, I consider it better practice
+% to borrow, or steal the small capitals from another font.
+% And this is exactly what the package does.
+% This might also be useful in the rare case
+% that someone does not like the present
+% small capitals, and wants to change them,
+% or likes those from another font better.
+%
+% However, to achieve the borrowing one does only need to load the package
+% and specify the name of the target font via the \option{from} option:
+%
+% |\usepackage|[\option{from}=\(\langle\)\textit{font name}\(\rangle\)]\{stealcaps\}
+%
+% It works with both pdf\LaTeX and its successors Xe\LaTeX{} and Lua\LaTeX.
+% In the first case you have to make sure the font name is NFSS compliant.
+% Otherwise, it has to be \pkg{fontspec} compliant.
+%
+% \StopEventually{}
+%
+% The implementation is rather simple and straightforward.
+%
+% As usual, we start by loading what is required:
+%
+%    \begin{macrocode}
+\RequirePackage{pgfopts}
+\RequirePackage{iftex}
+%    \end{macrocode}
+%
+% We have to load \pkg{fontspec} in case Xe\LaTeX or Lua\LaTeX,
+% hence not pdf\LaTeX is in use, to make sure the |\fontspec| command,
+% used by this package, is guarantied to be defined.
+%
+%    \begin{macrocode}
+\ifPDFTeX\else
+  \RequirePackage{fontspec}
+\fi
+%    \end{macrocode}
+%
+% Then we set up the only package option
+% and commence its processing.
+%
+%    \begin{macrocode}
+\pgfkeys{
+  /stc/.cd,
+  from/.store in=\font at wildcard@stc
+}
+\ProcessPgfOptions{/stc}
+%    \end{macrocode}
+%
+% To distinguish between the operating engines
+% there are two macros to select the replacement font
+% (one for \pkg{fontspec} powered ones
+% and one for good old pdf\LaTeX),
+% which then are |\let| to |\font at stc|
+% according to the engine in use.
+%
+%    \begin{macrocode}
+\def\font at xe@or at lua@stc{\fontspec}
+\def\font at pdf@stc{\fontfamily}
+\def\selectfont at or@relax at stc{\relax}
+\ifPDFTeX
+  \let\font at stc\font at pdf@stc
+  \let\selectfont at or@relax at stc\selectfont
+\else
+  \let\font at stc\font at xe@or at lua@stc
+\fi
+%    \end{macrocode}
+%
+% At last, we load the replacement font
+% employing |\font at stc| inside a group
+% and substitute the small captials fonts.
+%
+%    \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
+  }{}
+\endgroup
+%    \end{macrocode}
+%\Finale
+\endinput


Property changes on: trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.dtx
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.ins	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/stealcaps/stealcaps.ins	2018-01-24 21:52:41 UTC (rev 46434)
@@ -0,0 +1,74 @@
+% Copyright (C) 2018 by Ruben Giannotti
+% <ruben dot giannotti at gmx dot net>
+% -------------------------------------------------------
+% 
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) any
+% later version. The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions
+% of LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+% 
+% The Current Maintainer of this work is Ruben Giannotti.
+%
+% This work consists of the files
+%   stealcaps.dtx 
+%   stealcaps.ins
+% and the derived file stealcaps.sty.
+
+\input docstrip.tex
+\keepsilent
+
+\usedir{tex/latex/stealcaps}
+
+\preamble
+
+This is a generated file.
+
+Copyright (C) 2018 by Ruben Giannotti
+<ruben dot giannotti at gmx dot net>
+-------------------------------------------------------
+
+This work may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either
+version 1.3c of this license or (at your option) any
+later version. The latest version of this license is in
+  http://www.latex-project.org/lppl.txt
+and version 1.3 or later is part of all distributions
+of LaTeX version 2005/12/01 or later.
+
+This work has the LPPL maintenance status `maintained'.
+
+The Current Maintainer of this work is Enrico Gregorio.
+
+This work consists of the files
+  stealcaps.dtx 
+  stealcaps.ins
+and the derived file stealcaps.sty.
+
+\endpreamble
+
+\generate{\file{stealcaps.sty}{\from{stealcaps.dtx}{package}}}
+
+\def\tmpa{plain}
+\ifx\tmpa\fmtname\endgroup\expandafter\bye\fi
+
+\obeyspaces
+\Msg{*************************************************************}
+\Msg{*                                                           *}
+\Msg{* To finish the installation you have to move the following *}
+\Msg{* file into a directory searched by TeX:                    *}
+\Msg{*                                                           *}
+\Msg{*     stealcaps.sty                                        *}
+\Msg{*                                                           *}
+\Msg{* To produce the documentation run the file                 *}
+\Msg{* stealcaps.dtx through LaTeX.                             *}
+\Msg{*                                                           *}
+\Msg{* Happy TeXing!                                             *}
+\Msg{*                                                           *}
+\Msg{*************************************************************}
+
+\endbatchfile

Added: trunk/Master/texmf-dist/tex/latex/stealcaps/stealcaps.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/stealcaps/stealcaps.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/stealcaps/stealcaps.sty	2018-01-24 21:52:41 UTC (rev 46434)
@@ -0,0 +1,65 @@
+%%
+%% This is file `stealcaps.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% stealcaps.dtx  (with options: `package')
+%% 
+%% This is a generated file.
+%% 
+%% Copyright (C) 2018 by Ruben Giannotti
+%% <ruben dot giannotti at gmx dot net>
+%% -------------------------------------------------------
+%% 
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any
+%% later version. The latest version of this license is in
+%%   http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions
+%% of LaTeX version 2005/12/01 or later.
+%% 
+%% This work has the LPPL maintenance status `maintained'.
+%% 
+%% The Current Maintainer of this work is Enrico Gregorio.
+%% 
+%% This work consists of the files
+%%   stealcaps.dtx
+%%   stealcaps.ins
+%% and the derived file stealcaps.sty.
+%% 
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{stealcaps}
+  [2018/01/21 v1.0 Steal small capitals (RG)]
+\RequirePackage{pgfopts}
+\RequirePackage{iftex}
+\ifPDFTeX\else
+  \RequirePackage{fontspec}
+\fi
+\pgfkeys{
+  /stc/.cd,
+  from/.store in=\font at wildcard@stc
+}
+\ProcessPgfOptions{/stc}
+\def\font at xe@or at lua@stc{\fontspec}
+\def\font at pdf@stc{\fontfamily}
+\def\selectfont at or@relax at stc{\relax}
+\ifPDFTeX
+  \let\font at stc\font at pdf@stc
+  \let\selectfont at or@relax at stc\selectfont
+\else
+  \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
+  }{}
+\endgroup
+\endinput
+%%
+%% End of file `stealcaps.sty'.


Property changes on: trunk/Master/texmf-dist/tex/latex/stealcaps/stealcaps.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2018-01-24 21:51:12 UTC (rev 46433)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2018-01-24 21:52:41 UTC (rev 46434)
@@ -580,7 +580,7 @@
     sr-vorl srbook-mem srcltx srcredact sseq sslides
     stack stackengine stage standalone stanli starfont startex
     statistik statex statex2 staves
-    stdclsdv stdpage steinmetz
+    stdclsdv stdpage stealcaps steinmetz
     stellenbosch stex stix stmaryrd storebox storecmd stringstrings struktex
     sttools stubs studenthandouts sty2dtx suanpan subdepth subeqn subeqnarray
     subfig subfigmat subfigure subfiles subfloat substances

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2018-01-24 21:51:12 UTC (rev 46433)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2018-01-24 21:52:41 UTC (rev 46434)
@@ -990,6 +990,7 @@
 depend standalone
 depend statistik
 depend stdclsdv
+depend stealcaps
 depend stdpage
 depend stex
 depend storebox

Added: trunk/Master/tlpkg/tlpsrc/stealcaps.tlpsrc
===================================================================


More information about the tex-live-commits mailing list