- Code: Select all
public void firstFormula(String t,double t1,String t3){
Paragraph paragraph = section.addParagraph();
String[] latexMathCode = {
"\\sigma_{"+"раст"+"}= ",
"\\sigma_{ekv}",
"\\cdot",
"n_{\\sigma}",
" = "+t+
"\\cdot"+ t1," = "+t3
};
OfficeMath officeMath;
for (int i = 0; i < latexMathCode.length; i++) {
officeMath = new OfficeMath(document);
officeMath.fromLatexMathCode(latexMathCode[i]);
paragraph.getItems().add(officeMath);
}
}
index in document is now "xxxx", but should be "раст"