Re: [NTG-context] PSTricks in Context
On Mon, Dec 15, 2014 at 3:27 PM, Mojca Miklavec < mojca.miklavec.li...@gmail.com> wrote: > > 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 > I have downloaded cont-mpd.zip cont-ppc.zip cont-tmf.zip and unzipped them into texmf-dist of my 2014 TL (and rebuilt the formats and ls-R). I have tried mtxrun --script update but it fails with resolvers | tds | no 'texmf-linux-64' under tree '/opt/luatex/texlive/2014/tex' (with a missed newline in my linux box) The example works if one copies colo-rgb.mkii as colo-rgb.tex in the same folder of the example so I guess that we need to find a suitable location for colo-rgb.tex in the tds (I dont know if it's safe to add colo-rgb.tex to the base folder of context, but I suspect it is not) -- 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
Hi Luigi, The example works if one copies colo-rgb.mkii as colo-rgb.tex in the same folder of the example ... It is OK by changing line 46 in m-pstricks.mkii: \loadpstrickscolors{colo-rgb}} to \loadpstrickscolors{colo-rgb.mkii}} as Herbert said. In the recent beta's, the change was already done. 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
On Tue, Dec 16, 2014 at 11:04 AM, Akira Kakuto wrote: > > Hi Luigi, > > The example works if one copies colo-rgb.mkii as colo-rgb.tex in the same >> folder of the example ... >> > > It is OK by changing > > line 46 in m-pstricks.mkii: > \loadpstrickscolors{colo-rgb}} > to > \loadpstrickscolors{colo-rgb.mkii}} > > as Herbert said. > > In the recent beta's, the change was already done. > > > yes right --- I have downloaded the "current" into TL, but one can do the same with the zips of "beta" and have the correct \loadpstrickscolors{colo-rgb.mkii} -- 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
On Mon, Dec 15, 2014 at 9:46 PM, Herbert Voss wrote: > > 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. > > It would be interesting (well, at least for me) to have a "how to" --- if only for a specific pst module known to work with 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
Am 16.12.2014 um 11:35 schrieb luigi scarso: On Tue, Dec 16, 2014 at 11:04 AM, Akira Kakuto mailto:kak...@fuk.kindai.ac.jp>> wrote: Hi Luigi, The example works if one copies colo-rgb.mkii as colo-rgb.tex in the same folder of the example ... It is OK by changing line 46 in m-pstricks.mkii: \loadpstrickscolors{colo-rgb}} to \loadpstrickscolors{colo-rgb.__mkii}} as Herbert said. In the recent beta's, the change was already done. yes right --- I have downloaded the "current" into TL, but one can do the same with the zips of "beta" and have the correct \loadpstrickscolors{colo-rgb.mkii} I have a script cpCTX2TL which installs the current beta and then copies all relevant files into the current TL installation. 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 ___
[NTG-context] problem with \processaction
Dear list, I have the following sample: \def\SystemUser{whoami} \def\CheckUser{\processaction[\SystemUser][whoami=>whm]} \starttext \doifelse{\CheckUser}{whm}{This is the right user.} {This is the wrong user.} \doifelse{\SystemUser}{whoami}{This is the right user.} {This is the wrong user.} \SystemUser\ is \CheckUser \stoptext Why doesn’t the first \doifelse work? What am I missing there? 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 ___
[NTG-context] command to get the text value?
Dear list, sorry for writing again on the same topic. The issue is important and I don’t know how to solve it. I have a different sample: \def\firstcommand{AAA} \def\secondcommand{aaa} \starttext \doifelse{\word{\firstcommand}} {\secondcommand}{Equal}{Not equal}. \stoptext I understand that A and a are different characters. Is there no command to get the pure text from another command? Or how could I get equal values in the sample above? 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] command to get the text value?
On 12/16/2014 9:39 PM, Pablo Rodriguez wrote: Dear list, sorry for writing again on the same topic. The issue is important and I don’t know how to solve it. I have a different sample: \def\firstcommand{AAA} \def\secondcommand{aaa} \starttext \doifelse{\word{\firstcommand}} {\secondcommand}{Equal}{Not equal}. \stoptext I understand that A and a are different characters. Is there no command to get the pure text from another command? Or how could I get equal values in the sample above? if really needed i can write such a comparison but keep in mind that \word is not some simple string manipulator so you can never rely on such a comparison Hans - 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] problem with \processaction
On 12/16/2014 6:51 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \def\SystemUser{whoami} \def\CheckUser{\processaction[\SystemUser][whoami=>whm]} \starttext \doifelse{\CheckUser}{whm}{This is the right user.} {This is the wrong user.} \doifelse{\SystemUser}{whoami}{This is the right user.} {This is the wrong user.} \SystemUser\ is \CheckUser \stoptext Why doesn’t the first \doifelse work? What am I missing there? because \processaction is not a fully expandable command - 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] problem with \processaction
On 12/16/2014 09:50 PM, Hans Hagen wrote: > On 12/16/2014 6:51 PM, Pablo Rodriguez wrote: >> Dear list, >> >> I have the following sample: >> >> \def\SystemUser{whoami} >> \def\CheckUser{\processaction[\SystemUser][whoami=>whm]} >> >> \starttext >> >> \doifelse{\CheckUser}{whm}{This is the right user.} >> {This is the wrong user.} >> >> \doifelse{\SystemUser}{whoami}{This is the right user.} >> {This is the wrong user.} >> >> \SystemUser\ is \CheckUser >> >> \stoptext >> >> Why doesn’t the first \doifelse work? What am I missing there? > > because \processaction is not a fully expandable command Many thanks for your reply, Hans. Is there no other way to get the text value (so that it could be compared with \doif) from a command that assigns values using \processaction? 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] problem with \processaction
On 12/16/2014 10:24 PM, Pablo Rodriguez wrote: On 12/16/2014 09:50 PM, Hans Hagen wrote: On 12/16/2014 6:51 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \def\SystemUser{whoami} \def\CheckUser{\processaction[\SystemUser][whoami=>whm]} \starttext \doifelse{\CheckUser}{whm}{This is the right user.} {This is the wrong user.} \doifelse{\SystemUser}{whoami}{This is the right user.} {This is the wrong user.} \SystemUser\ is \CheckUser \stoptext Why doesn’t the first \doifelse work? What am I missing there? because \processaction is not a fully expandable command Many thanks for your reply, Hans. Is there no other way to get the text value (so that it could be compared with \doif) from a command that assigns values using \processaction? \setvalue{SomeName:foo}{one} \setvalue{SomeName:bar}{two} % and another 50 names \def\SomeName{foo} % \def\SomeName{bar} \doifelse{\getvalue{SomeName:\SomeName}}{two} {YES} {NOP} - 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 ___