diff options
author | Karl Berry <karl@freefriends.org> | 2019-05-30 20:57:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-05-30 20:57:40 +0000 |
commit | b9d12717f53791c167188b582d06b829d8e64030 (patch) | |
tree | 7d2573ac44364e14d1359a0a3eed4ad6a8e45c9b /Master/texmf-dist/doc/latex/subtext | |
parent | 184789df2ea41c7eef89f9cf529b1dcea369b237 (diff) |
subtext (30may19)
git-svn-id: svn://tug.org/texlive/trunk@51273 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/subtext')
-rw-r--r-- | Master/texmf-dist/doc/latex/subtext/subtext.pdf | bin | 41658 -> 37763 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/subtext/subtext.tex | 37 |
2 files changed, 29 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/subtext/subtext.pdf b/Master/texmf-dist/doc/latex/subtext/subtext.pdf Binary files differindex 1e18ce55f69..78998b86323 100644 --- a/Master/texmf-dist/doc/latex/subtext/subtext.pdf +++ b/Master/texmf-dist/doc/latex/subtext/subtext.pdf diff --git a/Master/texmf-dist/doc/latex/subtext/subtext.tex b/Master/texmf-dist/doc/latex/subtext/subtext.tex index 96a29b47d9b..9afc43e0c05 100644 --- a/Master/texmf-dist/doc/latex/subtext/subtext.tex +++ b/Master/texmf-dist/doc/latex/subtext/subtext.tex @@ -15,7 +15,7 @@ %% You should have received a copy of the GNU General Public License %% along with this program. If not, see %% <https://www.gnu.org/licenses/>. -\documentclass[a4paper,british,11pt,fleqn]{scrartcl} +\documentclass[a4paper,british,11pt,fleqn,parskip=half]{scrartcl} \usepackage[T1]{fontenc} % \usepackage[utf8]{inputenc} % \usepackage{babel} % @@ -23,10 +23,12 @@ \usepackage[scaled]{luximono} % \usepackage{classico} % \usepackage{listings} % -\usepackage{subtext} +\usepackage[upright]{subtext} \author{Palle J\o rgensen} % \title{The \texttt{subtext} package} % +\subtitle{Version 1.1} \lstset{language={[latex]{tex}}} +\sloppy \begin{document} \maketitle @@ -60,7 +62,7 @@ yielding a_{long text} \end{equation} Replace curly braces with square brackets to get the subscript typeset -using \texttt{amstext}'s \lstinline|\text| command. +using \texttt{amstext}'s \verb|\text| command. \begin{lstlisting} \begin{equation} \label{eq:2} @@ -73,13 +75,25 @@ yielding a_[long text] \end{equation} That's all! -\clearpage -\section{Source of subtext.sty} -\label{sec:source-subtext.sty} -\lstinputlisting{subtext.sty} +\subsection{Package options} +\label{sec:package-options} + +Due to the behaviour of the \texttt{amstext} \verb|\text| command, the +typeface of the text within the brackets is the same as the +surrounding text. This may not always be desirable -- I myself often +find it somewhat annoying. Thus there are two package options +\begin{description} +\setkomafont{descriptionlabel}{\ttfamily} +\item[upright] Makes the text within the brackets be in upright shape. + The font family (sans serif, serif or others) and the series (e.g. + boldface) is the same as the surrounding text. This is the authors + favourite. + +\item[normal] Makes the text within the brackets be in the documents + \verb|\normalfont| style. +\end{description} -\clearpage \section{License} The license of \texttt{subtext.sty} and related files is GNU GENERAL @@ -97,6 +111,13 @@ license document, but changing it is not allowed. \emph{View COPYING for the full license.} + +\clearpage +\section{Source of subtext.sty} +\label{sec:source-subtext.sty} + +\lstinputlisting[firstline=19]{subtext.sty} + \end{document} %%% Local Variables: |