我刚刚在word文档中添加了一个脚注。但这看起来有点奇怪。
脚注数字通常以上标的形式输入,但现在不是。
如何插入脚注编号作为上标?
这是我的代码..
r = p.createRun()
String footnoteText = "exexexex "
BigInteger footnoteId = createFootnote(document, footnoteText)
r = p.createRun()
//r.getCTR().addNewRPr().addNewRStyle().setVal("FootnoteReference")
r.getCTR().addNewFootnoteReference().setId(footnoteId)谢谢!


发布于 2020-07-24 15:06:51
https://www.python2.net/questions-332393.htm
XWPFStyles styles = document.createStyles()
XWPFStyle style = new XWPFStyle(CTStyle.Factory.newInstance(), styles)
style.getCTStyle().setType(STStyleType.CHARACTER)
style.getCTStyle().setStyleId("FootnoteReference")
style.getCTStyle().addNewRPr().addNewVertAlign().setVal(STVerticalAlignRun.SUPERSCRIPT)
styles.addStyle(style)https://stackoverflow.com/questions/63067548
复制相似问题