Absolute Bars in LaTex Equation

Hello,

I am using this LaTex equation: 

paragraph.AppendMath(@"|\frac{{P}_{r}}{2{P}_{c}}|+\left(\frac{{M}_{rx}}{{M}_{cx}}+\frac{{M}_{ry}}{{M}_{cy}}\right)");

and I am curious if there is a way to make the absolute value bars larger so that they are the same height of the fraction within them. 

Thanks. 


1 Reply 1 reply marked as answer

SB Sneha Biju Syncfusion Team February 9, 2024 09:40 AM UTC

Hi Natalie,

Upon further analysis of the provided LaTeX equation, we have found that your requirement is to maintain the size of the bars equal to the content. To fulfill this requirement, we recommend using the bars as delimiters.

The syntax for delimiter is as follows:


To know more about delimiter please refer to the documentation provided below.
https://help.syncfusion.com/file-formats/docio/working-with-latex#delimiter

We have also made modifications to the given code snippet to meet your requirement. You can find the modified code snippet below.

"\left|\frac{{P}_{r}}{2{P}_{c}}\right|+\left(\frac{{M}_{rx}}{{M}_{cx}}+\frac{{M}_{ry}}{{M}_{cy}}\right)"


Regards,
Sneha.


Marked as answer
Loader.
Up arrow icon