ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Fwd: Migrations: exactly LaTeX margins --> ConTeXt margins
Date: Tue, 31 Aug 2010 10:09:09 +0200	[thread overview]
Message-ID: <AANLkTim2U0XTB6mcpNNx64kM5FGGaTzEXwjbvA+ozjok@mail.gmail.com> (raw)
In-Reply-To: <4C7CB264.5010106@elvenkind.com>

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	other threads:[~2010-08-31  8:09 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 [this message]
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
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=AANLkTim2U0XTB6mcpNNx64kM5FGGaTzEXwjbvA+ozjok@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.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).