[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Set automatically TeX-PDF-from-DVI variable if documentclas
From: |
Ikumi Keita |
Subject: |
Re: [AUCTeX] Set automatically TeX-PDF-from-DVI variable if documentclass receives option dvipdfmx or dvipdfm |
Date: |
Tue, 30 Oct 2018 23:38:53 +0900 |
Hi Jean and all,
>>>>> jfbu <address@hidden> writes:
> afaict in case of say \documentclass[dvipdfmx]{article}
> the AUCTeX parsing does not set TeX-PDF-from-DVI variable
> to "Dvipdfmx". This has to be done by user.
> It would be nice to get this done automatically in case
> of document class option dvipdfm or dvipdfmx.
> Similarly dvips global option should trigger "Dvips"
I at last reached at a state with some spare time and incorporated your
suggestion. Very sorry for such a late response!
At first I thought it is an easy job of adding similar code around a
bunch of
(TeX-add-style-hook ... ... LaTeX-dialect)
lines in latex.el, but it turned out that the expected code doesn't
work. After some survey, I realized that these all lines are not
effective for some years due to the common reason with bug#25563:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25563
I.e., the class options are no longer treated as styles in the sense of
AUCTeX.
I added some codes to recover the functionality of these lines, so they
just began to work again in the codes in the latest git repository.
> Also options to graphicx and/or geometry package could be scanned.
I added these functionality as well. The option "dvipdfmx" for these
packages now sets `TeX-PDF-from-DVI' to "Dvipdfmx".
Thanks for your useful suggestion.
Regards,
Ikumi Keita
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [AUCTeX] Set automatically TeX-PDF-from-DVI variable if documentclass receives option dvipdfmx or dvipdfm,
Ikumi Keita <=