Skip to content

Conversation

@JonasBreuling
Copy link

But I think there has to be a sizing error. If I export the image with the equations to an eps and include that to my LaTeX file the font size is wrong. When I use scale=1.2 it looks good but I think that's strange. But thanks for that awesome extension. THat's what I needed!

…to be a sizeing error. If I export the image with the equations to an eps and include that to my LaTeX file the fint size is wrong. When I use scale=1.2 it looks good but I think thats strange.
@wanglongqi
Copy link
Owner

Sizing is always a big issue. Actually I cannot control the size of svg outputted from pdf2svg or pdftoedit. In fact, if you switch pdftosvg convertor on one machine the results will be in different sizes. Thus adding font size does not providing any additional power in controlling the size of output. It is more like a dummy option, and I am afraid users may get confused by putting 10, 11 or 12 pt.

@JonasBreuling
Copy link
Author

Thanks for your quick reply. What you say is true, if the font size option does not lead to the real size its just confusing. But I really like your extension and I will think about a possibility to get the right font size to the svg. Do you have any idea how to extract the source code from the svg to the plugin for reeding the TeX code? So instead of the 'view originial' window?

@JonasBreuling
Copy link
Author

I found out that on linux using pdf2svg the scale factor has to be 1.25. Then you get the right character size. Might be helpful for somebody.

@wanglongqi
Copy link
Owner

@JonasHarsch interesting discovery. Then, it is reasonable to set the multiplier to 1000 instead of 800. "how to extract the source code" is the tricky part of this plugin, there is no dynamic functionalities in inkscape standard extension system, thus textext switched to pyGTK or TK for that purpose. If you find any other way to return the original TeX code, it will be awesome.

@JSuni
Copy link

JSuni commented May 25, 2018

Not sure if this is helpful, but it turned out that the factor on my machine is 0.35 (Windows10). An option to control the size without resorting to trial and error would indeed be very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants