From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76867 Path: news.gmane.org!not-for-mail From: pddzaic Newsgroups: gmane.comp.tex.context Subject: Portrait -> Landscape -> Portrait Date: Sat, 9 Jun 2012 13:08:17 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: multipart/mixed; boundary="===============0924959146==" X-Trace: dough.gmane.org 1339403434 20487 80.91.229.3 (11 Jun 2012 08:30:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2012 08:30:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 11 10:30:33 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Se019-0004ck-Kl for gctc-ntg-context-518@m.gmane.org; Mon, 11 Jun 2012 10:30:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0C5A7101DD; Mon, 11 Jun 2012 10:30:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UXsD9mRJAKOF; Mon, 11 Jun 2012 10:30:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3266B101DF; Mon, 11 Jun 2012 10:30:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0784101DF for ; Sat, 9 Jun 2012 13:08:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gu+VYUlS+fp0 for ; Sat, 9 Jun 2012 13:08:22 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 06F2C101DD for ; Sat, 9 Jun 2012 13:08:22 +0200 (CEST) Original-Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q59B8KKe019819 for ; Sat, 9 Jun 2012 13:08:20 +0200 Original-Received: by wgbdt14 with SMTP id dt14so1374764wgb.2 for ; Sat, 09 Jun 2012 04:08:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:content-type:subject:date:message-id:to:mime-version:x-mailer; bh=/9Z+YPH2hsGAQBCgK12hm2urZ0bTSa40ivIsIWN65ko=; b=IMsX2acOwutGkEfqpkbxasEgqaU72B79DtfoVBPvKcG3ADDdJx0kNkZNUfnYuWx7pY COpQTis3M/QdzCzfEBwf5xCRhieBMpWI1Sb/GI3fDKS2amRIvVAwbP55QDvSAGBetiQh BB3fWoEjpUo7jEehPZguC9yA5MLVarEyJqk7u03MHvH2LVZ60KO/en8VgPuf9RYb8xQN cV4V1B4nBUaqT1L/EO2FCRs1FJdtG2nzPNtJuNyf3AbarJ0vkhpExQq3mOMTj/utGoSP a6cCx/rDggMhxbVi0ns5W/88eRYIK0ASKhYlaZf1QfKY/Q9Srv0oplVwu5HlD/1VVsRs 0tMA== Original-Received: by 10.180.91.225 with SMTP id ch1mr7272925wib.18.1339240100141; Sat, 09 Jun 2012 04:08:20 -0700 (PDT) Original-Received: from [192.168.0.10] (80-219-39-152.dclient.hispeed.ch. [80.219.39.152]) by mx.google.com with ESMTPS id bn9sm8237359wib.5.2012.06.09.04.08.18 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jun 2012 04:08:19 -0700 (PDT) X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.45; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QHkb8kXA - 7b73be2af5e2 - 20120609 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Mailman-Approved-At: Mon, 11 Jun 2012 10:30:24 +0200 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:76867 Archived-At: --===============0924959146== Content-Type: multipart/alternative; boundary="Apple-Mail=_B77609F1-CE3A-4C9C-A63A-6CF46A21B4FC" --Apple-Mail=_B77609F1-CE3A-4C9C-A63A-6CF46A21B4FC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello context-friends, I have switched from Latex to Context and my first impression of Context = is: WOW :-) Unfortunately, I did not understand how to switch between landscape and = portrait. Here a minimal working example: \mainlanguage[en] \setuplayout[ paper=3DA4, topspace=3D1cm, header=3D2cm, headerdistance=3D0.25cm, footerdistance=3D0.25cm, footer=3D0.6cm, bottomspace=3D1cm, margin=3D2.5cm,=20 width=3Dmiddle, height=3Dmiddle] =20 \starttext \showframe \chapter{First chapter} \input knuth % Change to landscape \page\setuppapersize[A4,landscape][A4,landscape] \section{First section} \input knuth % Reverts to the global layout \page\setuppapersize[A4,portrait][A4,portrait] \chapter{Second chapter} \input knuth \stoptext As you can see in the result the layout of the landscaped-page is not as = I expected. Can somebody help me? Best regards, Peer= --Apple-Mail=_B77609F1-CE3A-4C9C-A63A-6CF46A21B4FC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hello = context-friends,

I have switched from Latex to = Context and my first impression of Context is: WOW = :-)

Unfortunately, I did not understand how to = switch between landscape and portrait. Here a minimal working = example:


\mainlanguage[en]

\setuplayout[
    = paper=3DA4,
    = topspace=3D1cm,
    = header=3D2cm,
    = headerdistance=3D0.25cm,
    = footerdistance=3D0.25cm,
    = footer=3D0.6cm,
    = bottomspace=3D1cm,
    = margin=3D2.5cm, 
    = width=3Dmiddle,
    = height=3Dmiddle]
 

\starttext
\showframe

\chapter{First = chapter}
\input knuth

% Change to = landscape
\page\setuppapersize[A4,landscape][A4,landscape]
<= div>

\section{First = section}
\input knuth

% Reverts to the global = layout
\page\setuppapersize[A4,portrait][A4,portrait]
\chapter{Second chapter}
\input = knuth

\stoptext

As you can see in the result the layout of = the landscaped-page is not as I expected.

Can = somebody help me?

Best = regards,

Peer
= --Apple-Mail=_B77609F1-CE3A-4C9C-A63A-6CF46A21B4FC-- --===============0924959146== 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 ___________________________________________________________________________________ --===============0924959146==--