Re: [NTG-context] setuptyping

2018-09-11 Thread Wolfgang Schuster

Hi Alan,

the difference between both is that smalltype switches to the monospace 
font while small uses the default style (in most cases a serif font).


Wolfgang

Alan Braslau schrieb am 11.09.18 um 16:13:

Wolfgang,

There is also [style=small]. Is it preferable to use style=smalltype?

Also, there is [style=bigger], which is a bit inconsistent (with [style=small] rather than 
"smaller"). I would have expected "style=big", especially as the value "big" is 
already used in other contexts.

Alan

On Mon, 10 Sep 2018 22:16:04 +0200
Wolfgang Schuster  wrote:


To limit the smaller font to \starttyping it should be

      \setuptyping [typing] [style=\ttxx]

or

      \setuptyping [typing] [style=smalltype]

because \starttyping is a generated command like \startXML.

Wolfgang


Taco Hoekwater schrieb am 10.09.18 um 11:32:

Hi Hans,
Replace your two setuptyping lines with:

\setuptyping[style=\ttxx]
\definetyping[XML]
\setuptyping[XML][option=XML,style=italic]

nothing else needs to change

Best wishes,
Taco

  

On 10 Sep 2018, at 11:22, Hans van der Meer  wrote:



Taco Hoekwater
Elvenkind BV




___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] setuptyping

2018-09-10 Thread Wolfgang Schuster

To limit the smaller font to \starttyping it should be

    \setuptyping [typing] [style=\ttxx]

or

    \setuptyping [typing] [style=smalltype]

because \starttyping is a generated command like \startXML.

Wolfgang


Taco Hoekwater schrieb am 10.09.18 um 11:32:

Hi Hans,
Replace your two setuptyping lines with:

   \setuptyping[style=\ttxx]
   \definetyping[XML]
   \setuptyping[XML][option=XML,style=italic]

nothing else needs to change

Best wishes,
Taco



On 10 Sep 2018, at 11:22, Hans van der Meer  wrote:



Taco Hoekwater
Elvenkind BV




___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] setuptyping

2018-09-10 Thread Taco Hoekwater
Hi Hans,
Replace your two setuptyping lines with:

  \setuptyping[style=\ttxx]
  \definetyping[XML]
  \setuptyping[XML][option=XML,style=italic]

nothing else needs to change

Best wishes,
Taco


> On 10 Sep 2018, at 11:22, Hans van der Meer  wrote:
> 
> 

Taco Hoekwater
Elvenkind BV




___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] setuptyping

2018-09-10 Thread Hans van der Meer
I want to differentiate the typing of XML-code with \startXML and other text with \starttyping.That doesn’t work as I expect or I misinterpret something.The minimal example shows that in the following code there is no difference between using  \startXML or \starttyping

typingsetup.pdf
Description: Adobe PDF document


typingsetup.tex
Description: Binary data
.
dr. Hans van der Meer

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \setuptyping[lines=yes] bug in beta?

2013-10-23 Thread Wolfgang Schuster

Am 22.10.2013 um 19:47 schrieb Pablo Rodriguez oi...@gmx.es:

 Dear list,
 
 the following sample:
 
 \showframe
 \setuppapersize[S6]
 \setuptyping[option=TEX,lines=yes]

You can use this setup for the moment:

\setuptyping[option=TEX,align={right,broad}]

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[lines=yes] bug in beta?

2013-10-23 Thread Pablo Rodriguez
On 10/23/2013 12:28 PM, Wolfgang Schuster wrote:
 Am 22.10.2013 um 19:47 schrieb Pablo Rodriguez oi...@gmx.es:
 
 Dear list,

 the following sample:

 \showframe
 \setuppapersize[S6]
 \setuptyping[option=TEX,lines=yes]
 
 You can use this setup for the moment:
 
 \setuptyping[option=TEX,align={right,broad}]

Many thanks again for your help, Wolfgang.

This is exactly what I need.


Pablo
-- 
http://www.ousia.tk
___
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
___


[NTG-context] \setuptyping[lines=yes] bug in beta?

2013-10-22 Thread Pablo Rodriguez
Dear list,

the following sample:

\showframe
\setuppapersize[S6]
\setuptyping[option=TEX,lines=yes]
\starttext
\starttyping
\startvariante[MRU]{{\em om} X}En un lugar de la Mancha, de cuyo nombre
no quiero acordarme, no ha mucho tiempo que vivía un hidalgo de los de
lanza en astillero, adarga antigua, rocín flaco y galgo
corredor.\stopvariante[MRU]
\stoptyping
\stoptext

gets lines broken wrong in beta from 15.10 (I have just updated the
ConTeXt Suite, but I get no newer beta), but lines are broken right with
MkIV in http://live.contextgarden.net.

I think this may be a bug.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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 and \type{}

2010-12-04 Thread Hans Hagen

On 3-12-2010 10:32, Khaled Hosny wrote:

Is there a way to setup insertion of some stuff before/after \type{},
tried \setuptyping but only works for \start/stoptyping.

\setuptyping[before=\framed]

\starttext
\type{aa}

\starttyping
aa
\stoptyping
\stoptext


the next beta will have:

\starttext

test \type[left=(,right=),command=\inframed]{test}

\stoptext

but command is somewhat restricted as it does not get an argument but 
something \bgroup..\egroup which is fine for anything that gets boxed



-
  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 and \type{}

2010-12-04 Thread Khaled Hosny
On Sat, Dec 04, 2010 at 06:41:37PM +0100, Hans Hagen wrote:
 On 3-12-2010 10:32, Khaled Hosny wrote:
 Is there a way to setup insertion of some stuff before/after \type{},
 tried \setuptyping but only works for \start/stoptyping.
 
 \setuptyping[before=\framed]
 
 \starttext
 \type{aa}
 
 \starttyping
 aa
 \stoptyping
 \stoptext
 
 the next beta will have:
 
 \starttext
 
 test \type[left=(,right=),command=\inframed]{test}
 
 \stoptext
 
 but command is somewhat restricted as it does not get an argument
 but something \bgroup..\egroup which is fine for anything that gets
 boxed

Thanks Hans!

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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 and \type{}

2010-12-04 Thread Khaled Hosny
On Fri, Dec 03, 2010 at 03:36:14PM +0100, Wolfgang Schuster wrote:
 
 Am 03.12.2010 um 10:32 schrieb Khaled Hosny:
 
  Is there a way to setup insertion of some stuff before/after \type{},
  tried \setuptyping but only works for \start/stoptyping.
  
  \setuptyping[before=\framed]
 
 You can try to convince Hans to add a command key to \setuptype, untill
 then you can use this:
 
 \unexpanded\def\mytype{\groupedcommand{\setgroupedtype\inframed}{\relax}}
 
 \starttext
 one \mytype{\two} three
 \stoptext

Thanks Wolfgang.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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
___


[NTG-context] \setuptyping and \type{}

2010-12-03 Thread Khaled Hosny
Is there a way to setup insertion of some stuff before/after \type{},
tried \setuptyping but only works for \start/stoptyping.

\setuptyping[before=\framed]

\starttext
\type{aa}

\starttyping
aa
\stoptyping
\stoptext

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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 and \type{}

2010-12-03 Thread Wolfgang Schuster

Am 03.12.2010 um 10:32 schrieb Khaled Hosny:

 Is there a way to setup insertion of some stuff before/after \type{},
 tried \setuptyping but only works for \start/stoptyping.
 
 \setuptyping[before=\framed]

You can try to convince Hans to add a command key to \setuptype, untill
then you can use this:

\unexpanded\def\mytype{\groupedcommand{\setgroupedtype\inframed}{\relax}}

\starttext
one \mytype{\two} three
\stoptext

„before“ and „after“ keys are used only for environments to change
the spacing (e.g. before=\blank) at the begin and end of a environment
or to frame it (e.g. before=\startframedtext).

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 and \type{}

2010-12-03 Thread Hans Hagen

On 3-12-2010 10:32, Khaled Hosny wrote:

Is there a way to setup insertion of some stuff before/after \type{},
tried \setuptyping but only works for \start/stoptyping.

\setuptyping[before=\framed]

\starttext
\type{aa}

\starttyping
aa
\stoptyping
\stoptext


that would be 'left' and 'right' then (but it's not yet there)

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


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


[NTG-context] \setuptyping[tab=...]

2010-05-10 Thread Peter Münster
Hello,

The length of the tab is always 7:

% one tab before each bla:
\setuptyping[tab=2]
\starttext
\starttyping
12345678901234567890
bla bla
\stoptyping
\setuptyping[tab=4]
\starttyping
12345678901234567890
bla bla
\stoptyping
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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[tab=...]

2010-05-10 Thread Hans Hagen

On 10-5-2010 12:04, Peter Münster wrote:

Hello,

The length of the tab is always 7:

% one tab before each bla:
\setuptyping[tab=2]
\starttext
\starttyping
12345678901234567890
bla bla
\stoptyping
\setuptyping[tab=4]
\starttyping
12345678901234567890
bla bla
\stoptyping
\stoptext


fixed in next beta

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


[NTG-context] \setuptyping[numbering=line] don't emit line numbers

2010-04-21 Thread Hongwen Qiu
$ context --version
MTXrun | current version: 2010.04.16 21:08

$ luatex --version
This is LuaTeX, Version beta-0.60.0-2010040422

I found that \setuptyping[numbering=line] no longer produces line
numbers any more. So are there something changed, or just it's ought to
be ok?
___
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
___


[NTG-context] setuptyping in MKIV

2009-08-21 Thread Aditya Mahajan

Hi,

If I set option to empty in setuptyping, the output of \starttyping 
stoptyping is colored.


\setuptyping[option=]
\starttext
\starttyping
% This is a test
\stoptyping
\stoptext

This works fine in MKII, but in MKIV the % is colored. The color goes away 
if I set option=none. I think this is a bug, but cannot figure out its 
cause.


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
___


Re: [NTG-context] setuptyping in MKIV

2009-08-21 Thread Hans Hagen

Aditya Mahajan wrote:

Hi,

If I set option to empty in setuptyping, the output of \starttyping 
stoptyping is colored.


\setuptyping[option=]
\starttext
\starttyping
% This is a test
\stoptyping
\stoptext

This works fine in MKII, but in MKIV the % is colored. The color goes 
away if I set option=none. I think this is a bug, but cannot figure out 
its cause.


it's just the fallback:

   \edef\prettyidentifier{\executeifdefined{\??ty\??ty\ascii}{TEX}}%

add

\setvalue{\??tp:\c!option:\empty}{\let\obeycharacters\relax}

to buff-ver.mkiv and it will work ok


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


Re: [NTG-context] setuptyping in MKIV

2009-08-21 Thread Aditya Mahajan

On Sat, 22 Aug 2009, Hans Hagen wrote:


Aditya Mahajan wrote:

Hi,

If I set option to empty in setuptyping, the output of \starttyping 
stoptyping is colored.


\setuptyping[option=]
\starttext
\starttyping
% This is a test
\stoptyping
\stoptext

This works fine in MKII, but in MKIV the % is colored. The color goes away 
if I set option=none. I think this is a bug, but cannot figure out its 
cause.


it's just the fallback:

  \edef\prettyidentifier{\executeifdefined{\??ty\??ty\ascii}{TEX}}%

add

\setvalue{\??tp:\c!option:\empty}{\let\obeycharacters\relax}

to buff-ver.mkiv and it will work ok


Thanks.

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
___


Re: [NTG-context] setuptyping

2006-01-30 Thread Hans Hagen
Taco Hoekwater wrote:
 Hans van der Meer wrote:
 I get some unexpected results with setuptyping.
 According to the manual the style-parameter has options normal, 
 bold,  small, etc.

 AFAICS, this has not worked in a very very long time, and it may
 even be a bug in the documentation. But it was easy to fix the code,
 so see attached file with a small change to the \setupcommonverbatim
 routine.
it's indeed a bug in the documentation, and maybe a font parameter is 
better; the reason is that verbatim is one of the trickiest part of 
(any) tex macro package, if only because tex needs to be able to typeset 
tex

 for HansH: I did not want to call \startattributes, so I invented
 a new macro called '\getstylevalue'.
i'll have a look at it 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setuptyping

2006-01-30 Thread Hans Hagen
Taco Hoekwater wrote:
 Hans van der Meer wrote:
 I get some unexpected results with setuptyping.
 According to the manual the style-parameter has options normal, 
 bold,  small, etc.

 AFAICS, this has not worked in a very very long time, and it may
 even be a bug in the documentation. But it was easy to fix the code,
 so see attached file with a small change to the \setupcommonverbatim
 routine.

 for HansH: I did not want to call \startattributes, so I invented
 a new macro called '\getstylevalue'.
   \def\verbatimfont{\dosetfontattribute{#1}\c!style\normalnoligatures\font}%

so, there is a macro that kind of does what your's does: \dosetfontattribute

i'll apply your patch 

(i need to move the attr code from core-spa to font-att or so) 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] setuptyping

2006-01-28 Thread Hans van der Meer
I get some unexpected results with setuptyping.
According to the manual the style-parameter has options normal, bold,  
small, etc.
But if I use them I get the option back.
The only thing that seems to work is style=command.

Example:
\setuptyping[style=bold]
\starttext
\starttyping
abcd
\stoptyping
\stoptext

Results in typeset text boldabcd

yours sincerely,
dr. H. van der Meer



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setuptyping

2006-01-28 Thread Radhelorn
Hans van der Meer wrote:
 I get some unexpected results with setuptyping.
 According to the manual the style-parameter has options normal, bold,  
 small, etc.
 But if I use them I get the option back.
 The only thing that seems to work is style=command.
 
 Example:
 \setuptyping[style=bold]
 \starttext
 \starttyping
 abcd
 \stoptyping
 \stoptext
 
 Results in typeset text boldabcd
 
 yours sincerely,
 dr. H. van der Meer
 
 
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

Try \setuptyping[style=\bf] -- always works.


-- 
Radhelorn [EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setuptyping

2006-01-28 Thread Taco Hoekwater

Hans van der Meer wrote:

I get some unexpected results with setuptyping.
According to the manual the style-parameter has options normal, bold,  
small, etc.


AFAICS, this has not worked in a very very long time, and it may
even be a bug in the documentation. But it was easy to fix the code,
so see attached file with a small change to the \setupcommonverbatim
routine.

for HansH: I did not want to call \startattributes, so I invented
a new macro called '\getstylevalue'.

Cheers, taco


ma.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setuptyping

2006-01-28 Thread VnPenguin
On 1/27/06, Hans van der Meer [EMAIL PROTECTED] wrote:
 I get some unexpected results with setuptyping.
 According to the manual the style-parameter has options normal, bold,
 small, etc.
 But if I use them I get the option back.
 The only thing that seems to work is style=command.

 Example:
 \setuptyping[style=bold]
 \starttext
 \starttyping
 abcd
 \stoptyping
 \stoptext

 Results in typeset text boldabcd

Yes, I got the same error here with:

 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

   texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.141592-1.30.5-2.2 (Web2C 7.5.5)
   context : ver: 2006.01.28 10:09
   cont-en : ver: 2006.01.28 10:09  fmt: 2006.1.28  mes: english

But if you change to

\setuptyping[style={\bf}]

it works fine :-)


--
http://vnoss.org
Vietnamese Open Source Software Community
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setuptyping

2006-01-28 Thread Hans van der Meer
Thanks.

It is of course a minor annoyance, because one can always give the  
font commands themselves.
However, I think it is confusing for newcomers when these things are  
shown in the manual but will not work. One cannot expect from  
newcomers to delve into the code. As a result they might turn away  
from context, which would be a pity. So if you don't mind, I will  
continue to signal such things. Keeps you busy :-)

yours sincerely,
dr. H. van der Meer



On Jan 28, 2006, at 12:23, Taco Hoekwater wrote:

 Hans van der Meer wrote:
 I get some unexpected results with setuptyping.
 According to the manual the style-parameter has options normal,  
 bold,  small, etc.

 AFAICS, this has not worked in a very very long time, and it may
 even be a bug in the documentation. But it was easy to fix the code,
 so see attached file with a small change to the \setupcommonverbatim
 routine.

 for HansH: I did not want to call \startattributes, so I invented
 a new macro called '\getstylevalue'.

 Cheers, taco
 ma.tex
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setuptyping

2003-09-17 Thread Jean-Pierre Le Narzul
Hi,

For typing Java code in a context document, I use \starttyping ... 
\stoptyping.

I have a problem when I configure \setuptyping in the following way :

\setuptyping[typing][color=black,style=\ss,escape=/,option=commands]

If I put characters like { or _ in my source (between \starttyping and 
\stoptyping)
, they do not appear in the produced document

{ character is replaced by - character
_ character is replaced by '  character
etc
If I configure setuptyping in the following way

\setuptyping[typing][color=black,style=\tt,escape=/,option=commands]

(just change \ss to \tt)

everything is ok !

Any idea ?

thanks in advance for any help

jp

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context