I am trying to design an image where I take equations that I type in LaTeX and export as SVG images and bend them along curves. All the methods that I find leave me doing thsi for individual characters. The equation aren't text so I can't use text to path. Any suggestions before I abandon this idea. Alternatively, is there a way to type LaTeX equations in inkscape?
I have used the LaTeX Previewer for something similar to this. It's an online service so there's nothing to install. It allows you to type in an equation and download an SVG which can then be opened and edited in Inkscape.
For this example shown below, the code I typed into the previewer was as follows:
Then I downloaded the SVG and opened it in Inkscape
To get it to bend as one graphic however, you will need to jump through some hoops.
- Ungroup everything.
- For some reason the LaTex Previewer adds symbols as clones, so you would have to unlink all the clones for each symbol by selecting them one at a time and then do Alt+Shift+D (unlink clone). There may be an Inkscape extension somewhere to do this automatically, but I couldn't find one.
- If there are any strokes in the equation you would have select those and do Path > Stroke to path. The purpose of this is to ensure that everything is a filled path. In my example, I had to do this step with the divisor line and the line extending from the square root symbol, since they were only a paths with a stroke applied.
- Then select everything and do Path > Combine
- Select and copy the combined graphic
- select the Bézier tool, and in the tool options along the top set the Shape to "Bend from Clipboard"
- Finally draw a curve, and then graphic will be applied with a Bend Path Effect
Example below: shows everything converted to a combined path, then shows the final steps 5 to 7.
Just a note, there's an extension to type LaTeX directly into Inkscape, but unfortunately I've never been able to get to work. That's why I use the LaTeX Previewer.