From: Alan BRASLAU <alan.braslau@cea.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: textbackground
Date: Thu, 26 Feb 2015 10:22:47 +0100 [thread overview]
Message-ID: <20150226102247.350f7969@iram-ha-003840.extra.cea.fr> (raw)
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
___________________________________________________________________________________
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 reply other threads:[~2015-02-26 9:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-26 9:22 Alan BRASLAU [this message]
2015-02-26 9:54 ` textbackground Hans Hagen
-- 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=20150226102247.350f7969@iram-ha-003840.extra.cea.fr \
--to=alan.braslau@cea.fr \
--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).