Skip to content

Commit

Permalink
Merge branch 'algorithm_setting' into copernicus
Browse files Browse the repository at this point in the history
  • Loading branch information
nuest committed May 28, 2018
2 parents ed2bcc2 + c7ba015 commit 3d116e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
%$header-includes$
%$endfor$

$if(algorithms)$
\usepackage{algorithmic}
\usepackage{algorithm}
$endif$

$if(highlighting-macros)$
$highlighting-macros$
$endif$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ running:
competinginterests: |
The authors declare no competing interests.
# OPTIONAL:
algorithms: true
# See https://publications.copernicus.org/for_authors/licence_and_copyright.html, normally used for transferring the copyright, if needed.
copyrightstatement: |
The author's copyright for this publication is transferred to institution/company.
Expand Down Expand Up @@ -267,7 +268,9 @@ $$

## ALGORITHM

<!-- requires you to have either algorithm.sty or algorithmic.sty installed, the former is be dedault added to the header - see header. -->
If you want to use algorithms, you can either enable the required packages in the header (the default, see `algorithms: true`), or make sure yourself that the \LaTeX packages `algorithms` and `algorithmicx` are installed so that `algorithm.sty` respectively `algorithmic.sty` can be loaded by the Copernicus template.
Copernicus staff will remove all undesirable packages from your LaTeX source code, so please stick to using the header option, which only adds the two acceptable packages.

\begin{algorithm}
\caption{Algorithm Caption}
\label{a1}
Expand Down

0 comments on commit 3d116e5

Please sign in to comment.