I write a document that discusses syntactic differences between two languages (let's say, TeX and Markdown). Going through various topics, the text talks some time about one language and then about the other language.
What I want to do is to place marks in the margin to show which regions discuss TeX and which discuss Markdown. For example:
Here are some paragraphs \
discussing features | TeX
|
of TeX. /
And the text starting here
| Markdown
discusses Markdown /
Since I have quite some region pairs like this, I would like to generate them with environment, like so:
\starttexdiscussion
Here are some paragraphs discussing features
of TeX.
\stoptexdiscussion
\startmarkdowndiscussion
And the text starting here
discusses Markdown
\stopmarkdowndiscussion
Is it possible to define environments that do that for me? How would I adjust position and length of the margin content to match the main content? How could I handle page breaks?
nofmultipars? I did a quick search in the MetaFun manual, but didn't find anything. – flyx Aug 18 '20 at 09:16anch-bck.mkviandmp-abck.mpiv. Usually I learn about the existence of these things by reading the mailing list. – Henri Menke Aug 18 '20 at 09:48nofmultiparsapparently means number of multipars, that makes sense. I assumemultiparsand this number is set by using the graphic as text background. It seems to be a list of content split by page break. – flyx Aug 18 '20 at 10:09nofmultiparsis the number ofmultiparswhere eachmultiparis some region where ConTeXt decides to spit the input (page breaks, column breaks, around floats). – Henri Menke Aug 18 '20 at 10:50textbackgroundis relatively easy but I have no idea how to get changeable text in there, becausetextbackgroundare handled in a second pass. http://dpaste.com/836NS4UQG (expires in 10 days) – Henri Menke Aug 18 '20 at 10:51