| 1 |
# smartnotes |
| 2 |
|
| 3 |
`smartnotes` is a LaTeX package for dynamic margin notes. |
| 4 |
It places note boxes on the left or right margin automatically based on the |
| 5 |
horizontal position of the note mark, with optional forced placement, |
| 6 |
fancy connector lines, simple overlap avoidance, and configurable box shape. |
| 7 |
|
| 8 |
|
| 9 |
## Package metadata to review before CTAN upload |
| 10 |
|
| 11 |
- Package name: `smartnotes` |
| 12 |
- Version: 0.1 `2026/04/05` |
| 13 |
- Author/Maintainer: Abhishek Ranna |
| 14 |
- Contact email: [email protected] |
| 15 |
- License: The LaTeX Project Public License 1.3c |
| 16 |
|
| 17 |
## Files included |
| 18 |
|
| 19 |
- `smartnotes.sty` - package file |
| 20 |
- `smartnotes-doc.tex` - package documentation source |
| 21 |
- `smartnotes-doc.pdf` - package documentation PDF |
| 22 |
- `smartnotes-example.tex` - minimal example |
| 23 |
- `smartnotes-example.pdf` - mimimal example usage PDF |
| 24 |
- `README.md` - top-level CTAN readme |
| 25 |
|
| 26 |
## Features |
| 27 |
|
| 28 |
- `\note[<options>]{...}` command |
| 29 |
- `\notesetup{...}` for global defaults |
| 30 |
- automatic left/right margin choice |
| 31 |
- forced placement with `left`, `right`, `auto` |
| 32 |
- `fancyline` and `nofancyline` |
| 33 |
- note shapes: `rectangle`, `rounded` |
| 34 |
- configurable `cornerradius` |
| 35 |
- simple overlap avoidance with `stacksep` |
| 36 |
- package option `disable` |
| 37 |
|
| 38 |
## Basic usage |
| 39 |
|
| 40 |
```tex |
| 41 |
\usepackage{smartnotes} |
| 42 |
|
| 43 |
\notesetup{ |
| 44 |
width=2.2cm, |
| 45 |
sep=8pt, |
| 46 |
pagepad=6pt, |
| 47 |
stacksep=4pt, |
| 48 |
backgroundcolor=yellow!30, |
| 49 |
bordercolor=black, |
| 50 |
textcolor=black, |
| 51 |
linecolor=black, |
| 52 |
rounded, |
| 53 |
cornerradius=4pt, |
| 54 |
font={\linespread{0.7}\selectfont\footnotesize\itshape} |
| 55 |
} |
| 56 |
|
| 57 |
Some text \note{A margin note.} which needed a note.... |
| 58 |
\vspace{2cm} |
| 59 |
Some more \note[right,rectangle]{Forced right note.} right here... |
| 60 |
``` |
| 61 |
|
| 62 |
## Installation |
| 63 |
|
| 64 |
Place `smartnotes.sty` somewhere TeX can find it, or keep it next to your main `.tex` document. |