TransWikia.com

Is there a way to avoid conversion to glyph paths?

TeX - LaTeX Asked by JammingThebBits on September 5, 2021

I have been playing with tikz lately and I was wondering is there a way to export to svg,
so I have delved into the recent well written user manual, on page 121 stumble upon:

lualatex --output-format=dvi example
dvisvgm example

Which did a great job!!

But all shapes are getting converted to paths, for example (with preamble):

documentclass[dvisvgm]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{graphicx}
usepackage{tikz}
begin{document}
    
begin{tikzpicture}
draw (0,0) rectangle (4,4);
end{tikzpicture}

begin{tikzpicture}
draw (0,0) circle (2cm);
end{tikzpicture}
    
begin{tikzpicture}
draw(0,0) ellipse(2cm and 1cm);
end{tikzpicture}

begin{tikzpicture}
draw (0,0) arc(0:180:2); 
end{tikzpicture}

begin{tikzpicture}
fill[teal] (0,0) rectangle (4,4);
end{tikzpicture}

end{document}

the tex circle and tex rectangle, I would expect it will be converted to
the corresponding SVG elements,
Circle (cx, cy, r)
and
Rectangle (x,y,height,width)

Any suggestions how come? I’m guessing I’m missing something.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP