Skip to content

Commit 45855e1

Browse files
committed
Experimental MathJax labels.
1 parent 205834b commit 45855e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

macros/math/GraphTheory.pl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ sub GRpic_graph_labels {
177177

178178
$pic->add_label(
179179
1.25 * cos($i * $gap), 1.25 * sin($i * $gap),
180-
label => GRlabel_vertex_labels($i, $labels),
180+
label => '\\\\(' . GRlabel_vertex_labels($i, $labels) . '\\\\)',
181181
color => 'blue',
182182
h_align => 'center',
183183
v_align => 'middle'
@@ -220,7 +220,7 @@ sub GRlabelpic_graph {
220220

221221
$pic->add_label(
222222
1.2 * cos($i * $gap), 1.2 * sin($i * $gap),
223-
label => GRlabel_vertex_labels($i, $labels),
223+
label => '\\\\(' . GRlabel_vertex_labels($i, $labels) . '\\\\)',
224224
color => 'blue',
225225
h_align => 'center',
226226
v_align => 'middle'
@@ -236,7 +236,7 @@ sub GRlabelpic_graph {
236236
);
237237
$pic->add_label(
238238
0.25 * cos($i * $gap) + 0.75 * cos($j * $gap), 0.25 * sin($i * $gap) + 0.75 * sin($j * $gap),
239-
label => $graph->[$i][$j],
239+
label => '\\\\(' . $graph->[$i][$j] . '\\\\)',
240240
color => 'red',
241241
h_align => 'center',
242242
v_align => 'middle',
@@ -850,7 +850,7 @@ sub GRgraphpic_dim_random_labels_weight_dweight {
850850
$pic->add_stamp($x, $y, color => 'blue');
851851
$pic->add_label(
852852
$x - $shift, $y + 2 * $shift,
853-
label => GRlabel_vertex_labels($i + $row * $j, $labels),
853+
label => '\\\\(' . GRlabel_vertex_labels($i + $row * $j, $labels) . '\\\\)',
854854
color => 'blue',
855855
h_align => 'center',
856856
v_align => 'middle'
@@ -909,7 +909,7 @@ sub GRgraphpic_dim_random_labels_weight_dweight {
909909
$pic->add_dataset([ $orig_x, $orig_y ], [ $new_x, $new_y ], color => 'black', width => 1);
910910
$pic->add_label(
911911
$u * $orig_x + $v * $new_x, $u * $orig_y + $v * $new_y + $shift,
912-
label => $val,
912+
label => '\\\\(' . $val . '\\\\)',
913913
color => 'red'
914914
);
915915
}

0 commit comments

Comments
 (0)