aboutsummaryrefslogtreecommitdiff
path: root/test/pptx
diff options
context:
space:
mode:
authorJeroen de Haas <jeroendehaas@users.noreply.github.com>2019-06-14 17:42:06 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2019-06-14 08:42:06 -0700
commite67f4c58f2cbe0a0fc5f73d2e726e6c0a403bbea (patch)
treedbd0a28882cf524ee32c834053f4df820675f749 /test/pptx
parent2cd1c7b30f200d18f1f1bdef1671369e1ad303ed (diff)
downloadpandoc-e67f4c58f2cbe0a0fc5f73d2e726e6c0a403bbea.tar.gz
Powerpoint code formatting is now context dependent (#5573)
This commit alters the way in which the Powerpoint writer treats inline code and code blocks. - Inline code is now formatted at the same size as the surrounding text. - Code blocks are now given a margin and font size according to their level. - Furthermore this commit allows changing the font with which code is formatted via the `monofont` option. Tested in - PowerPoint 365 for Windows - 1808 (Build 10730.20344 Click-to-Run) - PowerPoint 365 for Mac - 16.26 (19060901)
Diffstat (limited to 'test/pptx')
-rw-r--r--test/pptx/code-custom.pptxbin0 -> 28230 bytes
-rw-r--r--test/pptx/code-custom_templated.pptxbin0 -> 395524 bytes
-rw-r--r--test/pptx/code.native21
-rw-r--r--test/pptx/code.pptxbin0 -> 28229 bytes
-rw-r--r--test/pptx/code_templated.pptxbin0 -> 395522 bytes
5 files changed, 21 insertions, 0 deletions
diff --git a/test/pptx/code-custom.pptx b/test/pptx/code-custom.pptx
new file mode 100644
index 000000000..aa9b7692a
--- /dev/null
+++ b/test/pptx/code-custom.pptx
Binary files differ
diff --git a/test/pptx/code-custom_templated.pptx b/test/pptx/code-custom_templated.pptx
new file mode 100644
index 000000000..9aaef4cb5
--- /dev/null
+++ b/test/pptx/code-custom_templated.pptx
Binary files differ
diff --git a/test/pptx/code.native b/test/pptx/code.native
new file mode 100644
index 000000000..be7f512f7
--- /dev/null
+++ b/test/pptx/code.native
@@ -0,0 +1,21 @@
+[Header 1 ("header-with-inline-code",[],[]) [Str "Header",Space,Str "with",Space,Code ("",[],[]) "inline code"]
+,CodeBlock ("",[],[]) "Code at level 0"
+,BulletList
+ [[Para [Str "Bullet",Space,Str "item",Space,Str "with",Space,Code ("",[],[]) "inline code"]
+ ,CodeBlock ("",[],[]) "Code block at level 1"
+ ,BulletList
+ [[Para [Str "with",Space,Code ("",[],[]) "nested"]
+ ,CodeBlock ("",[],[]) "lvl2\nlvl2\nlvl2"
+ ,Header 2 ("second-heading-level-with-code",[],[]) [Str "Second",Space,Str "heading",Space,Str "level",Space,Str "with",Space,Code ("",[],[]) "code"]]]]]
+,Header 1 ("syntax-highlighting",[],[]) [Str "Syntax",Space,Str "highlighting"]
+,CodeBlock ("",["haskell"],[]) "id :: a -> a\nid x = x"
+,BulletList
+ [[Para [Str "Nested"]
+ ,CodeBlock ("",["haskell"],[]) "g :: Int -> Int\ng x = x * 3"]]
+,Header 1 ("two-column-slide",[],[]) [Str "Two",Space,Str "column",Space,Str "slide"]
+,Div ("",["columns"],[])
+ [Div ("",["column"],[("width","50%")])
+ [BulletList
+ [[Plain [Str "A",Space,Str "total",Space,Str "alternative",Space,Str "for",Space,Code ("",[],[]) "head"]]]]
+ ,Div ("",["column"],[("width","50%")])
+ [CodeBlock ("",[],[]) "safeHead :: [a] -> Maybe a\nsafeHead [] = Nothing\nsafeHead (x:_) = Just x"]]]
diff --git a/test/pptx/code.pptx b/test/pptx/code.pptx
new file mode 100644
index 000000000..1737ec757
--- /dev/null
+++ b/test/pptx/code.pptx
Binary files differ
diff --git a/test/pptx/code_templated.pptx b/test/pptx/code_templated.pptx
new file mode 100644
index 000000000..87fb560ef
--- /dev/null
+++ b/test/pptx/code_templated.pptx
Binary files differ