aboutsummaryrefslogtreecommitdiff
path: root/demo-standard.md
diff options
context:
space:
mode:
Diffstat (limited to 'demo-standard.md')
-rw-r--r--demo-standard.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/demo-standard.md b/demo-standard.md
index 1cf44df..72f7d9b 100644
--- a/demo-standard.md
+++ b/demo-standard.md
@@ -192,12 +192,16 @@ Large vertical space (3em) - for major separations
## Spacing Examples
+<div style="max-width: 300px;">
+
```python
def calculate():
result = 42
return result
```
+</div>
+
<div class="vspace-medium"></div>
The function returns a simple value.
@@ -228,12 +232,16 @@ $\quad \text{score} = \text{tf} \times \log\frac{|D|}{|d_t|}$
**And code blocks:**
+
+<div style="max-width: 300px;">
+
```python
def score(term, doc):
tf = freq(term, doc)
idf = log(N / df)
return tf * idf
```
+</div>
</div>