auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Customize tex-ispell.el


From: Arash Esbati
Subject: Re: [AUCTeX] Customize tex-ispell.el
Date: Wed, 26 Apr 2017 08:54:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2

Thorsten Grothe <address@hidden> writes:

> ah thank you, did not know that. Now I got this construct and it's
> working fine:
>
> (eval-after-load "tex-ispell"
>   '(progn
>      (TeX-ispell-skip-setcar
>       '(("\\\\blank\\*?" ispell-tex-arg-end 0)
>         ("\\\\titelbwr" ispell-tex-arg-end 6)
>         ("\\\\addlinespace" ispell-tex-arg-end)

Thanks for the reminder, I've missed that macro from booktabs.sty.
I've just added it.  Note that \addlinespace takes only an optional
argument.  Hence, this entry should be like this:

          ("\\\\addlinespace" ispell-tex-arg-end 0)

> I got problems with cmidrules, they are defined in tex-ispell.el but
> the regexp seems not to work for this construct:
>
> \cmidrule(lr){2-2}

Which AUCTeX version do you have?  Maybe you update to 11.90.2 first.
I tried this nonsensical example and Ispell (I use Hunspell binary) does
the right thing for me:

    \documentclass{article}
    \usepackage{booktabs}
    \begin{document}
    Übersetzugn\cmidrule[Übersetzugn](Übersetzugn){1-2}Übersetzugn
    Übersetzugn\cmidrule(Übersetzugn){1-2}Übersetzugn
    \end{document}

Can you show the entry for \cmidrule from your tex-ispell.el?  It used
to be

    ("\\\\cmidrule" . "\\(([^)]*)\\)?{[-0-9]+}")

but I changed it to

    ("\\\\cmidrule" . "{[-0-9]+}")

> How can I add this to the above setting? Sorry for the silly question,
> but I'm a beginner in regexp :-)

Quoting Jamie Zawinski:

    Some people, when confronted with a problem, think "I know, I'll use
    regular expressions." Now they have two problems.

Stay away from them, is the best thing you can do ;-)

Best, Arash



reply via email to

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