Marktext: Align block math formulas

Created on 2 Dec 2019  ยท  3Comments  ยท  Source: marktext/marktext

Question description

@Jocs How to align block math formulas to left like:

Long paragraph

Short text:

$$
This should be on the left
$$

Long paragraph

I tested some LaTeX functions like flalign but they aren't supported by KaTeX (=invalid formula).

โ“ question

All 3 comments

@fxha Do you mean display rendered math block on the left?

I think you could use

.katex-display>.katex {
  text-align: left;
}

in your style .css to always align math blocks to left. This works atleast for exporting, but as custom themes arent supported you could try to build your own version and modify the css files, however currently I think the best option is to just wait for custom themes to be supported.

Closing as there seems no valid option to aligned a single math formula but not others.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CeroProgramming picture CeroProgramming  ยท  3Comments

stefnotch picture stefnotch  ยท  4Comments

acostalima picture acostalima  ยท  3Comments

AsierRF picture AsierRF  ยท  3Comments

barlowliu picture barlowliu  ยท  3Comments