sciapp / gr

GR framework: a graphics library for visualisation applications
Other
328 stars 54 forks source link

LaTeX font options #93

Open sswatson opened 4 years ago

sswatson commented 4 years ago

I'm wondering whether it would be helpful to allow the user to change the LaTeX font by injecting code into the header of the LaTeX file being compiled. That way, users could get their math font to match their text font.

I hardly have the full view, but it seems that maybe this could be implemented by changing a few lines in latex2image in gr.c.

jheinen commented 4 years ago

We could think of site-specific LaTeX prologues, given in an environment or a configuration file. Would this be acceptable for you?

sswatson commented 4 years ago

Yes, that sounds like a good solution. Ultimately I'd like to be able to do something like gr(texpreamble="\\usepackage{mathpazo}") in Julia.