Closed joshuahhh closed 1 year ago
This works as a hack for me:
async function rewriteImagePaths(ast) {
visitNodes(ast, node => {
if (node.name === 'image') {
setValueProperty(node, 'src', '../../' + getPropertyValue(node, 'src'));
}
});
return ast;
}
It conflicts with the convert plugin, but I'm avoiding that for my paper.
Fixed by inserting a \graphicspath{...}
directive as dynamic preamble content.
If you include a (non-svg) image with a relative path, generated LaTeX won't be able to find it because the LaTeX lives in
.temp/latex
and the paths are relative to the root.