summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlr-sample.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlr-sample.tex')
-rw-r--r--Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlr-sample.tex23
1 files changed, 18 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlr-sample.tex b/Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlr-sample.tex
index 107883ec906..9cccc51024a 100644
--- a/Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlr-sample.tex
+++ b/Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlr-sample.tex
@@ -1,5 +1,5 @@
%\documentclass[gray]{jmlr} % test grayscale version
-\documentclass{jmlr}
+\documentclass[tablecaptiontop]{jmlr}
% The following packages will be automatically loaded:
% amsmath, amssymb, natbib, graphicx, url, algorithm2e
@@ -14,6 +14,7 @@
% The siunitx package is used by this sample document
% to align numbers in a column by their decimal point.
% Remove the next line if you don't require it.
+%\usepackage[load-configurations=version-1]{siunitx} % newer version
\usepackage{siunitx}
% The following command is just for this sample document:
@@ -535,7 +536,10 @@ 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}%
+ {\caption{The Gauss-Seidel Algorithm}}%
+{%
\begin{enumerate}
\item For $k=1$ to maximum number of iterations
\begin{enumerate}
@@ -549,6 +553,7 @@ float like figures and tables.
\end{enumerate}
\end{enumerate}
\end{enumerate}
+}%
\end{algorithm}
If you'd rather have the same numbering throughout the algorithm
@@ -558,7 +563,10 @@ but still want the convenient indentation of nested
class. For example, see \algorithmref{alg:moore}.
\begin{algorithm}
-\caption{Moore's Shortest Path}\label{alg:moore}
+\floatconts
+ {alg:moore}%
+ {\caption{Moore's Shortest Path}}%
+{%
Given a connected graph $G$, where the length of each edge is 1:
\begin{enumerate*}
\item Set the label of vertex $s$ to 0
@@ -577,6 +585,7 @@ Given a connected graph $G$, where the length of each edge is 1:
\end{enumerate*}
\end{enumerate*}
\end{enumerate*}
+}%
\end{algorithm}
Pseudo code can be displayed using the \texttt{algorithm2e}
@@ -589,8 +598,12 @@ For an example, see \algorithmref{alg:net}.
\begin{algorithm2e}
\caption{Computing Net Activation}
\label{alg:net}
-\dontprintsemicolon
-\linesnumbered
+% older versions of algorithm2e have \dontprintsemicolon instead
+% of the following:
+%\DontPrintSemicolon
+% older versions of algorithm2e have \linesnumbered instead of the
+% following:
+%\LinesNumbered
\KwIn{$x_1, \ldots, x_n, w_1, \ldots, w_n$}
\KwOut{$y$, the net activation}
$y\leftarrow 0$\;