Menu

Inkscape+LaTeX SVG to LaTeX image

← TOC    ↑ Home    I+L SVG TeX TeX PDF EPS SVG PNG JPEG ICO XPM

Inkscape+LaTeX SVG to LaTeX image

This page shows how to convert an SVG file x-il.svg from inkscape containing LaTeX special text into a LaTeX image.

If the base file name before the extension ends in "-il" the gxhconvert script assumes the file is an SVG file created by the inkscape program requiring LaTeX to process the texts.

If you want to convert the SVG file into a standalone *.tex file you can process using pdfLaTeX to create a standalone PDF file, see the [Inkscape+LaTeX SVG to LaTeX document] page instead.


Choice 1: Use gxhconvert

Procedure

gxhconvert -o=tex x-il.svg

See the [gxhconvert manual] for a full description of the gxhconvert script.

Further options

Option Purpose
--eps Produce *.eps/*.tex file pair for use with latex/dvixxx instead of the default *.pdf/*.tex file pair for use with pdflatex.
--svg-area=area String. Area to export, one from:
  • drawing
    to export just the area containing drawing elements,
  • snap
    to enlarge the drawing area to the next snap grid points,
  • page
    to export the entire page.
--svg-latex Required, if the file name does not end in "-il" to indicate the texts must be processed by LaTeX.

Choice 2: Manual conversion, produce PDF+TeX file pair

Procedure

inkscape --batch-process --export-type=pdf --export-overwrite --export-filename=x.pdf --export-area-drawing --export-latex x-il.svg

Support file

  • x.pdf
  • x.pdf_tex

Choice 3: Manual conversion produce EPS+TeX file pair

Procedure

inkscape --batch-process --export-type=eps --export-overwrite --export-filename=x.eps --export-area-drawing --export-latex x-il.svg

Support file

  • x.eps
  • x.eps_tex
← TOC    ↑ Home    I+L SVG TeX TeX PDF EPS SVG PNG JPEG ICO XPM

Related

Wiki: Inkscape+LaTeX SVG to LaTeX document
Wiki: gxhconvert manual

MongoDB Logo MongoDB