ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Meer, Hans van der" <H.vanderMeer@uva.nl>
To: NTG ConTeXt <ntg-context@ntg.nl>
Subject: Reviewing old messages
Date: Mon, 16 May 2016 13:50:39 +0000	[thread overview]
Message-ID: <7BEE62AF-F754-4861-9665-93423DAFFFD5@uva.nl> (raw)
In-Reply-To: <937312BC-9073-43D0-A2EA-0E3497989F6E@gmail.com>


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

Sifting through my TeX-mailbox, I came along this post of Wolfgang Schuster and decided to try all variations given to the align parameter on \framed.
Curious in which cases the \hbox and in which the \vbox is chosen, not unimportant of course.
I did this by typesetting \hbox{abc}\hbox{xyz} inside a framed. For \hbox want expects abcxyz as output and for \vbox abc and below it xyz. As can be seen in the first two examples.
To my surprise none of the \framed[align=..] options exhibits \vbox character!

Thus my question: has the behaviour of \framed[align=..] changed in the mean time? Three years is of course an eternity when seen in the perspective of the speed with which ConTeXt is evolving 😃. Or is there another reason why the \vbox effect is not shown in any of the examples?
I am enclosing a minmal example and its output. Just curious.

Hans van der Meer


On 18 Apr 2013, at 15:46, Wolfgang Schuster <schuster.wolfgang@gmail.com<mailto:schuster.wolfgang@gmail.com>> wrote:


Am 18.04.2013 um 15:39 schrieb "Meer, H. van der" <H.vanderMeer@uva.nl<mailto:H.vanderMeer@uva.nl>>:

Why does the [align=middle] makess such a difference?

\framed can use a \hbox or a \vbox to place the content, by default it uses a \hbox
but when you set the correct value for the align key it uses a \vbox.

Wolfgang

% testting hbox-vbox behaviour for framed.
\starttext
input:\verbatim{\hbox{\hbox{abc}\hbox{xyz}}}\crlf
\hbox{\hbox{abc}\hbox{xyz}}\blank
input:\verbatim{\vbox{\hbox{abc}\hbox{xyz}}}\crlf
\vbox{\hbox{abc}\hbox{xyz}}\blank
\setupframed[width=0.7\textwidth]
\leftaligned{these are in the command reference}\blank
input:\verbatim{\framed[align=OPTION]{\hbox{abc}\hbox{xyz}}}\blank
inner:\crlf
\framed[align=inner]{\hbox{abc}\hbox{xyz}}\blank
outer:\crlf
\framed[align=outer]{\hbox{abc}\hbox{xyz}}\blank
left:\crlf
\framed[align=left]{\hbox{abc}\hbox{xyz}}\blank
right:\crlf
\framed[align=right]{\hbox{abc}\hbox{xyz}}\blank
flushleft:\crlf
\framed[align=flushleft]{\hbox{abc}\hbox{xyz}}\blank
flushright:\crlf
\framed[align=flushright]{\hbox{abc}\hbox{xyz}}\blank
middle:\crlf
\framed[align=middle]{\hbox{abc}\hbox{xyz}}\blank
center:\crlf
\framed[align=center]{\hbox{abc}\hbox{xyz}}\blank
normal:\crlf
\framed[align=normal]{\hbox{abc}\hbox{xyz}}\blank
no:\crlf
\framed[align=no]{\hbox{abc}\hbox{xyz}}\blank
yes:\crlf
\framed[align=yes]{\hbox{abc}\hbox{xyz}}\blank
broad:\crlf
\framed[align=broad]{\hbox{abc}\hbox{xyz}}\blank
last:\crlf
\framed[align=last]{\hbox{abc}\hbox{xyz}}\blank
r2l:\crlf
\framed[align=r2l]{\hbox{abc}\hbox{xyz}}\blank
l2r:\crlf
\framed[align=l2r]{\hbox{abc}\hbox{xyz}}\blank
\leftaligned{these are extra in the contextgarden}\blank
high:\crlf
\framed[align=high]{\hbox{abc}\hbox{xyz}}\blank
low:\crlf
\framed[align=low]{\hbox{abc}\hbox{xyz}}\blank
lohi:\crlf
\framed[align=lohi]{\hbox{abc}\hbox{xyz}}\blank
\stoptext



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

[-- Attachment #2: framedbox.pdf --]
[-- Type: application/pdf, Size: 9993 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2016-05-16 13:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18 12:55 halign broken Meer, H. van der
2013-04-18 13:03 ` Wolfgang Schuster
2013-04-18 13:16   ` Meer, H. van der
2013-04-18 14:13     ` Hans Hagen
2013-04-18 14:58       ` Aditya Mahajan
2013-04-18 13:26   ` Meer, H. van der
2013-04-18 13:34     ` Wolfgang Schuster
2013-04-18 13:39       ` Meer, H. van der
2013-04-18 13:46         ` Wolfgang Schuster
2016-05-16 13:50           ` Meer, Hans van der [this message]
2016-05-16 14:03             ` Reviewing old messages Wolfgang Schuster
2016-05-16 14:31               ` Meer, Hans van der
2016-05-16 14:41                 ` Wolfgang Schuster
2016-05-16 15:18                   ` Meer, Hans van der
2016-05-16 15:36                     ` 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=7BEE62AF-F754-4861-9665-93423DAFFFD5@uva.nl \
    --to=h.vandermeer@uva.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).