ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setuptyping: font size
@ 2010-12-01  9:50 Procházka Lukáš Ing. - Pontex s. r. o.
  2010-12-01 14:32 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2010-12-01  9:50 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 1941 bytes --]

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:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

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

[-- Attachment #2: t.mkiv --]
[-- Type: application/octet-stream, Size: 546 bytes --]

\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

[-- Attachment #3: t.log --]
[-- Type: application/octet-stream, Size: 8948 bytes --]

(C:/Lukas/ConTeXt/Cont-Tst/t.mkiv
jobcontrol      > resuming randomizer with 0.87630848109378

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/context/base/type-otf.mkiv))
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          : t.top loaded
%
%	begin of optionfile
%
%	% runtime options files (command line driven)
%	\unprotect
%	% feedback and basic job control
%	\nonstopmode
%	% handy for special styles
%	\startluacode
%	document = document or { }
%	document.arguments={
%	 ["halt-on-error"]=true,
%	 ["nonstopmode"]=true,
%	}
%	document.files={
%	 "C:/Lukas/ConTeXt/Cont-Tst/t.mkiv",
%	}
%	\stopluacode
%	% process info
%	\setupsystem[inputfile=C:/Lukas/ConTeXt/Cont-Tst/t.mkiv]
%	\setupsystem[\c!n=1,\c!m=1]
%	% modes
%	% options (not that important)
%	\startsetups *runtime:options
%	\setupoutput[pdftex]
%	\stopsetups
%	% styles and modules
%	\startsetups *runtime:modules
%	\stopsetups
%	% done
%	\protect \endinput
%
%	end of optionfile
%
(t.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/t.mkiv at line 10
! 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.11   \typefile[default]{t.mkiv}
                                 
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Illegal unit of measure (pt inserted).
<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.11   \typefile[default]{t.mkiv}
                                 
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \relax 
\docheckverbatimmargins ...r \c!evenmargin \relax 
                                                  \ifzeropt \scratchskip \el...
\firststageinitializetyping ...eckverbatimmargins 
                                                  \dosettypingattributes \c!...
\dodododotypefile ... \firststageinitializetyping 
                                                  \secondstageinitializetypi...
\dotypefile ...le {#3}} {\dododotypefile {#1}{#3}}
                                                  \else \dododotypefile \v!f...
l.11   \typefile[default]{t.mkiv}
                                 
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Illegal unit of measure (pt inserted).
<to be read again> 
                   \relax 
\docheckverbatimmargins ...r \c!evenmargin \relax 
                                                  \ifzeropt \scratchskip \el...
\firststageinitializetyping ...eckverbatimmargins 
                                                  \dosettypingattributes \c!...
\dodododotypefile ... \firststageinitializetyping 
                                                  \secondstageinitializetypi...
\dotypefile ...le {#3}} {\dododotypefile {#1}{#3}}
                                                  \else \dododotypefile \v!f...
l.11   \typefile[default]{t.mkiv}
                                 
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)


Overfull \hbox (6.50868pt too wide) in paragraph at lines 22--38
[][]\*modern8pttttf* \setuptyping[default][bodyfont=8pt,style=\tt\setupinterlinespace] % This works somehow but with errors 

\hbox(6.95119+2.70322)x426.78743, direction TLT
.\whatsit
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\hbox(6.95119+2.70322)x0.0, direction TLT
.\*modern8pttttf* \
.\*modern8pttttf* s
.\*modern8pttttf* e
.etc.

backends        > using xmp file 'c:/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
systems         : end file C:/Lukas/ConTeXt/Cont-Tst/t.mkiv at line 12
 )<c:/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmmono8-regular.otf><c:/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats : used config file          - c:/ConTeXt/tex/texmf/web2c/texmfcnf.lua
mkiv lua stats : used cache path           - c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c
mkiv lua stats : input load time           - 0.016 seconds
mkiv lua stats : stored bytecode data      - 257 modules, 56 tables, 313 chunks
mkiv lua stats : cleaned up reserved nodes - 33 nodes, 9 lists of 411
mkiv lua stats : node memory usage         - 18 glue_spec
mkiv lua stats : node list callback tasks  - 6 unique task lists, 5 instances (re)created, 396 calls
mkiv lua stats : used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats : loaded patterns           - en::2
mkiv lua stats : callbacks                 - direct: 608, indirect: 4508, total: 5116
mkiv lua stats : lxml preparation time     - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats : result saved in file      - t.pdf
mkiv lua stats : loaded fonts              - 53 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman5-bold.otf lmroman5-regular.otf lmroman6-bold.otf lmroman6-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman8-bold.otf lmroman8-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb5.tfm eufb7.tfm eufm10.tfm eufm5.tfm eufm7.tfm msam10.tfm msam5.tfm msam7.tfm msbm10.tfm msbm5.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi5.tfm lmmi6.tfm lmmi7.tfm lmmi8.tfm lmmi9.tfm lmmib10.tfm lmmib5.tfm lmmib7.tfm lmsy10.tfm lmsy5.tfm lmsy6.tfm lmsy7.tfm lmsy8.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr5.tfm rm-lmr6.tfm rm-lmr7.tfm rm-lmr8.tfm rm-lmr9.tfm
mkiv lua stats : fonts load time           - 0.469 seconds 
mkiv lua stats : luatex banner             - this is luatex, version beta-0.64.0-2010111223 (web2c 2010) (rev 3956)
mkiv lua stats : control sequences         - 29986 of 165536
mkiv lua stats : current memory usage      - 43 MB (ctx: 44 MB)
mkiv lua stats : runtime                   - 1.094 seconds, 1 processed pages, 1 shipped pages, 0.914 pages/second


[-- Attachment #4: Type: text/plain, Size: 486 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \setuptyping: font size
  2010-12-01  9:50 \setuptyping: font size Procházka Lukáš Ing. - Pontex s. r. o.
@ 2010-12-01 14:32 ` Hans Hagen
  2010-12-01 14:47   ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2010-12-01 14:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: \setuptyping: font size
  2010-12-01 14:32 ` Hans Hagen
@ 2010-12-01 14:47   ` Procházka Lukáš Ing. - Pontex s. r. o.
  2010-12-01 15:53     ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 6+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2010-12-01 14:47 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 3301 bytes --]

Hello Hans -

On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen <pragma@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:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

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

[-- Attachment #2: t2.log --]
[-- Type: application/octet-stream, Size: 8441 bytes --]

(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/context/base/type-otf.mkiv))
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
%
%	begin of optionfile
%
%	% runtime options files (command line driven)
%	\unprotect
%	% feedback and basic job control
%	\nonstopmode
%	% handy for special styles
%	\startluacode
%	document = document or { }
%	document.arguments={
%	 ["halt-on-error"]=true,
%	 ["nonstopmode"]=true,
%	}
%	document.files={
%	 "C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv",
%	}
%	\stopluacode
%	% process info
%	\setupsystem[inputfile=C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv]
%	\setupsystem[\c!n=1,\c!m=1]
%	% modes
%	% options (not that important)
%	\startsetups *runtime:options
%	\setupoutput[pdftex]
%	\stopsetups
%	% styles and modules
%	\startsetups *runtime:modules
%	\stopsetups
%	% done
%	\protect \endinput
%
%	end of optionfile
%
(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}
                                 
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Illegal unit of measure (pt inserted).
<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}
                                 
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \relax 
\docheckverbatimmargins ...r \c!evenmargin \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}
                                 
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Illegal unit of measure (pt inserted).
<to be read again> 
                   \relax 
\docheckverbatimmargins ...r \c!evenmargin \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}
                                 
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

backends        > using xmp file 'c:/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
systems         : end file C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv at line 7
 )<c:/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman8-regular.otf><c:/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats : used config file          - c:/ConTeXt/tex/texmf/web2c/texmfcnf.lua
mkiv lua stats : used cache path           - c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c
mkiv lua stats : input load time           - 0.047 seconds
mkiv lua stats : stored bytecode data      - 257 modules, 56 tables, 313 chunks
mkiv lua stats : cleaned up reserved nodes - 33 nodes, 9 lists of 411
mkiv lua stats : node memory usage         - 18 glue_spec
mkiv lua stats : node list callback tasks  - 6 unique task lists, 5 instances (re)created, 361 calls
mkiv lua stats : used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats : loaded patterns           - en::2
mkiv lua stats : callbacks                 - direct: 567, indirect: 4503, total: 5070
mkiv lua stats : lxml preparation time     - 0.000 seconds, 0 nodes, 11 lpath calls, 0 cached calls
mkiv lua stats : result saved in file      - t2.pdf
mkiv lua stats : loaded fonts              - 53 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman5-bold.otf lmroman5-regular.otf lmroman6-bold.otf lmroman6-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman8-bold.otf lmroman8-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb5.tfm eufb7.tfm eufm10.tfm eufm5.tfm eufm7.tfm msam10.tfm msam5.tfm msam7.tfm msbm10.tfm msbm5.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi5.tfm lmmi6.tfm lmmi7.tfm lmmi8.tfm lmmi9.tfm lmmib10.tfm lmmib5.tfm lmmib7.tfm lmsy10.tfm lmsy5.tfm lmsy6.tfm lmsy7.tfm lmsy8.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr5.tfm rm-lmr6.tfm rm-lmr7.tfm rm-lmr8.tfm rm-lmr9.tfm
mkiv lua stats : fonts load time           - 0.750 seconds 
mkiv lua stats : luatex banner             - this is luatex, version beta-0.64.0-2010111223 (web2c 2010) (rev 3956)
mkiv lua stats : control sequences         - 29984 of 165536
mkiv lua stats : current memory usage      - 43 MB (ctx: 44 MB)
mkiv lua stats : runtime                   - 1.500 seconds, 1 processed pages, 1 shipped pages, 0.667 pages/second


[-- Attachment #3: t2.mkiv --]
[-- Type: application/octet-stream, Size: 118 bytes --]

\enableregime[cp1250]

\setuptyping[default][bodyfont=8pt]

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

[-- Attachment #4: t2.pdf --]
[-- Type: application/pdf, Size: 9538 bytes --]

[-- Attachment #5: Type: text/plain, Size: 486 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \setuptyping: font size
  2010-12-01 14:47   ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2010-12-01 15:53     ` Procházka Lukáš Ing. - Pontex s. r. o.
  2010-12-01 16:00       ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2010-12-01 15:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 3394 bytes --]

... 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. <LPr@pontex.cz> wrote:

> Hello Hans -
>
> On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen <pragma@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

[-- Attachment #2: t2.log --]
[-- Type: application/octet-stream, Size: 8440 bytes --]

(C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv

ConTeXt  ver: 2010.12.01 15:28 MKIV  fmt: 2010.12.1  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/context/base/type-otf.mkiv))
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
%
%	begin of optionfile
%
%	% runtime options files (command line driven)
%	\unprotect
%	% feedback and basic job control
%	\nonstopmode
%	% handy for special styles
%	\startluacode
%	document = document or { }
%	document.arguments={
%	 ["halt-on-error"]=true,
%	 ["nonstopmode"]=true,
%	}
%	document.files={
%	 "C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv",
%	}
%	\stopluacode
%	% process info
%	\setupsystem[inputfile=C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv]
%	\setupsystem[\c!n=1,\c!m=1]
%	% modes
%	% options (not that important)
%	\startsetups *runtime:options
%	\setupoutput[pdftex]
%	\stopsetups
%	% styles and modules
%	\startsetups *runtime:modules
%	\stopsetups
%	% done
%	\protect \endinput
%
%	end of optionfile
%
(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}
                                 
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Illegal unit of measure (pt inserted).
<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}
                                 
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

! Missing number, treated as zero.
<to be read again> 
                   \relax 
\docheckverbatimmargins ...r \c!evenmargin \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}
                                 
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Illegal unit of measure (pt inserted).
<to be read again> 
                   \relax 
\docheckverbatimmargins ...r \c!evenmargin \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}
                                 
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

backends        > using xmp file 'c:/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
systems         : end file C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv at line 7
 )<c:/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman8-regular.otf><c:/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats : used config file          - c:/ConTeXt/tex/texmf/web2c/texmfcnf.lua
mkiv lua stats : used cache path           - c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c
mkiv lua stats : input load time           - 0.078 seconds
mkiv lua stats : stored bytecode data      - 259 modules, 56 tables, 315 chunks
mkiv lua stats : cleaned up reserved nodes - 33 nodes, 9 lists of 411
mkiv lua stats : node memory usage         - 18 glue_spec
mkiv lua stats : node list callback tasks  - 6 unique task lists, 5 instances (re)created, 359 calls
mkiv lua stats : used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats : loaded patterns           - en::2
mkiv lua stats : callbacks                 - direct: 565, indirect: 4496, total: 5061
mkiv lua stats : lxml preparation time     - 0.000 seconds, 0 nodes, 11 lpath calls, 0 cached calls
mkiv lua stats : result saved in file      - t2.pdf
mkiv lua stats : loaded fonts              - 53 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman5-bold.otf lmroman5-regular.otf lmroman6-bold.otf lmroman6-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman8-bold.otf lmroman8-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb5.tfm eufb7.tfm eufm10.tfm eufm5.tfm eufm7.tfm msam10.tfm msam5.tfm msam7.tfm msbm10.tfm msbm5.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi5.tfm lmmi6.tfm lmmi7.tfm lmmi8.tfm lmmi9.tfm lmmib10.tfm lmmib5.tfm lmmib7.tfm lmsy10.tfm lmsy5.tfm lmsy6.tfm lmsy7.tfm lmsy8.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr5.tfm rm-lmr6.tfm rm-lmr7.tfm rm-lmr8.tfm rm-lmr9.tfm
mkiv lua stats : fonts load time           - 0.906 seconds 
mkiv lua stats : luatex banner             - this is luatex, version beta-0.64.0-2010111223 (web2c 2010) (rev 3956)
mkiv lua stats : control sequences         - 29982 of 165536
mkiv lua stats : current memory usage      - 43 MB (ctx: 44 MB)
mkiv lua stats : runtime                   - 1.609 seconds, 1 processed pages, 1 shipped pages, 0.622 pages/second


[-- Attachment #3: t2.mkiv --]
[-- Type: application/octet-stream, Size: 118 bytes --]

\enableregime[cp1250]

\setuptyping[default][bodyfont=8pt]

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

[-- Attachment #4: t2.pdf --]
[-- Type: application/pdf, Size: 9538 bytes --]

[-- Attachment #5: Type: text/plain, Size: 486 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \setuptyping: font size
  2010-12-01 15:53     ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2010-12-01 16:00       ` Wolfgang Schuster
  2010-12-01 16:05         ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2010-12-01 16:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: \setuptyping: font size
  2010-12-01 16:00       ` Wolfgang Schuster
@ 2010-12-01 16:05         ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 0 replies; 6+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2010-12-01 16:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

... Much better, thanks!

Lukas


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

> \definetyping[default][bodyfont=8pt]


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@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
___________________________________________________________________________________


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

end of thread, other threads:[~2010-12-01 16:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-01  9:50 \setuptyping: font size Procházka Lukáš Ing. - Pontex s. r. o.
2010-12-01 14:32 ` Hans Hagen
2010-12-01 14:47   ` Procházka Lukáš Ing. - Pontex s. r. o.
2010-12-01 15:53     ` Procházka Lukáš Ing. - Pontex s. r. o.
2010-12-01 16:00       ` Wolfgang Schuster
2010-12-01 16:05         ` Procházka Lukáš Ing. - Pontex s. r. o.

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