Hi,

I want to typeset an "excurses" description that is marked with a leftframe. 
The problem is that it spans about multiple pages and has footnotes.

Here is an MWE:
```
%% -> mwe-framedtext.pdf
\defineframedtext[excursusbg][
        frame=off,
        leftframe=on,
        rulethickness=1mm,
        framecolor=blue,
        toffset=0mm,  % there is an offset anyways
]

%% -> mwe-textbackground.pdf
% \definetextbackground[excursusbg] [
%       location=text,
%       background=color,
%       backgroundcolor=lightblue,
%       frame=on,
%       loffset=10cm,  % seems to have no impact
% ]

\definedescription[excursus][
        text={Excursus:\ },
        alternative=top,
        headstyle=bold,
        margin=1cm,
        width=broad,
        before={\startexcursusbg},
        after={\stopexcursusbg},
]

\starttext

\input ward

\startexcursus[title={A Knuth extract}]

\input knuth

\stopexcursus

\input ward

\startexcursus[title={A much longer Knuth extract}]

\input knuth
Sometimes, sentences have footnotes\footnote{Some footnote}.

\input knuth
\input knuth

\stopexcursus

\stoptext
```
See the attached PDFs for the different results.

In principal, I would like the excurses typesetted like to solution with 
\defineframedtext. However, this does not work with pagebreaks.
Additionally, the leftframe is too long (it begins above the "Excursus" text). 
I tried toffset to let the leftframe begin exactly at the "Excurses" text 
without success.

The solution with \textbackground looks somewhat promising. It supports 
pagebreaks, but draws above footnotes and prints a small rectangle at the end 
of the excursus. I also didn't found a way to specify a leftframe only.
Also, loffset seems to have no effect, here.

Do I use the false environments? Do you know a better solution?

Gerion

Attachment: mwe-textbackground.pdf
Description: Adobe PDF document

Attachment: mwe-framedtext.pdf
Description: Adobe PDF document

Attachment: signature.asc
Description: This is a digitally signed message part.

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

maillist : ntg-context@ntg.nl / 
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