Debian Codegraph @

texmf-dist/doc/latex/user-persona/README.md

raw symbols SCIP
1 <!--
2 SPDX-FileCopyrightText: 2026 Claire Tam <[email protected]>
3 SPDX-FileCopyrightText: 2026 fractuscontext <[email protected]>
4
5 SPDX-License-Identifier: LPPL-1.3c
6 -->
7
8 # user-persona
9
10 A LaTeX package for typesetting structured user persona sheets in UX and HCI documentation.
11
12
13 ## What Is a User Persona?
14
15 A **user persona** is a fictitious but research-grounded representation of a target user group,
16 synthesising observed behaviours, goals, and frustrations into a named, humanised archetype
17 [Cooper 1999]. Personas are widely used in user-centred design to keep real user needs visible
18 throughout product development — from early requirements gathering through to final evaluation
19 [Pruitt & Adlin 2006]. They serve as a shared vocabulary between designers, developers, and
20 stakeholders, anchoring design decisions in empirical user research rather than internal
21 assumptions [Nielsen 2019].
22
23 > **[Cooper 1999]** A. Cooper, *The Inmates Are Running the Asylum*. Sams Publishing, 1999.
24 >
25 > **[Pruitt & Adlin 2006]** J. Pruitt and T. Adlin, *The Persona Lifecycle: Keeping People in
26 > Mind Throughout Product Design*. Morgan Kaufmann, 2006. ISBN: 978-0-12-566251-2
27 >
28 > **[Nielsen 2019]** L. Nielsen, *Personas — User Focused Design*. Springer, 2019.
29 > doi:[10.1007/978-1-4471-7427-1](https://doi.org/10.1007/978-1-4471-7427-1)
30
31 ## About This Package
32
33 The `user-persona` package provides a structured `persona` environment and a set of commands
34 for composing professional persona sheets directly in LaTeX. It is intended for UX researchers,
35 Human-Computer Interaction (HCI) practitioners, and product designers who maintain documentation
36 within a LaTeX workflow.
37
38 Unlike the `persona_landscape` document class from Holzinger et al. (2022) — which targets
39 AI-specific personas in medical contexts and requires a directory of external PDF image assets —
40 `user-persona` is:
41
42 - A **composable package** (`\usepackage`), not a document class: integrates into any existing
43 document (thesis, report, CHI paper, design brief) without replacing its root class.
44 - **Domain-neutral**: suitable for any UX, product, or service design context.
45 - **Self-contained**: no external PDF theme assets required.
46 - Released under **LPPL-1.3c** for full CTAN distribution.
47
48 ## Quick Start
49
50 ```latex
51 \documentclass{article}
52 \usepackage{user-persona}
53
54 \begin{document}
55 \begin{persona}{Zhang Wei}
56 \personaphoto{photo.jpg}
57 \personaquote{``If the robot crashes, I reboot it and send a WeChat voice note.''}
58 \personafact{Age}{30}
59 \personafact{Location}{Mainland China}
60
61 \personasection{Goals}{PersonaGreen}{
62 \item Complete the shift with zero system failures.
63 \item Find content to combat boredom during monitoring.
64 }
65
66 \personasection[right]{Pain Points}{PersonaRed}{
67 \item Physical strain from 10 hours of screen glare.
68 \item Frustration with text-heavy Western software interfaces.
69 }
70 \end{persona}
71 \end{document}
72 ```
73
74 See `user-persona-example.tex` for a minimal example and `user-persona-detailed.tex` for a
75 full demonstration.
76
77 ## Commands
78
79 ### Environment
80
81 ```latex
82 \begin{persona}{Name} ... \end{persona}
83 ```
84
85 ### Identity
86
87 | Command | Description |
88 |---|---|
89 | `\personaphoto{path}` | Portrait image |
90 | `\personaquote{text}` | Pull-quote |
91 | `\personafact{Key}{Value}` | Identity table row |
92
93 ### Content Cards
94
95 | Command | Description |
96 |---|---|
97 | `\personasection[pos]{Title}{Color}{Items}` | Bulleted list card |
98 | `\personacard[pos]{Title}{Color}{Content}` | Free-content card |
99 | `\personacontext[pos]{Title}{Content}` | Shorthand grey context card |
100
101 `pos` accepts `left`, `right` (default), or `span`.
102
103 ### Inline Elements
104
105 | Command | Description |
106 |---|---|
107 | `\personapill{text}` | Rounded pill label |
108 | `\personabrand[img]{path}` | Image icon badge |
109 | `\personabrand[fa]{\faCommand}` | FontAwesome icon badge |
110
111 ## Predefined Colours
112
113 | Name | Suggested Use |
114 |---|---|
115 | `PersonaDark` | Header, dark cards |
116 | `PersonaGreen` | Goals, Core Needs |
117 | `PersonaBlue` | Behaviours |
118 | `PersonaRed` | Pain Points |
119 | `PersonaGrey` | Context, supplementary info |
120
121 ## Related Work
122
123 Holzinger et al. (2022) provide a LaTeX document class (`persona_landscape`) for AI-specific
124 persona sheets, released under CC BY-NC 4.0 as a GitHub repository. The `user-persona` package
125 addresses a complementary but distinct need: a general-purpose, composable, CTAN-distributed
126 package for UX and HCI documentation workflows.
127
128 > A. Holzinger, M. Kargl, B. Kipperer, P. Regitnig, M. Plass, and H. Müller,
129 > "Personas for Artificial Intelligence (AI): an Open Source Toolbox,"
130 > *IEEE Access*, vol. 10, pp. 23732–23747, 2022.
131 > doi:[10.1109/ACCESS.2022.3154776](https://doi.org/10.1109/ACCESS.2022.3154776)
132
133 ## License
134
135 Released under the
136 [LaTeX Project Public License, version 1.3c](https://www.latex-project.org/lppl/lppl-1-3c/)
137 (LPPL-1.3c).
138
139 ## Contributing
140
141 [Github:] uses a [Nix flake](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake)
142 to provide a fully reproducible development environment.
143
144 **Enter the development shell:**
145 ```sh
146 nix develop
147 ```
148
149 This provides `tectonic`, `chktex`, `ctanify`, and `reuse` on your PATH.
150
151 **Build the CTAN bundle:**
152 ```sh
153 build-ctan
154 ```
155
156 This will:
157 1. Compile all documentation PDFs via `tectonic`
158 2. Lint `user-persona.sty` via `chktex`
159 3. Produce `user-persona.tar.gz` via `ctanify --no-tds`
160
161 **Check SPDX licence headers:**
162 ```sh
163 reuse lint
164 ```