ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: framed texts and other "minipage"
Date: Mon, 09 Jan 2006 11:52:47 +0100	[thread overview]
Message-ID: <43C2407F.1090303@wxs.nl> (raw)
In-Reply-To: <227466F7-6C41-47B4-A3B1-525D68788F02@free.fr>

Maurice Diamantini (dom) wrote:

>
> Le 7 janv. 06 � 13:50, Hans Hagen a �crit :
>
>>> No, that will not work.
>>> After much probing I found the culprit.
>>> The framedtext takes the full linewidth and apparently does not   
>>> reduces it to the given size.
>>> Therefore enclosing in a vbox seems necessary:
>>>    \vbox{\hsize=framesize\startframedtext{width=framesize ...
>>>
>>> Question for Hans Hagen: is it an option letting framedtext set  
>>> the  hsize when a specific width is given?
>>
>>
>> \hbox to \hsize \bgroup
>>    \startframedtext[none][width=.5\textwidth]
>>        \input tufte
>>    \stopframedtext
>>    \startframedtext[none][width=.5\textwidth]
>>        \input zapf
>>    \stopframedtext
>> \egroup
>
>
> Why is it not possible to simply use the \framed command (with some  
> magic option to
> put text into it) to do the obove thing?
>    \startframed[width=.5\textwidth, xxxx]
>        \input tufte
>    \stopframed
>    \startframed[width=.5\textwidth, xxxx]
>        \input zapf
>    \stopframed


in most cases you can use framed (make sure that you set 'align' to 
something in order to enter vmode)

framedtext is a bit more clever and handles some spacing issues

>
> If it is impossible, is there any equivalent to de minipage or  
> \parbox LaTeX
> equivalent?

i dunno what those are, vboxes?

Hans

  reply	other threads:[~2006-01-09 10:52 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-06 16:19 framed texts Hans van der Meer
2006-01-06 17:20 ` Peter Rolf
2006-01-06 20:43   ` Hans van der Meer
2006-01-07 12:50     ` Hans Hagen
2006-01-07 22:52       ` framed texts and other "minipage" Maurice Diamantini (dom)
2006-01-09 10:52         ` Hans Hagen [this message]
2006-01-09 20:54           ` framed texts for boxing stuff Maurice Diamantini (dom)
2006-01-09 23:01             ` Hans Hagen
2006-01-10 22:14               ` Maurice Diamantini (dom)
2006-01-10 22:50                 ` Hans Hagen
2006-01-10 23:44                   ` Why PDF files generated by ConTeXt are so big? Jilani Khaldi
2006-01-11  8:22                     ` Hans Hagen
2006-01-11 12:41                       ` Jilani Khaldi
2006-01-11 14:14                         ` Hans Hagen
2006-01-11 16:45                           ` Jilani Khaldi
2006-01-11 18:27                             ` Hans Hagen
2006-01-10 22:53                 ` framed texts for boxing stuff Hans Hagen
2006-01-10 23:28                 ` Mojca Miklavec
2006-01-11 20:07               ` Bob Kerstetter

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=43C2407F.1090303@wxs.nl \
    --to=pragma@wxs.nl \
    --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).