Skip to content

Commit 8523c70

Browse files
author
Scinawa
committed
Add trick to TEMPLATE in algpseudocode to remove numeration from theorems
1 parent 469b777 commit 8523c70

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

algpseudocode/TEMPLATE.tex

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,24 @@
77

88
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
99

10+
\makeatletter
11+
\renewcommand{\fnum@algorithm}{\fname@algorithm}
12+
\makeatother
1013

1114
\begin{document}
12-
\pagestyle{empty}
15+
\pagestyle{empty}
1316

1417
\begin{algorithm}[ht]
15-
\caption{}
18+
\caption{}
1619
\begin{algorithmic}[1]
1720

18-
\Require
21+
\Require
1922
\Ensure
2023
\vspace{10pt}
21-
\Statex
24+
\Statex
25+
\State
26+
2227
\State
23-
24-
\State
2528
\end{algorithmic}
2629
\end{algorithm}
2730

0 commit comments

Comments
 (0)