Re: [NTG-context] PSTricks in Context

2014-12-15 Thread Mojca Miklavec
On Sun, Dec 14, 2014 at 6:45 PM, context context wrote:
> Could someone tell me how to install and use PSTricks in Context

First of all try to figure out if you could use MetaPost or TikZ
instead. Either of them is a lot more "pdf-friendly".

Unless you still work with MkII and go via dvi->ps->pdf, you need to
compile the PSTricks graphic separately into DVI, then PS, then PDF,
and include the final graphic into the document. While ConTeXt macros
can do that for you, it's still very ugly. Unless you have a very very
very strong reason to use PSTricks, you would be better off with other
solutions.

In any case PSTricks isn't supported in the standalone distribution,
so you need to use TeX Live.


This is (probably) the proper syntax to get it running:

\usemodule[pstricks]
\starttext
\startPSTRICKS
\psline(0,0)(3,3)
\stopPSTRICKS
\stoptext

But for MkII you need to enable unrestricted write18, else you end up with

runsystem(texexec test-texapp.tex --once --batch)...disabled (restricted).
runsystem(dvips test-texapp)...disabled (restricted).
runsystem(ps2pdf test-texapp.ps test-texapp.pdf)...disabled (restricted).

(and maybe then it won't work anyway) and for MkIV it currently fails
to work as well:

(/usr/local/texlive/2014/texmf-dist/tex/generic/pst-tools/pst-tools.tex
`PST-tools' v0.05, 2014/05/12 (hv))  v1.63, 2014/06/24 (tvz,hv))
pstricks: loading colors from colo-rgb
! I can't find file `colo-rgb'.
\loadpstrickscolors ...g colors from #1}\input #1
  \relax \popmacro \dodefine...
l.47 ...s}{using indirect method; enable write18}}

(Press Enter to retry, or Control-D to exit)

Mojca
___
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] PSTricks in Context

2014-12-15 Thread Herbert Voss

Am 15.12.2014 um 09:13 schrieb Mojca Miklavec:


(and maybe then it won't work anyway) and for MkIV it currently fails
to work as well:

(/usr/local/texlive/2014/texmf-dist/tex/generic/pst-tools/pst-tools.tex
`PST-tools' v0.05, 2014/05/12 (hv))  v1.63, 2014/06/24 (tvz,hv))
pstricks: loading colors from colo-rgb
! I can't find file `colo-rgb'.
\loadpstrickscolors ...g colors from #1}\input #1
   \relax \popmacro \dodefine...
l.47 ...s}{using indirect method; enable write18}}

(Press Enter to retry, or Control-D to exit)


for mkiv read:

http://www.ntg.nl/pipermail/ntg-context/2014/079514.html

Herbert

___
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] PSTricks in Context

2014-12-15 Thread Mojca Miklavec
On Mon, Dec 15, 2014 at 9:28 AM, Herbert Voss wrote:
> Am 15.12.2014 um 09:13 schrieb Mojca Miklavec:
>
>> (and maybe then it won't work anyway) and for MkIV it currently fails
>> to work as well:
>>
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pst-tools/pst-tools.tex
>> `PST-tools' v0.05, 2014/05/12 (hv))  v1.63, 2014/06/24 (tvz,hv))
>> pstricks: loading colors from colo-rgb
>> ! I can't find file `colo-rgb'.
>> \loadpstrickscolors ...g colors from #1}\input #1
>>\relax \popmacro
>> \dodefine...
>> l.47 ...s}{using indirect method; enable write18}}
>>
>> (Press Enter to retry, or Control-D to exit)
>
>
> for mkiv read:
>
> http://www.ntg.nl/pipermail/ntg-context/2014/079514.html

Ah. I was running ConTeXt from TL 2014, but I was looking at the
sources from the latest distribution where the problem has already
been fixed. That confused me.

Anyway, the version in TeX Live now runs, but creates wrong results
(it prints out "(0,0)(3,3)" instead of drawing the line for example).

(And I'm not too eager to add support for PSTricks to the
distribution. It's a "can of worms" with zillion of other utilities
that we don't ship. And close-to-zero users.)

Mojca
___
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] PSTricks in Context

2014-12-15 Thread Akira Kakuto

Anyway, the version in TeX Live now runs, but creates wrong results
(it prints out "(0,0)(3,3)" instead of drawing the line for example).


In the case of
mtx-context | current version: 2014.12.11 12:02
The following is OK.

%
% context test.tex
%
\usemodule[pstricks]
\starttext
\startmidaligned
\startPSTRICKS
\pspicture(0mm,0mm)(30mm,30mm)
\psline(0,0)(3,3)
\endpspicture
\stopPSTRICKS
\stopmidaligned
\stoptext

Of course there are examples that don't match ConTeXt.

Best,
Akira

___
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] PSTricks in Context

2014-12-15 Thread Herbert Voss

Am 15.12.2014 um 09:55 schrieb Mojca Miklavec:


Anyway, the version in TeX Live now runs, but creates wrong results
(it prints out "(0,0)(3,3)" instead of drawing the line for example).

(And I'm not too eager to add support for PSTricks to the
distribution. It's a "can of worms" with zillion of other utilities
that we don't ship. And close-to-zero users.)


huh?? The only problem is this line

\loadpstrickscolors{colo-rgb}}

as mentioned in my mail.

Herbert

___
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] [fontloader] positioning of diacritics

2014-12-15 Thread Hans Hagen

On 12/15/2014 8:08 AM, Philipp Gesang wrote:

Good morning!

This report by Github user SverreStausland has been lingering on
the Luaotfload tracker for a while: There appears to be a
difference between how certain faces of the Libertine family
handle the placement of diacritics.

With Version 5.1.2 of the family [0], the "RZI" version
(fullname: “Linux Libertine O Semibold Italic”) shows a different
behavior than its “RZ” companion (“Linux Libertine O Semibold”).
Short demonstration in Context:

 \definefontfeature [ourfeats] [default] [mode=node]

 \starttext
   \start \definedfont [file:LinLibertine_RI.otf*ourfeats]  V\char"0306 
\stop
   \start \definedfont [file:LinLibertine_RZI.otf*ourfeats] V\char"0306 
\stop
 \stoptext

Note the misaligned combining breve above the latter. An
equivalent test for Plain [1] shows that the correct position
information is there somewhere in the font, since the Xetex
engine typesets it correctly.


it's a bug in the font:

uni0306 in the second one has class "base" while in the first one it has 
class "mark" and context checks on that


\enabletrackers[otf.bugs]


Best regards,
Philipp

[0] MD5 hashes of the files:

 4bfd3481c1486f5d1ea13304981df7a6  LinLibertine_RZI.otf
 153765bd2b29d6026fb2fa0b198a4995  LinLibertine_RZ.otf

[1] https://bitbucket.org/phg/lua-la-tex-tests/src/tip/pln-diacritics-1.tex



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




--

-
  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] PSTricks in Context

2014-12-15 Thread luigi scarso
On Mon, Dec 15, 2014 at 12:53 PM, Herbert Voss 
wrote:
>
> Am 15.12.2014 um 09:55 schrieb Mojca Miklavec:
>
>  Anyway, the version in TeX Live now runs, but creates wrong results
>> (it prints out "(0,0)(3,3)" instead of drawing the line for example).
>>
>> (And I'm not too eager to add support for PSTricks to the
>> distribution. It's a "can of worms" with zillion of other utilities
>> that we don't ship. And close-to-zero users.)
>>
>
> huh?? The only problem is this line
>
> \loadpstrickscolors{colo-rgb}}
>
> as mentioned in my mail.
>
> Herbert
>
> If we have a postscript interpreter, Is it possible to avoid dvi2ps at all,
using only a context mkiv ?

-- 
luigi
___
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] PSTricks in Context

2014-12-15 Thread Mojca Miklavec
On Mon, Dec 15, 2014 at 12:53 PM, Herbert Voss wrote:
> Am 15.12.2014 um 09:55 schrieb Mojca Miklavec:
>
>> Anyway, the version in TeX Live now runs, but creates wrong results
>> (it prints out "(0,0)(3,3)" instead of drawing the line for example).
>>
>> (And I'm not too eager to add support for PSTricks to the
>> distribution. It's a "can of worms" with zillion of other utilities
>> that we don't ship. And close-to-zero users.)
>
>
> huh?? The only problem is this line
>
> \loadpstrickscolors{colo-rgb}}
>
> as mentioned in my mail.

The problem is that this is not the only problem ;)

Or at least that didn't solve all the problems for me.

First of all I had to use Kakuto-san's example, adding something like

\pspicture(0mm,0mm)(30mm,30mm)
...
\endpspicture

in front and at the back (which is extremely ugly to see in ConTeXt).

So the complete minimal example was:

\usemodule[pstricks]
\starttext
\startPSTRICKS
\pspicture(0mm,0mm)(30mm,30mm)
\psline(0,0)(3,3)
\endpspicture
\stopPSTRICKS
\stoptext

However that still doesn't work with TeX Live 2014 even after fixing
the issue with mkii in the filename:

! Missing } inserted.

}

   \endgroup
\endpspicture ...]\fi \fi \pst@killglue \endgroup
  \egroup \ifdim \wd \pst@hb...
l.12 \endpspicture

According to Kakuto-san it works with the latest ConTeXt, but I need a
bit of tweaking to try it out and even if it does users would need to
install (at least part of) W32TeX, wait for TLContrib to release a
newer version of ConteXt or tweak themselves in order to try it out.

Mojca
___
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] xtables in setups

2014-12-15 Thread Andreas Schneider

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi,

I'm currently setting up a xml -> pdf template for some  technical
documentation and wanted to use xtables.
However they don't seem to work when within a setup/xmlsetup.

Small example (without XML, for the sake of simplicity):

~~
\starttext

\startsetups test
\startxtable
  \startxrow
\startxcell Foo \stopxcell
\startxcell Bar \stopxcell
  \stopxrow
\stopxtable
\stopsetups

\setups[test]

\stoptext
~~

Causes:
*
tex error   > error on line 0 in file : ! Emergency stop

Is there anything I'm doing wrong here or did I stumble upon a bug?

(If there is no easy fix here, I'm probably going to use LUA to parse
the XML and write the TeX part from there which means I could circumvent
the need for setups.)

Best regards,
Andreas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iF4EAREIAAYFAlSPKQwACgkQIxziJkiYZxFTYAEAxsgkiYolYatIyoCPQNDlmp0f
pmSdU5HtzfCw2V2ZKs4BAK5E6Qu/ZrE5mIRD2qupwAffokpkIefMlLhzLPYuCTx7
=QetB
-END PGP SIGNATURE-

___
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] xtables in setups

2014-12-15 Thread Wolfgang Schuster

> Am 15.12.2014 um 19:31 schrieb Andreas Schneider :
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
> 
> Hi,
> 
> I'm currently setting up a xml -> pdf template for some  technical
> documentation and wanted to use xtables.
> However they don't seem to work when within a setup/xmlsetup.
> 
> Small example (without XML, for the sake of simplicity):
> 
> ~~
> \starttext
> 
> \startsetups test
> \startxtable
>  \startxrow
>\startxcell Foo \stopxcell
>\startxcell Bar \stopxcell
>  \stopxrow
> \stopxtable
> \stopsetups
> 
> \setups[test]
> 
> \stoptext
> ~~
> 
> Causes:
> *
> tex error   > error on line 0 in file : ! Emergency stop
> 
> Is there anything I'm doing wrong here or did I stumble upon a bug?

You have to replace \startxtable with \startembeddedxtable (and also 
\stopxtable with \stopembeddedxtable).

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] xtables in setups

2014-12-15 Thread Andreas Schneider

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Am 15.12.2014 um 20:07 schrieb Wolfgang Schuster:
> You have to replace \startxtable with \startembeddedxtable (and also 
> \stopxtable with
\stopembeddedxtable).
>
> Wolfgang
>
Ahh, that's it. I didn't see this in the manual but was now able to find
it there :-)

I'll try tomorrow (back at work) if my document start to behave the way
I want it to when replacing these macros :-)

Thanks!

Best Regards,
Andreas
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iF4EAREIAAYFAlSPRFEACgkQIxziJkiYZxGFQwD/QofIqZg5YLaxvkzlXdYC+/7o
K8fw28HlVXK/iFrCxN8BAKSBLUSY6qUq/3z3HwFHYjjc0MUvVaF9MysOUWojUfPF
=SU39
-END PGP SIGNATURE-

___
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] [fontloader] positioning of diacritics

2014-12-15 Thread Philipp Gesang
·

> On 12/15/2014 8:08 AM, Philipp Gesang wrote:
> > Good morning!
> >
> > This report by Github user SverreStausland has been lingering on
> > the Luaotfload tracker for a while: There appears to be a
> > difference between how certain faces of the Libertine family
> > handle the placement of diacritics.
> >
> > With Version 5.1.2 of the family [0], the "RZI" version
> > (fullname: “Linux Libertine O Semibold Italic”) shows a different
> > behavior than its “RZ” companion (“Linux Libertine O Semibold”).
> > Short demonstration in Context:
> >
> >  \definefontfeature [ourfeats] [default] [mode=node]
> >
> >  \starttext
> >\start \definedfont [file:LinLibertine_RI.otf*ourfeats]  V\char"0306 
> > \stop
> >\start \definedfont [file:LinLibertine_RZI.otf*ourfeats] V\char"0306 
> > \stop
> >  \stoptext
> >
> > Note the misaligned combining breve above the latter. An
> > equivalent test for Plain [1] shows that the correct position
> > information is there somewhere in the font, since the Xetex
> > engine typesets it correctly.
> 
> it's a bug in the font:
> 
> uni0306 in the second one has class "base" while in the first one it has 
> class "mark" and context checks on that
> 
> \enabletrackers[otf.bugs]

Thanks for the reply and for the pointer. That tracker is indeed
pretty handy!

I attempted to open a bug report on the Libertine tracker but
Sourceforge refuses to cooperate :/ Maybe next time.

Best regards,
Philipp



pgpualdFxOdsb.pgp
Description: PGP signature
___
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] PSTricks in Context

2014-12-15 Thread Herbert Voss

Am 15.12.2014 um 15:27 schrieb Mojca Miklavec:


First of all I had to use Kakuto-san's example, adding something like

\pspicture(0mm,0mm)(30mm,30mm)
...
\endpspicture

in front and at the back (which is extremely ugly to see in ConTeXt).


I see,

\tikzpicture
..
\endtikzpicture

looks nicer ;-)

Herbert

___
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] PSTricks in Context

2014-12-15 Thread Herbert Voss

Am 15.12.2014 um 14:06 schrieb luigi scarso:



If we have a postscript interpreter, Is it possible to avoid dvi2ps at all,
using only a context mkiv ?


Yes, that could be possible.

Herbert
___
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] [fontloader] positioning of diacritics

2014-12-15 Thread Herbert Voss

Am 15.12.2014 um 21:43 schrieb Philipp Gesang:


\enabletrackers[otf.bugs]


Thanks for the reply and for the pointer. That tracker is indeed
pretty handy!

I attempted to open a bug report on the Libertine tracker but
Sourceforge refuses to cooperate :/ Maybe next time.


As far as I know there is no more a development of Libertine

Herbert

___
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] [fontloader] positioning of diacritics

2014-12-15 Thread Philipp Gesang
·

> Am 15.12.2014 um 21:43 schrieb Philipp Gesang:
> 
> >> \enabletrackers[otf.bugs]
> >
> > Thanks for the reply and for the pointer. That tracker is indeed
> > pretty handy!
> >
> > I attempted to open a bug report on the Libertine tracker but
> > Sourceforge refuses to cooperate :/ Maybe next time.
> 
> As far as I know there is no more a development of Libertine

The font is open source to some extent, isn’t it? Any feedback
will be valuable should someone decide to take up maintainance /
development.

Philipp



pgp8701M5t2jE.pgp
Description: PGP signature
___
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] PSTricks in Context

2014-12-15 Thread Mojca Miklavec
On Mon, Dec 15, 2014 at 9:45 PM, Herbert Voss wrote:
> Am 15.12.2014 um 15:27 schrieb Mojca Miklavec:
>
>> First of all I had to use Kakuto-san's example, adding something like
>>
>> \pspicture(0mm,0mm)(30mm,30mm)
>> ...
>> \endpspicture
>>
>> in front and at the back (which is extremely ugly to see in ConTeXt).
>
> I see,
>
> \tikzpicture
> ..
> \endtikzpicture
>
> looks nicer ;-)

Well, that also, but in that case it would be \starttikzpicture ...
\stoptikzpicture. The pairs \tikzpicture ... \endtikzpicture and
\pspicture ... \endpspicture are plain TeX commands.

I would expect from ConTeXt to support

\startpspicture
...
\stoppspicture

out of the box (if it supported PST properly).

Mojca
___
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] PSTricks in Context

2014-12-15 Thread Alan BRASLAU
On Mon, 15 Dec 2014 21:45:52 +0100
Herbert Voss  wrote:

> Am 15.12.2014 um 15:27 schrieb Mojca Miklavec:
> 
> > First of all I had to use Kakuto-san's example, adding something
> > like
> >
> > \pspicture(0mm,0mm)(30mm,30mm)
> > ...
> > \endpspicture
> >
> > in front and at the back (which is extremely ugly to see in
> > ConTeXt).  
> 
> I see,
> 
> \tikzpicture
> ..
> \endtikzpicture
> 
> looks nicer ;-)

No, but

\startMPcode
draw origin--(1,1) scaled 30mm ;
\stopMPcode

DOES look nicer ;-)

___
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] [fontloader] node injector / december 3 sync

2014-12-15 Thread Philipp Gesang
·

> On 12/14/2014 2:45 PM, Philipp Gesang wrote:
> > Hi Hans,
> >
> > from the huge changeset two weeks ago:
> >
> >   +texio.write_nl("The font code has been brought in sync with the 
> > context version of 2014.12.01 so")
> >   +texio.write_nl("if things don't work out as expected the interfacing 
> > needs to be checked. When")
> >
> > -- Message received ;) First off, thanks for bringing the
> > fontloader into sync again. So far I haven’t noticed any
> > obviously broken features.
> >
> > However, something is off with the node injector. We have a bug
> > reported by Hironori Kitagawa that occurs with the ``palt``
> > feature in node mode:
> >
> >  http://tug.org/pipermail/luatex/2014-November/004976.html
> >
> > Importing the shiny new font injector into the merged fontloader
> > fixes the issue. FWIW here are test files
> >
> >  
> > https://bitbucket.org/phg/lua-la-tex-tests/src/tip/cnt-features-12-palt.tex
> >  
> > https://bitbucket.org/phg/lua-la-tex-tests/src/tip/pln-features-12-palt.tex
> >
> > The Context version runs fine whereas the plain one does so only
> > after my “fix”. The same is true for Context itself: replace
> > font-inj.lua with node-inj.lua in the format to reproduce the
> > issue. Is there a fix to the fontloader, perhaps only temporarily
> > until the revised injector becomes ready?
> 
> not really as the new injector does more ... also, the new code is kind 
> of beta so it might not be a good idea to use that in latex already ... 

The current goal is to add an option to load the code directly
from Context (TL, minimals). Right now this is non-trivial due to
the extra packaging step involved, so the option will facilitate
testing a lot. Let’s see if anyone is confident enough to test
the fontloader on their own if it becomes easier.

> so, i'd first like to do more tests here; of course you can use the new 
> injector if you want ... (i'm not touching generic now while messing 
> with the context variant)

Just running my tests ;) I’m fairly content with the prospect
that the issue is already addressed in the beta.

Philipp



pgpkr10ge7yCf.pgp
Description: PGP signature
___
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] PSTricks in Context

2014-12-15 Thread Aditya Mahajan

On Mon, 15 Dec 2014, Mojca Miklavec wrote:


On Mon, Dec 15, 2014 at 9:45 PM, Herbert Voss wrote:

Am 15.12.2014 um 15:27 schrieb Mojca Miklavec:


First of all I had to use Kakuto-san's example, adding something like

\pspicture(0mm,0mm)(30mm,30mm)
...
\endpspicture

in front and at the back (which is extremely ugly to see in ConTeXt).


I see,

\tikzpicture
..
\endtikzpicture

looks nicer ;-)


Well, that also, but in that case it would be \starttikzpicture ...
\stoptikzpicture. The pairs \tikzpicture ... \endtikzpicture and
\pspicture ... \endpspicture are plain TeX commands.

I would expect from ConTeXt to support

\startpspicture
...
\stoppspicture

out of the box (if it supported PST properly).


This is a minor issue that can be easily fixed by a few lines of wrapper 
code in m-pstricks.


pstricks relies on other parts of the tex ecosystem (a tex.pro file IIRC, 
and some binaries) that are not shipped with ConTeXt standalone. It will 
be great if MKIV supports pstricks out of the box. There are some very 
nice pstricks packages that are hard (and time consuming) to replicate.


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