Skip to content

Commit

Permalink
Use algstore algrestore to split large alg block
Browse files Browse the repository at this point in the history
  • Loading branch information
at15 authored and weijianwen committed Aug 25, 2016
1 parent 84482b7 commit 7ebee9f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tex/example.tex
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,13 @@ \section{用algorithm和algorithmicx宏包插入算法描述}
\State $result \gets result + (middle - i)$
\EndIf
\EndWhile
\algstore{MergeSort}
\end{algorithmic}
\end{algorithm}

\begin{algorithm}
\begin{algorithmic}[1]
\algrestore{MergeSort}
\While{$i<middle$}
\State $B[k++] \gets Array[i++]$
\EndWhile
Expand Down

0 comments on commit 7ebee9f

Please sign in to comment.