auctex
[Top][All Lists]
Advanced

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

Re: \hologo with selected text


From: Tassilo Horn
Subject: Re: \hologo with selected text
Date: Wed, 03 Mar 2021 07:46:55 +0100
User-agent: mu4e 1.5.8; emacs 28.0.50

>> (defun LaTeX-hologo--arg-use-region-or-query-logo-name (optional)
>>   (if (and (use-region-p)
>>            (member (buffer-substring (region-beginning) (region-end))
>>                    LaTeX-hologo-logo-names))
>>       (progn
>>      (insert TeX-grop)
>>      (goto-char (region-end))
>>      (insert TeX-grcl))
>>     (TeX-argument-insert
>>      (completing-read
>>       (TeX-argument-prompt optional nil "Logo name")
>>       LaTeX-hologo-logo-names)
>>      optional)))
>
> Yes, that's better!  Thanks, pushed!

Ah, and now that can also be used for the first argument of
\[Hh]ologoVariant which didn't work before. :-)

Bye,
Tassilo



reply via email to

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