How to specify font size in url other than \small \tiny?
How to specify font size in url other than \small \tiny?
Hi,
i want to use codecogs for latex rendering on my website. My problem is that the size "tiny" is too small and the size "small" is a bit to big. Are there other sizes available? How can I use them in the request url?
Den1001
27 Jan 10, 9:44PM
Use the dpi setting, which effectively allows you to have any size you want, i.e.
http://latex.codecogs.com/latex.gif?80dpi sin(x^2) http://latex.codecogs.com/latex.gif?280dpi sin(x^2)Which gives: and I should add a small health warning. Some latex fonts (or graphics) are designed by combining several character. For example a long arrow may be made from a straight line and a normal arrow. Using different fonts and dpi can lead to miss-alignments or different thickness for different parts. If you find any problems please report them back here - they might be fixable.
28 Jan 10, 7:53PM
Thanks for the tip! I will try it on my page.
1 Mar 10, 12:39AM
The
was cancelled out automatically leaving only "dpi" when i try to put it in my bbcode "html replacement".
It looks like this:
Is there any compatibility issue I should look at?
Thanks
1 Mar 10, 6:21AM
Thats a very interesting modification the BB applies. Does the same happen if you do:
110dpi sin(x^2)i.e. some other dpi resolution. Seems to me that its picking up on the number and possibly treating this as a character code or something. Nevertheless, I have been wondering if it would be more logicial for us to change the dpi setting, so you can type
\dpi{110} sin(x^2}I'll add this over the next few days..
1 Mar 10, 9:02AM
Tried with 100,110 etc and it gives me
It picks the first two digits which I would think were reserved for other parameters. Using other functions like fg etc works just fine.
Re:modify dpi setting, it would be a nice option. It would also be nice if the sizes were not discreet, i.e because the jump from 80 to 100 dpi for example is too big in my opinion.
And another thing, the smaller the text, the less the definition. It would be nice if it is more defined like the normal text and especially not 'italic'. But i understand that this will take more time to render. But some fonts like Computer Modern already well defined and they load with similar speed.
1 Mar 10, 11:53AM
You can actually use any dpi setting you like. i.e. \112dpi etc.
Regarding the quality. The way to resolve this is to increase the dpi setting to say 300, then show the image at 1/3 height. This is you can do by adding the height=" " attribute to an image, but the challenge is knowing what height to use, since an equation size is not constant and it difficult to guess. We will, however, very shortly be introducing an enhancement to the editor to work all this out for you, giving you the ability to scale equations by a set percentage.
2 Mar 10, 5:26AM
New dpi setting has been implemented, thus
http://codecogs.com/gif.latex?\\dpi{20}1+2We'll gradually integrate this method into the equation editor and other services.
Login