summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/subtext/subtext.tex
blob: 96a29b47d9bd2f3ec721d19f4e4dfc5d287379ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
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: