summaryrefslogtreecommitdiff
path: root/macros/unicodetex/latex/textcsc
diff options
context:
space:
mode:
Diffstat (limited to 'macros/unicodetex/latex/textcsc')
-rw-r--r--macros/unicodetex/latex/textcsc/README5
-rw-r--r--macros/unicodetex/latex/textcsc/textcsc-documentation.pdfbin49161 -> 52368 bytes
-rw-r--r--macros/unicodetex/latex/textcsc/textcsc-documentation.tex46
-rw-r--r--macros/unicodetex/latex/textcsc/textcsc.pdfbin2827 -> 0 bytes
-rw-r--r--macros/unicodetex/latex/textcsc/textcsc.sty11
5 files changed, 49 insertions, 13 deletions
diff --git a/macros/unicodetex/latex/textcsc/README b/macros/unicodetex/latex/textcsc/README
index 5ff7cb77ec..908b390cf9 100644
--- a/macros/unicodetex/latex/textcsc/README
+++ b/macros/unicodetex/latex/textcsc/README
@@ -1,16 +1,17 @@
textcsc - caps-to-small-caps command
-version: 1.1.0
+version: 1.2.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.
+LaTeX Project Public License (LPPL), version 1.3c or later.
For suggestions, feature requests, and bug reports, please use the project's
GitHub site: https://github.com/ezgranet/textcsc
Version history:
+10/05/2023 added support for only caps to small caps
24/04/2023 fixed letterspacing issue
10/09/2022 Package creation \ No newline at end of file
diff --git a/macros/unicodetex/latex/textcsc/textcsc-documentation.pdf b/macros/unicodetex/latex/textcsc/textcsc-documentation.pdf
index e18bc2b423..a054e8b385 100644
--- a/macros/unicodetex/latex/textcsc/textcsc-documentation.pdf
+++ b/macros/unicodetex/latex/textcsc/textcsc-documentation.pdf
Binary files differ
diff --git a/macros/unicodetex/latex/textcsc/textcsc-documentation.tex b/macros/unicodetex/latex/textcsc/textcsc-documentation.tex
index 12f1cdd871..cbda0e7f18 100644
--- a/macros/unicodetex/latex/textcsc/textcsc-documentation.tex
+++ b/macros/unicodetex/latex/textcsc/textcsc-documentation.tex
@@ -85,10 +85,36 @@ Produces:
The \textcsc{CIA} and the \textcsc{FBI}
\end{quote}
+
+If you want to convert only capitals to small capitals (for example, because your style guide, like that of \textit{The Economist} prescribes mixed small-caps and lowercase abbreviations), then you can use the macro \verb!\csconly{#1}! or the switch \verb!\csconlyshape! For example, the commands:
+\begin{minted}[
+framesep=2mm,
+baselinestretch=1.2,
+bgcolor=LightGray,
+fontsize=\footnotesize,
+breaklines,
+firstnumber=last
+]
+{latex}
+She earned first an \csconly{MSc} and then a \csconlyshape PhD
+\end{minted}
+
+Produce:
+
+\begin{quote}
+
+She earned first an \csconly{MSc} and then a \csconlyshape PhD
+\end{quote}
+
+
+\normalfont
+
+
+
\section{Development}
-Bugs, feature requests, \textit{etc}, should be submitted to the project's official Githup page: (\url{github.com/ezgranet/textcsc}).
+Bugs, feature requests, \textit{etc}, should be submitted to the project's official Github 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.
+ 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}[
@@ -103,9 +129,9 @@ firstnumber=last
]
{latex}
-\def\textcscversionnumber{1.1}
-\ProvidesPackage{textcsc-dev}
-[2023/04/24\textcscversionnumber\
+\def\textcscversionnumber{1.2}
+\ProvidesPackage{textcsc}
+[2023/05/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.3c
@@ -156,20 +182,26 @@ firstnumber=last
\newcommand{\textcsc}[1]{{\cscshape%
#1%
}}
-
+\newcommand{\csconlyshape}{\addfontfeature{RawFeature={+c2sc}}}
+\newcommand{\csconly}[1]{{\csconlyshape%
+#1%
+}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% all done
%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{minted}
-
\section{Version History}
+\subsection{\texttt{1.2.0}}
+\ttfamily 24 April 2023: added option for only caps to small caps text.
\subsection{\texttt{1.1.0}}
+
+
\ttfamily 24 April 2023: Update to fix issue with LetterSpace property not carrying over.
diff --git a/macros/unicodetex/latex/textcsc/textcsc.pdf b/macros/unicodetex/latex/textcsc/textcsc.pdf
deleted file mode 100644
index b01d83f92b..0000000000
--- a/macros/unicodetex/latex/textcsc/textcsc.pdf
+++ /dev/null
Binary files differ
diff --git a/macros/unicodetex/latex/textcsc/textcsc.sty b/macros/unicodetex/latex/textcsc/textcsc.sty
index 63c9e27680..cd99a8641c 100644
--- a/macros/unicodetex/latex/textcsc/textcsc.sty
+++ b/macros/unicodetex/latex/textcsc/textcsc.sty
@@ -1,6 +1,6 @@
-\def\textcscversionnumber{1.1}
-\ProvidesPackage{textcsc-dev}
-[2023/04/24\textcscversionnumber\
+\def\textcscversionnumber{1.2}
+\ProvidesPackage{textcsc}
+[2023/05/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.3c
@@ -51,7 +51,10 @@
\newcommand{\textcsc}[1]{{\cscshape%
#1%
}}
-
+\newcommand{\csconlyshape}{\addfontfeature{RawFeature={+c2sc}}}
+\newcommand{\csconly}[1]{{\csconlyshape%
+#1%
+}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% all done