auctex-devel
[Top][All Lists]
Advanced

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

Re: ExecuteMetaData with [ ] instead of { }


From: Uwe Brauer
Subject: Re: ExecuteMetaData with [ ] instead of { }
Date: Thu, 18 Aug 2022 13:46:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> Hi Uwe,
> Uwe Brauer <oub@mat.ucm.es> writes:


> The simple style attached works for me as expected, i.e., I get
> completion for the optional argument.  Maybe you've set the variable
> `TeX-arg-input-file-search':

> |   You can customize this variable.
> | 
> `----

> And this is from the manual:

>  TeX-arg-input-file


> Does this help?


Thanks very much our emails crossed, I basically found the same
 solution.

BTW you have the entry:


    '("ExecuteMetaData*"
      ;; Act like \include and not like \input:
      [TeX-arg-input-file "File" t] "Tag"))

Twice in your file 😉



I also came up with a very primitive environment for the text beween the
tags with an semi-automatic counter, semi-automatic, because whenever  I
reopen the file I need to set the counter manually


  (LaTeX-add-environments
   '("my-catch"  my-insert-catch))

(defun my-insert-catch (environment)
  (my-insert-catch-counter))

And my-insert-catch-counter is defined in the file attached.

Uwe 



-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 

Attachment: my-add-catch-tag.el
Description: application/emacs-lisp

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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