summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlrwcp-sample.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-08-01 21:39:04 +0000
committerKarl Berry <karl@freefriends.org>2017-08-01 21:39:04 +0000
commit569c59914fed1f743994ef0b27bd15402aa6f603 (patch)
treed063155bafd805195f5db289fbed8a4acd15f382 /Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlrwcp-sample.tex
parent9a9c1b6e2502a6a9c90e739c411de26012b9db2c (diff)
jmlr (1aug17)
git-svn-id: svn://tug.org/texlive/trunk@44935 c570f23f-e606-0410-a88d-b1316a301751
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.tex12
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