-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
626 lines (501 loc) · 24.3 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
%for a more compact document, add the option openany to avoid
%starting all chapters on odd numbered pages
\documentclass[12pt,openright,twoside,final]{cmuthesis}
% This is a template for a CMU thesis. It is 18 pages without any content :-)
% The source for this is pulled from a variety of sources and people.
% Here's a partial list of people who may or may have not contributed:
%
% bnoble = Brian Noble
% caruana = Rich Caruana
% colohan = Chris Colohan
% comar = Cyrus Omar
% jab = Justin Boyan
% josullvn = Joseph O'Sullivan
% jrs = Jonathan Shewchuk
% kosak = Corey Kosak
% mjz = Matt Zekauskas (mattz@cs)
% pdinda = Peter Dinda
% pfr = Patrick Riley
% dkoes = David Koes (me)
% My main contribution is putting everything into a single class files and small
% template since I prefer this to some complicated sprawling directory tree with
% makefiles.
% link formatting
\usepackage{hyperref}
\hypersetup{
colorlinks,
linkcolor={red!50!black},
citecolor={blue!50!black},
urlcolor={blue!80!black}
}
% some useful packages
\usepackage{times}
\usepackage{fullpage}
\usepackage{graphicx}
\usepackage{amsmath}
% \usepackage[numbers,sort]{natbib}
% \usepackage{subfigure}
\usepackage{subcaption}
\hypersetup{
pageanchor=true,plainpages=false,bookmarksnumbered,
pdfborder=0 0 0, %removes outlines around hyper links in online display
}
% Approximately 1" margins, more space on binding side
\usepackage[letterpaper,twoside,vscale=.8,hscale=.75,nomarginpar]{geometry}
%for general printing (not binding)
% \usepackage[letterpaper,twoside,vscale=.8,hscale=.75,nomarginpar,hmarginratio=1:1]{geometry}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Nimo's macros
% latin: https://tex.stackexchange.com/questions/15009/macros-for-common-abbreviations
\usepackage{xspace}
\newcommand*{\eg}{e.g.,\@\xspace}
\newcommand*{\ie}{i.e.,\@\xspace}
\newcommand*{\apriori}{a priori\@\xspace}
\makeatletter
\newcommand*{\etc}{%
\@ifnextchar{.}%
{etc}%
{etc.\@\xspace}%
}
% inline figures
\usepackage{wrapfig}
% remove blank pages
% \let\cleardoublepage\clearpage
% systems
\newcommand*{\Penrose}{\textsc{Penrose}\xspace}
\newcommand*{\Substance}{\textsc{Substance}\xspace}
\newcommand*{\SubstanceColored}{\colorbox[HTML]{E7F3E7}{\Substance}\xspace}
\newcommand*{\Domain}{\textsc{Domain}\xspace}
\newcommand*{\Style}{\textsc{Style}\xspace}
\newcommand*{\Edgeworth}{\textsc{Edgeworth}\xspace}
% thesis statement and research questions
\newcommand{\boxtext}[1]{\vspace{1em}\begin{center} \fbox{ \parbox{0.95\linewidth}{ #1 }} \end{center}\vspace{1em} }
% fancy ref
\usepackage[capitalise, noabbrev]{cleveref}
% figure styling
\usepackage[font=footnotesize,labelfont=bf]{caption}
% quotes
\newcommand\quotei[1]{``\textit{#1}''}
% links
\renewcommand{\UrlFont}{\ttfamily\small}
% code
\usepackage{listings}
\usepackage{xcolor}
\usepackage{realboxes}
\definecolor{sub}{HTML}{E7F3E7}
\definecolor{sty}{HTML}{DDDEED}
\definecolor{dsl}{HTML}{DBDBDB}
\newcommand\sub[1]{\Colorbox{sub}{\lstinline{#1}}}
\newcommand\sty[1]{\Colorbox{sty}{\lstinline{#1}}}
\newcommand\dsl[1]{\Colorbox{dsl}{\lstinline{#1}}}
\usepackage{listings}
\newcommand{\lstbg}[3][0pt]{{\fboxsep#1\colorbox{#2}{\strut #3}}}
\lstdefinelanguage{JavaScript}{
morekeywords=[1]{break, continue, delete, else, for, function, if, in, new, return, this, typeof, var, void, while, with, export, default class, class, extends, constructor, Circle},
% Literals, primitive types, and reference types.
morekeywords=[2]{false, null, true, boolean, number, undefined,
Array, Boolean, Date, Math, Number, String, Object},
% Built-ins.
morekeywords=[3]{eval, parseInt, parseFloat, escape, unescape, matmul},
% otherkeywords={=>, =},
sensitive,
morecomment=[s]{/*}{*/},
morecomment=[l]//,
morecomment=[s]{/**}{*/}, % JavaDoc style comments
morecomment=[f][\lstbg{red!20}]-,
morecomment=[f][\lstbg{green!20}]+,
morestring=[b]',
morestring=[b]"
}[keywords, comments, strings]
\lstdefinestyle{CodeStyle}{
language=JavaScript,
tabsize=2,
showspaces=false,
showstringspaces=false
breaklines=true,
aboveskip = 0pt,
belowskip = 0pt,
}
\lstset{
basicstyle=\linespread{0.8}\footnotesize\ttfamily,
style=CodeStyle,
columns=fullflexible
}
% algorithm
\usepackage{algorithm}
\usepackage{algpseudocode}
% margin mark
\usepackage[color, leftbars]{changebar}
\setlength\changebarsep{10pt}
\newenvironment{proposed}
{
\cbcolor[HTML]{FBB040}
\setlength\changebarwidth{6pt}
\cbstart
}
{
\cbend
}
% timeline
\usepackage{pgfgantt}
% edgeworth design goals
\usepackage{enumitem}
% edgeworth ui labels
% figure annotation
\usetikzlibrary{calc}
\definecolor{labelColor}{RGB}{64,81,182}
\newcommand{\uilabel}[1]{\protect\tikz [font=\sffamily, baseline={($ (current bounding box.center) - (0,.3em) $)}] \fill[fill=labelColor] (0,0em) circle (0.6em) node[text=white] {#1};}
% algorithm position
\usepackage{float}
% table
\usepackage{array} % For m{} column specifier
\usepackage{colortbl}
\usepackage{multirow}
% full page figures
\usepackage{rotating}
% Define a command to create a progress bar
\definecolor{freqColor5}{HTML}{007000}
\definecolor{freqColor4}{HTML}{238823}
\definecolor{freqColor3}{HTML}{FFBF00}
\definecolor{freqColor2}{HTML}{FF6600}
\definecolor{freqColor1}{HTML}{D2222D}
\usetikzlibrary{calc}
\newcommand{\progressbar}[1]{%
\begin{tikzpicture}[xscale=0.2, yscale=0.2, baseline=(current bounding box.south)]
\draw[fill=white] (0, 0) rectangle (5, 1); % Background rectangle
\ifdim #1pt<2pt
\draw[fill=red] (0, 0) rectangle (#1, 1); % Red for <2
\else\ifdim #1pt<3pt
\draw[fill=freqColor2] (0, 0) rectangle (#1, 1); % Yellow for <3
\else\ifdim #1pt<4pt
\draw[fill=freqColor3] (0, 0) rectangle (#1, 1); % Yellow-green for <4
\else
\draw[fill=freqColor5] (0, 0) rectangle (#1, 1); % Green for >=4
\fi\fi\fi
\end{tikzpicture}%
}
% RQs
\newcounter{rqcounter} % Define a new counter for RQs
\renewcommand{\therqcounter}{RQ\arabic{rqcounter}} % Format the counter as RQ1, RQ2, etc.
\newcounter{rqsupcounter} % Define a new sub-counter for sub-RQs
\renewcommand{\therqsupcounter}{RQ3.\arabic{rqsupcounter}} % Format the sub-counter as RQ3.1, RQ3.2, etc.
% \renewcommand{\therqsupcounter}{RQ\arabic{rqsupcounter}} % Format the sub-counter as RQ1, 2, 3 etc
% Interviews chapter imports
\usepackage{subcaption}
\newcommand\itquote[1]{\hangindent=1em\hangafter=0
``\textit{#1}''}
\newcommand{\latin}[1]{{\it #1}}
% Penrose chapter imports
\usepackage{mdframed}
\usepackage{overpic}
\newcommand{\figloc}[1]{\textit{#1}}
\usepackage{listings, multicol} % code listings w/ formatting
\lstset{keepspaces=true}
\lstdefinelanguage{Sub-LA}{
morekeywords={Vector, VectorSpace, Scalar, LinearMap, In, Orthogonal, EqualLength, Unit, Autolabel, Label, All, Default},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sub-tensor}{
morekeywords={Dim, Vector, Matrix, Scalar, Autolabel, Label, All, Default},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sub-nn}{
morekeywords={Dim, Vector, Matrix, Scalar, Function, vec, softmax, L, Autolabel, Label, All, Default},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sub-mesh}{
morekeywords={SimplicialComplex, Edge, Vertex, InVS, SimplicialSet, IsSubsetOf, Star, Subcomplex, SetMinus, Union, Closure, Link, Result, AutoLabel, Label, All, Default},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sub-geom}{
morekeywords={Table, Chair, BeerMug, Tavern, Plate, Point, Midpoint, Bisector, Triangle, Right, Obtuse, Acute, Angle, Line, Segment, Square, Rectangle, On, Parallel, PerpendicularBisector, Ray, Disjoint, Altitude, Endpoint, On, Perpendicular, InteriorAngle},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sub-graph}{
morekeywords={Node, Edge, for, in, where},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sty-LA}{
morekeywords={Vector, VectorSpace, Scalar, LinearMap, Arrow, Rectangle, Arc, Dot, AnchorPoint, CurlyBrace, Parallelogram, Line, global, forall, where, above, below, with, ensure, encourage, override, layer, ALL, CANVAS, delete},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sty-Staged}{
morekeywords={in, except},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sty-Geom}{
morekeywords={Point, Vector, VectorSpace, Scalar, LinearMap, Arrow, Rectangle, Arc, Dot, AnchorPoint, CurlyBrace, Parallelogram, Line, global, forall, where, above, below, with, ensure, encourage, override, layer, ALL, CANVAS, delete, const},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Elem}{
morekeywords={type, function, notation, predicate},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sub-RA}{
morekeywords={Reals, Real, Interval, Function, IsDifferentiable, IsDiscontinuous, Point, Autolabel, Pt, Label, NoLabel, All, Default},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sub-SET}{
morekeywords={Autolabel, Pt, Label, NoLabel, All, Default, Set, Equal, IsSubset, NotIntersecting},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sub-SET-new}{
morekeywords={AutoLabel, Pt, Label, NoLabel, All, Default, Set, Equal, Subset, NotIntersecting},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sty-RA}{
morekeywords={Reals, Real, Interval, Function, Differentiable, Diff, Discontinuous, Point, Pt, LeftBounded, LeftClopen, Open, Bounded, Arrow, Rectangle, Arc, Dot, AnchorPoint, CurlyBrace, Parallelogram, Line, Tick, DoubleArrow, Bracket, Region, Curve, Paren, global, forall, where, above, below, with, ensure, encourage, override, layer, ALL, CANVAS, delete, Auto, optimized},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sub-RT}{
morekeywords={Scene, In, String, HasForm, PathSample, Sample, SceneSatisfies, AutoLabel, Diagram, LightSource, Camera, PathType, Path, VertexType, BounceType, DiffuseBounce, SpecularBounce, GlossyBounce, sample, Autolabel, Pt, Label, NoLabel, All, Default},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sty-RT}{
morekeywords={Diagram, LightSource, Camera, PathType, Path, VertexType, BounceType, DiffuseBounce, SpecularBounce, GlossyBounce, InList, Sublist, sample, PathVertex, Path, InVP, Hits, PathType, DiffuseObject, PathEdge, SpecularObject, Arrow, Rectangle, Arc, Dot, AnchorPoint, CurlyBrace, Parallelogram, Line, Tick, DoubleArrow, Bracket, Region, Curve, Paren, global, forall, where, above, below, with, ensure, encourage, override, layer, ALL, CANVAS, delete, Auto, optimized, plugin,scalar,vec2,vec3,shape,Polygon,Scene},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sub-ST}{
morekeywords={Set, Point, Map, Intersection, Union, Subtraction, CartesianProduct, Difference, Subset, AddPoint, Apply, From, Empty, Nonempty, Intersect, Nonintersecting, IsSubset, NotSubset, PointIn, PointNotIn, Injection, Not, Surjection, Bijection, Autolabel, Label, All, Default},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sty-ST}{
morekeywords={Set, Point, Map, Intersection, Union, Subtraction, CartesianProduct, Difference, Subset, AddPoint, Apply, From, Empty, Nonempty, Intersect, Nonintersecting, IsSubset, NotSubset, PointIn, PointNotIn, Injection, Surjection, Bijection, global, forall, where, above, below, with, ensure, encourage, override, layer, ALL, CANVAS, delete},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sty-Sets-new}{
morekeywords={Set, Point, Map, Intersection, Union, Subtraction, CartesianProduct, Difference, Subset, AddPoint, Apply, From, Empty, Nonempty, Intersect, Nonintersecting, IsSubset, NotSubset, PointIn, PointNotIn, Injection, Surjection, Bijection, global, forall, where, above, below, with, ensure, encourage, override, layer, ALL, canvas, delete, forall, Circle, Equation},
morecomment=[l][\color{gray}]{--}
}
\lstdefinelanguage{Sty-Chem-new}{
morekeywords={Set, Point, Hydrogen, Oxygen, SingleBond Map, Intersection, Union, Subtraction, CartesianProduct, Difference, Subset, AddPoint, Apply, From, Empty, Nonempty, Intersect, Nonintersecting, IsSubset, NotSubset, PointIn, PointNotIn, Injection, Surjection, Bijection, global, forall, where, above, below, with, ensure, encourage, override, layer, ALL, canvas, delete, forall, Circle, Equation},
morecomment=[l][\color{gray}]{--}
}
\lstset{
basicstyle=\small\ttfamily,
columns=flexible,
breaklines=true,
mathescape=true,
numbers=left
}
% mdframed style for Domain code
\definecolor{DslBGColor}{rgb}{0.95,0.95,0.95}
\definecolor{DslLineColor}{rgb}{0.85,0.85,0.85}
\mdfdefinestyle{DSLCode}{
backgroundcolor=DslBGColor,
linecolor=DslLineColor,
linewidth=1pt,
innertopmargin=8pt,
innerbottommargin=8pt,
innerleftmargin=8pt,
innerrightmargin=8pt
}
% mdframed style for Substance code
\definecolor{SubBGColor}{rgb}{0.92,0.97,0.92}
\definecolor{SubLineColor}{rgb}{0.87,0.92,0.87}
\mdfdefinestyle{SUBCode}{
backgroundcolor=SubBGColor,
linecolor=SubLineColor,
linewidth=1pt,
innertopmargin=8pt,
innerbottommargin=8pt,
innerleftmargin=8pt,
innerrightmargin=8pt
}
% mdframed style for Style code
\definecolor{StyBGColor}{rgb}{0.95,0.95,1.00}
\definecolor{StyLineColor}{rgb}{0.9,0.9,0.95}
\mdfdefinestyle{STYCode}{
backgroundcolor=StyBGColor,
linecolor=StyLineColor,
linewidth=1pt,
innertopmargin=8pt,
innerbottommargin=8pt,
innerleftmargin=8pt,
innerrightmargin=8pt
}
\usepackage{tikz}
\newcommand\inlineDSL[2][]{\ \tikz[overlay]\node[draw,inner sep=2pt, anchor=text, rectangle, thick, color=DslLineColor, fill=DslBGColor, text=black,] {#2};\phantom{#2}\ }
\newcommand\inlineSUB[2][]{\ \tikz[overlay]\node[draw,inner sep=2pt, anchor=text, rectangle, thick, color=SubLineColor, fill=SubBGColor, text=black,] {#2};\phantom{#2}\ }
\newcommand\inlineSTY[2][]{\ \tikz[overlay]\node[draw,inner sep=2pt, anchor=text, rectangle, thick, color=StyLineColor, fill=StyBGColor, text=black,] {#2};\phantom{#2}\ }
\newcommand{\keyword}[1]{\texttt{\textbf{#1}}}
\usepackage{amssymb}
\usepackage{upgreek}
\newcommand{\resp}{\emph{resp.}} % "respectively"
\def\ContinueLineNumber{\lstset{firstnumber=last}}
% typewriter font
\usepackage{inconsolata} % Load the Inconsolata font
\renewcommand{\ttdefault}{zi4} % Set Inconsolata as the default typewriter font
% Goals
\newcounter{goalcounter} % Define a new counter for RQs
\renewcommand{\thegoalcounter}{Goal \arabic{goalcounter}} % Format the counter as RQ1, RQ2, etc.
% \usepackage{caption}
% \captionsetup[table] % Adjusts space between the table caption and the table
% chinese
% no indent because the main document language is english
% https://mirrors.ibiblio.org/CTAN/language/chinese/ctex/ctex.pdf
\usepackage[fontset=ubuntu,noindent,scheme=plain]{ctex}
\usepackage[T1]{fontenc}
\usepackage[protrusion=true,expansion=true]{microtype}
\usepackage{setspace}
\setstretch{1.0}
\setlength{\baselineskip}{\dimexpr 1.2\fontdimen6\font\relax}
% nth
\usepackage[super]{nth}
% biblatex
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[backend=biber,style=numeric,citestyle=numeric,maxbibnames=99,natbib=true,maxcitenames=2,backref,backrefstyle=none,firstinits=true ]{biblatex}
\renewbibmacro{in:}{} % https://tex.stackexchange.com/questions/10682/suppress-in-biblatex
% \DeclareFieldFormat[article, inbook, incollection, inproceedings, misc, thesis, unpublished]{titlecase}{\MakeTitleCase{#1}}
\DeclareCiteCommand{\citetitleyear}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}}
{\ifciteindex
{\indexfield{indextitle}}
{}%
\printfield[citetitle]{labeltitle}%
\setunit{\addspace}%
\printtext[parens]{%
\usebibmacro{prenote}%
\printfield{year}\printfield{extrayear}%
\usebibmacro{postnote}}}
{\multicitedelim}
{}
% Show all authors with their full names
\AtEveryBibitem{%
\clearfield{doi} % Remove DOI
\clearfield{url} % Remove URL
\clearfield{place} % Remove place
\clearname{editor} % Optional: remove editors
\clearfield{urlyear} % https://tex.stackexchange.com/questions/149506/biblatex-urldate-set-to-today
\clearfield{isbn} % Remove isbn
\clearfield{issn} % Remove issn
\clearfield{note} % Remove notes
}
% Make sure that full names of authors are used
% \DeclareNameAlias{author}{given-family}
\addbibresource{zotero.bib}
\addbibresource{others.bib}
% subsubsection numbering
\setcounter{secnumdepth}{3}
% appendix
\usepackage{lscape} % For landscape pages
\usepackage{longtable} % For tables that span multiple pages
\usepackage{pdfpages}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Provides a draft mark at the top of the document.
% \draftstamp{\today}{DRAFT}
\begin{document}
\frontmatter
%initialize page style, so contents come out right (see bot) -mjz
\pagestyle{empty}
\title{
{\bf Authoring Conceptual Diagrams by Codifying Visual Representations}}
\author{Wode ``Nimo'' Ni}
\authorChinese{倪沃德}
\date{\today}
\Year{2024}
\trnumber{CMU-S3D-24-110}
\committee{
Kenneth Koedinger (Co-chair) \\
Joshua Sunshine (Co-chair) \\
Brad Myers \\
Titus Barik (Apple)\\
Shriram Krishnamurthi (Brown University)\\
\trnumber{}
}
\support{This research was sponsored by the Software Engineering Institute award FA8702-15-D-0002, DARPA award FA87501620042; by the National Security Agency award H9823018D0008; by Squirrel AI award 5007723; by the National Science Foundation awards 1910264, 2016586, 2119007, and TI2346174; and by the CMU Open Source Office Fellowship, supported by the Alfred P. Sloan Foundation. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views or opinions of the sponsoring organizations.}
% \disclaimer{}
% copyright notice generated automatically from Year and author.
% permission added if \permission{} given.
\keywords{Diagramming, Diagrammatic Problems, Visual Representations}
\maketitle
\begin{dedication}
To the pool gods.
\end{dedication}
\pagestyle{plain} % for toc, was empty
\begin{abstract}
Visual representations like diagrams are powerful tools for thought. Diagrams are used extensively to understand abstract relationships, explain complex ideas, and solve difficult problems.
I conducted an interview study to understand how domain experts create diagrams and identified key limitations in current tools. To illustrate concepts effectively, experts find appropriate visual representations and translate concepts into concrete shapes. This translation step is not supported explicitly by existing diagramming tools. Our participants reported how they create, adapt, and reuse visual representations using both sketches and digital tools. However, they had trouble using digital tools to transition from sketches and reuse components from earlier diagrams. Based on these results, we suggest four opportunities of diagramming tools---exploration support, representation salience, live engagement, and vocabulary correspondence---that together enable a \emph{natural} diagramming experience.
The findings from these studies informed the design of \Penrose, a language-based system that allows authors to codify domain-specific concepts and their visual representations. In \Penrose, the visual representation is user-defined in a constraint-based specification language; diagrams are then generated automatically via constrained numerical optimization. The system is designed to be user-extensible to many domains. In contrast to tools that specify diagrams via direct manipulation or low-level graphics programming, \Penrose{} enables rapid creation and exploration of diagrams that faithfully preserve the underlying visual representation. I demonstrate the effectiveness and generality of the system by showing how it can be used to illustrate a diverse set of concepts from various domains.
Atop \Penrose, I built \Edgeworth, a tool designed to help educators easily create visual problems. \Edgeworth works in two main ways: firstly, it takes a single diagram from the user and systematically alters it to produce many variations, which the educator can then choose from to create multiple problems. Secondly, it automates the layout of diagrams, ensuring consistent high quality without the need for manual adjustments. I collected a dataset of diagrammatic multiple-choice problems to show that \Edgeworth can create problems in three domains: geometry, chemistry, and discrete math. \Edgeworth generated usable answer options within the first 10 diagram variations in 87\% of authored problems. I then performed a user study to measure authors' efficiency at creating translation problems using \Edgeworth, compared with a conventional drawing tool. The results show that once authors make a correct diagram, they are about 3 times faster at making diagrammatic options for translation problems using \Edgeworth compared to Google Drawings. Finally, in response to walkthrough demonstrations, expert educators gave positive feedback on \Edgeworth's utility and the real-world applicability of its outputs.
\Penrose and \Edgeworth demonstrate that codifying visual representations allow diagrams authors to reuse their design effort, produce new diagrams faster, and thus make diagrams at a larger scale.
\end{abstract}
\null\cleardoublepage
% \begin{acknowledgments}
\input{acknowledgements}
% \end{acknowledgments}
\tableofcontents
\null\cleardoublepage
\listoffigures
\listoftables
\mainmatter
%% Double space document for easy review:
%\renewcommand{\baselinestretch}{1.66}\normalsize
% The other requirements Catherine has:
%
% - avoid large margins. She wants the thesis to use fewer pages,
% especially if it requires colour printing.
%
% - The thesis should be formatted for double-sided printing. This
% means that all chapters, acknowledgements, table of contents, etc.
% should start on odd numbered (right facing) pages.
%
% - You need to use the department standard tech report title page. I
% have tried to ensure that the title page here conforms to this
% standard.
%
% - Use a nice serif font, such as Times Roman. Sans serif looks bad.
%
% Other than that, just make it look good...
% \input{prelude}
\chapter{Introduction}
\label{chp:introduction}
\input{introduction}
\chapter{Background and Related Work}
\label{chp:background}
\input{related-work}
\chapter[Understanding the Diagramming Process]{Understanding the Diagramming Process\footnote{This chapter is adapted from \citetitle{naturalDiagramming}~\cite{naturalDiagramming}.}}
\label{chp:interviews}
\input{interviews}
\chapter[\Penrose: From Notations to Beautiful Diagrams]{\Penrose: From Notations to Beautiful Diagrams\footnote{
This chapter is adapted from ``\citefield{penrose}{title}''~\cite{penrose}.}}
\label{chp:penrose}
\input{penrose}
\chapter[\Edgeworth: Diagrammatic Problem Authoring at Scale]{\Edgeworth: Diagrammatic Problem Authoring at Scale\footnote{This chapter is adapted from Sections 1 to 5 of ``\citefield{ni_edgeworth_2024}{title}''~\cite{ni_edgeworth_2024}.}}
\label{chp:edgeworth}
\input{edgeworth}
\chapter[Evaluating \Edgeworth{}]{Evaluating \Edgeworth{}\footnote{This chapter is partly adapted from Sections~6 to 7 of ``\citefield{ni_edgeworth_2024}{title}''~\cite{ni_edgeworth_2024}.}}
\label{chp:edgeworth-eval}
\input{edgeworth-eval}
\chapter{Conclusion and Future Work}
\label{chp:conclusion}
\input{conclusion}
\appendix
\input{appendix/diagrammer-interview-protocol}
\input{appendix/diagrammer-interview-codebook}
\input{appendix/penrose-walkthrough}
\input{appendix/set-styles}
\input{appendix/penrose-registry}
\input{appendix/edgeworth-formative-interview-protocol}
\input{appendix/edgeworth-problems}
\input{appendix/edgeworth-reliability-eval-coding}
\input{appendix/edgeworth-user-study-protocol}
\input{appendix/edgeworth-expert-demonstration-walkthrough}
% \input{appendix/dinoshade-style}
\backmatter
\renewcommand{\baselinestretch}{1.0}\normalsize
% By default \bibsection is \chapter*, but we really want this to show
% up in the table of contents and pdf bookmarks.
% \renewcommand{\bibsection}{\chapter{\bibname}}
%\renewcommand{\bibpreamble}{This text goes between the ``Bibliography''
% header and the actual list of references}
% \bibliographystyle{thesis-style}
% \bibliography{zotero} %your bib file
% Make sure the bibliography appears in the table of contents
\cleardoublepage
% Print the bibliography with a chapter heading
\printbibliography[heading=bibintoc]
% \bibliographystyle{thesis-style}
\end{document}