Karim Belabas on Tue, 02 Aug 2016 16:43:05 +0200


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

Re: latex macro


* Vincent Delecroix [2016-08-02 16:02]:
[...]
> Thanks Karim for taking the time to explain! I guess the semantic of
> @[startlword]BLAH@[endlword] is not clear for us.

It justs means, "BLAH typeset as a mathematical function name".
The best general LaTeX translation would be

  @[startlword]BLAH@[endlword] => \operatorname{BLAH}

I guess ReST would accept that. (In TeX context, there's the problem of
entering / leaving math mode but I guess you already handle that ?)

Cheers,

    K.B.

P.S. Perhaps with a dictionary of predefined names: plain.tex defines
exactly 32 standard functions:

  \Pr
  \arccos
  \arcsin
  \arctan
  \arg
  \cos
  \cosh
  \cot
  \coth
  \csc
  \deg
  \det
  \dim
  \exp
  \gcd
  \hom
  \inf
  \ker
  \lg
  \lim
  \liminf
  \limsup
  \ln
  \log
  \max
  \min
  \sec
  \sin
  \sinh
  \sup
  \tan
  \tanh

Anything not in this list should use the \operatorname construct.

--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite de Bordeaux         Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~kbelabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]
`