Skip to content

Commit

Permalink
Ensured the TikZ template file is read correctly from the project bas…
Browse files Browse the repository at this point in the history
…e path
  • Loading branch information
sun123zxy committed Oct 29, 2024
1 parent cc705a2 commit 2488d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _assets/tikz.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ local function read_file(file)
return content
end

local tikz_doc_template = read_file('_assets/suntemp-tikz.tex')
local tikz_doc_template = read_file(os.getenv("QUARTO_PROJECT_DIR")..'/_assets/suntemp-tikz.tex')

local function tikz2image(src, filetype)
local str = ""
Expand Down

0 comments on commit 2488d31

Please sign in to comment.