From 134aa4c390f82e71050fd3298459074b47d26399 Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Thu, 27 Nov 2025 14:58:49 +1100 Subject: Improve 2col layout spacing and visual balance - Add left/right padding to columns for better content inset - Add margins and indentation to math elements - Reduce column-gap from 2em to 1em for tighter spacing - Add vspace utilities around code blocks for breathing room - Improve comprehensive example slide layout - Final dimensions: right column gets extra 150px padding for logo/pagination --- demo-standard.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'demo-standard.md') diff --git a/demo-standard.md b/demo-standard.md index 1e1ea75..6c14a17 100644 --- a/demo-standard.md +++ b/demo-standard.md @@ -89,6 +89,8 @@ $\text{idf}(t, D) = \log \frac{|D|}{|\{d \in D : t \in d\}|}$
+
+ ```python def tfidf(term, doc, corpus): tf = term_frequency(term, doc) @@ -104,6 +106,8 @@ print(f"TF-IDF: {score:.3f}")
+
+ ```bash # Build presentation marp --theme acarp demo.md @@ -208,6 +212,45 @@ Images can have custom spacing too. --- + +### Comprehensive Slide Example + +
+ +**Key Concepts:** +- Grid-based layout +- Explicit CSS contracts +- No hidden behaviors + +**Simple latex math:** + +$\text{score} = \text{tf} \times \log\frac{|D|}{|d_t|}$ + +**And code blocks:** + +```python +def score(term, doc): + tf = freq(term, doc) + idf = log(N / df) + return tf * idf +``` + +
+ +
+ +**2col mode for figs + txt** + +![width:350px](figs/example.png) + +![width:350px](figs/example.png) + +
+ +
[Also with citation helper class!]
+ +--- + ## Thank You This theme provides a clean, academic-focused foundation for your presentations. -- cgit v1.2.3