From 86752d1f23a732368942840a55befa6cbb2cb2ee Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Thu, 27 Nov 2025 16:12:56 +1100 Subject: Clean up 2-column spacing: remove column gap, fix padding symmetry, remove redundant rules --- demo-beamer.md | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) (limited to 'demo-beamer.md') diff --git a/demo-beamer.md b/demo-beamer.md index db2efa7..0a8205e 100644 --- a/demo-beamer.md +++ b/demo-beamer.md @@ -62,13 +62,13 @@ A minimal, grid-based setup for Marp presentations: The TF-IDF model for term weighting: -$\text{tf-idf}(t, d, D) = \text{tf}(t, d) \times \text{idf}(t, D)$ +$\quad \text{tf-idf}(t, d, D) = \text{tf}(t, d) \times \text{idf}(t, D)$ Where term frequency is: -$\text{tf}(t, d) = \frac{f_{t,d}}{\sum_{t'\in d} f_{t',d}}$ +$\quad \text{tf}(t, d) = \frac{f_{t,d}}{\sum_{t'\in d} f_{t',d}}$ And inverse document frequency: -$\text{idf}(t, D) = \log \frac{|D|}{|\{d \in D : t \in d\}|}$ +$\quad \text{idf}(t, D) = \log \frac{|D|}{|\{d \in D : t \in d\}|}$ The 4:3 format provides better vertical space for multi-line equations. @@ -76,9 +76,12 @@ The 4:3 format provides better vertical space for multi-line equations. --- + ### Code Examples -Python implementation: +
+ +
```python def tfidf(term, doc, corpus): @@ -91,9 +94,24 @@ score = tfidf("grid", doc1, docs) print(f"TF-IDF: {score:.3f}") ``` -![width:400px](figs/example.png) +
+ +
+ +
-*Top-right logo: university/conference branding* +```bash +# Build presentation +marp --theme acarp-beamer demo.md + +# Watch for changes +marp --theme acarp-beamer --watch demo.md + +# Export to PDF +marp --theme acarp-beamer --pdf demo.md +``` + +
--- @@ -169,12 +187,16 @@ Large vertical space (3em) - for major separations ## Spacing Examples +
+ ```python def calculate(): result = 42 return result ``` +
+
The function returns a simple value. -- cgit v1.2.3