| 1 |
%% |
| 2 |
%% This is file `subeqnarray-sample.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% subeqnarray.dtx (with options: `sample') |
| 8 |
%% |
| 9 |
%% Copyright (C) 1999-2026 Johannes Braams. All rights reserved. |
| 10 |
%% |
| 11 |
%% This file was generated from file(s) of the subeqnarray package. |
| 12 |
%% ---------------------------------------------------------------- |
| 13 |
%% |
| 14 |
%% It may be distributed and/or modified under the |
| 15 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 16 |
%% of this license or (at your option) any later version. |
| 17 |
%% The latest version of this license is in |
| 18 |
%% http://www.latex-project.org/lppl.txt |
| 19 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 20 |
%% version 2008 or later. |
| 21 |
%% |
| 22 |
%% This work has the LPPL maintenance status "maintained". |
| 23 |
%% |
| 24 |
%% The Current Maintainer of this work is Johannes Braams. |
| 25 |
%% |
| 26 |
%% This file may only be distributed together with a copy of the |
| 27 |
%% subeqnarray package. You may however distribute the subeqnarray |
| 28 |
%% package without such generated files. |
| 29 |
%% |
| 30 |
%% The list of all files belonging to the subeqnarray package is |
| 31 |
%% given in the file `manifest.txt. |
| 32 |
%% |
| 33 |
%% The list of derived (unpacked) files belonging to the distribution |
| 34 |
%% and covered by LPPL is defined by the unpacking scripts (with |
| 35 |
%% extension .ins) which are part of the distribution. |
| 36 |
%% |
| 37 |
%% Error reports please to: J. Braams |
| 38 |
%% TeXniek |
| 39 |
%% Email: texniek at texniek.nl |
| 40 |
\ProvidesFile{subeqnarray-sample.tex} |
| 41 |
[2026/01/02 v2.1f subeqnarray package] |
| 42 |
\documentclass[fleqn]{article} |
| 43 |
\usepackage{subeqnarray} |
| 44 |
\begin{document} |
| 45 |
\title{Sample subeqnarray} |
| 46 |
\author{Johannes L. Braams} |
| 47 |
\date{\today} |
| 48 |
\maketitle |
| 49 |
|
| 50 |
This document shows an example of the use of the \emph{subeqnarray} |
| 51 |
environment. Here is one: |
| 52 |
\begin{subeqnarray} |
| 53 |
\label{eqw} |
| 54 |
\slabel{eq0} |
| 55 |
x & = & a \times b \\ |
| 56 |
\slabel{eq1} |
| 57 |
& = & z + t\\ |
| 58 |
\slabel{eq2} |
| 59 |
& = & z + t |
| 60 |
\end{subeqnarray} |
| 61 |
The first equation is number~\ref{eq0}, the last is~\ref{eq2}. The |
| 62 |
equation as a whole can be referred to as equation~\ref{eqw}. |
| 63 |
|
| 64 |
To show that equation numbers behave normally, here's an |
| 65 |
\emph{eqnarray} environment. |
| 66 |
\begin{eqnarray} |
| 67 |
\label{eq10} |
| 68 |
x & = & a \times b \\ |
| 69 |
\label{eq11} |
| 70 |
& = & z + t\\ |
| 71 |
\label{eq12} |
| 72 |
& = & z + t |
| 73 |
\end{eqnarray} |
| 74 |
|
| 75 |
These are equations~\ref{eq10},~\ref{eq11} and~\ref{eq12}. |
| 76 |
\end{document} |
| 77 |
\endinput |
| 78 |
%% |
| 79 |
%% End of file `subeqnarray-sample.tex'. |