Larger Latex?

Larger Latex?

by Alice Keeler -
Number of replies: 1
when I use www.quia.com I am able to use latex and I usually use code like <latex>\huge$\frac{1}{3}$</latex> where the \huge allows the latex code to be displayed larger.

When I do latex in Moodle I leave off the latex tags and just use $$\frac{1}{3}$$ so I can't figure out how I would use the \huge to make it larger.

Does anyone know how I can make my latex in Moodle larger?
Average of ratings: -
In reply to Alice Keeler

Re: Larger Latex?

by Mauno Korpelainen -

This is one of those things that should probably be rewritten for tex filter and different renderers in the future.

With Mimetex \tiny a - \scriptsize a - \footnotesize a - \small a - \normalsize a - \large a - \Large a - \LARGE a - \huge a - \Huge a

most likely work and give \tiny a\scriptsize a\footnotesize a\small a\normalsize a\large a\Large a\LARGE a\huge a\Huge a and sizes can be used at the same time but changing site wide density setting from settings (administration menu) of tex filter does not have effect. For other distributions of LaTex you can change density site wide but these sizes don't work like they should at the same time.

On the other hand you can use external renderers like mathtex (and image plugin of editor) without problems like this ( \Huge a and \tiny a from my external test site cgi mathtex):

\Huge a and \tiny a

or with density (here 800)

\density{800} a

 or dpi (here 800)

\dpi{800} a

but these can't be used directly with tex filter... the address of last image is http://korpelainen.net/cgi-bin/mathtex.cgi?\dpi{800} a and mathtex can be found from http://www.forkosh.dreamhost.com/source_mathtex.html

In the future tex filter should probably allow using different densities either with \dpi or \density or some other way (custom tag?) to allow users to select density for each equation instead of site wide density setting.

Or you could use free renderers like google chart api with code like

http://chart.apis.google.com/chart?cht=tx&chco=000000&chf=bg,s,FFFFFF00&chl=\Huge\frac{1}{3}

to render \Huge\frac{1}{3} with editor image plugin.