From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87554 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Problem with \framed align and orientation on landscape pages Date: Sun, 25 May 2014 00:12:25 -0400 Message-ID: <89A22ED6-0BBF-4A3B-9CCD-8602CFAE05C1@umich.edu> References: <537FFFEE.7060105@rik.users.panix.com> <538073C0.6050501@wxs.nl> <5380D315.7000208@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: multipart/mixed; boundary="===============1486572312==" X-Trace: ger.gmane.org 1400991174 1935 80.91.229.3 (25 May 2014 04:12:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 May 2014 04:12:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun May 25 06:12:49 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WoPnk-0002Ps-JL for gctc-ntg-context-518@m.gmane.org; Sun, 25 May 2014 06:12:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BF60A101FF for ; Sun, 25 May 2014 06:12:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id H0GRbgzDxZ32 for ; Sun, 25 May 2014 06:12:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 9C9451022B for ; Sun, 25 May 2014 06:12:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 06CCC101E8 for ; Sun, 25 May 2014 06:12:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UMp9MOPcCh99 for ; Sun, 25 May 2014 06:12:36 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 35C53101E3 for ; Sun, 25 May 2014 06:12:30 +0200 (CEST) Original-Received: from orford.cim.mcgill.ca (orford.cim.mcgill.ca [132.206.73.2]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s4P4CS93023332 for ; Sun, 25 May 2014 06:12:29 +0200 Original-Received: from [192.168.2.29] (unknown [135.0.226.162]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: adityam) by orford.cim.mcgill.ca (Postfix) with ESMTPSA id E0826F7C52 for ; Sun, 25 May 2014 00:12:27 -0400 (EDT) X-Mailer: iPad Mail (11D167) In-Reply-To: <5380D315.7000208@rik.users.panix.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=132.206.73.2; country=CA; region=Quebec; city=Montreal; latitude=45.5181; longitude=-73.6545; http://maps.google.com/maps?q=45.5181,-73.6545&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03M64ctXP - f64b42df5422 - 20140525 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87554 Archived-At: --===============1486572312== Content-Type: multipart/alternative; boundary=Apple-Mail-C392A5C2-3DA7-4A9B-88DC-4A4C0AAAC628 Content-Transfer-Encoding: 7bit --Apple-Mail-C392A5C2-3DA7-4A9B-88DC-4A4C0AAAC628 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable > On May 24, 2014, at 1:12 PM, Rik Kabel wrote= : >=20 >> On 2014-05-24 06:26, Hans Hagen wrote: >>> On 5/24/2014 4:11 AM, Rik Kabel wrote:=20 >>> For the /\framed/ command, any value for the key /align /other than a=20= >>> null value pushes the frame beyond the bottom margin on a landscape page= =20 >>> for many values of /orientation/. The following MWE demonstrates this:=20= >>>=20 >>> \setuppapersize [A4,landscape]=20 >>> \starttext=20 >>> \framed[orientation=3D90,align=3Dno]{\externalfigure[dummy]}=20 >>> \stoptext=20 >>>=20 >>> It also seems that the default value of /align/// is not /no/ as the=20 >>> wiki suggests, since there is a very different result when no align key=20= >>> is provided and when it is provided as above with /no/, if by a default=20= >>> value one means that, when a given key is not explicitly provided,=20 >>> processing will occur as if it had been provided with that particular=20= >>> value. >>=20 >> \setuppapersize [A4,landscape]=20 >>=20 >> \starttext=20 >>=20 >> \framed[orientation=3D90,width=3D\textheight,align=3Dno]{\externalfigure[= dummy]}=20 >> \stoptext > Thank you, Hans. That pointed me in the right direction, although it is no= t the solution in my case. >=20 > The problem was with align=3Dno. It does not, as I surmised, lead to the s= ame result as having no align key at all. The following shows the difference= s clearly. What I am after is the fifth page. I would think that the wiki is= incorrect in stating that the default value for the align key is no, but I d= o not know what is the proper description of the default. > \setuppapersize [A5,landscape][A4] > \definebodyfontenvironment [default][d=3D6] > \showframe > \starttext > \framed[align=3Dno]{\tfd 1} > \page > \framed[]{\tfd 2} > \page > \framed[orientation=3D90,align=3Dno,width=3D\textheight]{\tfd 3} > \page > \framed[orientation=3D90,align=3Dno]{\tfd 4} > \page > \framed[orientation=3D90]{\tfd 5} > \stoptext Without any align key, \framed is a \hbox; with align it is a \vbox. That mi= ght explain the difference that you see. Try adding \dontleavehmode in front= of \framed=20 Aditya= --Apple-Mail-C392A5C2-3DA7-4A9B-88DC-4A4C0AAAC628 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit


On May 24, 2014, at 1:12 PM, Rik Kabel <context@rik.users.panix.com> wrote:

On 2014-05-24 06:26, Hans Hagen wrote:
On 5/24/2014 4:11 AM, Rik Kabel wrote:
For the /\framed/ command, any value for the key /align /other than a
null value pushes the frame beyond the bottom margin on a landscape page
for many values of /orientation/. The following MWE demonstrates this:

    \setuppapersize [A4,landscape]
    \starttext
       \framed[orientation=90,align=no]{\externalfigure[dummy]}
    \stoptext

It also seems that the default value of /align/// is not /no/ as the
wiki suggests, since there is a very different result when no align key
is provided and when it is provided as above with /no/, if by a default
value one means that, when a given key is not explicitly provided,
processing will occur as if it had been provided with that particular
value.

\setuppapersize [A4,landscape]

\starttext

\framed[orientation=90,width=\textheight,align=no]{\externalfigure[dummy]}
\stoptext

Thank you, Hans. That pointed me in the right direction, although it is not the solution in my case.

The problem was with align=no. It does not, as I surmised, lead to the same result as having no align key at all. The following shows the differences clearly. What I am after is the fifth page. I would think that the wiki is incorrect in stating that the default value for the align key is no, but I do not know what is the proper description of the default.
\setuppapersize [A5,landscape][A4]
\definebodyfontenvironment [default][d=6]
\showframe
\starttext
\framed[align=no]{\tfd 1}
\page
\framed[]{\tfd 2}
\page
\framed[orientation=90,align=no,width=\textheight]{\tfd 3}
\page
\framed[orientation=90,align=no]{\tfd 4}
\page
\framed[orientation=90]{\tfd 5}

\stoptext


Without any align key, \framed is a \hbox; with align it is a \vbox. That might explain the difference that you see. Try adding \dontleavehmode in front of \framed 

Aditya
--Apple-Mail-C392A5C2-3DA7-4A9B-88DC-4A4C0AAAC628-- --===============1486572312== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1486572312==--