texlive[64365] Master: textcsc (12sep22)
commits+karl at tug.org
commits+karl at tug.org
Mon Sep 12 22:27:36 CEST 2022
Revision: 64365
http://tug.org/svn/texlive?view=revision&revision=64365
Author: karl
Date: 2022-09-12 22:27:35 +0200 (Mon, 12 Sep 2022)
Log Message:
-----------
textcsc (12sep22)
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tlpkg-ctan-check
trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/textcsc/
trunk/Master/texmf-dist/doc/latex/textcsc/README
trunk/Master/texmf-dist/doc/latex/textcsc/textcsc-documentation.pdf
trunk/Master/texmf-dist/doc/latex/textcsc/textcsc-documentation.tex
trunk/Master/texmf-dist/doc/latex/textcsc/textcsc.pdf
trunk/Master/texmf-dist/tex/latex/textcsc/
trunk/Master/texmf-dist/tex/latex/textcsc/textcsc.sty
trunk/Master/tlpkg/tlpsrc/textcsc.tlpsrc
Added: trunk/Master/texmf-dist/doc/latex/textcsc/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/textcsc/README (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/textcsc/README 2022-09-12 20:27:35 UTC (rev 64365)
@@ -0,0 +1,15 @@
+textcsc - caps-to-small-caps command
+
+version: 1.0.0
+
+This package provides a simple command for caps-to-small-caps text, to allow for small caps acronyms to be presented as uppercase in text (useful for things like copying and pasting from a PDF).
+
+This work may be distributed and/or modified under the conditions of the
+LaTeX Project Public License (LPPL), version 1.3 or later.
+
+
+For suggestions, feature requests, and bug reports, please use the project's
+GitHub site: https://github.com/ezgranet/textcsc
+
+Version history:
+10/09/2022 Package creation
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/doc/latex/textcsc/README
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/textcsc/textcsc-documentation.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/textcsc/textcsc-documentation.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/textcsc/textcsc-documentation.pdf 2022-09-12 20:26:14 UTC (rev 64364)
+++ trunk/Master/texmf-dist/doc/latex/textcsc/textcsc-documentation.pdf 2022-09-12 20:27:35 UTC (rev 64365)
Property changes on: trunk/Master/texmf-dist/doc/latex/textcsc/textcsc-documentation.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/textcsc/textcsc-documentation.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/textcsc/textcsc-documentation.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/textcsc/textcsc-documentation.tex 2022-09-12 20:27:35 UTC (rev 64365)
@@ -0,0 +1,172 @@
+\documentclass[12pt]{article}
+\usepackage{textcsc}
+\usepackage{xcolor}
+\usepackage{fontspec}\definecolor{darkspringgreen}{rgb}{0.09, 0.45, 0.27}
+\usepackage{titlesec}
+\titleformat{\subsection}
+ {\bfseries}{\thesection.\thesubsection}{1em}{\normalfont\bfseries}
+\usepackage[hidelinks]{hyperref}
+\usepackage{hologo}
+\usepackage[british]{babel}
+\usepackage[useregional]{datetime2}
+\DTMlangsetup[en-GB]{ord=omit}
+\definecolor{LightGray}{gray}{0.9}
+%\usepackage{mathpazo}
+\IfFontExistsTF{Palatine Parliamentary}{%
+\setromanfont[SmallCapsFeatures={LetterSpace=10},
+RawFeature={+calt,+hlig,+liga,+dlig,+onum,+pnum},
+BoldFont={Palatine Parliamentary Bold},
+ItalicFont={Palatine Parliamentary Italic}
+]{Palatine Parliamentary Regular}
+}{\setromanfont[RawFeature={+onum,+pnum}]{TeX Gyre PagellaX}}
+\setmonofont[Scale=.9,BoldFont=Source Code Pro Bold]{Source Code Pro}
+
+\usepackage{minted}
+\date{\today\\\smallskip\ttfamily Version \textcscversionnumber}
+\author{Elijah Z Granet\thanks{e-mail: \href{mailto:ezg21 at cantab.ac.uk}{\ttfamily ezg21 at cantab.ac.uk}}}
+
+\title{\texttt{textcsc}:\\A package for caps-to-small-caps text}
+\begin{document}
+\maketitle
+\tableofcontents
+\clearpage
+\section{Overview}
+It is a longstanding typographic practice to typeset lengthy abbreviations as small-capitals to avoid unsightly groups of capital letters. Using the standard \LaTeX\ commands for small capitals (\verb!\textsc! and \verb!\scshape!) this requires the input letters to be typed in lowercase. For example, to produce \textcsc{FBI}, one types \verb!\textsc{fbi}!. This use of lowercase creates problems. Users of screenreaders or other accessibility software, as well as people who copy-paste the text from your \textcsc{PDF} to quote you, will only encounter the lowercase. If the document has been converted to another format, like an e-book or webpage, the small caps formatting may not convert with it. Even if the format carries when convert by Pandoc or other programme to \textcsc{HTML}, web users who block remote fonts or disable scripts may see, as a fallback, unsightly or confusing lower-case letters jammed together.
+
+Thus, for users of \hologo{LuaLaTeX} or \hologo{XeLaTeX}, this package provides two very simple commands that produce caps-to-small-caps text, taking advantage of existing OpenType features. These two commands neatly help solve the problem of ensuring that all capitals can be used to avoid confusion with other formats or usages, without compromising the traditional typographic practice.
+
+\section{Usage}
+In your preamble put:
+\begin{minted}[
+framesep=2mm,
+baselinestretch=1.2,
+bgcolor=LightGray,
+fontsize=\footnotesize,
+breaklines,
+firstnumber=last
+]
+{latex}
+\usepackage{textcsc}
+\end{minted}
+
+To use a switch analagous to \verb!\scshape! simply use \verb!\cscshape!.
+\begin{minted}[
+framesep=2mm,
+baselinestretch=1.2,
+bgcolor=LightGray,
+fontsize=\footnotesize,
+breaklines,
+firstnumber=last
+]
+{latex}
+The \cscshape CIA\normalfont\ and the \cscshape FBI
+\end{minted}
+
+Produces:
+\begin{quote}
+ The \cscshape CIA\normalfont\ and the \cscshape FBI
+\end{quote}
+
+To use a macro analagous to \verb!\textsc! simply use \verb!\textcsc!:
+\begin{minted}[
+framesep=2mm,
+baselinestretch=1.2,
+bgcolor=LightGray,
+fontsize=\footnotesize,
+breaklines,
+firstnumber=last
+]
+{latex}
+ The \textcsc{CIA} and the \textcsc{FBI}
+\end{minted}
+
+Produces:
+\begin{quote}
+ The \textcsc{CIA} and the \textcsc{FBI}
+\end{quote}
+
+\section{Development}
+Bugs, feature requests, \textit{etc}, should be submitted to the project's official Githup page: (\url{github.com/ezgranet/textcsc}).
+\section{Licence}
+ This project is licensed under the Latex Public Project Licence version 1.3\textit{c}. This documentation is copyright of the author but licensed under \textcsc{CC-BY-SA} 3.0.
+ \clearpage
+\section{Implementation}
+\begin{minted}[
+frame=lines,
+framesep=2mm,
+baselinestretch=1.2,
+bgcolor=LightGray,
+fontsize=\footnotesize,
+linenos,
+breaklines,
+firstnumber=last
+]
+{latex}
+\def\textcscversionnumber{1.0.0}
+\ProvidesPackage{textcsc}
+[2022/09/10\textcscversionnumber\
+ Command for caps-to-small-caps-text]
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% 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 Elijah Z Granet
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Warning that you need
+% fontspec
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\RequirePackage{iftex}
+\ifPDFTeX {
+ \PackageError{swungdash}
+ {You are using pdfTeX but this package only works
+ \MessageBreak with XeTeX or LuaTeX}{}
+ }
+\fi
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Dependencies
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\RequirePackage{fontspec}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% the switch
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newcommand{\cscshape}{\addfontfeature{RawFeature={+c2sc,+smcp}}}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% the macro
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newcommand{\textcsc}[1]{{\cscshape%
+#1%
+}}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% all done
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\end{minted}
+
+\section{Version History}
+\subsection{\texttt{1.0.0}}
+
+\ttfamily 22 September 2022: Package creation
+
+
+\end{document}
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/doc/latex/textcsc/textcsc-documentation.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/textcsc/textcsc.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/textcsc/textcsc.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/textcsc/textcsc.pdf 2022-09-12 20:26:14 UTC (rev 64364)
+++ trunk/Master/texmf-dist/doc/latex/textcsc/textcsc.pdf 2022-09-12 20:27:35 UTC (rev 64365)
Property changes on: trunk/Master/texmf-dist/doc/latex/textcsc/textcsc.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/textcsc/textcsc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/textcsc/textcsc.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/textcsc/textcsc.sty 2022-09-12 20:27:35 UTC (rev 64365)
@@ -0,0 +1,59 @@
+\def\textcscversionnumber{1.0.0}
+\ProvidesPackage{textcsc}
+[2022/09/10\textcscversionnumber\
+ Command for caps-to-small-caps-text]
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% 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 Elijah Z Granet
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Warning that you need
+% fontspec
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\RequirePackage{iftex}
+\ifPDFTeX {
+ \PackageError{swungdash}
+ {You are using pdfTeX but this package only works
+ \MessageBreak with XeTeX or LuaTeX}{}
+ }
+\fi
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Dependencies
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\RequirePackage{fontspec}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% the switch
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newcommand{\cscshape}{\addfontfeature{RawFeature={+c2sc,+smcp}}}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% the macro
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newcommand{\textcsc}[1]{{\cscshape%
+#1%
+}}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% all done
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/tex/latex/textcsc/textcsc.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 2022-09-12 20:26:14 UTC (rev 64364)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2022-09-12 20:27:35 UTC (rev 64365)
@@ -784,7 +784,7 @@
texliveonfly texloganalyser texlogfilter texlogos texlogsieve
texmate texments texnegar
texonly texosquery texplate texpower texproposal texshade texsurgery
- textualicomma texvc
+ textcsc textualicomma texvc
textcase textfit textglos textgreek textmerg textopo textpath textpos
tfrupee thaienum thaispec thalie
theanodidot theanomodern theanooldstyle theatre theoremref thermodynamics
Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2022-09-12 20:26:14 UTC (rev 64364)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2022-09-12 20:27:35 UTC (rev 64365)
@@ -1296,6 +1296,7 @@
depend texpower
depend texshade
depend texsurgery
+depend textcsc
depend textfit
depend textmerg
depend textpos
Added: trunk/Master/tlpkg/tlpsrc/textcsc.tlpsrc
===================================================================
More information about the tex-live-commits
mailing list.