Debian Codegraph @

texmf-dist/doc/latex/styleitems/README.md

raw
1 # styleitems — TikZ-based decorative list labels with independent auto-numbering
2
3 **Version:** 1.0
4 **Date:** 2025-08-13
5 **Author:** Faris Hameed
6 **Email:** [email protected]
7 **License:** LaTeX Project Public License (LPPL) v1.3c or later
8
9
10 ## Description
11
12 `styleitems` provides a fully self-contained, independent auto-numbering system
13 with TikZ-drawn decorative list labels. Unlike packages such as `enumitem`, each list manages its own counter
14 through an internal stack mechanism, ensuring that nested lists never
15 interfere with each other.
16
17 Available label shapes:
18
19 - **Basic shapes:** Circle, Square, Rectangle, Diamond, Triangle, Pentagon,
20 Hexagon, Octagon, Star (5-point), Star (12-point)
21 - **Callouts:** Ellipse Callout (left/right), Cloud Callout (left/right)
22 - **Arrows:** Right, Left, Up, Down
23
24 Every shape comes in two flavours:
25 - **Vertical** (`*List` environments, using `\MSAutoLine{}`)
26 - **Inline** (`*Inline` environments, using `\MSAutoInline{}`)
27
28 ---
29
30 ## Requirements
31
32 - `tikz` (with libraries: `shapes.geometric`, `shapes.misc`,
33 `shapes.callouts`, `shapes.arrows`)
34 - `xcolor` (options: `svgnames`, `dvipsnames`, `x11names`)
35 - `xparse`
36 - `etoolbox`
37 - `bidicontour` (option: `outline`)
38 - `graphicx`
39
40 ---
41
42 ### Manual installation
43
44 Copy `styleitems.sty` into a directory searched by TeX, e.g.:
45
46 TEXMFHOME/tex/latex/styleitems/
47
48 Then update the file database if needed (e.g. `texhash`).
49
50 ---
51
52 ## Quick start
53
54 ```latex
55 \usepackage{styleitems}
56
57 % Vertical list
58 \begin{AutoCircleList}[blue][arabic]
59 \MSAutoLine{First item}
60 \MSAutoLine{Second item}
61 \end{AutoCircleList}
62
63 % Nested lists — counters are fully independent
64 \begin{AutoCircleList}[blue][arabic]
65 \MSAutoLine{Outer item one}
66 \begin{AutoStarList}[Gold][aralph]
67 \MSAutoLine{Inner item one}
68 \MSAutoLine{Inner item two}
69 \end{AutoStarList}
70 \MSAutoLine{Outer item two} % correctly shows 2, not 3
71 \end{AutoCircleList}
72
73 % Inline list
74 \begin{AutoHexInline}[ForestGreen][roman]
75 \MSAutoInline{Alpha}
76 \MSAutoInline{Beta}
77 \MSAutoInline{Gamma}
78 \end{AutoHexInline}
79 ```
80
81 ### Environment signature
82
83 Most environments accept four optional arguments:
84
85 ```
86 \begin{Auto<Shape>List}[color][style][rotate][scale]
87 ```
88
89 Callout environments add a direction argument:
90
91 ```
92 \begin{AutoEllipseCalloutList}[color][style][direction][rotate][scale]
93 ```
94
95 ### Numbering styles
96
97 | Key | Output example |
98 |--------------|-------------------------------|
99 | `arabic` | 1, 2, 3, … |
100 | `indic` | ١, ٢, ٣, … (Indic) |
101 | `alph` | a, b, c, … |
102 | `Alph` | A, B, C, … |
103 | `roman` | i, ii, iii, … |
104 | `Roman` | I, II, III, … |
105 | `aralph` | أ, ب, ت, … (Hijai order) |
106 | `aralphabjad`| أ, ب, ج, … (Abjad order) |
107
108 ---
109
110 ## License
111
112 This work may be distributed and/or modified under the conditions of the
113 LaTeX Project Public License, either version 1.3c of this license or (at your
114 option) any later version. The latest version of this license is in:
115
116 https://www.latex-project.org/lppl.txt
117
118 This work has the LPPL maintenance status "maintained".
119 The Current Maintainer of this work is Faris Hameed.
120
121 ## Repository
122
123 If you find a bug or want to contribute, please contact the author via email.