By the way, while a solution for Pandoc is being worked out, you may want to try this work-around: 1. Save reference document (it needs to be output from Pandoc if you're modifying Pandoc's own styles) as template. 2. Apply this template (choosing to automatically apply styles) to the one produced by Pandoc. Unfortunately this does require that you have Word installed and invoked for each (pan)doc requiring customization. I'm not sure whether applying template can be automated. On Friday, May 31, 2013 at 1:21:24 PM UTC-4, Till A. Heilmann wrote: > > When I write a docx file with pandoc, some of the text elements in the > resulting Word document show up with the localized names of the styles > (because of my German Office), namely: > > - "Standard" (instead of "Normal"), > - "Titel" (instead of "Title") and > - "Datum" (instead of "Date") > > Most other text elements' styles have the 'original' American-English > names, though, for instance: > > - "Heading 1" … (instead of localized "Überschrift 1" …) > - "Block Quote" (instead of localized "Blocktext") > - "Footnote Reference" (instead of localized "Fußnotenzeichen") > > I'd prefer a consistent behavior here, preferably the localized style > names (which would make it easier to adapt pandoc-generated Word files to > pre-existing custom styles in personal templates). > > Now, I don't know about the pandoc writer modules, but in VBA you can > refer to Word styles in two ways: Either you use a literal string to give > the style's (localized) name, or you use the element of class > WdBuiltinStyle. So, for example, you can say either > > ActiveDocument.Styles("Body Text") > > or > > ActiveDocument.Styles(wdStyleBodyText) > > The second option is the better one, since it works in all localized > versions of Office. Can we do something similar in pandoc's docx writer > module? > > Thanks, > Till > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b6f60b00-abc8-4427-ae06-c41b3003bb3b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.