* [NTG-context] Draw leftframe to a description
@ 2024-07-08 13:00 Gerion Entrup
0 siblings, 0 replies; only message in thread
From: Gerion Entrup @ 2024-07-08 13:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1.1: Type: text/plain, Size: 1703 bytes --]
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 #1.1.2: mwe-textbackground.pdf --]
[-- Type: application/pdf, Size: 16471 bytes --]
[-- Attachment #1.1.3: mwe-framedtext.pdf --]
[-- Type: application/pdf, Size: 16668 bytes --]
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-07-08 13:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-08 13:00 [NTG-context] Draw leftframe to a description Gerion Entrup
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).