diff --git a/src/nimiSlides.nim b/src/nimiSlides.nim
index 30991bf..c235843 100644
--- a/src/nimiSlides.nim
+++ b/src/nimiSlides.nim
@@ -541,16 +541,28 @@ template align*(text: string, body: untyped) =
body
nbRawHtml: ""
-template columns*(body: untyped) =
- nbRawHtml: """
"""
+#templates can't have default args and untyped args at the same time
+#so we use overloading to get the same effect
+
+template columns*(columnGap: float, body: untyped) =
+ #tempted to use fmt"", but strformat doesn't support template args in the format string
+ nbRawHtml: """
+ """ % $columnGap
body
nbRawHtml: "
"
-template adaptiveColumns*(body: untyped) =
- nbRawHtml: """
"""
+template columns*(body: untyped) =
+ columns(1.0,body)
+
+template adaptiveColumns*(columnGap: float, body: untyped) =
+ nbRawHtml: """
+ """ % $columnGap
body
nbRawHtml: "
"
+template adaptiveColumns*(body: untyped) =
+ adaptiveColumns(1.0,body)
+
template column*(bodyInner: untyped) =
## column should always be used inside a `columns` block
nbRawHtml: "
"