Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

New answers tagged

3

From the Grid trickery section of the manual: \definefloat[inlinefigure][inlinefigures][figure] \setupcaption[inlinefigure][inbetween=] \setupfloat[inlinefigure][default={here,none}] \def\inlinespectralexternalfigure[#1]{% \placeinlinefigure{}{% \externalfigure[#1][width=\textwidth,lines=1,grid=yes] } } Produces the following inline images with ...


1

Not an answer to the question, but rather an answer to your comment asking for a workaround: Okay, I will ask on the mailing list. But still is there any way at this moment to avoid the renumbering? Not recommending to use this even as a workaround but perhaps something similar? \defineframedtext [framedcode] [strut=yes, offset=2mm, width=7cm,...


3

Although Wolfgang answered the crux of the question by explaining how page space is counted, it took me a couple more Google searches to figure out how to actually use the noflines register in an if statement. The following code seems to produce what I was looking for: \setuppapersize[A5] \define[1]\FillPage{ \par \getnoflines{\the\dimexpr\pagegoal-\...


4

The pagechecker mechanism The \testpage command uses a mechanism called pagechecker to compute the remaining space on the page. You can use the mechanism to place content on the page with the inbetween key. With the lines key you specifiy how many lines should be remain on the page to place the content. The result of the calculated number of lines depend ...


2

Answered by sztruks: I think you could use positional graphics, as defined in Metafun manual chapter 5. EDIT: What I get using positional graphics is not exactly right. I assign an \hpos to the title-subtitle bundle and get its width. Unfortunately, as far as I understand, \startMPpositiongraphic is only calculated after the whole document has been ...


6

The \intertext command adds the normal formula space set with the spacebefore and spaceafter keys from \setupformula. \setupformula [spacebefore=small, spaceafter=none] \starttext \startformula \startmathalignment \NC a \EQ b \NR \intertext{\midaligned{and}} \NC b \EQ c \NR \stopmathalignment \stopformula \stoptext


4

you can use a combination of textbackground and overstrike: \definetextbackground[underline] [location=text, voffset=-2pt,alternative=1,background=,frame=off] \starttext \startunderline Some underlined \overstrike{crossed out} text.\stopunderline \stoptext


Top 50 recent answers are included