WriteTeX
WriteTeX copied to clipboard
Added option for font size (10pt, 11pt, 12pt).
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!
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.
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?
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.
@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.
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.