# A problem with Latex-scaling (HTML probably)

**URL:** <https://forums.ankiweb.net/t/a-problem-with-latex-scaling-html-probably/37844>\
**Category:** Card Design\
**Created:** [November 30, 2023, 10:56am UTC](https://forums.ankiweb.net/t/a-problem-with-latex-scaling-html-probably/37844 "2023-11-30T10:56:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emanuel](https://avatars.discourse-cdn.com/v4/letter/e/ecc23a/32.png) [@Emanuel](https://forums.ankiweb.net/u/Emanuel)\
**Post date:** [November 30, 2023, 10:56am UTC](https://forums.ankiweb.net/t/a-problem-with-latex-scaling-html-probably/37844/1 "2023-11-30T10:56:23Z")

</div>

When displaying my Latex-code the following always happens:  
The Latex-text gets scaled with some factors (depending on the screen size),  
and as I use Latex-text multiple places - these are sometimes scaled differently.  
One degenerate example is the following.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/8/c/8cbf2b0c40e49d6a5a453416f403395d4dfd6aec.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/1/4/14eb6a2b9a2f3a57ea959e2aae975355b7f3421d.jpeg)

Edit: notice what I’m reffering to is the fact, that the ‘page 4’ part doesn’t scale with the other latex-text. For context - these are different fields, and they’re therefore also with their own ‘[latex][/latex]’-delimiters.

I want to accurately be able to use the Latex-font-size specifiers (such the text is accurately scaled wrt. these). Is this a feature/bug of the Anki Latex-delimiter interpretation? Is this caused by the HTML-code I’m currently using? Is it possible to force the Latex-text to scale uniformly with each other (as they’re technically pngs - right?)?

I apologise if this seems benign.

Some context:  
This ‘problem’ occurs both on my iPad and Mac (+iPhone if that matters).  
I’m using my own HTML-code (this could be the problem).

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [December 1, 2023, 4:03am UTC](https://forums.ankiweb.net/t/a-problem-with-latex-scaling-html-probably/37844/2 "2023-12-01T04:03:51Z")

</div>

Anki’s LaTeX support works by creating an image for each of your LaTeX blocks, and those images are subject to any css styling that affects img tags. If you’re not relying on things only possible with LaTeX, you may want to experiment with using MathJax blocks instead, as they may be more consistent. [Math & Symbols - Anki Manual](https://docs.ankiweb.net/math.html#mathjax)

---

<div class="post-metadata">

**Author:** ![Emanuel](https://avatars.discourse-cdn.com/v4/letter/e/ecc23a/32.png) [@Emanuel](https://forums.ankiweb.net/u/Emanuel)\
**Post date:** [December 2, 2023, 8:25am UTC](https://forums.ankiweb.net/t/a-problem-with-latex-scaling-html-probably/37844/3 "2023-12-02T08:25:56Z")

</div>

I’ll modify my css file then.  
Thanks for the response:)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [January 1, 2024, 8:26am UTC](https://forums.ankiweb.net/t/a-problem-with-latex-scaling-html-probably/37844/4 "2024-01-01T08:26:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
