ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Looking for ConTeXt commands for ...
@ 2009-01-05  0:59 Mohamed Bana
  2009-01-05  1:50 ` Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: Mohamed Bana @ 2009-01-05  0:59 UTC (permalink / raw)
  To: ntg-context


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

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Looking for ConTeXt commands for ...
  2009-01-05  0:59 Looking for ConTeXt commands for Mohamed Bana
@ 2009-01-05  1:50 ` Aditya Mahajan
  2009-01-05 10:36   ` Wolfgang Schuster
  2009-01-05 18:36   ` Mohamed Bana
  0 siblings, 2 replies; 8+ messages in thread
From: Aditya Mahajan @ 2009-01-05  1:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Looking for ConTeXt commands for ...
  2009-01-05  1:50 ` Aditya Mahajan
@ 2009-01-05 10:36   ` Wolfgang Schuster
  2009-01-05 13:46     ` Aditya Mahajan
  2009-01-05 18:36   ` Mohamed Bana
  1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2009-01-05 10:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Looking for ConTeXt commands for ...
  2009-01-05 10:36   ` Wolfgang Schuster
@ 2009-01-05 13:46     ` Aditya Mahajan
  0 siblings, 0 replies; 8+ messages in thread
From: Aditya Mahajan @ 2009-01-05 13:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Looking for ConTeXt commands for ...
  2009-01-05  1:50 ` Aditya Mahajan
  2009-01-05 10:36   ` Wolfgang Schuster
@ 2009-01-05 18:36   ` Mohamed Bana
  2009-01-05 19:56     ` Hans Hagen
  2009-01-05 20:00     ` Wolfgang Schuster
  1 sibling, 2 replies; 8+ messages in thread
From: Mohamed Bana @ 2009-01-05 18:36 UTC (permalink / raw)
  To: ntg-context

! 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

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Looking for ConTeXt commands for ...
  2009-01-05 18:36   ` Mohamed Bana
@ 2009-01-05 19:56     ` Hans Hagen
  2009-01-05 20:00     ` Wolfgang Schuster
  1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2009-01-05 19:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Looking for ConTeXt commands for ...
  2009-01-05 18:36   ` Mohamed Bana
  2009-01-05 19:56     ` Hans Hagen
@ 2009-01-05 20:00     ` Wolfgang Schuster
  2009-01-07 10:02       ` luigi scarso
  1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2009-01-05 20:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Looking for ConTeXt commands for ...
  2009-01-05 20:00     ` Wolfgang Schuster
@ 2009-01-07 10:02       ` luigi scarso
  0 siblings, 0 replies; 8+ messages in thread
From: luigi scarso @ 2009-01-07 10:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 805 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1478 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-01-07 10:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-05  0:59 Looking for ConTeXt commands for Mohamed Bana
2009-01-05  1:50 ` Aditya Mahajan
2009-01-05 10:36   ` Wolfgang Schuster
2009-01-05 13:46     ` Aditya Mahajan
2009-01-05 18:36   ` Mohamed Bana
2009-01-05 19:56     ` Hans Hagen
2009-01-05 20:00     ` Wolfgang Schuster
2009-01-07 10:02       ` luigi scarso

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).