[pstricks] ConTeXt and PSTricks
Fabrice
couvreur.fabrice at wanadoo.fr
Thu Oct 16 20:14:23 CEST 2014
Hi Herbert,
Sorry for the late reply, but I did some tests before answering.
I adapted your bash script to my configuration, and it works on some
codes, but does not work on others.
For example, this code of the gallery does not compile :
> \usemodule[pstricks]
> \usemodule[pst-eucl]
> \starttext
> \startPSTRICKS
> \pspicture(-1,-2)(6,3)
> \psset{%
> RightAngleType=german,
> MarkAngleRadius=1.2,
> LabelSep=0.65,
> shortput=nab,
> PointName=none,
> PointSymbol=none,
> PtNameMath=false,
> linewidth=0.7pt
> }
>
> \pstGeonode(0,0){O}(6;20){C}(C|O){A}(0,0.75){X}
>
> \pspolygon[fillstyle=solid,fillcolor=lightgray!10](O)(A)(C)
> \pstMarkAngle{A}{O}{C}{$\alpha$}
> \pstRightAngle{C}{A}{O}
>
> \pstTranslation{O}{X}{O,C}[O',C']
> \pstMiddleAB{O'}{C'}{M}
> \pstTranslation[DistCoef=0.2]{C'}{O'}{M}[M']
>
> \pstGeonode(M|0,-1.5){Y}
>
> \pstProjection{O}{C}{M}[M'']
> \pstMiddleAB{M''}{M}{S}
>
> \pstTranslation[DistCoef=0.15]{C'}{O'}{S}[A1]
> \pstTranslation[DistCoef=0.15]{O'}{C'}{S}[A2]
> \pstOrtSym{O'}{C'}{A1,A2}[A4,A3]
>
> \pspolygon[fillstyle=solid,fillcolor=blue!50](A1)(A2)(A3)(A4)
>
> \pstMiddleAB{M''}{A2}{R2}
> \pstMiddleAB{M''}{A1}{R1}
>
> \pstProjection{O}{C}{R2}[Z2]
> \pstProjection{O}{C}{R1}[Z1]
> \pstCircleOA{R2}{Z2}
> \pstCircleOA{R1}{Z1}
>
> \ncline{->}{M}{Y}
> \ncline{->}{M}{M'}
> \ncline[linestyle=dashed]{M'}{Y}
> \pstMarkAngle{M}{Y}{M'}{$\alpha$}
>
> \psdot(M)
> \psdot(R1)
> \psdot(R2)
> \endpspicture
> \stopPSTRICKS
> \stoptext
> fab at debian:~$ context ntg.tex
>
> mtx-context | run 1: luatex
> --fmt="/home/fab/texlive/2014/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
> --jobname="ntg"
> --lua="/home/fab/texlive/2014/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
> --no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg.tex"
> --c:input="./ntg.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv"
> This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
> \write18 enabled.
> open source > 1 > 1 >
> /home/fab/texlive/2014/texmf-dist/tex/context/base/cont-yes.mkiv
>
> ConTeXt ver: 2014.10.16 17:26 MKIV beta fmt: 2014.10.16 int:
> english/english
>
> system > 'cont-new.mkiv' loaded
> open source > 2 > 2 >
> /home/fab/texlive/2014/texmf-dist/tex/context/base/cont-new.mkiv
> close source > 2 > 2 >
> /home/fab/texlive/2014/texmf-dist/tex/context/base/cont-new.mkiv
> system > files > jobname 'ntg', input './ntg', result 'ntg'
> fonts > latin modern fonts are not preloaded
> languages > language 'en' is active
> open source > 2 > 3 > /home/fab/ntg.tex
> resolvers > modules > 'pstricks' is loaded
> open source > 3 > 4 >
> /home/fab/texlive/2014/texmf-dist/tex/context/base/m-pstricks.mkiv
> resolvers > lua > loading file
> '/home/fab/texlive/2014/texmf-dist/tex/context/base/m-pstricks.lua'
> succeeded
> close source > 3 > 4 >
> /home/fab/texlive/2014/texmf-dist/tex/context/base/m-pstricks.mkiv
> resolvers > modules > using user prefixed file 'pst-eucl'
> resolvers > modules > 'pst-eucl' is loaded
> open source > 3 > 5 >
> /home/fab/texlive/2014/texmf-dist/tex/generic/pst-eucl/pst-eucl.tex
> open source > 4 > 6 >
> /home/fab/texlive/2014/texmf-dist/tex/generic/pstricks/pstricks.tex
>
> tex error > error on line 31 in file
> /home/fab/texlive/2014/texmf-dist/tex/generic/pstricks/pstricks.tex: !
> Undefined control sequence
>
> l.31 \alloc@
> 7\write\chardef\sixt@@n\@unused
>
> 21 %% !! loading additional TeX packages see line 108 !!
> 22 %% !! loading config file pstricks.con line 473 !!
> 23 %% !! loading pro files line 486 !!
> 24 %% !! fileversion and date see line 113 !!
> 25 %
> 26 \edef\PstAtCode{\the\catcode`\@}
> 27 \catcode`\@=11\relax
> 28 %
> 29 \expandafter\ifx\csname @latexerr\endcsname\relax% do we have
> LaTeX?
> 30 \def\typeout#1{\immediate\write\@unused{#1}}%
> 31 >> \alloc at 7\write\chardef\sixt@@n\@unused
> 32 \typeout{we are running tex and have to define some LaTeX
> commands ...}%
> 33 \long\def\@ifundefined#1#2#3{\expandafter\ifx\csname
> 34 #1\endcsname\relax#2\else#3\fi}
> 35 \def\@namedef#1{\expandafter\def\csname #1\endcsname}
> 36 \def\@nameuse#1{\csname #1\endcsname}
> 37 \def\@eha{%
> 38 Your command was ignored.^^J
> 39 Type \space I <command> <return> \space to replace
> 40 it with another command,^^J
> 41 or \space <return> \space to continue without it.}
>
>
> ?
Best regards,
Fabrice
More information about the PSTricks
mailing list