ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: context@vivaldi.net
To: ConTeXt <ntg-context@ntg.nl>
Subject: MP background for text typeset by \typefile
Date: Thu, 05 Nov 2020 14:36:40 +0100	[thread overview]
Message-ID: <9e5de2b8af7560c0dd48a8c5dbe33957@vivaldi.net> (raw)

Hello,

is there a way to draw custom background (via MP) to a text typed by 
\typefile, which is so long so it spreads over more pages?

- I'm asking because I know how to typeset some text via \typefile with:

1. this:

\definetyping[Test]
   [before={\startbackground[background=color,backgroundcolor=blue]
           },
    after={\stopbackground
          },
   ]

- which creates a rectangular backround to the text, and the text may 
spread over pages;

2. or this:

\defineoverlay[AnOverlayDefinition][]

\definetyping[Test]
   [before={\startframedtext[background=AnOverlayDefinition,
                            ]%
           },
    after={\stopframedtext
          },
   ]

- which allows to define a custom background via overlay/MP, but which 
encloses the text to be typeset into a framed, and thus doesn't spread 
over pages.

My intention is to "decore" the text typed by \typefile with a "fuzzy" 
background, which uses overlay/MP.
But I am in the sitaution where I am able to figure out MP code just 
when the text is to be enclosed into \framed.

Is it possible to combine both cases? How?

Best regards,

Lukas
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

                 reply	other threads:[~2020-11-05 13:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=9e5de2b8af7560c0dd48a8c5dbe33957@vivaldi.net \
    --to=context@vivaldi.net \
    --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).