LaTeX formulas in Inkscape
There are a couple of ways of inserting mathematical formulas onto web pages. One of the more robust ones, is using an SVG image. TexText1,2 is an Inkscape3 extension allows you to generate a LaTeX formula and insert it right into the editor.
The full documentation on installation and usage is available at the official site4.
If the extension was installed correctly, you can access it under Extensions → Text → TexText
menu entry:
You can use the standard LaTeX math mode5,6, surrounded by $$
.
Optionally, you can merge the vectors into one path to include it directly into HTML code between <svg></svg>
tags. For this, perform the following steps:
- check the
SVG output → No strokes
box in the TexText window - after you generate the oject, select it
- ungroup the object:
Object → Ungroup
(orShift+Ctrl+G
) - select all of its elements:
Edit → Select All
(orCtrl+A
) - merge into one path:
Path → Union
(orCtrl++
)
When you are done with your edits, do File → Document Properties… → Resize to content
and then, File → Save a Copy…
saving as Optimized SVG
or Plain SVG
.
Now you can use this file as is, open it with any text editor and copy the <svg></svg>
tag data, inserting it into your HTML page, or convert the formula into a raster image (File → Export As…
).
Discuss this post on Reddit