ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: ntg-context@ntg.nl
Cc: "Peter Münster" <pmlists@free.fr>
Subject: Re: backgrounds: help needed
Date: Tue, 20 Jan 2009 23:51:10 +0100	[thread overview]
Message-ID: <200901202351.10435.alan.braslau@cea.fr> (raw)
In-Reply-To: <20081104111622.GA9179@pm-suse.deltadore.bzh>


[-- Attachment #1.1: Type: text/plain, Size: 1008 bytes --]

I, too, do not understand the
	\definetextbackground
	\starttextbackground
	\stoptextbackground
commands, even though I tried looking at "details.pdf" (and core-pgr.tex).

My particular problem is rather classic, that of illustrating examples, set off from the main text.
I first used

\defineframedtext [example] 
	[width=fit,background=screen,backgroundscreen=0.7]

\startexample
	...
\stopexample

and this is appropriate if the example is short enough to fit on one page.
However, a long example (many paragraphs) that spans more than one page
runs off the bottom.
Textbackground seems more appropriate, so I tried

\definetextbackground [example] 
	[location=paragraph,backgroundcolor=middlegray,frame=off]
\definestartstop [example] 
	[before={\starttextbackground[example]},after=\stoptextbackground]

but this does not work. I tried other variants (such as adding state=start, ...) with no success.

Does anyone have suggestions on where to look for further documentation or examples of use?
Thanks.

[-- Attachment #1.2: Type: text/html, Size: 5904 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2009-01-20 22:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04 11:16 Peter Münster
2009-01-20 22:51 ` Alan BRASLAU [this message]
2009-01-20 23:07   ` Wolfgang Schuster
2009-01-25 12:14     ` Something usefull? Alan BRASLAU
2009-01-25 18:13       ` Wolfgang Schuster
2009-01-27  8:50     ` backgrounds: help needed Thomas Floeren
2009-01-27  9:11       ` Wolfgang Schuster
2009-01-27  9:28         ` Thomas Floeren
2009-01-27 13:56       ` Aditya Mahajan
2009-01-27 14:08         ` Thomas Floeren
2009-01-27 16:04           ` Alan BRASLAU
2009-01-28  7:13             ` Thomas Floeren
2009-01-29 10:39               ` Thomas Floeren
2009-01-25 18:23 ` Alan BRASLAU
2009-01-25 18:59   ` Wolfgang Schuster

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=200901202351.10435.alan.braslau@cea.fr \
    --to=alan.braslau@cea.fr \
    --cc=ntg-context@ntg.nl \
    --cc=pmlists@free.fr \
    /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).