Search found 2 matches
- Thu Jul 26, 2012 11:13 am
- Forum: Graphics, Figures & Tables
- Topic: Partially colored algorithmic environment
- Replies: 6
- Views: 19774
Partially colored algorithmic environment
Just for reference, a solution has been posted here.
- Wed Jul 25, 2012 6:43 pm
- Forum: Graphics, Figures & Tables
- Topic: Partially colored algorithmic environment
- Replies: 6
- Views: 19774
Partially colored algorithmic environment
I am also looking for a solution to highlight some lines in an algorithm. The solution posted by Juanjo works well, but it seems to fail in some cases. For instance, the following works:
\begin{algorithmic}[1]
\FORALL{$elem$ in $collection$}
\STATE $foo(elem)$
\hspace*{-\fboxsep}\colorbox{green ...
\begin{algorithmic}[1]
\FORALL{$elem$ in $collection$}
\STATE $foo(elem)$
\hspace*{-\fboxsep}\colorbox{green ...