Hi, Something goes wrong while using metaobj and point something along somepath. I do not know if point ... along... is a mp core command or something introduced by metafun. Is this metafun's fault, metaobj's fault or simply a metapost issue (and thus I should ask on the metapost list). \setupcolors [state=start] \startMPinclusions input metaobj; \stopMPinclusions % Everything works fine if I comment metaobj. \starttext \startMPpage path p ; p := (0,0)--(1cm,0) ; draw p withpen pencircle scaled 2bp withcolor 0.8white; draw (point .25 along p)--(point .75 along p) withpen pencircle scaled 2bp withcolor red ; \stopMPpage \stoptext gives ! Missing argument to arctime. <to be read again> of along->(arctime((EXPR0)*(arclength(EXPR1)))of (EXPR1))of(EXPR1) <to be read again> ) l.295 draw (point .25 along p) --(point .75 along p) Aditya
Aditya Mahajan wrote:
Hi,
Something goes wrong while using metaobj and point something along somepath. I do not know if point ... along... is a mp core command or something introduced by metafun. Is this metafun's fault, metaobj's fault or simply a metapost issue (and thus I should ask on the
It is Metaobj's fault, it redefines (and therefore blocks access to) the primitive command arctime. So I guess you should complain to Denis Roegel (at the very least he should save the primitive arctime under a different name). A workaround (I think) is this: input metaobj; primarydef pct along pat = arctime (pct,pat) of pat enddef ; Taco
To all, I am the author of a physics booklet written in LATEX+PsTRICKS. Now, my I intend is to make one improved version in Context, but I have many schems with PSTRICKS commands. Did you know a easy way to make the migration? Thanks a lot Jorge
batela wrote:
To all,
I am the author of a physics booklet written in LATEX+PsTRICKS. Now, my I intend is to make one improved version in Context, but I have many schems with PSTRICKS commands. Did you know a easy way to make the migration?
there is a module, m-pstric.tex \usemodule[pstrick] \startPSTRICKS \pspicture(0,0)(10,10) \dorecurse{10}{\psline(0,0)(\recurselevel,10)} \dorecurse{10}{\psline(0,0)(10,\recurselevel)} \endpspicture \stopPSTRICKS an option is to put the graphics in separate files and/or use checksum trickery as used in m-r (not yet done) 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 -----------------------------------------------------------------
Thanks. But, in this LATEX_to_Context migration, I need to convert at hand several latex commands. For example: \begin{itemize} to \startitemize \end{itemize} to \stopitemize \begin{table}_to_\starttable and so on. this is a very hard task. Perhaps I need to make: perl -ps 's/\begin{itemize}/\startitemize/g' *.tex Em 19/06/2006, às 4:52, Hans Hagen escreveu:
batela wrote:
To all,
I am the author of a physics booklet written in LATEX+PsTRICKS. Now, my I intend is to make one improved version in Context, but I have many schems with PSTRICKS commands. Did you know a easy way to make the migration?
there is a module, m-pstric.tex
\usemodule[pstrick]
\startPSTRICKS \pspicture(0,0)(10,10) \dorecurse{10}{\psline(0,0)(\recurselevel,10)} \dorecurse{10}{\psline(0,0)(10,\recurselevel)} \endpspicture \stopPSTRICKS
an option is to put the graphics in separate files and/or use checksum trickery as used in m-r (not yet done)
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
Um Abraço, Jorge Magalhães
participants (4)
-
Aditya Mahajan
-
batela
-
Hans Hagen
-
Taco Hoekwater