element-hq / element-hq/element-web

Automatically scale LaTeX rendering to a readable font size

Open
#17,326 6 comments 2 reactions 0 assignees View on GitHub
A-Maths A-Timeline T-Enhancement X-Needs-Design Z-Confidence-Low Z-Labs
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

#### Is your suggestion related to a problem? Please describe.
![image](https://user-images.githubusercontent.com/2803622/118499729-7fc29c00-b727-11eb-9a23-abe727c80255.png)

#### Describe the solution you'd like.
Perhaps a content-sensitive upscale could be applied, especially regarding the very commond `\frac`, but perhaps some others can be preset. Alternatively have a min size for "regular" elements as well as sub/superscript elements. Calculate the text size of the smallest element, and scale up the whole result based on a reference smallest allowed size.

#### Describe alternatives you've considered.
There are probably more, including user controlled, like a button on messages that contain latex to pop it out in a larger viewer or user definable scaling factor. The default size may be larger in latex-only messages similar to emoji-only.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.