Re: [Doxygen-users] Controlling the size of the equation fonts?
Brought to you by:
dimitri
From: Jens S. <jen...@hr...> - 2002-06-07 18:25:49
|
Dear Ted, you can use one of the LaTeX macros \displaystyle \textstyle \scriptstyle \scriptscriptstyle to change the size of a formula. The commands \large, \Large, \Huge, ... cannot be used in math mode: LaTeX Font Warning: Command \Large invalid in math mode on input line 4. but it's possible to use these before entering the math mode. Nevertheless I do not recommend it. LaTeX was developed with help of typesetters and creates beautiful documents. Do you really want to change this? (Formulas such as \f$ \gamma, a_1, \dots \f$ look ugly if the font sizes differ in math and text mode.) Please compare the LaTeX output of \documentclass{article} \begin{document} \[ b^0 + \frac{a^1}{b_1 + \frac{a^2}{b_2 + \frac{a^3}{b_3}}} \] \newcommand{\D}{\displaystyle} \[ b^0 + \frac{a^1}{\D b_1 + \frac{a^2}{\D b_2 + \frac{a^3}{b_3}}} \] \end{document} (see "The LaTeX Companion", Goossens, Mittelbach, Samarin, sec- tion 8.9). If you want to enlarge formulas in the html output, you should prefer an external program, such as convert (belongs to the free ImageMagick). This is available at most Linux machines and is simple to use: convert -geometry 150% form_2.png form_2_large.png I think it's not a good idea to integrate your patch into the doxygen main line. There are already too many configuration op- tions, there's no need for a new one (don't forget that nobody requested this feature before). Maybe it's possible to collect these patches (and other doxygen related patches) somewere? Regards, Jens On Thu, 6 Jun 2002, Ted Drain wrote: > All, > I'm using the \f[ \f] and \f$ commands to embed equations in my documentation. I need to view those equations in HTML and latex formats. > > Is there any way to control the size of the font used to generate the equations? I have a lot of subscripts and I need the font size to be larger that the default. Otherwise, it's very difficult to read the HTML version of the equations. > > I tried putting \large and other latex font size commands in various places but it doesn't work. I can manually add the \large command to the tex output and then when I run 'make ps', the ps file has the larger fonts in it. > > For example, if I embed the following equation: > // \f[ > // \vec{F_f} = F \left( t - t_0 \right) \hat{u} \left( t \right) > // \f] Hint: There's no need to use \left and right in this formula. \vec{F_f} = F(t-t_0)\hat{u}(t) is easier to read and creates the same output. > I've tried prefixing it with various tex font commands like this: > // \f[ \large > > // \f[ { \large > > // \f[ \large { > > From my experiments with the .tex files, it looks like I need the font spec outside the formula [] brackets. Anyone have any ideas how I could get doxygen to put it there before generating the png files? > > Thanks, > Ted |