| 1 | # lucide-admonitions |
| 2 | |
| 3 | A LaTeX package for rendering visually consistent admonition boxes with Lucide |
| 4 | icons and multilingual support. |
| 5 | |
| 6 | ## Features |
| 7 | |
| 8 | - Customizable icons, colors, and titles |
| 9 | - Automatic translation of titles into multiple languages |
| 10 | - Compatible with standard LaTeX and KOMA-Script classes |
| 11 | |
| 12 | ## Installation |
| 13 | |
| 14 | Install using your TeX distribution: |
| 15 | |
| 16 | - TeX Live: `tlmgr install lucide-admonitions` |
| 17 | - MiKTeX: use the package manager |
| 18 | |
| 19 | Or download the files and place them either: |
| 20 | |
| 21 | - in your document directory, or |
| 22 | - in your local or user `texmf` tree |
| 23 | |
| 24 | Then update the filename database if needed (`texhash` or `mktexlsr`). |
| 25 | |
| 26 | ## Usage |
| 27 | |
| 28 | Load the package in your preamble: |
| 29 | |
| 30 | ```latex |
| 31 | \usepackage[<options>]{lucide-admonitions} |
| 32 | ``` |
| 33 | |
| 34 | Use any of the predefined environments: |
| 35 | |
| 36 | ```latex |
| 37 | \begin{AdmonitionNote}[Custom title] |
| 38 | ... |
| 39 | \end{AdmonitionNote} |
| 40 | ``` |
| 41 | |
| 42 | ## Options |
| 43 | |
| 44 | - `titles` -- display the box type as a title |
| 45 | - `breakable` -- allow boxes to break across pages |
| 46 | |
| 47 | Example: |
| 48 | |
| 49 | ```latex |
| 50 | \usepackage[titles,breakable]{lucide-admonitions} |
| 51 | ``` |
| 52 | |
| 53 | ## Predefined types |
| 54 | |
| 55 | - Note |
| 56 | - Attention |
| 57 | - Caution |
| 58 | - Warning |
| 59 | - Danger |
| 60 | - Error |
| 61 | - Hint |
| 62 | - Important |
| 63 | - Tip |
| 64 | - Abstract |
| 65 | - Info |
| 66 | - Success |
| 67 | - Question |
| 68 | - Failure |
| 69 | - Bug |
| 70 | - Example |
| 71 | - Quote |
| 72 | |
| 73 | ## Customization |
| 74 | |
| 75 | See the package documentation for details on modifying existing admonition |
| 76 | types or add your own ones. |
| 77 | |
| 78 | ## Acknowledgements |
| 79 | |
| 80 | - Inspired by Zensical: https://zensical.org/docs/authoring/admonitions/ |
| 81 | - Lucide icons: https://lucide.dev |
| 82 | - `lucide-icons` LaTeX package by Cédric Pierquet |
| 83 | - `tcolorbox` by Thomas F. Sturm |
| 84 | - `translations` by Clemens Niederberger |
| 85 | - `xcolor` by Uwe Kern |