\documentclass{article}

\usepackage{ifthen}

\input{flatex}   % include all the FLaTeX commands

\begin{document}

% The below figure in the \LaTeX document will be filled in by 
% defining a number of commands.  

\resetsteps      % Reset all the commands to create a blank worksheet  
 
% I like defining these kinds of commands to make most of the source
% as generic as possible
 
\newcommand{\ArgOne}{L}
\newcommand{\ArgTwo}{B}

% Fill in the operation to be performed

\renewcommand{\operation}{ \ArgTwo \becomes \ArgOne^{-1} \ArgTwo }

% Typically, in a document, an algorithm will appear in a separate figure.
% For this we use the \LaTeX figure environment.  The optional arguments
% [tbp] indicate that the figure should be placed at the first of
% the top of a page, the bottom of a page, or on a page by itself, in
% that order.

\begin{figure}[tbp]

\begin{center}     % center the algorithm on the page

\worksheet         % this command generates the worksheet using the
                   % commands that were defined between the \resetsteps
                   % and the \worksheet command
\end{center}

% The following command creates a caption for the figure.

\caption{ Worksheet (incomplete) for deriving unblocked algorithm for
$ B \becomes L^{-1} B $ (Variant 2).}


% The following command creates a label so that the figure can
% be referenced by its number by inserting 
%  \ref{Trsm_llnn:annotated_unb_var2} in the \LaTeX source

\label{Trsm_llnn:annotated_unb_var2}

\end{figure}

\end{document}