java - How to write specific symbols to Docx file using docx4j -


i have specific logical symbols ⇒,∨,∧,¬ , want write text these symbols docx document. short symbols ∨,∧,¬ fine, symbol ⇒ overlaps next character enter image description here

but should like

enter image description here

my code looks

maindocumentpart mdp = wordmlpackage.getmaindocumentpart();     p p = factory.createp(); r run = factory.creater(); p.getcontent().add(run); text text = factory.createtext(); text.setvalue("((q⇒p)∧q)⇒p"); run.getcontent().add(text); mdp.addobject(p); 

how correct writing long symbols ⇒?

you can use docx4j code generation want.

create document in word looks how want it, save docx.

to generate code based on docx, 1 of following:

  1. upload http://webapp.docx4java.org/onlinedemo/partslist.html

or 2. install/use our word addin; @ http://www.docx4java.org/forums/docx4jhelper-addin-f30/docx4j-helper-addin-v1-final-available-t2253.html

if still having problems, post xml created in word, or code generated following above steps.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

http - Safari render HTML as received -