Skip to content

Commit

Permalink
Fix filepath in tex file on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Apr 12, 2019
1 parent f09537d commit 4c8dade
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Writers/LaTeXWriter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ function latexinline(io::IO, md::Markdown.Image)
else
normpath(joinpath(dirname(io.filename), md.url))
end
url = replace(url, "\\" => "/") # use / on Windows too.
wrapinline(io, "includegraphics") do
_print(io, url)
end
Expand Down

0 comments on commit 4c8dade

Please sign in to comment.