Re: [NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Pablo Rodriguez
On 08/03/2017 07:13 AM, Pablo Rodriguez wrote:
> On 08/02/2017 11:08 PM, Hans Hagen wrote:
>> ok i uploaded a new beta (but with some experimental font stuff so who 
>> knows what happens now)
> 
> I’m afraid I get a new crash with the same source (the log contains it):
> [...]
> lua error   > lua error on line 1 in file tex-bug.tex:
> 
> ...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: You
> cannot set field glue_sign in a node of type glue_spec
> stack traceback:
>   [C]: in function 'setfield'
>   ...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: in
> function 'setboxglue'
>   ...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
> function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>
> 
> 1 >>  \setupnote[footnote]
> 2 [align={hanging}]

Hans,

since it seems you don’t reproduce the bug, I wonder whether this might
be caused by Linux 32bit luatex binaries being version 1.0.5 and Windows
64bt has version 1.0.6.x.

Just in case it helps,

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

Re: [NTG-context] \tt in \typeinlinebuffer

2017-08-02 Thread Pablo Rodriguez
On 08/02/2017 09:36 PM, Pablo Rodriguez wrote:
> Hans,
> 
> after testing the new \xmlinlineprettyprinttext, I discovered the following:
> [...]
> \typeinlinebuffer doesn’t have \tt as default font.

Hans,

many thanks for having fixed this in latest beta.

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

Re: [NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Pablo Rodriguez
On 08/02/2017 11:08 PM, Hans Hagen wrote:
> ok i uploaded a new beta (but with some experimental font stuff so who 
> knows what happens now)

Hans,

I’m afraid I get a new crash with the same source (the log contains it):

open source > level 1, order 1, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2017.08.02 23:00 MKIV beta  fmt:
2017.8.3  int: english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'tex-bug', input './tex-bug.xml',
result 'tex-bug'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name 'tex-bug.tex'
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 4, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/sample/common/knuth.tex'
close source> level 3, order 4, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/sample/common/knuth.tex'

lua error   > lua error on line 1 in file tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: You
cannot set field glue_sign in a node of type glue_spec
stack traceback:
[C]: in function 'setfield'
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7


?

lua error   > lua error on line 1 in file tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: You
cannot set field glue_sign in a node of type glue_spec
stack traceback:
[C]: in function 'setfield'
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7

End of file on the terminal!

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

Re: [NTG-context] Cambria official typescript (mis)behavior

2017-08-02 Thread Vladimir Lomov
Hello,
** Aditya Mahajan [2017-08-02 17:46:53 -0400]:

> On Wed, 2 Aug 2017, Idris Samawi Hamid ادريس سماوي حامد wrote:
> 
>> On Wed, 02 Aug 2017 15:15:59 -0600, Aditya Mahajan  wrote:
>> 
>>>  Not sure if it helps, but this is worth a try (note the force key):
>>> 
>>>  mtxrun --script fonts --reload --force
>> 
>> Hmm, now I get
>> 
>> mkiv lua stats  > loaded fonts: 1 files: cambria.ttc
>> 
>> and the pdf file is correct. Thanks, Aditya! (Although I still don't
>> understand why there was a problem to begin with!)
> 
> I occasionally experience a similar issue (after an update wrong fontface is
> used, especially with math fonts) and reloading the fonts database with
> --force always fixes the issue for me. So, I have never bothered to
> investigate why the issue comes up in the first place.
> 
> Aditya

Thanks for hint Aditya.

Idris, if you use Windows 10 then may be your OS has been updated (some
time ago one of host I has access with Windows 10 has been upgraded to
ver. Windows 10 1703) and then you have updated fonts, including
Cambria. AFAIU font cache tracks somehow font version, so in case fonts
update one has to update font cache.

---
WBR, Vladimir Lomov

-- 
 Feanor: u have no idea of the depth of the stupidty of american law
___
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] Cambria official typescript (mis)behavior

2017-08-02 Thread Aditya Mahajan

On Wed, 2 Aug 2017, Idris Samawi Hamid ادريس سماوي حامد wrote:


On Wed, 02 Aug 2017 15:15:59 -0600, Aditya Mahajan  wrote:


 Not sure if it helps, but this is worth a try (note the force key):

 mtxrun --script fonts --reload --force


Hmm, now I get

mkiv lua stats  > loaded fonts: 1 files: cambria.ttc

and the pdf file is correct. Thanks, Aditya! (Although I still don't 
understand why there was a problem to begin with!)


I occasionally experience a similar issue (after an update wrong fontface 
is used, especially with math fonts) and reloading the fonts database with 
--force always fixes the issue for me. So, I have never bothered to 
investigate why the issue comes up in the first place.


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

Re: [NTG-context] Cambria official typescript (mis)behavior

2017-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد

On Wed, 02 Aug 2017 15:17:07 -0600, Hans Hagen  wrote:


On 8/2/2017 11:05 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

On Wed, 02 Aug 2017 14:34:25 -0600, Hans Hagen  wrote:


On 8/2/2017 10:21 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,
 There appears to be something awry with type-imp-cambria.mkiv or  
type-imp-dejavu.mkiv. Consider the following:

 ===
\setupbodyfont
   [cambria,12pt]
 \starttext
Test % {\it Test} {\bf Test} {\bi Test}
\stoptext
===
 This produces a pdf with Cambria Italic instead of Cambria Regular.  
Uncommenting the other three options produces the expected results.

 Is this a bug or am I missing something? Awaiting your advice!

it's ok here; it could depend on the cambria on your machine

 Cambria Regular : cambria.ttc
Cambria Italic  : cambriai.ttf
 Inspection shows cambria.ttc is indeed regular.
 The log file says
:
mkiv lua stats  > loaded fonts: 2 files: cambria.ttc, cambriai.ttf
 Updating to "current version: 2017.08.02 18:59" and purging the cache  
doesn't help
 Why is cambriai.ttf being loaded at all? Fresh log (today's beta)  
attached


probably because it's the first 'name' that matches

you can try

cambria-x


=> LM


cambria-y


=> LM


cambria-a


=> LM


as variants ; here i have an official cambria


I only have the one that comes with the latest update to Windows 10

(Never tested Cambria with ConTeXt till a few days ago (\definefont  
worked), and never tested the typescript till last night.)


Aditya's suggestion did something that seems to have fixed it, not sure  
what..


Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] Cambria official typescript (mis)behavior

2017-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 02 Aug 2017 15:15:59 -0600, Aditya Mahajan   
wrote:



On Wed, 2 Aug 2017, Idris Samawi Hamid ادريس سماوي حامد wrote:


On Wed, 02 Aug 2017 14:34:25 -0600, Hans Hagen  wrote:


On 8/2/2017 10:21 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Dear gang,
>  There appears to be something awry with type-imp-cambria.mkiv or
>  type-imp-dejavu.mkiv. Consider the following:
>  ===
> \setupbodyfont
>[cambria,12pt]
> \starttext
> Test % {\it Test} {\bf Test} {\bi Test}
> \stoptext
> ===
>  This produces a pdf with Cambria Italic instead of Cambria Regular.
>  Uncommenting the other three options produces the expected results.
>  Is this a bug or am I missing something? Awaiting your advice!
it's ok here; it could depend on the cambria on your machine


Cambria Regular : cambria.ttc
Cambria Italic  : cambriai.ttf

Inspection shows cambria.ttc is indeed regular.

The log file says
:
mkiv lua stats  > loaded fonts: 2 files: cambria.ttc, cambriai.ttf

Updating to "current version: 2017.08.02 18:59" and purging the cache  
doesn't

help


Not sure if it helps, but this is worth a try (note the force key):

mtxrun --script fonts --reload --force


Hmm, now I get

mkiv lua stats  > loaded fonts: 1 files: cambria.ttc

and the pdf file is correct. Thanks, Aditya! (Although I still don't  
understand why there was a problem to begin with!)


Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] Cambria official typescript (mis)behavior

2017-08-02 Thread Hans Hagen

On 8/2/2017 11:05 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

On Wed, 02 Aug 2017 14:34:25 -0600, Hans Hagen  wrote:


On 8/2/2017 10:21 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,
 There appears to be something awry with type-imp-cambria.mkiv or 
type-imp-dejavu.mkiv. Consider the following:

 ===
\setupbodyfont
   [cambria,12pt]
 \starttext
Test % {\it Test} {\bf Test} {\bi Test}
\stoptext
===
 This produces a pdf with Cambria Italic instead of Cambria Regular. 
Uncommenting the other three options produces the expected results.

 Is this a bug or am I missing something? Awaiting your advice!

it's ok here; it could depend on the cambria on your machine


Cambria Regular : cambria.ttc
Cambria Italic  : cambriai.ttf

Inspection shows cambria.ttc is indeed regular.

The log file says
:
mkiv lua stats  > loaded fonts: 2 files: cambria.ttc, cambriai.ttf

Updating to "current version: 2017.08.02 18:59" and purging the cache 
doesn't help


Why is cambriai.ttf being loaded at all? Fresh log (today's beta) attached


probably because it's the first 'name' that matches

you can try

cambria-x
cambria-y
cambria-a

as variants ; here i have an official cambria

Hans




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Cambria official typescript (mis)behavior

2017-08-02 Thread Aditya Mahajan

On Wed, 2 Aug 2017, Idris Samawi Hamid ادريس سماوي حامد wrote:


On Wed, 02 Aug 2017 14:34:25 -0600, Hans Hagen  wrote:


On 8/2/2017 10:21 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Dear gang,
>  There appears to be something awry with type-imp-cambria.mkiv or 
>  type-imp-dejavu.mkiv. Consider the following:

>  ===
> \setupbodyfont
>[cambria,12pt]
> \starttext
> Test % {\it Test} {\bf Test} {\bi Test}
> \stoptext
> ===
>  This produces a pdf with Cambria Italic instead of Cambria Regular. 
>  Uncommenting the other three options produces the expected results.

>  Is this a bug or am I missing something? Awaiting your advice!
it's ok here; it could depend on the cambria on your machine


Cambria Regular : cambria.ttc
Cambria Italic  : cambriai.ttf

Inspection shows cambria.ttc is indeed regular.

The log file says
:
mkiv lua stats  > loaded fonts: 2 files: cambria.ttc, cambriai.ttf

Updating to "current version: 2017.08.02 18:59" and purging the cache doesn't 
help


Not sure if it helps, but this is worth a try (note the force key):

mtxrun --script fonts --reload --force

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

Re: [NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Hans Hagen

On 8/2/2017 10:53 PM, Pablo Rodriguez wrote:


lua error   > lua error on line 1 in file /home/ousia/tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: attempt
to call global 'setfield' (a nil value)
stack traceback:
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7

End of file on the terminal!

Many thanks for your help,
ok i uploaded a new beta (but with some experimental font stuff so who 
knows what happens now)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Cambria official typescript (mis)behavior

2017-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد

On Wed, 02 Aug 2017 14:34:25 -0600, Hans Hagen  wrote:


On 8/2/2017 10:21 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,
 There appears to be something awry with type-imp-cambria.mkiv or  
type-imp-dejavu.mkiv. Consider the following:

 ===
\setupbodyfont
   [cambria,12pt]
 \starttext
Test % {\it Test} {\bf Test} {\bi Test}
\stoptext
===
 This produces a pdf with Cambria Italic instead of Cambria Regular.  
Uncommenting the other three options produces the expected results.

 Is this a bug or am I missing something? Awaiting your advice!

it's ok here; it could depend on the cambria on your machine


Cambria Regular : cambria.ttc
Cambria Italic  : cambriai.ttf

Inspection shows cambria.ttc is indeed regular.

The log file says
:
mkiv lua stats  > loaded fonts: 2 files: cambria.ttc, cambriai.ttf

Updating to "current version: 2017.08.02 18:59" and purging the cache  
doesn't help


Why is cambriai.ttf being loaded at all? Fresh log (today's beta) attached

Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

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

Re: [NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Pablo Rodriguez
On 08/02/2017 10:43 PM, Hans Hagen wrote:
> On 8/2/2017 9:58 PM, Pablo Rodriguez wrote:
>> Hans,
>>
>> I’m afraid latest beta (2017.08.02 18:59) crashes with this source:
>> [...]
> crashes with what message?
Hans,

here you have the log contents:

open source > level 1, order 1, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2017.08.02 18:59 MKIV beta  fmt:
2017.8.2  int: english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'tex-bug', input './tex-bug', result
'tex-bug'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/home/ousia/tex-bug.tex'
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 4, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/sample/common/knuth.tex'
close source> level 3, order 4, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/sample/common/knuth.tex'

lua error   > lua error on line 1 in file /home/ousia/tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: attempt
to call global 'setfield' (a nil value)
stack traceback:
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7


?

lua error   > lua error on line 1 in file /home/ousia/tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: attempt
to call global 'setfield' (a nil value)
stack traceback:
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7

End of file on the terminal!

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

Re: [NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Hans Hagen

On 8/2/2017 9:58 PM, Pablo Rodriguez wrote:

Hans,

I’m afraid latest beta (2017.08.02 18:59) crashes with this source:

 \setupnote[footnote]
 [align={hanging}]

 \starttext
 a\footnote{\input knuth}
 \stoptext

I’m afraid it might be a bug.

crashes with what message?


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Cambria official typescript (mis)behavior

2017-08-02 Thread Hans Hagen

On 8/2/2017 10:21 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,

There appears to be something awry with type-imp-cambria.mkiv or 
type-imp-dejavu.mkiv. Consider the following:


===
\setupbodyfont
   [cambria,12pt]

\starttext
Test % {\it Test} {\bf Test} {\bi Test}
\stoptext
===

This produces a pdf with Cambria Italic instead of Cambria Regular. 
Uncommenting the other three options produces the expected results.


Is this a bug or am I missing something? Awaiting your advice!

it's ok here; it could depend on the cambria on your machine



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Disable overlay on chapter pages

2017-08-02 Thread Mikael P. Sundqvist
On Wed, Aug 2, 2017 at 10:23 PM, Henning Hraban Ramm  wrote:
> Am 2017-08-02 um 19:28 schrieb Mikael P. Sundqvist :
>
>> I do not want to change the output of the chapters/sections themself.
>>
>> I want to have a "running header", but in the margin rather than in
>> the header. I get that with the code I gave, but I want to disable it
>> for new chapters _on the page where the chapter begins_.
>
> I guess this is a case for setups.
>
> \startsetups[chapterpage]
> \setupheadertexts[][][][]
> \stopsetups
>
> \setuphead[chapter][setup=chapterpage]
>
> Something like this, I didn’t check.
>
>
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD
>
> ___
> 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
> ___

Thank you for your answer, Henning.

I am sorry, but it does not work. The problem is that I don't have the
marking text in the header, but in overlays in the margins. I tried to
replace your

\setupheadertexts[][][][]

inside the setup with

\setupbackgrounds[text][rightmargin][background=]

but with no luck. But maybe you are right that one should use setups.

/Mikael
___
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] Disable overlay on chapter pages

2017-08-02 Thread Henning Hraban Ramm
Am 2017-08-02 um 19:28 schrieb Mikael P. Sundqvist :

> I do not want to change the output of the chapters/sections themself.
> 
> I want to have a "running header", but in the margin rather than in
> the header. I get that with the code I gave, but I want to disable it
> for new chapters _on the page where the chapter begins_.

I guess this is a case for setups.

\startsetups[chapterpage]
\setupheadertexts[][][][]
\stopsetups

\setuphead[chapter][setup=chapterpage]

Something like this, I didn’t check.


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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] Cambria official typescript (mis)behavior

2017-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

There appears to be something awry with type-imp-cambria.mkiv or  
type-imp-dejavu.mkiv. Consider the following:


===
\setupbodyfont
  [cambria,12pt]

\starttext
Test % {\it Test} {\bf Test} {\bi Test}
\stoptext
===

This produces a pdf with Cambria Italic instead of Cambria Regular.  
Uncommenting the other three options produces the expected results.


Is this a bug or am I missing something? Awaiting your advice!

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

test-cambria.log
Description: Binary data


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

[NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Pablo Rodriguez
Hans,

I’m afraid latest beta (2017.08.02 18:59) crashes with this source:

\setupnote[footnote]
[align={hanging}]

\starttext
a\footnote{\input knuth}
\stoptext

I’m afraid it might be a bug.

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

[NTG-context] \tt in \typeinlinebuffer

2017-08-02 Thread Pablo Rodriguez
Hans,

after testing the new \xmlinlineprettyprinttext, I discovered the following:

\starttext
\startbuffer[a]
\command
\stopbuffer
\typeinlinebuffer[a] vs. \typeinlinebuffer[a][option=TEX]
\stoptext

\typeinlinebuffer doesn’t have \tt as default font.

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

Re: [NTG-context] Disable overlay on chapter pages

2017-08-02 Thread Pablo Rodriguez
On 08/02/2017 07:28 PM, Mikael P. Sundqvist wrote:
> Hi Pablo,
> 
> many thanks for your answer! I think I might have described my issue a
> bit vague. Just to clarify:
> 
> I do not want to change the output of the chapters/sections themself.
> 
> I want to have a "running header", but in the margin rather than in
> the header. I get that with the code I gave, but I want to disable it
> for new chapters _on the page where the chapter begins_.

Sorry, Mikael, I misunderstood what you needed.

I’m afraid I don’t know how to check whether you are in the chapter page
or not.

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

Re: [NTG-context] Disable overlay on chapter pages

2017-08-02 Thread Mikael P. Sundqvist
On Wed, Aug 2, 2017 at 7:21 PM, Pablo Rodriguez  wrote:
> On 08/02/2017 12:00 PM, Mikael P. Sundqvist wrote:
>> Hi,
>>
>> I'm trying to print chapter and section titles in the margins, and it
>> works fine, except that the chapter title is also printed on the same
>> page as the chapter starts, which I find unnecessary.
>
> Hi Mikael,
>
> margintext as alternative for \setuphead may be a better approach:
>
> \showframe
> \setuppagenumbering[alternative=doublesided]
>
> \definemargindata[margintext:chapter]
> [margintext]
> [width=\rightmarginwidth, location=outer, align=flushleft]
>
> \defineheadalternative
> [margintext:chapter]
> [margintext]
> [margintext=margintext:chapter]
>
> \definemargindata[margintext:section]
> [margintext]
> [width=\leftmarginwidth, location=inner]
>
> \defineheadalternative
> [margintext:section]
> [margintext]
> [margintext=margintext:section]
>
> \setuphead[chapter]
> [alternative=margintext:chapter, style=\tf, number=no]
> \setuphead[section]
> [alternative=margintext, style=\tf, number=no]
>
> \starttext
>
> \chapter{Foo}
> \dorecurse{15}{\section{Bar}\input ward\par}
>
> \stoptext
>
> All this comes from Hans replying to a question of mine some days ago
> and from the last lines from typo-mar.mkiv.
>
> I hope I got it right ;-),
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

Hi Pablo,

many thanks for your answer! I think I might have described my issue a
bit vague. Just to clarify:

I do not want to change the output of the chapters/sections themself.

I want to have a "running header", but in the margin rather than in
the header. I get that with the code I gave, but I want to disable it
for new chapters _on the page where the chapter begins_.

If you have a copy of Bringhursts book, you know what I mean.

If it is still not clear what I mean please ask me to clarify it further.

/Mikael
___
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] Disable overlay on chapter pages

2017-08-02 Thread Pablo Rodriguez
On 08/02/2017 12:00 PM, Mikael P. Sundqvist wrote:
> Hi,
> 
> I'm trying to print chapter and section titles in the margins, and it
> works fine, except that the chapter title is also printed on the same
> page as the chapter starts, which I find unnecessary.

Hi Mikael,

margintext as alternative for \setuphead may be a better approach:

\showframe
\setuppagenumbering[alternative=doublesided]

\definemargindata[margintext:chapter]
[margintext]
[width=\rightmarginwidth, location=outer, align=flushleft]

\defineheadalternative
[margintext:chapter]
[margintext]
[margintext=margintext:chapter]

\definemargindata[margintext:section]
[margintext]
[width=\leftmarginwidth, location=inner]

\defineheadalternative
[margintext:section]
[margintext]
[margintext=margintext:section]

\setuphead[chapter]
[alternative=margintext:chapter, style=\tf, number=no]
\setuphead[section]
[alternative=margintext, style=\tf, number=no]

\starttext

\chapter{Foo}
\dorecurse{15}{\section{Bar}\input ward\par}

\stoptext

All this comes from Hans replying to a question of mine some days ago
and from the last lines from typo-mar.mkiv.

I hope I got it right ;-),

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

Re: [NTG-context] imposition with some rotated pages

2017-08-02 Thread Pablo Rodriguez
On 08/02/2017 01:40 PM, Willi Egger wrote:
> Hi Pablo,
> 
> hm, it seems that this is a special issue.

Hi Willi,

many thanks for your reply.

After printing some imposed pages (the ones that didn’t need rotation),
I realized the text was barely readable. So I will print it normal

> [...]
> The built in impositioning tool in Context is typesetting first all
> pages upright. In an other run the pages are impositioned and rotaded as
> needed according the the schema chosen. There is therefore no way to
> make a booklet from your source directly,

Weird. All my impositions only take a run.

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

Re: [NTG-context] (again) \typebufferinline for XML inline code

2017-08-02 Thread Pablo Rodriguez
On 08/02/2017 11:21 AM, Hans Hagen wrote:
> On 8/1/2017 9:12 PM, Pablo Rodriguez wrote:
>> Many thanks for your reply, Hans.
>>
>> I’m afraid this isn’t what I was looking for.
> 
> i'll make \xmlinlineprettyprinttext but there is where this madness stops

Many thanks for the implementation, Hans.

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

Re: [NTG-context] imposition with some rotated pages

2017-08-02 Thread Willi Egger
Hi Pablo,

hm, it seems that this is a special issue.

As I understand it you should separate the pages which are rotated. Then rotate 
them into another file. Finally use the [2UP] arranging for reassembling all 
pages.

The built in impositioning tool in Context is typesetting first all pages 
upright. In an other run the pages are impositioned and rotaded as needed 
according the the schema chosen. There is therefore no way to make a booklet 
from your source directly,


I hope you will find a way to separate the rotated pages!

Best regards


Willi
> On 30 Jul 2017, at 20:55, Pablo Rodriguez  wrote:
> 
> Dear list,
> 
> I have a PDF document in A4 paper size with some rotated pages.
> 
> I would like to make a booklet of it:
> 
>\setuppapersize [A5][A4, landscape]
>\setuparranging [2UP]
>\setuplayout
>  [backspace=0pt,
>topspace=0pt,
>   width=middle,
>  height=middle,
>location=middle,
>  header=0pt,
>  footer=0pt]
>\setupinteractionscreen[option={landscape, paper}, copies=1]
>\starttext
>\filterpages[report.pdf][1:25][width=0pt]
>\filterpages[report.pdf][27:30][width=0pt]%they are rotated
>\filterpages[report.pdf][31:100][width=0pt]
>\stoptext
> 
> The rotated pages in the source PDF document are a problem here.
> 
> The wiki contains the info that \filterpages may be rotated with
> [orientation=90]. But this seems to be old, since it doesn’t work.
> 
> If I add
> \rotate[rotation=90]{\filterpages[report.pdf][27:30][width=0pt]},
> automatic scaling doesn’t work. And all pages will be considered as a
> single image.
> 
> Is there any way to have rotation for some pages in the source document
> to get the right imposition?
> 
> I’m afraid rotation comes from the source PDF document in this case.
> 
> 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://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
___

[NTG-context] Disable overlay on chapter pages

2017-08-02 Thread Mikael P. Sundqvist
Hi,

I'm trying to print chapter and section titles in the margins, and it
works fine, except that the chapter title is also printed on the same
page as the chapter starts, which I find unnecessary.

1) Can I somehow (probably via the right \setuphead trick) disable
this overlay only on chapter pages?

2) If I want to disable it on another page, is there some smart way of
doint it, or should I just set it blank and then enable it when I know
I'm on next page again?

/Mikael

PS The code I have right now is given below. It compiles, but the
chapter title is shown on the first page...

\setuppagenumbering[alternative=doublesided]

\defineoverlay[mymargin][{\framed[frame=off,width=0.8in,height=0.8\textheight,offset=overlay,align={top}]{\doifrightpageelse{{\startalignment[flushleft]\getmarking[chapter]\stopalignment}}{{\startalignment[flushright]\getmarking[section]\stopalignment]

\setupbackgrounds[text][rightmargin][background=mymargin]


\starttext

\chapter{Foo}
\dorecurse{15}{\section{Bar}\input ward\par}

\stoptext
___
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] About \setupbackgrounds

2017-08-02 Thread Fabrice Couvreur
Hi Aditya,

\defineframed
[headerframed]
[
  ...,
  location=depth,
  ...,
]
Fabrice

2017-08-01 12:21 GMT+02:00 Fabrice Couvreur :

> Hi Aditya,
> Neither command responds to what I'm trying to do. I will try to be
> clearer. If we look at the letter J, it touches the bottom line of the
> frame. I would like the space to be bigger between the header and the
> bottom line.
> Thank you
> Fabrice
>
> 2017-07-31 21:30 GMT+02:00 Aditya Mahajan :
>
>> On Mon, 31 Jul 2017, Fabrice Couvreur wrote:
>>
>> https://tex.stackexchange.com/questions/84425/fancyhdr-equiv
>>> alent-in-context
>>>
>>> Hello,
>>> I considered the solution proposed by Aditya. How to have a larger space
>>> between the title and the bottomframe ?
>>>
>>
>> What do you mean by "title"? If you mean the space between the bottom
>> rule of the header and where the text starts in the page, you can change
>> that using
>>
>> \setuplayout
>>[
>>  ...,
>>  headerdistance=...,
>>  
>>]
>>
>> If you mean the space between the header and the bottom frame of the
>> header, you can play around with
>>
>> \defineframed
>> [headerframed]
>> [
>>   ...,
>>   bottomoffset=...,
>>   ...,
>> ]
>>
>>
>> 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/list
>> info/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] hvdm-plc module

2017-08-02 Thread Hans Hagen

On 8/1/2017 6:05 PM, Procházka Lukáš Ing. wrote:

Hello,

just to check: is

 
https://www.google.cz/search?q=hvdm-plc+context=utf-8=utf-8=firefox-b-ab_rd=cr=4o-AWfa3Fa6E8QeZmYH4Bw

available for download?

I'd like to test/use the hvdm-plc module (probably here: 
hvdmeer.myqnapcloud.com/pubs),

which is mentioned in one of the MAPS magazine;
but I need to download the module (and the manual) first...
you have to bribe mojca in adding the module to the garden given that it 
is packaged as a t-* module achive


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] imposition with some rotated pages

2017-08-02 Thread Hans Hagen

On 8/2/2017 7:23 AM, Pablo Rodriguez wrote:

On 08/02/2017 07:11 AM, Rudolf Bahr wrote:

On Sun, Jul 30, 2017 at 08:55:56PM +0200, Pablo Rodriguez wrote:


The rotated pages in the source PDF document are a problem here.

Is there any way to have rotation for some pages in the source document
to get the right imposition?


With "pdftk" you can rotate some or all pages of a pdf-document.
But perhaps this isn't what you want.


Many thanks for your reply, Rudolf.

I would avoid using pdftk, because I need a Windows computer for that
(problems with Java).

Besides being an extra step, I think imposition should rotate already
rotated pages (only to enable the right imposition).

the ultimate reference for that is Willi ...

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] (again) \typebufferinline for XML inline code

2017-08-02 Thread Hans Hagen

On 8/1/2017 9:12 PM, Pablo Rodriguez wrote:

On 08/01/2017 04:27 PM, Hans Hagen wrote:

On 7/31/2017 7:16 PM, Pablo Rodriguez wrote:

[...]
Would it be possible to have a new \typebufferinline that behaves such
as \type above (and has the same options in \setuptype)?

The most important part isn’t the suppression of line breaks inside, but
avoiding the addition of line breaks after and before the typed buffer.

I have been reading buff-ver.mkiv, but I’m afraid I cannot contribute
such a patch.

This is essential to have \xmlprettyprintinline and
\xmlprettyprintinlinetext in order to handle inline code in XML.


\startbuffer[foo]
foo \bar{crap}
\stopbuffer

\starttext
  \typebuffer[foo]
\stoptext


Many thanks for your reply, Hans.

I’m afraid this isn’t what I was looking for.


i'll make \xmlinlineprettyprinttext but there is where this madness stops


As shown in the following sample, I need \xmlprettyprinttext for code
inside a paragraph, not building its own paragraph.

 \startbuffer[demo]
 
 I can use colored code blocks:
 \starttext
 \ConTeXt\ is awesome!
 \stoptext
 But I’m afraid I cannot use \xmlprettyprinttext inline.
 
 \stopbuffer

 \startxmlsetups xml:initialize
  \xmlsetsetup{#1}{doc|p|code}{xml:*}
  \xmlsetsetup{#1}{pre/code}{xml:pre:code}
 \stopxmlsetups

 \xmlregistersetup{xml:initialize}

 \startxmlsetups xml:doc
  \xmlflush{#1}
 \stopxmlsetups

 \startxmlsetups xml:p
  \startpar\xmlflush{#1}\stoppar
 \stopxmlsetups

 \startxmlsetups xml:pre:code
  \xmlprettyprinttext{#1}{tex}
 \stopxmlsetups

 \startxmlsetups xml:code
 \begingroup\xmlprettyprinttext{#1}{tex}\endgroup
 \stopxmlsetups

 \starttext

 \subject{Dealing with XML}

  \xmlprocessbuffer{main}{demo}{}

 \subject{In standard \ConTeXt}

 \setuptyping[option=TEX]
 \setuptype[option=TEX]

 I can use colored code blocks:

 \starttyping
 \starttext
 \ConTeXt\ is awesome!
 \stoptext
 \stoptyping

 But I'm afraid I cannot use \type{\xmlprettyprinttext} inline.
 \stoptext

Many thanks for your help,

Pablo




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___