diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlrwcp-sample.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlrwcp-sample.tex | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlrwcp-sample.tex b/Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlrwcp-sample.tex index e64d2fcaf85..1e19ddd4369 100644 --- a/Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlrwcp-sample.tex +++ b/Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlrwcp-sample.tex @@ -552,13 +552,15 @@ both have \verb|[c]| as the second optional argument. Enumerated textual algorithms can be displayed using the \texttt{algorithm} environment. Within this environment, use -\verb|\caption| to set the caption and you can use an -\texttt{enumerate} or nested \texttt{enumerate} environments. +use an \texttt{enumerate} or nested \texttt{enumerate} environments. For example, see \algorithmref{alg:gauss}. Note that algorithms float like figures and tables. \begin{algorithm}[htbp] -\caption{The Gauss-Seidel Algorithm}\label{alg:gauss} +\floatconts +{alg:gauss}% label +{\caption{The Gauss-Seidel Algorithm}} +{% contents \begin{enumerate} \item For $k=1$ to maximum number of iterations \begin{enumerate} @@ -572,8 +574,12 @@ float like figures and tables. \end{enumerate} \end{enumerate} \end{enumerate} +} \end{algorithm} +You can use \verb|\caption| and \verb|\label| without using +\verb|\floatconts| (as in \algorithmref{alg:moore}). + If you'd rather have the same numbering throughout the algorithm but still want the convenient indentation of nested \texttt{enumerate} environments, you can use the |