Skip to content

Commit

Permalink
graphs: slice_decomposition: fix a bug with latex repr (missing $)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilbouvier committed Sep 5, 2024
1 parent 2e55874 commit 7f6cc5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/graphs/graph_decompositions/slice_decomposition.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1062,8 +1062,8 @@ cdef class SliceDecomposition(SageObject):
for i in range(len(self.sigma)):
l = self.xslice_len[i]
label = r"\ ".join(sigma_latex[i:i+l])
lines.append(f" v{i}[as={bo}{label}{bc}];")
lines.append(f" l{i}[draw=none,as={bo}{sigma_latex[i]}{bc}];")
lines.append(f" v{i}[as={bo}${label}${bc}];")
lines.append(f" l{i}[draw=none,as={bo}${sigma_latex[i]}${bc}];")
j = i + 1
slices[i].append(f"l{i}")
while j < i + l:
Expand Down

0 comments on commit 7f6cc5e

Please sign in to comment.