Font-size of math is bigger than rest. Could this be configured to same font-size?

0 votes
asked Feb 4, 2022 in Question / help by anonymous
commented Feb 4, 2022 by The-Lu (63,920 points)

Hello A.,

Here is an example:

@startuml
:This is a test with math <math>a*x^2+b*x+c</math>inside text;
:Let the formula: <math>int_0^1f(x)dx</math>;
@enduml

Not only the size, there is the alignment...

But the big deal: how to manage big formula?...
Align on bottom, on middle...

To debate...

Regards,
Th.

commented Feb 9, 2022 by Martin (8,360 points)
edited Feb 9, 2022 by Martin

If you switch from asciimath to latexmath, you get more control over size. 

(You can use site https://www.intmath.com/help/asciimath-input-latex-katex-output.php to convert asciimath into latexmath).

Then you can use \scriptsize (or other sizes listed at https://www.overleaf.com/learn/latex/Font_sizes%2C_families%2C_and_styles)

Or use \scalebox{.7}{text} to scale.

Unfortunately I could find no way to explicitly set the font name and size.

e.g.

@startuml
:This is a test with math<latex>\scalebox{.7} {\displaystyle{a}\cdot{x}^{2}+{b}\cdot{x}+{c}}</latex>inside text;
:Let the formula: <latex>\scriptsize {{ \int_{{0}}^{{1}}} f{{\left({x}\right)}}{\left.{d}{x}\right.}}</latex>;
@enduml

Another example using tt font for 1st, and \tiny for 2nd :

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...