Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tom Churchman

    (@beskhue)

    The following CSS rule should work:

    .katex-display > .katex {
      text-align: right !important;
    }

    To do it on a per-block basis you can add a custom class to those blocks and create a rule for that class.

    I do not know CSS, please can you tell me in more detailed way how to add custom class to blocks and create custom rule for that class to right align my math equations! Thankyou very much!

    • This reply was modified 4 years, 9 months ago by hemang1999.
    Plugin Author Tom Churchman

    (@beskhue)

    You can add a custom class to blocks when in the post editor. Go to the block settings for the block you want to add a custom class to and click on “Advanced” to open the advanced settings. You can add your custom class names to the “Additional CSS class(es)” field.

    To style them, add rules to your stylesheets, for example:

    .katex-eq.my-custom-katex-class .katex {
      text-align: right !important;
    }
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Need Help on Alignment’ is closed to new replies.