From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61372 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Fwd: Migrations: exactly LaTeX margins --> ConTeXt margins Date: Tue, 31 Aug 2010 10:09:09 +0200 Message-ID: References: <4C7B50C8.1000605@wxs.nl> <4C7CB1C8.8080401@gmail.com> <4C7CB264.5010106@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1283242162 22295 80.91.229.12 (31 Aug 2010 08:09:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Aug 2010 08:09:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 31 10:09:21 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 1OqLuC-0000H5-TT for gctc-ntg-context-518@m.gmane.org; Tue, 31 Aug 2010 10:09:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 43271CA6AF; Tue, 31 Aug 2010 10:09:20 +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 D8keuCy--sYH; Tue, 31 Aug 2010 10:09:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 46F2DCA64F; Tue, 31 Aug 2010 10:09:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3FB49CA64F for ; Tue, 31 Aug 2010 10:09:15 +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 Fml91PpX8zf0 for ; Tue, 31 Aug 2010 10:09:13 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id D84A8CA60C for ; Tue, 31 Aug 2010 10:09:12 +0200 (CEST) Original-Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.216.176]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7V89AUF023786 for ; Tue, 31 Aug 2010 10:09:10 +0200 Original-Received: by qyk2 with SMTP id 2so7458589qyk.14 for ; Tue, 31 Aug 2010 01:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=J+pxiwoi60Nwo64w6x71d1QFY2mr6hACRzN32TjrSLg=; b=SNzJAziHyzVXhX8xhiaj3+Vmt/L8t/5TEvEW7UgUglPlb/zsIL33/lqZ3rPyikvhLv mF4SZOMvXzwNnZvQGmwye3y6A+UFAbPLgC7dxgBWDZ0gonzY+qFvtgy5Tr7DS5Y/jh/G glq0OWSh48sQ2/y0WbUhFlp+IvGLMxAXjSDm0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=QryAXWgjA87oHgPMh3fmGrcHj5ZCRPumZ/ZrP1KnzQxpFayoDV/Mbu/P2LkoHjgtP1 Z3uzAXa9PxUlRBvg7kiUQHk5yvJKP3GvQtjakUDQ/2QkfC7jQ2Mpf98GgN/sXTZZ0k4A rUL06Up/ZlnWWpXkOJauzO8jyWd5IAJ80/NFQ= Original-Received: by 10.229.184.130 with SMTP id ck2mr3880147qcb.122.1283242149966; Tue, 31 Aug 2010 01:09:09 -0700 (PDT) Original-Received: by 10.229.217.74 with HTTP; Tue, 31 Aug 2010 01:09:09 -0700 (PDT) In-Reply-To: <4C7CB264.5010106@elvenkind.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.176; 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: 0bD0U9ahz - 65c5123f792e - 20100831 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:61372 Archived-At: On Tue, Aug 31, 2010 at 09:42, Taco Hoekwater wrote: > On 08/31/2010 09:39 AM, xancorreu wrote: >>> >>> \setuplayout >>> [backspace=\dimexpr 1in+22pt\relax, % [1] + [3] = (1 inch + >>> \hoffset=0pt) + \oddsidemargin=22pt >>> >>> Mojca >> >> Thanks Mojca for trying it.... now you check that this was very >> difficult for a newbee as me ;-) > > You probably have to add another 1in to the backspace, for the \hoffset. > >> If the exact way is too complicated, is there any **approximate** way to >> obtain the usually margins in LaTeX article in 10 pt? The exact way would be to read the LaTeX class and figure out what dimensions are being used there. The approximate way would be to visually compare the output of LaTeX and ConTeXt. > Sure there is: print an article.cls output pdf and measure the distances > with a ruler (that is what I do when I need to mimic a layout). Or take Adobe Acrobat and use measuring tool, or compare visually (aligning two documents in pdf viewer). If you print out the material there's always a chance that printer won't align the edges properly. The third option is to use the following in LaTeX to figure out what dimensions are being used in LaTeX, compare that with figure in The Not So Short Introduction to LaTeX and then use these numbers in ConTeXt (properly adjusted for the differences): hoffset=\the\hoffset\par oddsidemargin=\the\oddsidemargin\par marginparwidth=\the\marginparwidth\par textwidth=\the\textwidth\par But after I have managed to guess somehow that the horizontal dimensions were matching [backspace=\dimexpr 1in+31pt\relax width=\dimexpr 390pt\relax, in latex,12pt (but for some unknow reason hyphenation in ConTeXt was off, or at least at different penalty values, so I didn't manage to compare the line breaks) ... I realized that margins change if you try to use \documentclass[10pt,a4paper]{article} instead of 12pt, so one would need to account for that change as well. Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________