I would like to have non floating entities but with caption
RIght now
[[[language=smalltalk|caption=Declaring that ==CrossMorph== will react to mouse clicks|label=scr:mouseEvent CrossMorph >> handlesMouseDown: anEvent ^ true ]]]
or [[[language=smalltalk|caption=Declaring that ==CrossMorph== will react to mouse clicks CrossMorph >> handlesMouseDown: anEvent ^ true ]]]
create a floating structure. I would like that the second one is not floating but still have a caption or that we mention it explicitly.
May be this is not possible but this would be super cool.
S.
Damien;s answer de mémoire non, parce que c'est le fait de mettre une caption (ou un label, je sais plus) qui rend le listing flottant
The actual logic currently is that either a label or a caption make the listing float. That's implemented in the Pillar output. On the SBAbook side float is an independent parameter from the other two.
Now not all combinations make sense, and not all those that do are properly supported by SBAbook. (e.g. you can make floating listings with no number, and listings with a number that does not appear on the page, but does appear in the table of listings… and to fix that properly doesn't feel trivial.
IMHO an acceptable and free workaround is to include your caption as the method comment, unless what you really want is that this appears in the table of listings.