Skip to content

Can I generate and customize custom-reference.docx without the use of a GUI program? #9852

Answered by jstnfst
jstnfst asked this question in Q&A
Discussion options

You must be logged in to vote

For the nerds:

mkdir 00-template && cd 00-template
pandoc -o custom-reference.docx --print-default-data-file reference.docx
unzip custom-reference.docx
# hack hack hack see diff below
find . -type f ! -name "custom-reference.docx" | zip -@ "custom-reference.docx"
diff --git a/00-template/word/styles.xml b/00-template/word/styles.xml
index 76da74569..583596266 100644
--- a/00-template/word/styles.xml
+++ b/00-template/word/styles.xml
@@ -58,7 +58,7 @@
       <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
       <w:b />
       <w:bCs />
-      <w:color w:val="000000" w:themeColor="accent1" w:themeShade="B5" />
+      <…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@bpj
Comment options

@jstnfst
Comment options

@bpj
Comment options

Comment options

You must be logged in to vote
1 reply
@jstnfst
Comment options

Answer selected by jstnfst
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants