Le 13/02/2021 à 13:28, Joost Kremers a écrit :
On Sat, Feb 13 2021, jfbu wrote:
although TeX-command-list did not like a lot being customized
at least some time ago in the distant past and foggy memories
I do this in my init file, using `add-to-list`:
```
(with-eval-after-load 'tex
;; add a "Crop PDF" entry to TeX-command-list
(add-to-list 'TeX-command-list
'("Crop PDF" "pdfcrop %P" TeX-run-command nil t :help "Crop pdf
file")
'append))
```
That way when a newer version of AUCTeX adds new entries to `TeX-command-list`
you'll get them, too, without losing your customisations.
Thanks for the tip!
But this probably means "Crop PDF" will be last entry?
On my laptop, the pop-up menu with my added entries (about a dozen) extends
beyond bottom of screen. As they are the items I use most, I want them as high
up as possible.
My past experience is that I can't put them first, but I don't know if this
holds true nowadays.
I have had problems in particular when Index and/or BibTeX were missing or were
too low in the list (I see this comment in my custom.el:
; le problème était un bug de tex-jp.el qui customise TeX-command-list d'une
; façon qui exige la présence des deux entrées "BibTeX" et "Index". Donc je
; les laisse mais je refais le nettoyage des autres qui ne me servent pas.
which says roughly that tex-jp.el required BibTeX and Index to be present,
hence I had to leave them there but I removed entries which are not useful to
me.
By the way I don't know the Japanese language but I have sometimes to check
that things work with Japanese classes.