textext with plain MetaFun
Dear list, When I process the short MetaFun example beginfig(1) draw textext("MetaFun") ; endfig; end with plain MetaFun, i.e. mpost '&metafun' test.mp the resulting file only contains “unknown”. How can I get the expected output? Cheers, Henri
On 1/21/2019 8:57 AM, Henri Menke wrote:
Dear list,
When I process the short MetaFun example
beginfig(1) draw textext("MetaFun") ; endfig; end
with plain MetaFun, i.e.
mpost '&metafun' test.mp
the resulting file only contains “unknown”. How can I get the expected output? context foo.mp
(in mkii one could use mptopdf but i have no interest in figuring out some pure metapost solution when we can do the job with simple wrapping in mkiv as mentioned) 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 -----------------------------------------------------------------
On 1/21/19 9:29 PM, Hans Hagen wrote:
On 1/21/2019 8:57 AM, Henri Menke wrote:
Dear list,
When I process the short MetaFun example
beginfig(1) draw textext("MetaFun") ; endfig; end
with plain MetaFun, i.e.
mpost '&metafun' test.mp
the resulting file only contains “unknown”. How can I get the expected output? context foo.mp
(in mkii one could use mptopdf but i have no interest in figuring out some pure metapost solution when we can do the job with simple wrapping in mkiv as mentioned)
I tried mpost '&metafun' test.mp mptopdf test.1 and now I have a PDF which says “unknown“. Maybe I didn't understand what you meant. Cheers, Henri
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 -----------------------------------------------------------------
The following always worked for me: \starttext \startMPpage .. metapost code .. \stopMPpage \stoptext and delivered from a ConTeXt-run a separate pdf. dr. Hans van der Meer
On 21 Jan 2019, at 09:43, Henri Menke
wrote: On 1/21/19 9:29 PM, Hans Hagen wrote:
On 1/21/2019 8:57 AM, Henri Menke wrote:
Dear list,
When I process the short MetaFun example
beginfig(1) draw textext("MetaFun") ; endfig; end
with plain MetaFun, i.e.
mpost '&metafun' test.mp
the resulting file only contains “unknown”. How can I get the expected output? context foo.mp
(in mkii one could use mptopdf but i have no interest in figuring out some pure metapost solution when we can do the job with simple wrapping in mkiv as mentioned)
I tried
mpost '&metafun' test.mp mptopdf test.1
and now I have a PDF which says “unknown“. Maybe I didn't understand what you meant.
Cheers, Henri
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 ___________________________________________________________________________________
On Mon, Jan 21, 2019 at 8:57 AM Henri Menke
Dear list,
When I process the short MetaFun example
beginfig(1) draw textext("MetaFun") ; endfig; end
with plain MetaFun, i.e.
mpost '&metafun' test.mp
what does $> mpost -mem=metafun '\relax; tracingall; input test.mp;' say ? -- luigi
On 1/21/19 10:40 PM, luigi scarso wrote:
On Mon, Jan 21, 2019 at 8:57 AM Henri Menke
wrote: Dear list,
When I process the short MetaFun example
beginfig(1) draw textext("MetaFun") ; endfig; end
with plain MetaFun, i.e.
mpost '&metafun' test.mp
what does $> mpost -mem=metafun '\relax; tracingall; input test.mp;' say ?
Log is attached.
___________________________________________________________________________________ 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 ___________________________________________________________________________________
On Mon, Jan 21, 2019 at 10:47 AM Henri Menke
On 1/21/19 10:40 PM, luigi scarso wrote:
On Mon, Jan 21, 2019 at 8:57 AM Henri Menke
wrote: Dear list,
When I process the short MetaFun example
beginfig(1) draw textext("MetaFun") ; endfig; end
with plain MetaFun, i.e.
mpost '&metafun' test.mp
what does $> mpost -mem=metafun '\relax; tracingall; input test.mp;' say ?
Log is attached.
hm. # cat test.mp hobbiestextext := true; beginfig(1) draw textext("MetaFun") ; endfig; end # mpost -interaction=batchmode -mem=metafun '\relax; input test.mp;' # gs test.1 You should see the text at the bottom left. It seems that there is a string _s_ not initialized. -- luigi
participants (4)
-
Hans Hagen
-
Hans van der Meer
-
Henri Menke
-
luigi scarso