Skip to content

Commit

Permalink
📚 Fix LaTeX highlighter example
Browse files Browse the repository at this point in the history
  • Loading branch information
ronisbr committed Jan 30, 2020
1 parent 7eb2a25 commit bea68b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/src/man/latex_backend/create_examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ hl_p = LatexHighlighter( (data,i,j)->(j == 4) && data[i,4] > 10, ["color{red}",
hl_e = LatexHighlighter( (data,i,j)->(i == 10), ["cellcolor{black}", "color{white}", "textbf"])

run(`cp example.tex latex_highlighter.tex`)
include_pt_in_file("latex_highlighter.tex", "Table 1", data, backend = :latex,
backup_file = false, highlighters = (hl_e, hl_p, hl_v))
include_pt_in_file("latex_highlighter.tex", "Table 1", data, header,
backend = :latex, backup_file = false,
highlighters = (hl_e, hl_p, hl_v))
run(`pdflatex latex_highlighter.tex`)
run(`pdflatex latex_highlighter.tex`)
run(`convert -density 150 -trim -strip latex_highlighter.pdf latex_highlighter.png`)
Expand Down
Binary file modified docs/src/man/latex_backend/latex_highlighter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bea68b5

Please sign in to comment.