• I am new to the world of Latex and am struggling to address my client’s specific requirement with respect to specifying the font family and font size of the equations displayed by your plugin.

    Regarding the font family, I found some documentation that suggested I can use these modifiers:

    \rmfamily selects a roman (i.e., serifed) font family
    \sffamily selects a sans serif font family
    \ttfamily selects a monospaced (“typewriter”) font family

    I have added these modifiers to the first three equations on the reference web page,

    The first equation is expressed thusly:
    [latex]$\Huge\sffamily i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>$[/latex]

    The second equation is:
    [latex]$\Huge\rmfamily i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>$[/latex]

    But the displayed results look identical. Am I doing something wrong here? Is there a different way to select a *specific* font type, not just a generic one (e.g., roman, sans serif).

    Regarding the size of the output, as you can see I applied the \Huge modifier to the first three equations, and it works. But your documentation says one can apply “precise” tuning to color, font size, etc. Exactly how does one do that? Please provide the exact syntax of what I would need to use to do this, and where I should apply it.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author advanpix

    (@advanpix)

    Fonts.
    LaTeX document has two types of content: usual text and math/equations.
    Each requires different approach to setup font. The commands you are trying is for text, but you apply them on equations.

    Overall you can setup any fonts using LaTeX packages. Please google for “latex fonts for equations” or similar (e.g. https://milde.users.sourceforge.net/LUCR/Math/math-font-selection.xhtml).

    Font size.
    Yes, you can adjust font size using \Huge or other native LaTeX commands.
    On top of that QuickLaTeX allows precise font size tuning. Please check first tab in Admin page of the plugin for example. Second tab in admin page allows global setup of font size in pixels.

    Thread Starter Jonathan May

    (@ypotw)

    Thank you for your reply! I was able to figure out how to set the font size and color for a particular equation by applying the example that is on the first tab of the settings. I had seen that before but did not understand exactly where to put the modifying term. In any case, it works!

    Regarding your response about modifying the font itself…I read the words, but don’t understand exactly how to proceed. I understand how to install new fonts in WordPress, but how do I apply a particular font to either all equations on the page, or just to a particular equation??

    Plugin Author advanpix

    (@advanpix)

    @”but how do I apply a particular font to either all equations on the page, or just to a particular equation??”

    LaTeX fonts have no relation to WordPress’s fonts. In LaTeX world you need to use preamble to include packages (e.g. with fonts). My plugin allows to use site-wide preamble (Admin->Advanced), as well as on per-equation basis (use [preamble] .. [/preamble] short codes).

    In any case, LaTeX is advanced publishing system and programming language – please check some guides on how to use it. Plugin is just easy interface to use LaTeX in WordPress.

    Thread Starter Jonathan May

    (@ypotw)

    Ok, I got it. Thanks again. We can close this. Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Font family and size’ is closed to new replies.