ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] [ metapost -> svg ]
@ 2023-11-05 16:57 vm via ntg-context
  2023-11-07 13:54 ` [NTG-context] " Lutz Haseloff
  0 siblings, 1 reply; 3+ messages in thread
From: vm via ntg-context @ 2023-11-05 16:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: vm


With the latest lmtx installed, what would be the correct cli command to 
generate a svg outputfile from a metapost source?

.Floris
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: [ metapost -> svg ]
  2023-11-05 16:57 [NTG-context] [ metapost -> svg ] vm via ntg-context
@ 2023-11-07 13:54 ` Lutz Haseloff
  2023-11-07 16:11   ` vm via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Lutz Haseloff @ 2023-11-07 13:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1262 bytes --]

Hi Floris,

directly generating SVG with ConTeXt LMTX is not possible.

But, using LMTX to generate SVGs has some advantages over MPOST.

You can use ConTeXt's advanced color management (transparency and more) and you can use the very nice font management.

So my "metapost" file is:

\startMPpage
% metapostcode
\stopMPpage

To get a nice SVG I used to key:

context metapost.tex

and

mutool convert -o metapost.svg -O text=path metapost.pdf

Hope it helps a little

Greetings Lutz

Am 5. November 2023 17:57:15 MEZ schrieb vm via ntg-context <ntg-context@ntg.nl>:
>
>With the latest lmtx installed, what would be the correct cli command to generate a svg outputfile from a metapost source?
>
>.Floris
>___________________________________________________________________________________
>If your question is of interest to others as well, please add an entry to the Wiki!
>
>maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
>archive  : https://github.com/contextgarden/context
>wiki     : https://wiki.contextgarden.net
>___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 1714 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: [ metapost -> svg ]
  2023-11-07 13:54 ` [NTG-context] " Lutz Haseloff
@ 2023-11-07 16:11   ` vm via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: vm via ntg-context @ 2023-11-07 16:11 UTC (permalink / raw)
  To: ntg-context; +Cc: vm



On 07/11/2023 14:54, Lutz Haseloff wrote:
> 
> mutool convert -o metapost.svg -O text=path metapost.pdf
> 
> Hope it helps a little

yes, mutool was the key to remember.
thanks!

.F
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-07 16:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-05 16:57 [NTG-context] [ metapost -> svg ] vm via ntg-context
2023-11-07 13:54 ` [NTG-context] " Lutz Haseloff
2023-11-07 16:11   ` vm via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).