[][src]Crate svg_tikz

Convert SVG to TikZ, with filters.

This API is meant to create custom SVG to TikZ exporters, possibly filtering or modifying some elements of the original image along the way. The filters work best if the SVG comes from Inkscape.

For instance, selecting only one Inkscape "layer" can be done using the Layers filter:

extern crate svg;
use svg_tikz::*;
use svg_tikz::layers::*;
use svg_tikz::tikz::*;

// Creating an empty SVG file.
std::fs::File::create("input.svg").unwrap();
// Parsing it, outputting only the layer called "my layer"
process_file(
    "test.svg",
    &mut Tikz::to_file("test.tex")
        .unwrap()
        .layers(&["my layer"])
);

Modules

layers
raw
tikz
tiled

Structs

Style

Enums

Element
Marker
PathElement

Traits

Processor

Functions

f
process
process_file