ODTimport config file
I spent some time editing the config.xml in ODTimport after reading the writer2latex user manual. I managed to get most things working the way I wanted especially getting my LO Writer styles mapped. I found that Writer's Text Body style mapped to a bog-standard <p> no matter what I called my corresponding css style. I suppose there is an understandable logic to that so I found a workaround.
I did not have any success with mapping my list styles but I can live with correcting those in the epub file with Sigil after conversion.
Where I absolutely failed was in getting my personal StyleSheet.css file recognised and imported. I tried all the variations I could think of when editing the config line:
<option name="custom_stylesheet" value=" " />
but never hit the sweet spot so the resulting epub had my style names correctly shown in all the xhtml files but the styles were not implemented because I had failed to get my stylesheet linked in.
My workaround was to place a copy of my stylesheet in the ODTimport plugin directory and rename it to epub.css. That worked.
Could someone please explain the correct formula for getting an external stylesheet linked in automatically during the conversion?
|