]> git.lyx.org Git - features.git/commit
Fix bug ##9627: Make the document name available to preview insets
authorEnrico Forestieri <forenr@lyx.org>
Tue, 3 Nov 2015 23:36:41 +0000 (00:36 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 3 Nov 2015 23:36:41 +0000 (00:36 +0100)
commit1c94995aeffb11a430d13e06c3076c4b4e850dd3
treec602819d7a9ca62d78fcaff5b3e40fa2cdfc9724
parentcb51493f94e6967d1c8db4e20367bcf9a50e3368
Fix bug ##9627: Make the document name available to preview insets

The \jobname macro is redefined for the preview snippets such that
it contains the name of the document without extension. This is
harmless because the moment it is redefined, TeX has already chosen
the name of the output and log files. On the other hand, any use
of \jobname in preview snippets is now consistent with what one
obtains after exporting and compiling by hand.
src/graphics/PreviewLoader.cpp