summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lccaps
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-24 21:50:59 +0000
committerKarl Berry <karl@freefriends.org>2018-01-24 21:50:59 +0000
commitd08b43adb39e2b2e45093923fd7999f9a69f8a4d (patch)
tree4d6f5fc080894e1f357b319f98e6accac708241d /Master/texmf-dist/tex/latex/lccaps
parent6e8eb123c6514c1d394bc9a3064da18abc82b9fa (diff)
lccaps (24jan18)
git-svn-id: svn://tug.org/texlive/trunk@46432 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lccaps')
-rw-r--r--Master/texmf-dist/tex/latex/lccaps/lccaps.sty66
1 files changed, 66 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lccaps/lccaps.sty b/Master/texmf-dist/tex/latex/lccaps/lccaps.sty
new file mode 100644
index 00000000000..7df59667b5d
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/lccaps/lccaps.sty
@@ -0,0 +1,66 @@
+%%
+%% This is file `lccaps.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% lccaps.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
+%% lccaps.dtx
+%% lccaps.ins
+%% and the derived file lccaps.sty.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{lccaps}
+ [2018/01/21 v1.0 Lowercased (spaced) small capitals (RG)]
+\RequirePackage{iftex}
+\RequirePackage{textcase}
+\RequirePackage{microtype}
+\protected\def\lcc@warning{\PackageWarning{lccaps}}
+\DeclareRobustCommand\textlcc[1]{\textsc{\MakeTextLowercase{#1}}}
+\def\spacedcaps#1{%
+ \let\reserved@a=#1%
+ \ifnum
+ \ifx\reserved@a\textsc1\else
+ \ifx\reserved@a\textlcc1\else
+ 0\fi\fi
+ =1
+ \expandafter\reserved@lcc
+ \else
+ \lcc@warning{The token preceeding \noexpand\spacedcaps
+ wasn't meant to typeset small capitals, so nothing happend.}%
+ \expandafter\reserved@a
+ \fi
+}
+\def\reserved@lcc#1{%
+ \expandafter\@spacedcaps\expandafter{\reserved@a{#1}}%
+}
+\ifXeTeX
+ \def\@spacedcaps#1{\bgroup\addfontfeature{LetterSpace=5.0}#1\egroup}
+\else
+ \def\@spacedcaps{\textls[50]}
+\fi
+\DeclareRobustCommand\textslcc{\spacedcaps\textlcc}
+\DeclareRobustCommand\textssc{\spacedcaps\textsc}
+\endinput
+%%
+%% End of file `lccaps.sty'.