Fixup from 019c740
Fixup latex initialisation to be correct
Add adaptive-wrap for latex editing