You can’t use them in floats unless you add a frame around the content, e.g.24. Oktober 2016 um 14:37Hi, 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?
\startplacealgorithm
\startframedtext
\startlinenumbering
...
\stoplinenumbering
\stopframedtext
\stopplacealgorithm
Not with linenumbering, what you need is counter which is inserted at the begin of each line.* 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?
\definelabel[algorithmicline][text=,alternative=inleft]
\definelines[algorithmic][command=\algorithmicline]
\setuplayout[width=4cm]
\showframe[text][text]
\starttext
\startalgorithmic
text
text text text text text text text text text text text text
text
\stopalgorithmic
\stoptext
Wolfgang
____________________________________________________________ _______________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
____________________________________________________________ _______________________