Menu

Suggestion/question about partial conversion

Help
Ioan
2019-09-25
2020-04-09
  • Ioan

    Ioan - 2019-09-25

    Dear Henrik
    I appreciate your work with writer2latex. I use it to convert files from Word to Libre and then to Latex with a lot of success. I have a couple of questions/suggestions.
    1 I am trying to convert numbered sentences from word and I am successful up to know, but I would like to see if there is a way to AVOID the conversion of numbered paragragh in word to "enumerate". Can I specify this in the configuration file? If i use ignore_most, the numbered statements are still converted. I want to keep character formatting but no enumeration.
    2 I am in process of making possible to convert zotero references from footnotes (a pain in the ....) but what I may need is to be able to AVOID adding a line break after converting a style . Is that possible? Writer adds a couple of line breaks after converting a paragraph.
    3 I am thinking about adding some new translations for mathematical equations. The process of going from Word to Libre and then to Latex implies a conversion from AMS math into libre and then to latex again. What I try to do is to insert the AMS math in a comment in Word, then convert files to libre and then from Libre to latex. All is fine except that writer2latex converts my AMS code into latex and escapes all the \ symbols. Is there a way to keep the comments verbatim?
    Thanks for your amazing work! I can also share a couple of things i solved in my three-way conversion.
    Yours
    Ioan Muntean

     
  • Aragon

    Aragon - 2020-04-09

    Ad 1: If you define a style-map, it overwrites the standard setting. So add to writer2latex.xml:
    <style-map after="" name="Numbering 123" family="list" before="">
    <style-map after="" name="Numbering 123" family="listitem" before="">
    If you are using another list stlye, adapt the name.
    "ignore_most " preserves e.g. italics.</style-map></style-map>

    Ad 2: I would like to know how to add a line break, too.

     
  • Aragon

    Aragon - 2020-04-09

    I found the answer myself: A line break is produced by " "
    <style-map line-break="false" after=" \par " name="abs" family="paragraph" before="\abs "></style-map>

     

Log in to post a comment.