diff options
author | Karl Berry <karl@freefriends.org> | 2010-12-02 01:14:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-12-02 01:14:48 +0000 |
commit | cf902eaabacb3ba258a35e8e461a2315c35d59e8 (patch) | |
tree | fad1e3dd42075ecd697cf3949196e447d509b359 /Master/texmf-dist/doc/latex/jmlr/sample-papers | |
parent | 0f2a338755c61f4f03c87894c1fb0fc55e248f85 (diff) |
jmlr 1.09 (1dec10)
git-svn-id: svn://tug.org/texlive/trunk@20630 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/jmlr/sample-papers')
-rw-r--r-- | Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlr-sample.tex | 23 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/jmlr/sample-papers/jmlrwcp-sample.tex | 9 |
2 files changed, 25 insertions, 7 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$\; 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 107d12061c3..ca4f1a5e392 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 @@ -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: @@ -585,8 +586,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$\; |