tom-tan / auctex-latexmk

This library adds LatexMk support to AUCTeX.
93 stars 24 forks source link

Do not enforce `-pdfdvi` #1

Closed swsnr closed 11 years ago

swsnr commented 11 years ago

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

tom-tan commented 11 years ago

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"))
swsnr commented 11 years ago

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?

tom-tan commented 11 years ago

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...

swsnr commented 11 years ago

@tom-tan What about lualatex?

tom-tan commented 11 years ago

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.

swsnr commented 11 years ago

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

tom-tan commented 11 years ago

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