tom-tan/auctex-latexmk

Do not enforce `-pdfdvi`

Closed this issue · 7 comments

The -pdfdvi option to latexmk breaks with lualatex and xelatex, which directly build PDF. Please make it optional.

Thank you for your report.

I added auctex-latexmk-options variable for this purpose.
You can customize options for latexmk as follows:

(custom-set-variables
 '(auctex-latexmk-options "-xelatex"))

That's not exactly the fix I wanted.

Please don't pass any options at all to latexmk. You don't need these. latexmk reads a latexmkrc file from the same directory as the document it processes. Use it.

Specifically for -dvipdf, create a latexmkrc file with the following contents:

$pdf_mode = 3

If you insist on options, at least don't make -dvipdf the default. Who's still using DVI anyway?

I see.
I remove auctex-latexmk-options and remove options from LatexMk command.

BTW, most Japanese still uses DVI to generate PDF because pdflatex cannot handle Japanese (Chinese and Korean also, I guess) .
So we first generate DVI from LaTeX and then generate PDF from DVI.
We wait for pdflatex to support Japanese...

@tom-tan What about lualatex?

Some people heve been developed a luatex macro package to support Japanese.
But it is still in alpha version and I found it does not support Shift-JIS and EUC-JP (Japanese specific encoding).

I want to use only UTF-8 but many Japanese conferences provide style files only in Japanese specific encoding,
and I need to consider these encodings.

@tom-tan Ok, I see. In Europe, many already go for LuaLaTeX or XeLaTeX to make use of modern TTF and OpenType fonts.

Anyway, I close it.
Please let me know if you think it is not closed.