mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Add a comment and FIXME that lualatex can make DVI
The command 'lualatex' can produce a DVI with the option --output-format=dvi It is best to keep things as is because it is better to guess a PDF than to guess a DVI (we do not use that feature of the 'lualatex' command internally; we use 'dvilualatex' instead). However, we should ideally get this information in a more robust way. Thanks to Günter for pointing this out.
This commit is contained in:
parent
67e45aa36c
commit
2db62cf5d5
@ -97,6 +97,12 @@ LaTeX::LaTeX(string const & latex, OutputParams const & rp,
|
||||
: cmd(latex), file(f), path(p), lpath(lp), runparams(rp), biber(false)
|
||||
{
|
||||
num_errors = 0;
|
||||
// lualatex can still produce a DVI with --output-format=dvi. However,
|
||||
// we do not use that internally (we use the "dvilualatex" command) so
|
||||
// it would only happen from a custom converter. Thus, it is better to
|
||||
// guess that lualatex produces a PDF than to guess a DVI.
|
||||
// FIXME we should base the extension on the output format, which we should
|
||||
// get in a robust way, e.g. from the converter.
|
||||
if (prefixIs(cmd, "pdf") || prefixIs(cmd, "lualatex") || prefixIs(cmd, "xelatex")) {
|
||||
depfile = FileName(file.absFileName() + ".dep-pdf");
|
||||
output_file =
|
||||
|
Loading…
Reference in New Issue
Block a user