Debian Codegraph @

texmf-dist/doc/latex/user-persona/user-persona.tex

raw
1 % SPDX-FileCopyrightText: 2026 Claire Tam <[email protected]>
2 % SPDX-FileCopyrightText: 2026 fractuscontext <[email protected]>
3 %
4 % SPDX-License-Identifier: LPPL-1.3c
5
6 \documentclass[a4paper,11pt]{article}
7 \usepackage[margin=1in]{geometry}
8 \usepackage[utf8]{inputenc}
9 \usepackage[T1]{fontenc}
10 \usepackage{user-persona}
11 \usepackage{hyperref}
12 \usepackage{listings}
13 \usepackage{xcolor}
14 \usepackage{booktabs}
15
16 \hypersetup{
17 colorlinks=true,
18 linkcolor=blue,
19 urlcolor=blue,
20 citecolor=blue
21 }
22
23 \lstset{
24 language=[LaTeX]TeX,
25 basicstyle=\ttfamily\small,
26 breaklines=true,
27 frame=single,
28 backgroundcolor=\color{gray!5},
29 keywordstyle=\color{blue},
30 commentstyle=\color{gray},
31 stringstyle=\color{red}
32 }
33
34 \title{The \texttt{user-persona} Package\\
35 \large Structured User Persona Sheets for UX and HCI Documentation}
36 \author{Claire Tam\\
37 \texttt{[email protected]}}
38 \date{Version 1.0.0\\2026/04/24}
39
40 \begin{document}
41
42 \maketitle
43
44 \begin{abstract}
45 The \texttt{user-persona} package provides a structured environment and command set for typesetting professional user persona sheets in \LaTeX{}. It is designed for User Experience (UX) researchers, Human-Computer Interaction (HCI) practitioners, and product designers who maintain documentation within a \LaTeX{} workflow. The package offers a flexible two-column layout with customizable content cards, semantic color coding, and inline labeling tools, all built on the \texttt{tcolorbox} framework.
46 \end{abstract}
47
48 \tableofcontents
49
50 \section{Introduction}
51
52 \subsection{What Is a User Persona?}
53
54 A \textbf{user persona} is a fictitious but research-grounded representation of a target user group, synthesizing observed behaviors, goals, and frustrations into a named, humanized archetype \cite{cooper1999}. Personas serve as design artifacts that keep real user needs visible throughout the product development lifecycle-from initial requirements gathering through to final evaluation \cite{pruitt2006}.
55
56 Unlike demographic segments or use cases, personas are narrative constructs that provide designers and stakeholders with a shared vocabulary anchored in empirical user research \cite{nielsen2019}. They answer questions like: \textit{Who is this for? What do they care about? What frustrates them?}
57
58
59 \section{Quick Start}
60
61 \begin{lstlisting}
62 \documentclass{article}
63 \usepackage{user-persona}
64
65 \begin{document}
66
67 \begin{persona}{Alex Chen}
68 \personaphoto{alex.jpg}
69 \personaquote{``I need tools that respect my time and my cognition.''}
70
71 \personafact{Age}{28}
72 \personafact{Location}{Toronto, Canada}
73 \personafact{Role}{Senior Software Engineer}
74
75 \personasection{Goals}{PersonaGreen}{
76 \item Ship features without burning out
77 \item Maintain work-life boundaries
78 }
79
80 \personasection[right]{Pain Points}{PersonaRed}{
81 \item Meeting fatigue
82 \item Context-switching costs
83 }
84 \end{persona}
85
86 \end{document}
87 \end{lstlisting}
88
89 This produces a two-column persona sheet with a portrait, quote, identity table, and color-coded goal/pain point cards.
90
91 \section{Command Reference}
92
93 \subsection{The \texttt{persona} Environment}
94
95 The main structural element:
96
97 \begin{lstlisting}
98 \begin{persona}{Name}
99 % commands go here
100 \end{persona}
101 \end{lstlisting}
102
103 \textbf{Arguments:}
104 \begin{itemize}
105 \item \texttt{Name}: The persona's name (appears in the header)
106 \end{itemize}
107
108 \subsection{Identity Commands}
109
110 \subsubsection{\texttt{\textbackslash personaphoto}}
111
112 \begin{lstlisting}
113 \personaphoto{path/to/image.jpg}
114 \end{lstlisting}
115
116 Sets the portrait image. If the file is not found, a placeholder box is rendered.
117
118 \subsubsection{\texttt{\textbackslash personaquote}}
119
120 \begin{lstlisting}
121 \personaquote{``Quote text here.''}
122 \end{lstlisting}
123
124 Sets a highlighted pull-quote in a yellow box at the top of the right column.
125
126 \subsubsection{\texttt{\textbackslash personafact}}
127
128 \begin{lstlisting}
129 \personafact{Key}{Value}
130 \end{lstlisting}
131
132 Adds a row to the identity table below the portrait.
133
134 \textbf{Example:}
135 \begin{lstlisting}
136 \personafact{Age}{32}
137 \personafact{Location}{Berlin, Germany}
138 \personafact{Occupation}{UX Researcher}
139 \end{lstlisting}
140
141 \subsection{Content Card Commands}
142
143 \subsubsection{\texttt{\textbackslash personasection}}
144
145 \begin{lstlisting}
146 \personasection[position]{Title}{Color}{Items}
147 \end{lstlisting}
148
149 Creates a titled card with a bulleted list.
150
151 \textbf{Arguments:}
152 \begin{itemize}
153 \item \texttt{position} (optional): \texttt{left}, \texttt{right} (default), or \texttt{span}
154 \item \texttt{Title}: Section heading (automatically uppercased)
155 \item \texttt{Color}: Frame color (e.g., \texttt{PersonaGreen}, \texttt{PersonaRed})
156 \item \texttt{Items}: \texttt{\textbackslash item} list content
157 \end{itemize}
158
159 \textbf{Example:}
160 \begin{lstlisting}
161 \personasection{Motivations}{PersonaBlue}{
162 \item Solve real user problems
163 \item Work with talented teams
164 \item Continuous learning
165 }
166 \end{lstlisting}
167
168 \subsubsection{\texttt{\textbackslash personacard}}
169
170 \begin{lstlisting}
171 \personacard[position]{Title}{Color}{Content}
172 \end{lstlisting}
173
174 Creates a titled card with arbitrary content (not just lists).
175
176 \textbf{Example:}
177 \begin{lstlisting}
178 \personacard[left]{Bio}{PersonaGrey}{
179 Joined the company in 2023 after completing
180 a PhD in Human-Computer Interaction.
181 }
182 \end{lstlisting}
183
184 \subsubsection{\texttt{\textbackslash personacontext}}
185
186 \begin{lstlisting}
187 \personacontext[position]{Title}{Content}
188 \end{lstlisting}
189
190 Shorthand for \texttt{\textbackslash personacard} with \texttt{PersonaGrey} color (for contextual/supplementary information).
191
192 \subsection{Inline Elements}
193
194 \subsubsection{\texttt{\textbackslash personapill}}
195
196 \begin{lstlisting}
197 \personapill{Label Text}
198 \end{lstlisting}
199
200 Renders a rounded pill-shaped label (useful for tagging skills, tools, or attributes).
201
202 \textbf{Example:}
203 \begin{lstlisting}
204 \personacard{Tools}{PersonaDark}{
205 \personapill{Figma}
206 \personapill{Notion}
207 \personapill{Miro}
208 }
209 \end{lstlisting}
210
211 \subsubsection{\texttt{\textbackslash personabrand}}
212
213 \begin{lstlisting}
214 \personabrand[type]{content}
215 \end{lstlisting}
216
217 Renders an icon badge. Two modes:
218
219 \begin{itemize}
220 \item \texttt{[img]}: Display an image file
221 \item \texttt{[fa]}: Display a FontAwesome icon
222 \end{itemize}
223
224 \textbf{Examples:}
225 \begin{lstlisting}
226 \personabrand[img]{logos/slack.png}
227 \personabrand[fa]{\faApple}
228 \personabrand[fa]{\faLinux}
229 \end{lstlisting}
230
231 \section{Color Scheme}
232
233 The package defines five semantic colors:
234
235 \begin{center}
236 \begin{tabular}{lll}
237 \toprule
238 \textbf{Color Name} & \textbf{Hex} & \textbf{Suggested Use} \\
239 \midrule
240 \texttt{PersonaDark} & \texttt{\#354254} & Header, dark cards \\
241 \texttt{PersonaGreen} & \texttt{\#5CA662} & Goals, Core Needs \\
242 \texttt{PersonaBlue} & \texttt{\#5D86D6} & Behaviors, Patterns \\
243 \texttt{PersonaRed} & \texttt{\#E26556} & Pain Points, Frustrations \\
244 \texttt{PersonaGrey} & \texttt{\#8E94A0} & Context, Supplementary Info \\
245 \bottomrule
246 \end{tabular}
247 \end{center}
248
249 You can define custom colors using \texttt{xcolor}:
250
251 \begin{lstlisting}
252 \definecolor{MyPurple}{HTML}{7D88B3}
253 \personasection{Custom Section}{MyPurple}{...}
254 \end{lstlisting}
255
256 \section{Layout and Positioning}
257
258 The \texttt{persona} environment produces a two-column layout:
259
260 \begin{itemize}
261 \item \textbf{Left column (35\% width):} Portrait photo, identity table, and cards with \texttt{[left]} position
262 \item \textbf{Right column (61\% width):} Pull-quote and cards with \texttt{[right]} position (default)
263 \item \textbf{Span cards:} Full-width cards below both columns using \texttt{[span]} position
264 \end{itemize}
265
266 \textbf{Best practices:}
267 \begin{itemize}
268 \item Use \texttt{[left]} for contextual/biographical info
269 \item Use \texttt{[right]} for primary behavioral/motivational content
270 \item Use \texttt{[span]} for accessibility requirements or extended narratives
271 \end{itemize}
272
273 \section{Complete Example}
274
275 See \texttt{user-persona-example.tex} (minimal) and \texttt{user-persona-detailed.tex} (comprehensive) in the package distribution for full working examples.
276
277 \section{Troubleshooting}
278
279 \subsection{Missing Portrait Image}
280
281 If \texttt{\textbackslash personaphoto\{path\}} points to a nonexistent file, a gray placeholder box with an error message is rendered. Check your image path and ensure the file is in the correct location relative to your \texttt{.tex} file.
282
283 \subsection{Font Warnings}
284
285 If you see warnings about missing FontAwesome glyphs, ensure \texttt{fontawesome5} is installed:
286
287 \begin{lstlisting}
288 tlmgr install fontawesome5
289 \end{lstlisting}
290
291 \subsection{Color Not Defined}
292
293 If you reference a color that doesn't exist, \LaTeX{} will throw an error. Either use one of the predefined colors (\texttt{PersonaDark}, \texttt{PersonaGreen}, etc.) or define your own with \texttt{\textbackslash definecolor}.
294
295
296
297 \section{Acknowledgments}
298
299 Thanks to the \texttt{tcolorbox} maintainers for providing the layout framework, and to the broader \LaTeX{} community for feedback during development.
300
301 \begin{thebibliography}{9}
302
303 \bibitem{cooper1999}
304 A. Cooper, \textit{The Inmates Are Running the Asylum: Why High-Tech Products Drive Us Crazy and How to Restore the Sanity}. Sams Publishing, 1999.
305
306 \bibitem{pruitt2006}
307 J. Pruitt and T. Adlin, \textit{The Persona Lifecycle: Keeping People in Mind Throughout Product Design}. Morgan Kaufmann, 2006. ISBN: 978-0-12-566251-2.
308
309 \bibitem{nielsen2019}
310 L. Nielsen, \textit{Personas - User Focused Design}. Springer, 2019. \href{https://doi.org/10.1007/978-1-4471-7427-1}{doi:10.1007/978-1-4471-7427-1}
311
312 \bibitem{holzinger2022}
313 A. Holzinger, M. Kargl, B. Kipperer, P. Regitnig, M. Plass, and H. Müller, ``Personas for Artificial Intelligence (AI): an Open Source Toolbox,'' \textit{IEEE Access}, vol. 10, pp. 23732--23747, 2022. \href{https://doi.org/10.1109/ACCESS.2022.3154776}{doi:10.1109/ACCESS.2022.3154776}
314
315 \end{thebibliography}
316
317 \end{document}