ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jan U. Hasecke" <juh+ntg-context@mailbox.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: paragraph standing out of the normal layout comsuming the margin
Date: Fri, 25 Jun 2021 13:19:12 +0200	[thread overview]
Message-ID: <d14a771c-96d5-349b-798a-ce1266d7cc96@mailbox.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 385 bytes --]

Dear all,

the mwe shows my try to define a paragraph that stand out like this:


On right pages

xxxxxxx
xxxxxxx
    xxxxxx
    xxxxxx
xxxxxxx
xxxxxxx


On left pages

   xxxxxxx
   xxxxxxx
xxxxxx
xxxxxx
   xxxxxxx
   xxxxxxx


My try with setups does not work. The textcolor is restored but not the 
layout. Can I reset to the standard layout with an \after command?

Any hints?
juh

[-- Attachment #2: paragraphexample.tex --]
[-- Type: text/x-tex, Size: 510 bytes --]

\setuplayout
  [
      cutspace=12em,
      leftmargin=2em,
      width=middle,
      backspace=8em,
      rightmargin=24em
    ]


\startsetups[paragraph:hinweis]
  \setuplayout
    [
      cutspace=2em,
      leftmargin=24em,
      backspace=8em,
      rightmargin=2em
    ]
  
\stopsetups

\defineparagraph[hinweis] [paragraph] []
\setupparagraph[hinweis] [color=red,setups=paragraph:hinweis]
\showframe
\starttext
\input knuth

\startparagraph[hinweis]
\input lorem
\stopparagraph

\input knuth

\stoptext

[-- Attachment #3: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2021-06-25 11:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-25 11:19 Jan U. Hasecke [this message]
2021-06-25 11:44 ` Wolfgang Schuster
2021-06-29  8:04   ` Jan U. Hasecke

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=d14a771c-96d5-349b-798a-ce1266d7cc96@mailbox.org \
    --to=juh+ntg-context@mailbox.org \
    --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).