Changes

Jump to navigation Jump to search
363 bytes added ,  16:58, 30 June 2022
m
SVG (Scalable Vector Graphics, a [[XML]] based format) can be converted to the PDF format at runtime by ConTeXt MkIV (LuaTeX), provided you have Inkscape installed as below.
Supported vector graphics formats of MkII/MKIV are [[MetaPost]] (and [[MetaFun - MetaPost in ConTeXt|MetaFun]]).
There is a workaround, though, using Inkscape to convert SVG to PDF. Inkscape must be installed and callable (i.e. in your PATH):
== LMTX and SVG ==
LMTX has a direct support for SVG. It uses MetaPost (MetaFun) to process SVGdirectly; a third-party tool, so such as Inkscape, is no longer needed. Using MetaPost to process SVG opens many opportunities. It's a work in progress and not every SVG feature is supported. If you don't need an external tool like Inkscapeencounter issues, send a question to the mailing list.
Using MetaPost to process SVG opens many opportunities to work on itSee the LMTX distribution documentation, svg-lmtx.pdf and luametafun.pdf, for more details.
Anyway it's a work in progress, not every feature (or inconsistency) of SVG is supported, though many are.Just try and ask in the mailing list.=== Text Rendering ===
You Pixel-perfect rendering of SVG text elements may not align as desired in all cases. To work around any layout issues, convert the text to a path. This can find more be accomplished in Inkscape as follows: # Open the docs that come with LMTX distribution, in particular in svg-lmtxSVG file.# Select all text elements.# Click '''Path > Object to Path'''.pdf and luametafun# Save the SVG file.pdf Rebuild the document again, the text elements will now be placed correctly.
==General information on SVG:==
419

edits

Navigation menu