Create arrow with LaTex

Hello,

I'd like to use the LaTex command \to in order to create an arrow as shown in the attached word document. If you click on the equation and select professional, the formatting to arrow is completed.  DocIO does not seem to be able to handle this functionality; is there another way to add an arrow into a LaTex equation or can I request this feature to be added? 


Thanks. 


Attachment: LaTexArrow_d53169e8.zip

3 Replies 1 reply marked as answer

AA Akash Arul Syncfusion Team January 11, 2024 02:26 PM UTC

Hi Natalie,

On analyzing the given details, we found that your requirement is to add an arrow in a LaTeX equation. To achieve your requirement, please follow the below LaTeX syntax.

// Create a new Word document.

WordDocument document = new WordDocument();

// Adds a new section into the Word Document

var section = document.AddSection();

// Adds a new paragraph into Word document and appends text into paragraph

var paragraph = section.AddParagraph();

paragraph.AppendMath(@"\frac{{b}_f}{{2t}_f} \le 12.0 \rightarrow7.2 \le 12.0");

document.Save(@"../../Output.docx", FormatType.Docx);

document.Close();


Regards,
Akash.



NW Natalie Westphal March 18, 2024 09:32 PM UTC

How can I make a double-lined arrow, such that the tail of the arrow is two parallel lines? 

According to this code editor (https://editor.codecogs.com/), \rightarrow should create a double lined arrow while \to should create a single lined arrow? 




AA Akash Arul Syncfusion Team March 19, 2024 10:11 AM UTC

Natalie, please refer to the UG documentation below to learn how to create arrow symbols in a LaTeX equation using the .NET Word library (DocIO).
Link: https://help.syncfusion.com/file-formats/docio/supported-latex#arrows


Marked as answer
Loader.
Up arrow icon