Am 07.01.26 um 11:36 schrieb Hans Hagen via ntg-context:
- a new parinject feature, that Hraban likely will abuse, see https:// tex.stackexchange.com/a/758011/52406 for the rationale and an explanation / example by Mikael.

I finally tried it.
Unfortunately, with my buffer setup for code examples, the inserts are always in the last line:

"""
\starttext

\startbuffer[ParInsert]
\setuppapersize[A7,landscape]
\setuplayout[backspace=0mm,width=1pw,topspace=0mm,height=1ph,header=0mm,footer=0mm]
\setupbodyfont[10pt]
\setupexternalfigures[location=default]
\starttext

%% ex:start
\samplefile{lorem}%
\space\rightparinsert[color=darkred]{Insert!}
\space\leftparinsert[lines=3]{%
\externalfigure[cow][height=3lh,location=top]}%
%% ex:stop

\stoptext
\stopbuffer

\typebuffer[ParInsert][option=TEX,range={ex:start,ex:stop},numbering=file]

\framedtext[frame=on, width=1tw, offset=1dk]{%
\typesetbuffer[ParInsert][page=1]}

\stoptext
"""


Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to