diff options
| author | Sam Scholten | 2025-11-27 14:58:37 +1100 |
|---|---|---|
| committer | Sam Scholten | 2025-11-27 14:58:37 +1100 |
| commit | 3c109c02d404e6bca0522929314fa09bc8ebf2d5 (patch) | |
| tree | 8257e935772b9bc8812daea0ff382dcd2ce692c0 | |
| parent | 684f9796003a5eb0e3fea1ec3b1a6d273065f70e (diff) | |
| download | acarp-marp-theme-3c109c02d404e6bca0522929314fa09bc8ebf2d5.tar.gz acarp-marp-theme-3c109c02d404e6bca0522929314fa09bc8ebf2d5.zip | |
Add citation utility class and improve grid naming
- Rename layout-2col grid area 'footer' to 'buffer' for clarity
- Add .cite utility class for bottom-left citations
- Include citation examples in both demo presentations
- Document citation usage in README
| -rw-r--r-- | README | 10 | ||||
| -rw-r--r-- | acarp.css | 12 | ||||
| -rw-r--r-- | demo-beamer.md | 8 | ||||
| -rw-r--r-- | demo-standard.md | 8 |
4 files changed, 31 insertions, 7 deletions
@@ -54,6 +54,16 @@ Text content </div> ``` +### `cite` - Citation/Attribution +```markdown +--- +### Slide Title + +Your content here + +<div class="cite">[Author et al., Year]</div> +``` + ### Default - Single Column ```markdown --- @@ -310,6 +310,16 @@ section p > img:only-child { margin: 0 auto; } +/* Citation utility - bottom left corner */ +.cite { + position: absolute; + bottom: 30px; + left: var(--padding); + font-size: 0.7em; + color: #888888; + opacity: 0.9; +} + /* ============================================================================ LAYOUT: title @@ -377,7 +387,7 @@ section.layout-2col { grid-template-areas: "title title" "left right" - "footer footer"; + "buffer buffer"; gap: 2em; padding: 0; height: 100%; diff --git a/demo-beamer.md b/demo-beamer.md index 9a5fec9..db2efa7 100644 --- a/demo-beamer.md +++ b/demo-beamer.md @@ -62,16 +62,18 @@ 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)$$ +$\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}}$$ +$\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\}|}$$ +$\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. +<div class="cite">[Sparck Jones, 1972]</div> + --- ### Code Examples diff --git a/demo-standard.md b/demo-standard.md index 20d887f..1e1ea75 100644 --- a/demo-standard.md +++ b/demo-standard.md @@ -72,13 +72,15 @@ 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)$$ +$\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}}$$ +$\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\}|}$$ +$\text{idf}(t, D) = \log \frac{|D|}{|\{d \in D : t \in d\}|}$ + +<div class="cite">[Sparck Jones, 1972]</div> --- |
