
When I run context on the following input %%%%%%%%%% start here %%%%%%%%% \setupexternalfigures[location={local,default}] \starttext \placefigure[left,none,2*hang,] {} {\externalfigure[cow][frame=on,width=1.in]} Bovine creature, black and white, four hooves, blah blah blah blah blah blah blah (blah) blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. \stoptext %%%%%%%%%% end here %%%%%%%%% I see there are 5 lines which "must" be indented to avoid the cow. However, a 6th line is also indented, even though the baseline of the 5th line is "well below" the bottom of the cow (and thus the feet of the cow would not be trampling the text of that 6th line). I played around with the many and various options to \placefigure for a while, but didn't find any way to tell it that I'd like the 6th line to not be indented. I did discover that, in this particular case, if I use "halfline" (which seems to move the cow up around 4 points (I don't understand what "line" 4 pts is half of, but that is another question)), I now get only 4 indented lines, but the cow is now too close to the unindented line below it. In other words, this gave me too few indented lines. (I've gone from too much space to too little space; is this some sort of Goldilocks problem? :-) I see that in this case \starthanging indents the number of lines that I would expect (and that I would like). But (at least reading the wiki) I don't see how to tell \starthanging to put N=2 full lines above the cow. More generally, is there some way to tell \placefigure not to be so generous with the amount of lines it indents with "left" or "right" options? Enough indented lines but not too many? Thanks. Jim

\setupexternalfigures[location={local,default}] \starttext \placefigure[left,none,2*hang,low]% <======= {} {\externalfigure[cow][frame=on,width=1.in]} Bovine creature, black and white, four hooves, blah blah blah blah blah blah blah (blah) blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. \stoptext

On Thu, Mar 13, 2025 at 18:05 (-0000), autumnus wrote:
\setupexternalfigures[location={local,default}] \starttext
\placefigure[left,none,2*hang,low]% <======= {} {\externalfigure[cow][frame=on,width=1.in]} Bovine creature, black and white, four hooves, blah blah blah blah blah blah blah (blah) blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. \stoptext
Autumnus, thanks very much for that, it is just what I needed. Having said that, the wiki entry for "low" says "with left/right: move down" I don't understand how "move down" is at all related to what happens. For example, in this example, after adding ",low" the cow stays right where she was. In the interest of either (a) educating me, or (b) improving the wiki, can anyone offer insight into either (a) how "move down" means "don't indent one more line than is necessary" or (b) what the wiki description should really say? Cheers. Jim

My opinion is that these values are completely inherited from setupalign, so you can observe their differences through the following examples: \starttext\showgrid \framed[height=2\baselineskip]{Thus,} \blank[2*line] \framed[align=high,height=2\baselineskip]{Thus,}\blank[2*line]% Similar to \vbox to 2\baselineskip{something\par\vfill} \framed[align=low,height=2\baselineskip]{Thus,}% % Similar to \vbox to 2\baselineskip{\par\vfill\par something} \stoptext It should be because of the existence of vfill, so it is said "move down". When low used with left/right, it will be aligned down on the current line. When low used with page, it will go down to the current page. Left/Right and so on should be the value of location, which determines the relative position of the floats. autumnus

On Fri, Mar 14, 2025 at 17:16 (-0000), autumnus wrote:
My opinion is that these values are completely inherited from setupalign, so you can observe their differences through the following examples:
\starttext\showgrid \framed[height=2\baselineskip]{Thus,} \blank[2*line] \framed[align=high,height=2\baselineskip]{Thus,}\blank[2*line]% Similar to \vbox to 2\baselineskip{something\par\vfill} \framed[align=low,height=2\baselineskip]{Thus,}% % Similar to \vbox to 2\baselineskip{\par\vfill\par something} \stoptext
It should be because of the existence of vfill, so it is said "move down". When low used with left/right, it will be aligned down on the current line. When low used with page, it will go down to the current page.
Left/Right and so on should be the value of location, which determines the relative position of the floats.
autumnus, thanks for the example, but in my example the cow doesn't move at all when "low" is added (or subsequently removed), which doesn't relate in any obvious-to-me way to how "Thus" is moving up and down in your example. I guess looking at the code for \placefigure would give a definitive answer. Another thing to do for another day. Jim

Maybe you can try to compare the relative distance between the image and the text with “high”. %%% \placefigure[left,high].... \placefigure[left,low].... %%%

On Sun, Mar 16, 2025 at 11:49 (-0000), autumnus wrote:
Maybe you can try to compare the relative distance between the image and the text with “high”.
%%% \placefigure[left,high]....
\placefigure[left,low].... %%%
The cow moves higher with "high" than with "low" or neither. But since the cow doesn't move lower with "low" than with nothing, I am not finding any enlightenment here. To summarize: in my example, without either of "high" or "low" I have one more indented line than is needed to avoid having text too close to the bottom of the picture. Using "low" makes the extra indentation go away (thanks again for that) but does not adjust the position of the cow. Thus my confusion over the specific option "low". Anyway, I have the answer to my original question. So maybe I should accept that I don't understand why the option "low" does what it does here and move along. Cheers. Jim
participants (2)
-
autumnus
-
Jim