ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: narrowered columns on background image?
Date: Fri, 14 Feb 2014 10:20:18 +0100	[thread overview]
Message-ID: <E4815E1D-437D-42E9-A37C-891520ECCCD6@gmail.com> (raw)
In-Reply-To: <20140214061135.GA21342@mini>


Am 14.02.2014 um 07:11 schrieb Rudolf Bahr <quasi@quasi.de>:

> On Thu, Feb 13, 2014 at 10:52:44AM +0100, Wolfgang Schuster wrote:
>> 
>> You have to use boxedcolumns environment because the normal columns environment doesn’t work in a frame.
>> 
>> \setupexternalfigures[location={local,global,default}]
>> 
>> \starttext
>> 
>> \defineoverlay[muh][{\externalfigure[cow][width=\overlaywidth, height=\overlayheight]}]
>> 
>> \startframed[width=max,height=0.4\textheight,background=muh,align=right,foregroundcolor=darkred]%
>>  \startboxedcolumns[n=3]
>>  It was a dark and stormy night. The rain came down in tons. The old captain
>>  said: \quotation{Antonio, come and tell us a story!} And Antonio began as follows:
>>  \quotation{It was a dark and stormy night. The rain ...}
>>  \stopboxedcolumns
>> \stopframed
>> 
>> \stoptext
> 
> Yes, that's it, what I didn't know: boxedcolumns. Your example works very well, even with inserted
> narrower environment:
> 
> \startframed[...]
>  \startnarrower
>    \startboxedcolumns[n=3]
>    ...
>    ...
>    \stopboxedcolumns
>  \stopnarrower
> \stopframed
> 
> Many thanks, Wolfgang, for your patient explanation! You helped me so many times!

Why do you want to use the narrower environment in a frame, when you want to
change only the left and right margins you can use the loffset and roffset keys.

\starttext

\startframed[align=right,width=max]
  \input knuth
\stopframed

\startframed[align=right,width=max,loffset=2cm,roffset=4cm]
  \input knuth
\stopframed

\stoptext

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2014-02-14  9:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-12 15:50 Rudolf Bahr
2014-02-13  9:52 ` Wolfgang Schuster
2014-02-14  6:11   ` Rudolf Bahr
2014-02-14  9:20     ` Wolfgang Schuster [this message]
2014-02-14 12:06       ` Rudolf Bahr

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=E4815E1D-437D-42E9-A37C-891520ECCCD6@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).