diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/subtext/subtext.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/subtext/subtext.tex | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/subtext/subtext.tex b/Master/texmf-dist/doc/latex/subtext/subtext.tex new file mode 100644 index 00000000000..96a29b47d9b --- /dev/null +++ b/Master/texmf-dist/doc/latex/subtext/subtext.tex @@ -0,0 +1,105 @@ +%% subtext.tex Look further down for brief description +%% +%% Copyright (C) 2019 Palle Jorgensen +%% +%% This program is free software: you can redistribute it and/or +%% modify it under the terms of the GNU General Public License as +%% published by the Free Software Foundation, either version 3 of the +%% License, or (at your option) any later version. +%% +%% This program is distributed in the hope that it will be useful, but +%% WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +%% General Public License for more details. +%% +%% 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} +\usepackage[T1]{fontenc} % +\usepackage[utf8]{inputenc} % +\usepackage{babel} % +\usepackage{tgpagella} % +\usepackage[scaled]{luximono} % +\usepackage{classico} % +\usepackage{listings} % +\usepackage{subtext} +\author{Palle J\o rgensen} % +\title{The \texttt{subtext} package} % +\lstset{language={[latex]{tex}}} + +\begin{document} +\maketitle + +\section{Usage} +\label{sec:usage} + +\subsection{Loading the package} +\label{sec:loading-package} + +To load the package type +\begin{lstlisting} +\usepackage{subtext} +\end{lstlisting} +into your preamble. + +\subsection{Using the package} +\label{sec:using-package} + +In math mode use the \lstinline|_| character as usual to get the usual +result. +\begin{lstlisting} +\begin{equation} + \label{eq:1} + a_{long text} +\end{equation} +\end{lstlisting} +yielding +\begin{equation} + \label{eq:1} + a_{long text} +\end{equation} +Replace curly braces with square brackets to get the subscript typeset +using \texttt{amstext}'s \lstinline|\text| command. +\begin{lstlisting} +\begin{equation} + \label{eq:2} + a_[long text] +\end{equation} +\end{lstlisting} +yielding +\begin{equation} + \label{eq:2} + a_[long text] +\end{equation} +That's all! +\clearpage +\section{Source of subtext.sty} +\label{sec:source-subtext.sty} + +\lstinputlisting{subtext.sty} + +\clearpage +\section{License} + +The license of \texttt{subtext.sty} and related files is GNU GENERAL +PUBLIC LICENSE. + +\subsection*{GNU GENERAL PUBLIC LICENSE} +\label{sec:gnu-general-public} + +Version 3, 29 June 2007 + +Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> +Everyone is permitted to copy and distribute verbatim copies of this +license document, but changing it is not allowed. +<https://www.gnu.org/licenses/why-not-lgpl.html>. + +\emph{View COPYING for the full license.} + +\end{document} + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% End: |