%%%% Recipe to use tamari-diagram*.tex in a paper.

%% Prepare input files consisting of the lines of tamari-diagram*.tex
%% between "input file begin/end".  Like this (in this directory):

%%% sed -n '/input file begin/,/input file end/p' tamari-diagram.tex > input/tamari-diagram.tex
%%% sed -n '/input file begin/,/input file end/p' tamari-diagram-h.tex > input/tamari-diagram-h.tex

%% That's it.  Run pdflatex on this file.

%%%%

\documentclass{amsart}
% \documentclass{article} % works as well

\usepackage{input/tamari-diagram} % tamari-diagram.sty

\pagestyle{plain} % page numbers at the bottom

\begin{document}

\noindent West\hfill North\hfill East % normal text

\bigskip %
\centerline{\vbox{\input{input/tamari-diagram}}} % tamari-diagram.tex
\bigskip %

\noindent West\hfill South\hfill East % normal text

\newpage

\noindent West\hfill North\hfill East % normal text

\bigskip %
\centerline{\vbox{\input{input/tamari-diagram-h}}} % tamari-diagram-h.tex
\bigskip %

\noindent West\hfill South\hfill East % normal text

\end{document}
