OfficeMath로 작업하기

Contents
[ ]

이제 OfficeMath Type Objects로 작업하는 것이 더욱 편리해졌습니다. Aspose.Words에서는 고객이 쉽게 양쪽 정렬할 수 있으며 방정식을 인라인으로 표시할지 아니면 별도의 줄로 표시할지 여부도 관리할 수 있습니다. 더욱이 MathObjectType가 가능해졌습니다. 이 매트릭스 객체를 사용하면 유용한 컨트롤을 구현할 수 있습니다.

다음 코드 예제에서는 이러한 속성을 활용하는 방법을 보여줍니다

# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Python-via-.NET
doc = aw.Document(docs_base.my_dir + "Office math.docx")
officeMath = doc.get_child(aw.NodeType.OFFICE_MATH, 0, True).as_office_math()
# OfficeMath display type represents whether an equation is displayed inline with the text or displayed on its line.
officeMath.display_type = aw.math.OfficeMathDisplayType.DISPLAY
officeMath.justification = aw.math.OfficeMathJustification.LEFT
doc.save(docs_base.artifacts_dir + "WorkingWithOfficeMath.math_equations.docx")