# Tag Info

1

The export_overlays script from BeamerScape pretty much does this: You can combine a set of layers visible in each output step; you just put the normal beamer-style spec in the layer name inside inkscape (<1-2,4> Cat Layer, <3> Dog Layer). You should let export_overlays control the entire frame (so make your SVG the appropriate aspect ratio to ...

2

You can use classical LaTeX (with dvi output) and dvisvgm ( http://www.ctan.org/pkg/dvisvgm ) to convert the dvi file to SVG. EDIT: I am not aware of a *svgtex implementation that does the conversion in one step.

0

I guess the problem is conflicting path IDs. Since both SVG files use identical IDs they are no longer unique when combined in a single HTML file. Therefore, you probably have to postprocess the SVG files and add some kind of file marker to the IDs, e.g. g0-111-0 and g0-111-1 rather than using just g0-111 in both SVGs.

1

I ended up embeding the svg not directly, but via an image tag, like so (in the javascript): mySvg = '<img src="data:image/svg+xml;utf8,' + mySvg + '">'; This only anwsers the question as in "what can I do so this won't happen again", but not the part "which parts are conflicting". This I still don't know.

0

I find the following approach more convenient for my work. My figures are created via Inkscape and Python. MWE \documentclass[]{memoir} \usepackage{svg} \begin{document} \begin{figure}[!ht] \centering \includesvg[width=0.5\columnwidth, svgpath = /yourPATHtoSVG/]{filename} \end{figure} \end{document} One can compile MWE above with following command ...

Top 50 recent answers are included