From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: Migrations: exactly LaTeX margins --> ConTeXt margins
Date: Tue, 31 Aug 2010 12:22:48 +0200 [thread overview]
Message-ID: <8B7AB3B8-959A-4D0E-910D-280677781B29@gmail.com> (raw)
In-Reply-To: <4C7B50C8.1000605@wxs.nl>
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]{article}.
>>
>>
>> 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 that 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’s \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=\ifdim\dimexpr\paperwidth-2in\relax>345pt\relax 345pt\else\dimexpr\paperwidth-2in\relax\fi, % \paperwidth-2in or 345pt, use the smaller value
backspace=\dimexpr(\paperwidth-\textwidth)/2-1in\relax,
leftmargindistance=7pt,
leftmargin=,
topspace=,
header=12pt,
headerdistance=.25in,
height=,
footer=,
footerdistance=,]
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-08-31 10:22 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-29 17:11 Xan xan
2010-08-30 6:33 ` Hans Hagen
[not found] ` <AANLkTimaBwE4qnWDer+m1xvsU-10pVSjUQ7W1CcENnJB@mail.gmail.com>
2010-08-30 9:23 ` Fwd: " Xan xan
2010-08-30 10:37 ` Hans Hagen
2010-08-30 14:02 ` Yury G. Kudryashov
2010-08-30 15:03 ` Mojca Miklavec
2010-08-30 16:43 ` Hans Hagen
2010-08-31 7:39 ` xancorreu
2010-08-31 7:42 ` Taco Hoekwater
2010-08-31 8:09 ` Mojca Miklavec
2010-08-31 8:34 ` Yury G. Kudryashov
2010-08-31 8:50 ` Hans Hagen
2010-08-31 9:20 ` xancorreu
2010-08-31 9:23 ` Hans Hagen
2010-08-31 9:33 ` xancorreu
2010-08-31 10:00 ` Hans Hagen
2010-08-31 9:38 ` xancorreu
2010-08-31 9:16 ` Hans Hagen
2010-08-31 9:30 ` xancorreu
2010-08-31 10:22 ` Wolfgang Schuster [this message]
2010-08-31 16:33 ` xancorreu
2010-08-31 20:29 ` Wolfgang Schuster
2010-09-01 8:04 ` xancorreu
2010-09-01 9:37 ` Arthur Reutenauer
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=8B7AB3B8-959A-4D0E-910D-280677781B29@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.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).