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
___________________________________________________________________________________

Reply via email to