[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] mathtools style for AUCTeX
From: |
Arash Esbati |
Subject: |
Re: [AUCTeX-devel] mathtools style for AUCTeX |
Date: |
Mon, 22 Aug 2016 19:26:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 |
Uwe Brauer <address@hidden> writes:
> Right, I did some testing. Now the macro indeed inserts
> \adjustlimits{}_{}{}_{} which is according to the manual p.7 correct.
Thanks for testing! I will see if I upload the new version tomorrow.
> However here is a minimal example
>
> \documentclass[12pt]{article}
> \usepackage[fleqn,tbtags]{mathtools}
>
> \begin{document}
> %\adjustlimits{}_{}{}_{}
> \[
> \text{a)} \adjustlimits\lim_{n\to\infty} \max_{p\ge n} \quad
> \quad \text{new}\adjustlimits{\lim}_{n\to\infty}{max}_{p\ge n}
> \text{end}\qquad
> \text{b)} \adjustlimits\lim_{n\to\infty} \max_{p^2\ge n} \quad
> \text{c)} \adjustlimits\lim_{n\to\infty} \sup_{p^2\ge nK} \quad
> \text{d)} \adjustlimits\limsup_{n\to\infty} \max_{p\ge n}
> \]
> \end{document}
>
>
> It seems to me that the simple
>
> \text{a)} \adjustlimits\lim_{n\to\infty} \max_{p\ge n} \quad
>
> Gives the same result. Odd but of course the mathtools authors are the
> ones to be blamed here.
I haven't looked at the source of mathtools, but the construct
\adjustlimits\lim_{n\to\infty} \max_{p\ge n}
is valid TeX code since the tokens `\lim' and `\max' become arguments 2
and 4 to \adjustlimits; no grouping is needed here.
It is basically the same as
\def\x#1{\textbf{#1}}
\x1 and \x 2 are \x Integers.
Best, Arash