jelovirt / com.elovirta.ooxml

DITA to Word plug-in
Apache License 2.0
22 stars 14 forks source link

Template problem #53

Open chrizzbee opened 6 years ago

chrizzbee commented 6 years ago

Hi Jarno I want modify the Normal.dotx that comes with the plugin. When I open and save it under a new name and use this new template in built.xml, the output doesn't look like as with the original Normal.dotx. For instance, all heading styles are gone and so are the table borders. The size of the new template decreases from 78 KB to 28 KB. So, something is stripped out here.

Which Word version and language is recommended to make template modifications? I use Word 2010 (German). I tried Libre Writer too, but then the result can not be openend by Word.

Windows 7 x64 DITA-OT 2.5.4

Thanks Chris.

chrizzbee commented 6 years ago

Ok, I figured out, that a German Word doesn't go well with an English template. Because all styles are renamed to German upon open and save, this scrambled the output. I downloaded an English language pack and now it works like a charm ...

Maybe you want to make a note of this in the documentation somewhere.

jelovirt commented 6 years ago

Yes, differing template style names will cause issues. The mapping which style is used uses the style name/label, because the internal ID for the style can change. Using an alternative mapping would require an XSLT override.

jelovirt commented 6 years ago

The documentation is at https://github.com/jelovirt/com.elovirta.ooxml/wiki/Templates but it’s not particularly good. Enhancement contributions are welcome.

rag-sing commented 2 years ago

Hi all,

I used latest DITA OT 3.6.1 and com.elovirta.ooxml plugin. I have been successful getting output. But I got one problem "The next chapter starts right below where the previous chapter ends" in the docx output.

But as per my understanding the next chapter should starts next page where the previous chapter ends.

Please suggest which xsl file. I need to update.

Thanks, Raghavendra