I'am trying to convert a doc to ConTeXt, and I'm also trying to make it as close to the original as possible. How do the command below translate to ConTeXt? 1. \geometry{a4paper, textwidth=5.5in, textheight=8.5in, marginparsep=7pt, marginparwidth=.6in} 2. \scriptsize => \tfxx? 3. \LARGE and \Large 4. \Huge and \HUGE thanks
On Mon, 5 Jan 2009, Mohamed Bana wrote:
I'am trying to convert a doc to ConTeXt, and I'm also trying to make it as close to the original as possible. How do the command below translate to ConTeXt?
1. \geometry{a4paper, textwidth=5.5in, textheight=8.5in, marginparsep=7pt, marginparwidth=.6in}
For a4 paper use \setuppapersize[a4][a4] For setting geometry, see \setuplayout.
2. \scriptsize => \tfxx?
3. \LARGE and \Large
4. \Huge and \HUGE
Semantically, \scriptsize = \tfxx, \Large et. al. are \tfa \tfb \tfc \tfd \tfe, but that may not give you visually the same appearance due to different defaults in Latex and Context. In Latex, these sizes are set as part of the documentclass, or size10.clo, size12.clo, etc. So, the most reliable way to reconstruct the visual appearance will be to figure out what sizes they correspond to in latex, and then set the context font environmet to match the latex values. Aditya
Am 05.01.2009 um 02:50 schrieb Aditya Mahajan:
On Mon, 5 Jan 2009, Mohamed Bana wrote:
I'am trying to convert a doc to ConTeXt, and I'm also trying to make it as close to the original as possible. How do the command below translate to ConTeXt?
1. \geometry{a4paper, textwidth=5.5in, textheight=8.5in, marginparsep=7pt, marginparwidth=.6in}
For a4 paper use
\setuppapersize[a4][a4]
Where do you got this information? The correct setup is \setuppapersize[A4][A4]. Wolfgang
On Mon, 5 Jan 2009, Wolfgang Schuster wrote:
Am 05.01.2009 um 02:50 schrieb Aditya Mahajan:
On Mon, 5 Jan 2009, Mohamed Bana wrote:
I'am trying to convert a doc to ConTeXt, and I'm also trying to make it as close to the original as possible. How do the command below translate to ConTeXt?
1. \geometry{a4paper, textwidth=5.5in, textheight=8.5in, marginparsep=7pt, marginparwidth=.6in}
For a4 paper use
\setuppapersize[a4][a4]
Where do you got this information?
The correct setup is \setuppapersize[A4][A4].
Sorry. I always use letter paper, and was extrapolating in my head :-) Aditya
! Undefined control sequence. \CVTITLE ...\ss \bfa #1} \blank [medium]{\ss \tfe #2} }\blank [2*big] l.139 \CVTITLE{}{CV} ? \tfe doesn't seem to work, the others do. $ context --version MtxRun | main context file: /home/mbana/context-minimals/tex/texmf-context/tex/context/base/context.tex MtxRun | current version: 2008.11.10 21:40 ConTeXt ver: 2008.11.10 21:40 MKIV fmt: 2008.12.15 int: english/english $ luatex --version This is LuaTeX, Version snapshot-0.30.3-2008112812, build unknown Aditya Mahajan wrote:
On Mon, 5 Jan 2009, Mohamed Bana wrote:
I'am trying to convert a doc to ConTeXt, and I'm also trying to make it as close to the original as possible. How do the command below translate to ConTeXt?
1. \geometry{a4paper, textwidth=5.5in, textheight=8.5in, marginparsep=7pt, marginparwidth=.6in}
For a4 paper use
\setuppapersize[a4][a4]
For setting geometry, see \setuplayout.
2. \scriptsize => \tfxx?
3. \LARGE and \Large
4. \Huge and \HUGE
Semantically, \scriptsize = \tfxx, \Large et. al. are \tfa \tfb \tfc \tfd \tfe, but that may not give you visually the same appearance due to different defaults in Latex and Context. In Latex, these sizes are set as part of the documentclass, or size10.clo, size12.clo, etc. So, the most reliable way to reconstruct the visual appearance will be to figure out what sizes they correspond to in latex, and then set the context font environmet to match the latex values.
Aditya
Mohamed Bana wrote:
! Undefined control sequence. \CVTITLE ...\ss \bfa #1} \blank [medium]{\ss \tfe #2} }\blank [2*big] l.139 \CVTITLE{}{CV}
?
\tfe doesn't seem to work, the others do.
because tfe is not defined by default Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 05.01.2009 um 19:36 schrieb Mohamed Bana:
! Undefined control sequence. \CVTITLE ...\ss \bfa #1} \blank [medium]{\ss \tfe #2} }\blank [2*big] l.139 \CVTITLE{}{CV}
?
\tfe doesn't seem to work, the others do.
Only sizes upto \tfd are predefined but you could define more. \definefontsize[e] \definefontsize[f] \definebodyfontenvironment [default] [e=2.488, f=2.986] \starttext \tf tf \par \tfa tfa \par \tfb tfb \par \tfc tfc \par \tfd tfd \par \tfe tfe \par \tff tff \par \stoptext Wolfgang
On Mon, Jan 5, 2009 at 9:00 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 05.01.2009 um 19:36 schrieb Mohamed Bana:
! Undefined control sequence.
\CVTITLE ...\ss \bfa #1} \blank [medium]{\ss \tfe #2} }\blank [2*big] l.139 \CVTITLE{}{CV}
?
\tfe doesn't seem to work, the others do.
Only sizes upto \tfd are predefined but you could define more.
\definefontsize[e] \definefontsize[f]
\definebodyfontenvironment [default] [e=2.488, f=2.986]
It's a bit strange that \tfe is not defined: in font-ini.mkiv \def\magstep#1% \relax removed, otherwise space after it sticks, else added {\ifcase#1 \@m\or1200\or1440\or1728\or2074\or2488\or\@m\fi} so \magstep5 is defined -- luigi
participants (5)
-
Aditya Mahajan
-
Hans Hagen
-
luigi scarso
-
Mohamed Bana
-
Wolfgang Schuster