# changing font of wordpress quick latex

The font of word press quick latex looks so light and not so good. Is it possible to change the font a bit dark and a bit cool?

and i am writing chemical reaction so i must use wp quick latex as i have not found any other plugin that writes chemical reaction on word press on fly.

I want to show chemical reaction but it appears so dim ,blurry and irregular color like this .

Thanks.

But when i see pdf it looks so better than that by wp quick latex enter image description here

• related Extracting Image from latex – Johannes_B Jun 27 '15 at 13:47
• If it is the image rendering that QuickLaTeX uses which bothers you then go to the QuickLaTeX settings > System and change Image format into Auto or SVG. – cgnieder Jun 27 '15 at 14:51
• @clemens I mean the second image is taken from PDF after compiling and first image is taken from wp quick latex. I wonder why second looks too much better but first one looks very bad :( . i have no problem using png or svg . – user80946 Jun 27 '15 at 14:55
• @user80946 from the QuickLaTeX homepage: »Rendering into vector image format SVG, which means formulas are always crisp and preserve high-resolution quality regardless of zooming factor in the browser. Automatic detection of browser capabilities and silent fall back to raster PNG images for older browsers. This is essential for modern high-dpi screens (Retina, Super Amoled, etc.)« – cgnieder Jun 27 '15 at 14:57
• @clemens finally a big thanks .. It was problem of PNG that it renders very badly . I find no problem in SVG . However i have a lot of question like showing reaction on wp quick latex. Should i post or directly discuss with you ? – user80946 Jun 27 '15 at 15:02

Since QuickLaTeX allows a custom preamble you can simply add a font package, just like you would in a LaTeX document:

$[preamble] \usepackage{chemfig} [/preamble] \chemname{\chemfig{CH_3-CH(-[2]CH_3)-CH_2-Cl}}{Isobutyl chloride}$

$[preamble] \usepackage{libertine} \usepackage[libertine]{newtxmath} \usepackage{chemfig} [/preamble] \chemname{\chemfig{CH_3-CH(-[2]CH_3)-CH_2-Cl}}{Isobutyl chloride}$

$[preamble] \usepackage{newtxtext,newtxmath} \usepackage{chemfig} [/preamble] \chemname{\chemfig{CH_3-CH(-[2]CH_3)-CH_2-Cl}}{Isobutyl chloride}$


If you want this for all QuickLaTeX uses on your blog then add the font packages to the global QuickLaTeX preamble (WP QuickLaTeX > Advanced) without the [preamble]/[/preamble] shortcode. (The short code is meant to be used in posts for locally overwriting the global preamble. (There's also [+preamble]/[/preamble] for use in post to add stuff to the global preamble locally.)

If it is only the rendering of the images: go to the QuickLaTeX settings System and change the image format from PNG into SVG or – preferably – into Auto. Quote from the QuickLaTeX homepage:

Rendering into vector image format SVG, which means formulas are always crisp and preserve high-resolution quality regardless of zooming factor in the browser. Automatic detection of browser capabilities and silent fall back to raster PNG images for older browsers. This is essential for modern high-dpi screens (Retina, Super Amoled, etc.)

• is it possible to get all latex code in 3rd form always . So that i should not write \usepackage .. i have to nearly write 100 reaction and it may kill me:( – user80946 Jun 27 '15 at 14:08
• @user80946 The QuickLaTeX plugin also also has a global preamble which is then active for the whole WordPress site. Go to QuickLaTeX settings > Advanced – cgnieder Jun 27 '15 at 14:11
• it means i these \usepackage{libertine} \usepackage[libertine]{newtxmath} \usepackage{chemfig} or i should add premble as well? and what preamble means? – user80946 Jun 27 '15 at 14:17
• @user80946 Have you ever even written a LaTeX document? The preamble is the part between \documentclass and \begin{document}. It is the part of a document where packages a loaded, setup is done, custom macros are defined, … – cgnieder Jun 27 '15 at 14:19
• @user80946 the [preamble] short code is used in a post to add custom preamble settings for the current LaTeX code and it overwrites whatever settings you have in the global QuickLaTeX preamble. The shortcode [+preamble] adds its settings to the global preamble. – cgnieder Jun 27 '15 at 14:24