Marginalia Demo
This page demonstrates the marginalia feature in Ametrine. Marginalia are side notes that appear in the margin on wide screens 1Like this example! and as footnotes on mobile devices.
What are Marginalia?
Marginalia 2From Latin “margo” meaning margin refer to notes written in the margins of books and documents. They’ve been used for centuries by scholars 3Medieval monks were famous for their marginalia to add commentary, questions, or related thoughts without interrupting the main text flow.
Usage
To create a marginalia note, simply wrap your text in double curly braces: {{your note here}}. The syntax is simple and unobtrusive 4Unlike footnotes which use brackets and numbers.
Examples
Short Notes
This is useful for brief asides 5Short and sweet! or quick clarifications 6Just a few words that enhance understanding without breaking the reading flow.
Longer Commentary
Sometimes you need more space to explain a concept 7This is an example of a longer marginalia note. It provides additional context and explanation that would be too disruptive if placed in the main text. On desktop, this will appear in the margin. On mobile, it becomes a numbered footnote at the bottom of the page..
Multiple Notes in One Paragraph
You can have multiple marginalia notes 8First note in a single paragraph 9Second note without any issues 10Third note. Each gets its own number and position.
Combining with Other Features
Marginalia work alongside other Ametrine features:
- Highlights with marginalia 11You can combine these!
- Bold and italic text 12Formatting works normally
- wikilinks 13These link to other pages
- Code snippets 14Even in technical writing
With Lists
- First item 15Notes work in lists too
- Second item 16Each can have its own marginalia
- Third item 17Very flexible!
With Callouts
Technical Details
The marginalia feature uses:
- Remark plugin for parsing 22Processes markdown AST
- Tufte CSS-inspired styling 23Named after Edward Tufte
- Responsive design 24Desktop: margins, Mobile: footnotes
- Automatic numbering 25Sequential IDs
Reader Mode
Try clicking the reader mode toggle 26Look for the book icon in the header to see how marginalia work in distraction-free reading mode. The sidebars hide 27More focus on content but marginalia remain visible.
Best Practices
Keep them concise 28Under 2-3 sentences usually. Marginalia should enhance, not overwhelm 29If it’s too long, it belongs in the main text. They’re perfect for:
- Definitions 30New or technical terms
- Etymology 31Word origins
- Cross-references 32See also…
- Quick facts 33Dates, numbers, stats
- Personal notes 34Your thoughts
Academic Use
Marginalia are particularly useful for academic writing 35Similar to glosses in classical texts. They allow you to provide scholarly context 36Historical background, for example without cluttering your prose with footnotes 37Though both have their place.
Example: Philosophy
Descartes’ famous statement “Cogito, ergo sum” 38Latin: “I think, therefore I am” became the foundation of modern philosophy 39Known as Cartesian philosophy. His method of systematic doubt 40Also called methodological skepticism influenced generations of thinkers.
Comparison with Footnotes
| Feature | Marginalia | Footnotes |
|---|---|---|
| Placement | Margin/inline | Bottom of page |
| Numbering | Automatic | Manual/automatic |
| Use case | Quick asides | Full citations |
| Reading flow | Minimal disruption | Requires jumping |
Marginalia 41double braces are better for quick notes, while traditional footnotes1 work well for formal citations.
Markdown Support
Marginalia now support full markdown formatting 42This includes italic, bold, code, and links. This makes them even more powerful for adding rich context.
Text Formatting
You can use emphasis 43This is italic text, strong emphasis 44This is bold text, and even combine them 45Bold and italic together.
Links and References
Add external links 46See MDN Web Docs for more info or reference other resources 47Check out Wikipedia for general knowledge.
Code Snippets
Include inline code 48Use const x = 42 for constants or technical terms 49The Array.prototype.map() method is useful.
Images
You can even include images in marginalia 50. They’ll be constrained to the margin column width automatically.
Conclusion
Marginalia provide a elegant way to add commentary 51Without breaking flow to your digital garden. They’re especially effective on wide screens 52Where space is plentiful and gracefully degrade on mobile 53Becoming numbered notes.
Try creating your own marginalia notes and see how they enhance your writing!
Footnotes
-
This is a traditional markdown footnote for comparison. ↩
Notes
- 1. Like this example!
- 2. From Latin “margo” meaning margin
- 3. Medieval monks were famous for their marginalia
- 4. Unlike footnotes which use brackets and numbers
- 5. Short and sweet!
- 6. Just a few words
- 7. This is an example of a longer marginalia note. It provides additional context and explanation that would be too disruptive if placed in the main text. On desktop, this will appear in the margin. On mobile, it becomes a numbered footnote at the bottom of the page.
- 8. First note
- 9. Second note
- 10. Third note
- 11. You can combine these!
- 12. Formatting works normally
- 13. These link to other pages
- 14. Even in technical writing
- 15. Notes work in lists too
- 16. Each can have its own marginalia
- 17. Very flexible!
- 18. Related but not essential
- 19. Technical terms
- 20. References
- 21. Your own thoughts
- 22. Processes markdown AST
- 23. Named after Edward Tufte
- 24. Desktop: margins, Mobile: footnotes
- 25. Sequential IDs
- 26. Look for the book icon in the header
- 27. More focus on content
- 28. Under 2-3 sentences usually
- 29. If it’s too long, it belongs in the main text
- 30. New or technical terms
- 31. Word origins
- 32. See also…
- 33. Dates, numbers, stats
- 34. Your thoughts
- 35. Similar to glosses in classical texts
- 36. Historical background, for example
- 37. Though both have their place
- 38. Latin: “I think, therefore I am”
- 39. Known as Cartesian philosophy
- 40. Also called methodological skepticism
- 41. double braces
- 42.
This includes italic, bold,
code, and links - 43. This is italic text
- 44. This is bold text
- 45. Bold and italic together
- 46. See MDN Web Docs for more info
- 47. Check out Wikipedia for general knowledge
- 48.
Use
const x = 42for constants - 49.
The
Array.prototype.map()method is useful - 50.
- 51. Without breaking flow
- 52. Where space is plentiful
- 53. Becoming numbered notes
Links & Context13linksMDN Web Docs
+2 more links
AmetrineWikilinks and Graph
+3 more backlinks
External Links4
Backlinks5
- Ametrine
Digital garden template built with Astro
- Wikilinks and Graph
Master linking and graph visualization in Ametrine
- Quick Start
Get your Ametrine digital garden running in 5 minutes
- Configuration Guide
Complete guide to customizing Ametrine via config.ts
- Syntax Reference
Quick reference for all Ametrine syntax features