John MacFarlane
John MacFarlane
OK, I got it reversed then. I knew it was one way or the other!
I can't see how the issue would be the OS version. However, I use pandoc 3.5 on ARM macOS (previous version), and I don't have any difficulties customizing the style....
Note that in my-reference-docx-3_5.docx, styles.xml has ``` ``` and the name specified here is "Title", not "Titel". So any localization of that name must be happening somewhere outside the stylesheet....
PS. I tried manually changing the styleId from `para4` to `Title`, and then it worked.
It looks like the linked commit may have been focused on just the table caption; maybe we didn't make a general change to looking up styles by name intead of...
It's quite counterintuitive that Word works this way -- it's the name, not the styleId, that stays constant across localized versions -- but such is MS.
IN the 3.2.1 changelog for docx writer we have two items that might be relevant: - Allow OpenXML templates to be used with docx ([#8338](https://github.com/jgm/pandoc/issues/8338), [#9069](https://github.com/jgm/pandoc/issues/9069), [#7256](https://github.com/jgm/pandoc/issues/7256), [#2928](https://github.com/jgm/pandoc/issues/2928)). commit db559e100c02ca1f95953f3eeeca005fdc01b595...
The OpenXML template contains: ```xml +$if(title)$ + + + + + $title$ + +$endif$ +$if(subtitle)$ + + + + + $subtitle$ + +$endif$ ```
[EDITED] We produce a docx with ``` ``` and the way Word deals with this is to look up the style with `styleId` = `"Title"`. The default pandoc reference.docx has...
@ctfysh I don't understand the problem yet. See the last comment before yours. If you want to give precise instructions about how to reproduce this, I can try to reproduce...