%%
%% This is file `subeqn-sample.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% subeqn.dtx  (with options: `sample')
%% This is a generated file.
%% 
%% Copyright (C) 1999-2026 Johannes Braams. All rights reserved.
%% 
%% This file was generated from file(s) of the subeqn package.
%% -----------------------------------------------------------
%% 
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3с
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.3с or later is part of all distributions of LaTeX
%% version 2008 or later.
%% 
%% This work has the LPPL maintenance status "maintained".
%% 
%% The Current Maintainer of this work is Johannes Braams.
%% 
%% This file may only be distributed together with a copy of the
%% subeqn package. You may however distribute the subeqn package
%% without such generated files.
%% 
%% The list of all files belonging to the subeqn package is
%% given in the file `MANIFEST'.
%% 
%% The list of derived (unpacked) files belonging to the distribution
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension .ins) which are part of the distribution.
\ProvidesFile{subeqn-sample.tex}
              [2026/01/02 v2.0d subnumbering of equations]
\documentclass{article}
\usepackage{subeqn}

\begin{document}
\title{Sample sub-equations}
\author{Johannes L. Braams}
\date{\today}
\maketitle

\noindent
This is an example of the use of the \texttt{subeqations}
package. First we have a normal \textsf{equation} environment.
\begin{equation}
  \label{a}
  a^2 + b^2 = c^2
\end{equation}
Now we start sub-numbering.
\begin{subequations}
  \label{b}
  \begin{equation}
    \label{b1}
    d^2 + e^2 = f^2
  \end{equation}
  We can refer to equation~\ref{a}, \ref{b} and~\ref{b1}.
  \begin{equation}
    \label{b2}
    g^2 + h^2 = i^2
  \end{equation}
  This was equation~\ref{b2}.
  \begin{eqnarray}
    \label{c}
    x &=& y+z\label{c1}\\
    u &=& v+w\label{c2}
  \end{eqnarray}
  This was expression~\ref{c}, consisting of parts~\ref{c1}
  and~\ref{c2}.
\end{subequations}

\noindent
Now lets start a \textsf{subeqnarray} environment.
\begin{subeqnarray}
  \label{d}
  x &=& y+z\label{d1}\\
  u &=& v+w\label{d2}
\end{subeqnarray}
This was equation~\ref{d}, with parts~\ref{d1} and~\ref{d2}.
\end{document}
\endinput
%%
%% End of file `subeqn-sample.tex'.
