[NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'm trying to \setuptyping to use a 8pt font size [of a tt typeface].

Here are my trials - in several cases I get the wanted result but with error 
messages:

--- t.mkiv
\enableregime[cp1250]

%\setuptyping[default][style=\ttxx\setupinterlinespace] % This works somehow 
but with errors
\setuptyping[default][bodyfont=8pt,style=\tt\setupinterlinespace] % This works 
somehow but with errors
%\setuptyping[default][style=\eightpoint\tt\setupinterlinespace]
%\setuptyping[default][style=\viii\tt\setupinterlinespace]
%\setuptyping[default][bodyfont=viii,style=\tt\setupinterlinespace]
%\setuptyping[default][bodyfont=sixpoint,style=\tt\setupinterlinespace]

\starttext
  \typefile[default]{t.mkiv}
\stoptext
---

A part of the error message:

---
! Missing number, treated as zero.
to be read again
   \relax
\docheckverbatimmargins ...er \c!oddmargin \relax
  \ifzeropt \scratchskip \el...
\firststageinitializetyping ...eckverbatimmargins
  \dosettypingattributes \c!...
\dodododotypefile ... \firststageinitializetyping
  \secondstageinitializetypi...
\dotypefile ...le {#3}} {\dododotypefile {#1}{#3}}
  \else \dododotypefile \v!f...
l.9   \typefile[default]{t.mkiv}
---

The code \setuptyping[default][bodyfont=8pt,style=\tt\setupinterlinespace] used to 
work; but this may have been an accident - there is no option bodyfont for \setuptyping 
on wiki.

So what is the CORRECT way how to select a specific font size for \setuptyping 
or \typefile?

Kind regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t.mkiv
Description: Binary data


t.log
Description: Binary data
___
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
___


Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Hans Hagen

On 1-12-2010 10:50, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

I'm trying to \setuptyping to use a 8pt font size [of a tt typeface].


\setuptyping ... bodyfont=8pt

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Hans -

On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen pra...@wxs.nl wrote:


I'm trying to \setuptyping to use a 8pt font size [of a tt typeface].


\setuptyping ... bodyfont=8pt


- Did you test it?

--- t2.mkiv

\enableregime[cp1250]

\setuptyping[default][bodyfont=8pt] % As you advised

\starttext
  \typefile[default]{t2.mkiv}
\stoptext

---

I got a result (seems desired), but with error return code:

---

MTXrun | run 1: luatex 
--fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en
 
--lua=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en.lui
 --backend=pdf C:/Lukas/ConTeXt/Cont-Tst/t2.mki
 \write18 enabled.
(C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv

ConTeXt  ver: 2010.11.27 14:27 MKIV  fmt: 2010.11.29  int: english/english

system  : cont-new loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil.mkiv loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.mkiv
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(c:/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme 
(c:/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) 
(c:/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) 
(c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) 
(c:/ConTeXt/tex/texmf-context/tex/cont
system  : cont-err loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
)
system  : t2.top loaded
(t2.top
){c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
bodyfont: 12pt rm is loaded
fonts   : preloading latin modern fonts (first stage)
language: language en is active
publications: loading formatting style from bxml-apa
(c:/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv)
systems : begin file C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv at line 5
! Missing number, treated as zero.
to be read again
   \relax
\docheckverbatimmargins ...er \c!oddmargin \relax
  \ifzeropt \scratchskip \el...
\firststageinitializetyping ...eckverbatimmargins
  \dosettypingattributes \c!...
\dodododotypefile ... \firststageinitializetyping
  \secondstageinitializetypi...
\dotypefile ...le {#3}} {\dododotypefile {#1}{#3}}
  \else \dododotypefile \v!f...
l.6   \typefile[default]{t2.mkiv}

! Illegal unit of measure (pt inserted).

...

MTXrun | fatal error: return code: 1
---

The source file and the log are attached...

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t2.log
Description: Binary data


t2.mkiv
Description: Binary data


t2.pdf
Description: Adobe PDF document
___
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
___


Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Still the same error with the latest beta.

Lukas

On Wed, 01 Dec 2010 15:47:31 +0100, Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz wrote:


Hello Hans -

On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen pra...@wxs.nl wrote:


I'm trying to \setuptyping to use a 8pt font size [of a tt typeface].


\setuptyping ... bodyfont=8pt


- Did you test it?

--- t2.mkiv

\enableregime[cp1250]

\setuptyping[default][bodyfont=8pt] % As you advised

\starttext
   \typefile[default]{t2.mkiv}
\stoptext

---

I got a result (seems desired), but with error return code:

---

MTXrun | run 1: luatex 
--fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en
 
--lua=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en.lui
 --backend=pdf C:/Lukas/ConTeXt/Cont-Tst/t2.mki
  \write18 enabled.
(C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv

ConTeXt  ver: 2010.11.27 14:27 MKIV  fmt: 2010.11.29  int: english/english

system  : cont-new loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil.mkiv loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.mkiv
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(c:/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme 
(c:/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) 
(c:/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) 
(c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) 
(c:/ConTeXt/tex/texmf-context/tex/cont
system  : cont-err loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
)
system  : t2.top loaded
(t2.top
){c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
bodyfont: 12pt rm is loaded
fonts   : preloading latin modern fonts (first stage)
language: language en is active
publications: loading formatting style from bxml-apa
(c:/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv)
systems : begin file C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv at line 5
! Missing number, treated as zero.
to be read again
\relax
\docheckverbatimmargins ...er \c!oddmargin \relax
   \ifzeropt \scratchskip \el...
\firststageinitializetyping ...eckverbatimmargins
   \dosettypingattributes \c!...
\dodododotypefile ... \firststageinitializetyping
   \secondstageinitializetypi...
\dotypefile ...le {#3}} {\dododotypefile {#1}{#3}}
   \else \dododotypefile \v!f...
l.6   \typefile[default]{t2.mkiv}

! Illegal unit of measure (pt inserted).

...

MTXrun | fatal error: return code: 1
---

The source file and the log are attached...

Lukas

t2.log
Description: Binary data


t2.mkiv
Description: Binary data


t2.pdf
Description: Adobe PDF document
___
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
___


Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Wolfgang Schuster

Am 01.12.2010 um 16:53 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 ... Still the same error with the latest beta.

Replace your \setuptyping with:

\definetyping[default][bodyfont=8pt]

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
___


Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Much better, thanks!

Lukas


On Wed, 01 Dec 2010 17:00:59 +0100, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


\definetyping[default][bodyfont=8pt]



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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
___