Changes between Version 11 and Version 12 of OdtExportPlugin
- Timestamp:
- Jul 28, 2011, 2:37:45 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OdtExportPlugin
v11 v12 35 35 * '''img_default_width''' (string, defaults to `8cm`) : the width of an exported image when the plugin can't compute it. 36 36 * '''img_default_height''' (string, defaults to `6cm`) : the height of an exported image when the plugin can't compute it. 37 * '''remove_macros''' (list, defaults to `PageOutline, TracGuideToc, TOC`) : the macros which will be removed on export. This is mainly because the table of contents should be handled in the ODT directly, not by generating a list of links. Warning, if these macros are in a sub-page included by the IncludeMacro (or similar), they will not be removed. 37 * '''remove_macros''' (list, defaults to `PageOutline, TracGuideToc, TOC`) : the macros which will be removed on export. This is mainly because the table of contents should be handled in the ODT directly, not by generating a list of links. Warning, if these macros are in a sub-page included by the IncludeMacro (or similar), they will not be removed. In the specific case of IncludeMacro however, there is a [ticket:9035 patch available] to fix that. 38 38 39 39 Those options must be put under a `[odtexport]` section in the ini file, such as : … … 44 44 }}} 45 45 46 === About the ` CUT-START` and `CUT-STOP` tags ===46 === About the `TRAC-ODT-CUT-START` and `TRAC-ODT-CUT-STOP` tags === 47 47 48 In an ODT file, the only styles that will be saved are the styles which are applied to some content in the document. If you want to create an empty ODT document for this plugin, and still want to define styles which will be applied to the wiki content, you have to write some dummy text, apply the styles to this text, and surround the text in the ` CUT-START` and `CUT-STOP` tags. This way, the styles will be retained in the ODT file, but the dummy text will be removed on export.48 In an ODT file, the only styles that will be saved are the styles which are applied to some content in the document. If you want to create an empty ODT document for this plugin, and still want to define styles which will be applied to the wiki content, you have to write some dummy text, apply the styles to this text, and surround the text in the `TRAC-ODT-CUT-START` and `TRAC-ODT-CUT-STOP` tags. This way, the styles will be retained in the ODT file, but the dummy text will be removed on export. 49 49 50 50 === Choosing a template ===