Skip to content

Commit 3b40e80

Browse files
committed
Gkappa: escape backslashes
1 parent 2b542c4 commit 3b40e80

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

man/gkappa_sources/ambiguous_connectiveness.figs.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ let build_rule = build_rule ~hgap:(Some 0.4)
3131
let [ (r, [ (left, []); (right, []) ]) ], signature =
3232
add_in_signature
3333
[
34-
( "$\text{\raisebox{.5ex}{\agent{\small A}{}}}$",
34+
( "$\\text{\\raisebox{.5ex}{\\agent{\\small A}{}}}$",
3535
[ Shape "hexagon" ],
3636
[
37-
"$\text{\site{\small l}{}{}}$", [ Direction ne ], [];
38-
"$\text{\site{\small r}{}{}}$", [ Direction se ], [];
37+
"$\\text{\\site{\\small l}{}{}}$", [ Direction ne ], [];
38+
"$\\text{\\site{\\small r}{}{}}$", [ Direction se ], [];
3939
] );
4040
]
4141
(snd (init config))
@@ -102,7 +102,7 @@ let f bool =
102102
(if bool then
103103
"$1$"
104104
else
105-
"$1\{1\}$");
105+
"$1\\{1\\}$");
106106
]
107107
(fun _ -> ([], [], []), lhs')
108108
(fun _ -> ([], [], []), rhs')

man/gkappa_sources/syntax.figs.ml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ let config =
3232
let [ (a, [ (x, []); (y, [ yu; yp ]); (z, [ zu; zp ]) ]) ], signature =
3333
add_in_signature
3434
[
35-
( "$\texttt{A}$",
35+
( "$\\texttt{A}$",
3636
[ Shape "ellipse" ],
3737
[
38-
"$\texttt{x}$", [ Direction n ], [];
39-
( "$\texttt{y}$",
38+
"$\\texttt{x}$", [ Direction n ], [];
39+
( "$\\texttt{y}$",
4040
[ Direction se ],
41-
[ "$\texttt{u}$", []; "$\texttt{p}$", [] ] );
42-
( "$\texttt{z}$",
41+
[ "$\\texttt{u}$", []; "$\\texttt{p}$", [] ] );
42+
( "$\\texttt{z}$",
4343
[ Direction sw ],
44-
[ "$\texttt{0}$", []; "$\texttt{1}$", [] ] );
44+
[ "$\\texttt{0}$", []; "$\\texttt{1}$", [] ] );
4545
] );
4646
]
4747
(snd (init config))

man/gkappa_sources/tutorial.figs.ml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,22 @@ let ( [ (a, [ (a_x, []) ]); (b, [ (b_x, []); (b_y, [ b_y_u; b_y_p ]) ]) ],
3636
signature ) =
3737
add_in_signature
3838
[
39-
( "$\text{\agent{A}{}}$",
39+
( "$\\text{\\agent{A}{}}$",
4040
[
4141
Shape "circle";
4242
Width (0.13 *. config.agent_width);
4343
Height (0.16 *. config.agent_width);
4444
],
45-
[ "$\text{\site{l}{}{}}$", [ Direction e ], [] ] );
46-
( "$\text{\agent{B}{}}$",
45+
[ "$\\text{\\site{l}{}{}}$", [ Direction e ], [] ] );
46+
( "$\\text{\\agent{B}{}}$",
4747
[
4848
Shape "rectangle";
4949
Height (0.24 *. config.agent_height);
5050
Width (0.15 *. config.agent_width);
5151
],
5252
[
53-
"$\text{\site{r}{}{}}$", [ Direction w ], [];
54-
( "$\text{\site{l}{}{}}$",
53+
"$\\text{\\site{r}{}{}}$", [ Direction w ], [];
54+
( "$\\text{\\site{l}{}{}}$",
5555
[ Direction e ],
5656
[ "u", [ Direction ne ]; "p", [ Direction ne ] ] );
5757
] );
@@ -148,15 +148,15 @@ let _ = dump "ref.ladot" graph
148148
let [ (a, [ (a_n, []); (a_e, [ u; p ]) ]) ], signature =
149149
add_in_signature
150150
[
151-
( "$\text{\agent{A}{}}$",
151+
( "$\\text{\\agent{A}{}}$",
152152
[
153153
Shape "circle";
154154
Width (0.13 *. config.agent_width);
155155
Height (0.16 *. config.agent_width);
156156
],
157157
[
158-
"$\text{\site{n}{}{}}$", [ Direction n ], [];
159-
( "$\text{\site{n}{}{}}$",
158+
"$\\text{\\site{n}{}{}}$", [ Direction n ], [];
159+
( "$\\text{\\site{n}{}{}}$",
160160
[ Direction e ],
161161
[ "u", [ Direction ne ]; "p", [ Direction ne ] ] );
162162
] );
@@ -198,15 +198,15 @@ let _ = build_rule ~file:"auto.ladot" ~directives:[ Comment "$k$" ] g left right
198198
let [ (a, [ (a_x, []); (a_y, []) ]) ], signature =
199199
add_in_signature
200200
[
201-
( "$\text{\agent{A}{}}$",
201+
( "$\\text{\\agent{A}{}}$",
202202
[
203203
Shape "rectangle";
204204
Width (0.10 *. config.agent_width);
205205
Height (0.16 *. config.agent_width);
206206
],
207207
[
208-
"$\text{\site{a}{}{}}$", [ Direction ne ], [];
209-
"$\text{\site{b}{}{}}$", [ Direction se ], [];
208+
"$\\text{\\site{a}{}{}}$", [ Direction ne ], [];
209+
"$\\text{\\site{b}{}{}}$", [ Direction se ], [];
210210
] );
211211
]
212212
(snd (init config))

0 commit comments

Comments
 (0)