Hi, I'm trying to use Algorithmic module with floating and line numbering.
In the first attempt, I get the "code" with lines numbered. But isn't
floating.
In the second one, line numbers disappear inside the floating block.
Two questions:
* How can I get line numbers inside floating block?
* In algorithms, I think it has more sense to number only "logical"
lines. The second state is so long that wraps into another line. Is it
possible to number only logical lines?
This is my little test file:
\starttext
\usemodule[algorithmic]
%% First Attempt
\startalgorithmic[numbering=yes]
\STATE a = 2
\STATE this line is really very large. Very very very very very very
very very very very very large
\STATE this is the real third state.
\stopalgorithmic
\definefloat[algorithm][algorithms]
\setupfloat[algorithm][
background=color,
backgroundcolor=gray,
]
%% Second Attempt
\startplacealgorithm[title={Floating algorithm}]
\startalgorithmic[numbering=yes]
\STATE a = 2
\STATE this line is really very large. Very very very very very very
very very very very very large
\STATE this is the real third state.
\stopalgorithmic
\stopplacealgorithm
\stoptext
Thanks.
jmmora.