Skip to content

Commit

Permalink
Provide background color on test images similar to the one in the manual
Browse files Browse the repository at this point in the history
  • Loading branch information
hansonchar committed Jun 25, 2024
1 parent 68e7e1e commit 1635574
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/generic/pgf/lib/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,12 @@ function u.walk(sourcedir, targetdir, finder)
local newname = finder.get_name() .. "-" .. name .. "-" .. n .. ".tex"
local examplefile = io.open(targetdir .. newname, "w")

examplefile:write "\\documentclass{standalone}\n"
examplefile:write "\\usepackage{fp,pgf,tikz,xcolor}\n"
examplefile:write [[
\documentclass{standalone}
\usepackage{fp,pgf,tikz,xcolor}
\definecolor{bgcolor}{RGB}{245, 245, 204}
\pagecolor{bgcolor}
]]
examplefile:write(options["preamble"] and options["preamble"] .. "\n" or "")
examplefile:write "\\begin{document}\n"

Expand Down

0 comments on commit 1635574

Please sign in to comment.