I have an svg file of an equation as follows
<svg xmlns="http://www.w3.org/2000/svg" xmlns:wrs="http://www.wiris.com/xml/cvs-extension" height="29" width="85" wrs:baseline="20"><!--MathML: <math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="script">l</mi><msqrt><mpadded lspace="-4px"><mn>8</mn><mi>π</mi><msub><mi>ε</mi><mn>0</mn></msub><mi>m</mi><mi>g</mi></mpadded></msqrt></math>--><defs><style type="text/css">@font-face{font-family:'math1437d7d1d97917cd627a34a6a0f';src:url(data:font/truetype;charset=utf-8;base64,AAEAAAAMAIAAAwBAT1MvMi7iBBMAAADMAAAATmNtYXDEvmKUAAABHAAAADRjdnQgDVUNBwAAAVAAAAA6Z2x5ZoPi2VsAAAGMAAAAt2hlYWQQC2qxAAACRAAAADZoaGVhCGsXSAAAAnwAAAAkaG10eE2rRkcAAAKgAAAACGxvY2EAHTwYAAACqAAAAAxtYXhwBT0FPgAAArQAAAAgbmFtZaBxlY4AAALUAAABn3Bvc3QB9wD6AAAEdAAAACBwcmVwa1uragAABJQAAAAUAAADSwGQAAUAAAQABAAAAAAABAAEAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgICAAAAAg1UADev96AAAD6ACWAAAAAAACAAEAAQAAABQAAwABAAAAFAAEACAAAAAEAAQAAQAAA8D//wAAA8D///xBAAEAAAAAAAABVAMsAIABAABWACoCWAIeAQ4BLAIsAFoBgAKAAKAA1ACAAAAAAAAAACsAVQCAAKsA1QEAASsABwAAAAIAVQAAAwADqwADAAcAADMRIRElIREhVQKr/asCAP4AA6v8VVUDAAABAFUAAALAAkAAGQBBGAGwGhCwDdSwDRCwB9SwBxCwBNSwBBCwGNQAsBoQsAvUsBoQsALUsBoQsA/UsA8QsBTUsA8QsAY8sA8QsBc8MDElBiMiNQMjERQGKwE2NTQnIhUjNDMhFSMTFALAFUCAAaopAVUqAVVAagIBgQFVVdUBFv7qlUBAlYCWK4BV/urAAAABAAAAAQAA1XjOQV8PPPUAAwQA/////9Y6E3P/////1joTcwAA/yAEgAOrAAAACgACAAEAAAAAAAEAAAPo/2oAABdwAAD/tgSAAAEAAAAAAAAAAAAAAAAAAAACA1IAVQMWAFUAAAAAAAAAKAAAALcAAQAAAAIAXgAFAAAAAAACAIAEAAAAAAAEAADeAAAAAAAAABUBAgAAAAAAAAABABIAAAAAAAAAAAACAA4AEgAAAAAAAAADADAAIAAAAAAAAAAEABIAUAAAAAAAAAAFABYAYgAAAAAAAAAGAAkAeAAAAAAAAAAIABwAgQABAAAAAAABABIAAAABAAAAAAACAA4AEgABAAAAAAADADAAIAABAAAAAAAEABIAUAABAAAAAAAFABYAYgABAAAAAAAGAAkAeAABAAAAAAAIABwAgQADAAEECQABABIAAAADAAEECQACAA4AEgADAAEECQADADAAIAADAAEECQAEABIAUAADAAEECQAFABYAYgADAAEECQAGAAkAeAADAAEECQAIABwAgQBNAGEAdABoACAARgBvAG4AdABSAGUAZwB1AGwAYQByAE0AYQB0AGgAcwAgAEYAbwByACAATQBvAHIAZQAgAE0AYQB0AGgAIABGAG8AbgB0AE0AYQB0AGgAIABGAG8AbgB0AFYAZQByAHMAaQBvAG4AIAAxAC4AME1hdGhfRm9udABNAGEAdABoAHMAIABGAG8AcgAgAE0AbwByAGUAAAMAAAAAAAAB9AD6AAAAAAAAAAAAAAAAAAAAAAAAAAC5BxEAAI2FGACyAAAAFRQTsQABPw==)format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'scriptdf906bde6d2bb9848a5f23b35';src:url(data:font/truetype;charset=utf-8;base64,AAEAAAANAIAAAwBQT1MvMlzOErEAAADcAAAATmNtYXAedkzVAAABLAAAAFhjdnQgAEkAkwAAAYQAAAAIZnBnbVO0L6cAAAGMAAACZWdseWZvPbLzAAAD9AAAAVNoZWFkEwIm0gAABUgAAAA2aGhlYRCSFtkAAAWAAAAAJGhtdHhcrhGOAAAFpAAAAAhsb2NhAAfm0wAABawAAAAMbWF4cAFSAjMAAAW4AAAAIG5hbW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4AMFNjcmlwdAAAAAMAAAAAAAAEAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAC4Af+FsAGNAEuwCFBYsQEBjlmxRgYrWCGwEFlLsBRSWCGwgFkdsAYrXFhZsBQrAAA=)format('truetype');font-weight:normal;font-style:normal;}</style></defs><text font-family="scriptdf906bde6d2bb9848a5f23b35" font-size="16" text-anchor="middle" x="4.5" y="20">𝓁</text><polyline fill="none" points="12,-22 11,-22 5,0 2,-9" stroke="#000000" stroke-linecap="square" stroke-width="1" transform="translate(9.5,26.5)"/><polyline fill="none" points="5,0 2,-9 0,-8" stroke="#000000" stroke-linecap="square" stroke-width="1" transform="translate(9.5,26.5)"/><line stroke="#000000" stroke-linecap="square" stroke-width="1" x1="21.5" x2="83.5" y1="4.5" y2="4.5"/><text font-family="Arial" font-size="16" text-anchor="middle" x="23.5" y="20">8</text><text font-family="math1437d7d1d97917cd627a34a6a0f" font-size="16" font-style="italic" text-anchor="middle" x="34.5" y="20">π</text><text font-family="Arial" font-size="16" font-style="italic" text-anchor="middle" x="43.5" y="20">ε</text><text font-family="Arial" font-size="12" text-anchor="middle" x="51.5" y="25">0</text><text font-family="Arial" font-size="16" font-style="italic" text-anchor="middle" x="61.5" y="20">m</text><text font-family="Arial" font-size="16" font-style="italic" text-anchor="middle" x="72.5" y="20">g</text></svg>
I am trying to import this into my PDF with the \includesvg
command from the svg
package.
The package converts it into the file image-name_svg-tex.pdf
which looks like below
When rendering my PDF it gives a package inputenc
error, unicode character not found.
I am guessing because when the svg
package tries to render this as a simple latex and not math.
How do I get \includesvg
command to render my math characters?
MWE
?unicode-math
, but you say you are getting an error frominputenc
. No TeX engine supports bothinputenc
andunicode-math
. Could you please post a MWE and say which program you are compiling it in?$\ell \sqrt{8\pi\varepsilon_0mg}$
seems a good approximation.MWE
? I used LaTeX directly earlier. But now I have a bunch of SVG files that I need to put into a PDF.pylatex
and the compiler ispdflatex
. I've also triedlatexmk
. Those are the two options available inpylatex
@Davislor