Cscott has uploaded a new change for review. https://gerrit.wikimedia.org/r/98555
Change subject: Use \graphicspath to avoid overly-long graphics filenames. ...................................................................... Use \graphicspath to avoid overly-long graphics filenames. Change-Id: Iceeb758f38bf71ecf190bb53fe13017ce0290414 --- M lib/index.js 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Collection/OfflineContentGenerator/latex_renderer refs/changes/55/98555/1 diff --git a/lib/index.js b/lib/index.js index 92e024b..686074f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -676,7 +676,7 @@ return (safe === info.filename) ? safe : renameFile(imagedir, info.filename, safe); }).then(function(newname) { - imagemap.set(key, path.join(imagedir, newname)); + imagemap.set(key, newname); }); p = when.join(p, pp); // serialize completion }).then(function() { @@ -740,6 +740,8 @@ head += ' \\\\ ' + texEscape(metabook.subtitle); } head += '}'; + // image file path + head += '\n\\graphicspath{{' + path.join(builddir, 'bundle', 'images') + '/}}'; // start the doc! head += '\n\\begin{document}\\maketitle'; if (toc) { -- To view, visit https://gerrit.wikimedia.org/r/98555 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iceeb758f38bf71ecf190bb53fe13017ce0290414 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Collection/OfflineContentGenerator/latex_renderer Gerrit-Branch: master Gerrit-Owner: Cscott <canan...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits