Replies: 3 comments 10 replies
-
If I understand correctly, on an OOXML level, you want to remove all <w:rPr>
<w:color w:val="FF0000" />
<w:u w:val="single" />
</w:rPr> or whatever style properties Regarding pandoc, such functionality does not currently exist to my knowledge. It is also a rather specialised use case from what I can see, so I'm not sure if it would be implemented. I do wonder, however, why publishers wouldn't want styles to be used. Surely they can modify the DOCX to supply their own styles, which would obviously require the document to use styles in the first place? If direct formatting was used, this wouldn't be possible. |
Beta Was this translation helpful? Give feedback.
-
You could try |
Beta Was this translation helpful? Give feedback.
-
@jgm and @rnwst, as an alternative approach, is this something that could perhaps be done with a custom writer? E.g., have Pandoc ingest a file and write a DOCX output that simply applies the otherwise-handled-by-styles formatting (e.g., makes level 1 headings centered, applies a first-line indent to footnotes). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my field, publishers often require documents to be submitted with direct formatting only (i.e., no styles other than the default style).
So, authors either need to (1) never use styles or (2), before submission, convert documents using styles so that they retain their formatting but remove the styles.
There's a very cumbersome way to do this with Word and Wordpad. There's seemingly no equivalent for LibreOffice that wouldn't require using the same process of shuttling documents through Word and Wordpad, which then becomes even messier.
Is this something Pandoc can or could do with a flag that would produce a document that was formatted as if it used however many predefined styles (e.g., from whatever provided reference file) but only actually has in use a given the default style(s) (e.g.,
Normal
)?If so, we'd be deeply grateful for any pointers or possible efforts anyone with the appropriate technical expertise might be able to provide in this direction. And of course, if I can provide any other details that might be helpful in this context, please feel free to ask.
Thanks so much!
Beta Was this translation helpful? Give feedback.
All reactions