File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed
Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 77
88julia :
99 - 0.7
10+ - 1.0
1011 - nightly
1112
12- matrix :
13- allow_failures :
14- - julia : nightly
13+ # matrix:
14+ # allow_failures:
15+ # - julia: nightly
1516
1617notifications :
1718 email : false
Original file line number Diff line number Diff line change 22# latex treats # as a special character, so we have to escape it. See:
33# https://github.com/sisl/TikzGraphs.jl/issues/12
44
5- latex_escape (s:: String ) = replace (s, " #" => " \\ #" )
5+ # latex_escape(s::String) = replace(s, Dict("#"=>"\\#", "&"=>"\\&"))
6+
7+ function latex_escape (s:: String )
8+ s = replace (s, " #" => " \\ #" )
9+ s = replace (s, " &" => " \\ &" )
10+ return s
11+ end
612
713" Convert a symbol or into a LaTeX label"
814function latex_label (sym)
Original file line number Diff line number Diff line change 2424 expr = Expr (Symbol (" ##271" ))
2525 t = walk_tree (expr)
2626 @test t. labels[1 ] == Symbol (" ##271" )
27+
28+ t = @tree x && y
29+ @test TreeView. latex_escape (string (t. labels[1 ])) == " \\ &\\ &"
2730end
2831
2932@testset " DAG" begin
You can’t perform that action at this time.
0 commit comments