[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \hyperref macro seems to confuse paren matching
From: |
Ikumi Keita |
Subject: |
Re: \hyperref macro seems to confuse paren matching |
Date: |
Wed, 08 Jun 2022 19:43:48 +0900 |
Hi Arash,
>>>>> Arash Esbati <arash@gnu.org> writes:
>> If AUCTeX is to support both usage, I suppose that we have to
>> implement it as a highly exceptional case.
> What do you think about this change:
I see, you are thinking to drop verbatim face from URL part of
\hyperref{URL}{category}{name}{text}. That's fine with me.
> diff --git a/style/hyperref.el b/style/hyperref.el
> index 81a0533c..356da3ce 100644
> --- a/style/hyperref.el
> +++ b/style/hyperref.el
> @@ -239,7 +239,10 @@
> '("hyperbaseurl" t)
> '("hyperimage" "Image URL" "Text")
> '("hyperdef" "Category" "Name" "Text")
> - '("hyperref" "URL" "Category" "Name" "Text")
> + '("hyperref"
> + (TeX-arg-conditional (y-or-n-p "Insert a label and text? ")
> + ([TeX-arg-ref] "Text")
> + ("URL" "Category" "Name" "Text")))
> '("hyperlink" "Name" "Text")
> '("hypertarget" "Name" "Text")
> '("phantomsection" 0)
> @@ -291,7 +294,7 @@
> (add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl")
> (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl")
> (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage")
> - (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperref")
> + ;; (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperref")
> (add-to-list 'LaTeX-verbatim-macros-with-braces-local "href")
> ;; In hyperref package, \url macro is redefined and \url|...| can't be
> used,
> @@ -307,7 +310,7 @@
> ("hyperbaseurl" "{")
> ("hyperimage" "{{")
> ("hyperdef" "{{{")
> - ("hyperref" "{{{{")
> + ("hyperref" "[{")
> ("hyperlink" "{{")
> ("hypertarget" "{{")
> ("autoref" "*{")
Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
- \hyperref macro seems to confuse paren matching, jfbu, 2022/06/06
- Re: \hyperref macro seems to confuse paren matching, jfbu, 2022/06/06
- Re: \hyperref macro seems to confuse paren matching, Arash Esbati, 2022/06/07
- Re: \hyperref macro seems to confuse paren matching, Ikumi Keita, 2022/06/08
- Re: \hyperref macro seems to confuse paren matching, Arash Esbati, 2022/06/08
- Re: \hyperref macro seems to confuse paren matching,
Ikumi Keita <=
- Re: \hyperref macro seems to confuse paren matching, Arash Esbati, 2022/06/08
- Re: \hyperref macro seems to confuse paren matching, jfbu, 2022/06/08
- Re: \hyperref macro seems to confuse paren matching, Arash Esbati, 2022/06/08
- Re: \hyperref macro seems to confuse paren matching, jfbu, 2022/06/08
- Re: \hyperref macro seems to confuse paren matching, jfbu, 2022/06/08
- Re: \hyperref macro seems to confuse paren matching, jfbu, 2022/06/08