[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] Real key-val query for \includegraphics

From: Arash Esbati
Subject: Re: [AUCTeX-devel] Real key-val query for \includegraphics
Date: Fri, 09 Sep 2016 17:09:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1

Hi Mosè,

Mosè Giordano <address@hidden> writes:

> 2016-09-07 12:56 GMT+02:00 Arash Esbati <address@hidden>:
>> Hi all,
>> I would like to suggest a bigger change to graphicx.el in order to add
>> real key-val query in the optional argument of \includegraphics.  This
>> style has a sort of pseudo key-val and I think it should be fixed.
>> Please find attached a first draft for discussion.  WDYT?
> 1 file changed, 86 insertions(+), 197 deletions(-) is very appealing
> ;-)

I've added some compensation for the deletions, see below ;-)

> However, even if they were baked in a hackish way (they key-val list
> is certainly easier to read and maintain), this patch is going to
> remove some completion features for the optional argument of
> \includegraphics, isn't it?

Not really, all options are there, only the way one inserts the input is
different.  For instance, take the `bb' key: with the current
implementation, AUCTeX asks for 4 values and insert them.  With the new
implementation, one does `bb=0 0 40 40' and hits `RET' if finished or
`TAB' for another key.

I think the major issue with the current implementation is you don't
have a control on which key is coming next (well you have
(cf. `LaTeX-includegraphics-options-alist'), but for me, I actually miss
the key I want on a regular basis since I hit `RET' too often.

>> I also have a question: How can I figure out which engine/binary is
>> ultimaltely used when compiling a document?  I would like to address the
> The relevant variables should be `TeX-engine', `TeX-PDF-mode',
> `TeX-PDF-from-DVI', `TeX-DVI-via-PDFTeX'.

Thank you, `TeX-engine', `TeX-PDF-mode' do the job, I think.  Please
find attached a new draft of graphicx.el.  This incarnation has support
for file extensions depending on the engine.  From tex-style.el, only
`LaTeX-includegraphics-options-alist' will become no-op; all other
custom variables are preserved.

Any comments welcome.

Best, Arash

Attachment: graphicx.el
Description: application/emacs-lisp

Attachment: graphicx.el.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]