From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61392 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Migrations: exactly LaTeX margins --> ConTeXt margins Date: Tue, 31 Aug 2010 12:22:48 +0200 Message-ID: <8B7AB3B8-959A-4D0E-910D-280677781B29@gmail.com> References: <4C7B50C8.1000605@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283250202 22207 80.91.229.12 (31 Aug 2010 10:23:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Aug 2010 10:23:22 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 31 12:23:17 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OqNzm-00084d-H0 for gctc-ntg-context-518@m.gmane.org; Tue, 31 Aug 2010 12:23:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E919DCA6BB; Tue, 31 Aug 2010 12:23:13 +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 Qd5vTk99clab; Tue, 31 Aug 2010 12:23:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 923B5CA6BC; Tue, 31 Aug 2010 12:23:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 35BA5CA6BC for ; Tue, 31 Aug 2010 12:23:08 +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 HMYidkwlRLKO for ; Tue, 31 Aug 2010 12:22:56 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id CF0F4CA6BB for ; Tue, 31 Aug 2010 12:22:56 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7VAMuD2004966 for ; Tue, 31 Aug 2010 12:22:56 +0200 Original-Received: by bwz6 with SMTP id 6so5550839bwz.14 for ; Tue, 31 Aug 2010 03:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=D6PqpUaHrHTy4H7DovWMAkNQMV87jfGR4XtSTK4feuo=; b=PgXkBp5wywaGH3G6+4gOXsPvoaX/i7rPRe8FYL+0PHcDL8+70ZbaeSZh823WkmUt9E aXhgL42Ui4Vh4AvL6Av93TF85dUFVYcV88z5sAvHd9Af7T5RtWwc+acU+0ueQQCuSyFt BK97TMCIcg/GeAJ3ID+uAbWea8bWlTl8/nHXk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=ZRUb608jxk6Tbhn/sSA9JOGSncEd6carfw/77jzgYN12I1bE7QvRF+FT65tLG1Wf5f QbULsBxDZhWLMWtYJby4gY9fQqhHiv9xvLbPwW5mMPTJ6ldXI6FaOfdQMUUHDo1Vdjmg MJhEadIZIScLfaTSV8+z3+KTZqgzDVSUYMIyU= Original-Received: by 10.204.68.144 with SMTP id v16mr4317446bki.58.1283250176090; Tue, 31 Aug 2010 03:22:56 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B295192.dip.t-dialin.net [91.41.81.146]) by mx.google.com with ESMTPS id d27sm6078779bku.22.2010.08.31.03.22.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 31 Aug 2010 03:22:54 -0700 (PDT) In-Reply-To: <4C7B50C8.1000605@wxs.nl> X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; 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: 06D0WmUx6 - d5df9cd6cb83 - 20100831 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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:61392 Archived-At: Am 30.08.2010 um 08:33 schrieb Hans Hagen: > On 29-8-2010 7:11, Xan xan wrote: >> Hi, >> = >> I want to "migrate" one LaTeX document to ConTeXt document. I only want = to >> put the _exact_ margins LaTeX use for \documentclass[12pt,a4paper]{artic= le}. >> = >> = >> Anyone could say me the exact values I have to put in **layout**? > = > You first have to figure out what the exact latex values are. I suppose t= hat they are documented somewhere or can be deduced from the document class= (maybe make a list for more popular document classes). > = > At some point there can be a module doing things like > = > \definelayout[latex-article][...] I looked now in the files where the layout for the standard classes in latex is defined and it's a mess to reproduce them in context because all values depend on the papersize and fontsize and it takes a lot of code (even with etex=92s \dimexpr) because there are checks whether a calculated dimensions exceeds a fixed limit. This is how the layout for a document with a fontsize of 10pt looks: \definelayout [latex10] [width=3D\ifdim\dimexpr\paperwidth-2in\relax>345pt\relax 345pt\else\dimex= pr\paperwidth-2in\relax\fi, % \paperwidth-2in or 345pt, use the smaller val= ue backspace=3D\dimexpr(\paperwidth-\textwidth)/2-1in\relax, leftmargindistance=3D7pt, leftmargin=3D, topspace=3D, header=3D12pt, headerdistance=3D.25in, height=3D, footer=3D, footerdistance=3D,] Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________