From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: textbackground
Date: Thu, 26 Feb 2015 10:54:49 +0100 [thread overview]
Message-ID: <54EEED69.4020005@wxs.nl> (raw)
In-Reply-To: <20150226102247.350f7969@iram-ha-003840.extra.cea.fr>
On 2/26/2015 10:22 AM, Alan BRASLAU wrote:
> Hello,
>
> For a multilingual document, alternating one language or another, not
> necessarily a bilingual, translated text, I thought about using
> textbackground to set-off paragraphs. This technique could also apply
> to a single language text having multiple levels of information,
> perhaps statements followed by discussion, etc.
>
> A problem appears with respect to footnotes that I do not know how to
> handle. If the backgrounded text goes across pages placing footnotes,
> then the footnote also gets the background. This is incorrect, perhaps
> a bug.
>
> Second problem, if a footnote of a backgrounded text gets placed on a
> following page, then it may not get a background. (It is not clear to me
> whether it would be correct for footnotes to get the background or
> not.) Of course, a solution to this secondary problem might be
> before={\startlocalfootnotes},
> after={\placelocalfootnotes\stoplocalfootnotes},
> although such a solution would postpone backgrounded footnotes to the
> end of the backgrounded text.
>
> Alan
>
>
>
> MWE:
>
> \definetextbackground
> [spanish]
> [location=paragraph,
> frame=off,
> before={\language[es]},
> background=color,
> backgroundcolor=lightgray]
>
> \starttext
>
> \input darwin%
> \startfootnote
> \input dawkins
> \stopfootnote
>
> \input tufte
>
> \startspanish
> \input quevedo-es%
> \startfootnote
> \input cervantes-es
> \stopfootnote
> \stopspanish
>
> \input zapf
>
> \stoptext
\definetextbackground[en]
\definetextbackground[nl]
\setnewconstant\kindofpagetextareas 1 % low level, no high level switch
(yet)
\starttext
\starttextbackground[en]
\dorecurse{10}{\input tufte \footnote{tufte} \par}
\stoptextbackground
\starttextbackground[nl]
\dorecurse{10}{\input tufte \footnote{tufte} \par}
\stoptextbackground
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2015-02-26 9:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-26 9:22 textbackground Alan BRASLAU
2015-02-26 9:54 ` Hans Hagen [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-11-19 12:50 textbackground Hans van der Meer
2005-03-17 10:38 textbackground Duncan Hothersall
2004-06-26 12:47 textbackground dr. Hans van der Meer
2004-06-26 18:13 ` textbackground Hans Hagen Outside
2004-06-27 8:38 ` textbackground dr. Hans van der Meer
2004-06-29 9:12 ` textbackground Hans Hagen
2004-06-29 9:23 ` textbackground Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54EEED69.4020005@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).