blob: 495395c5c71bd1d8a95813062ac3ef19a85fbef4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
%%
%% 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-2022 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}
[2022/11/07 v1.1 Steal small capitals (RG)]
\RequirePackage{pgfopts}
\RequirePackage{iftex}
\ifPDFTeX\else
\RequirePackage{fontspec}
\fi
\pgfkeys{
/stc/.cd,
from/.store in=\font@from@stc
}
\ProcessPgfOptions{/stc}
\def\font@xe@or@lua@stc{\fontspec}
\def\font@pdf@stc{\fontfamily}
\def\selectfont@or@relax@stc{\relax}
\ifPDFTeX
\let\font@stc\font@pdf@stc
\let\selectfont@or@relax@stc\selectfont
\else
\let\font@stc\font@xe@or@lua@stc
\fi
\begingroup
\ifx\font@from@stc\@empty\else
\font@stc\font@from@stc\selectfont@or@relax@stc
\DeclareFontShape{\f@encoding}{\rmdefault}{m}{sc}{%
<-> ssub * \f@family/m/sc
}{}
\DeclareFontShape{\f@encoding}{\rmdefault}{bx}{sc}{%
<-> ssub * \f@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'.
|