diff --git a/_extensions/docx-landscape/_extension.yml b/_extensions/docx-landscape/_extension.yml
new file mode 100644
index 0000000..bcff116
--- /dev/null
+++ b/_extensions/docx-landscape/_extension.yml
@@ -0,0 +1,6 @@
+title: docx-landscape
+author: Marty Oehme
+version: 0.1.0
+contributes:
+ shortcodes:
+ - landscape.lua
diff --git a/_extensions/docx-landscape/landscape.lua b/_extensions/docx-landscape/landscape.lua
new file mode 100644
index 0000000..7bd2904
--- /dev/null
+++ b/_extensions/docx-landscape/landscape.lua
@@ -0,0 +1,20 @@
+return {
+ ["landscape"] = function(args, kwargs, meta)
+ if quarto.doc.isFormat("docx") then
+ return pandoc.RawBlock(
+ "openxml",
+ ' '
+ )
+ end
+ return pandoc.Para({ pandoc.Str("\f") })
+ end,
+ ["portrait"] = function(args, kwargs, meta)
+ if quarto.doc.isFormat("docx") then
+ return pandoc.RawBlock(
+ "openxml",
+ ' '
+ )
+ end
+ return pandoc.Para({ pandoc.Str("\f") })
+ end,
+}