[OS X TeX] A quick question, if someone can help
Ross Moore
ross at ics.mq.edu.au
Sun Oct 14 03:22:54 EDT 2007
Hi Alain,
On 14/10/2007, at 4:34 PM, Damlamian, Alain wrote:
> Hello everyone,
>
> This a quick question: I created the following command for one of
> my papers in LaTeX:
>
> \newcommand{\ave}[1]{\buildrel\hbox{$\widetilde{\hphantom{#1}}^{m}$}
> \over{#1}}
>
> I need this overscript which is somewhat unusual, but my command
> puts the ~m too high. Is there a way to have it very close to the
> object on top of which it supposed to stay. I tried every trick I
> know, but evidently, I do mot know enough....
Try this.
\newcommand{\aveii}[1]{\buildrel
\hbox{$\smash{\lower1.2ex\hbox{$\widetilde{\hphantom{#1}}^{m}$}}$}
\over{#1}}
The value of 1.2 is a parameter that you can vary to taste.
This is reliable provided you don't try to use it in super/sub-scripts.
Then all the boxing will put you into normal text- or display-mode,
and you won't get the proper size and spacing. (This probably
applies to your initial efforts as well.)
>
>
> Thanks for the help.
>
> Alain Damlamian
Hope this helps,
Ross
>
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @@
> Prof. (Mr) Alain Damlamian damla at univ-paris12.fr
> alternate addresses: alain at damlamian.org,
> alain at damlamian.net
> Université Paris 12 Val de Marne
> 94010 Créteil Cedex, France
> eFax +1-425-977-7513 (depuis la France 08
> 26079915)
> tel: office +33-(0)1 45171653 mobile +33 6 07564935
> ______________________________________________________________________
> __
> Laboratoire d'Analyse et de Mathématiques Appliquées
> CNRS UMR 8050
> Universités de Marne-la-Vallée et Paris 12 Val-de-Marne
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @@
>
> ------------------------- Info --------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
> & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
> --
>
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @@
> Prof. (Mr) Alain Damlamian damla at univ-paris12.fr
> alternate addresses: alain at damlamian.org
>
> Université Paris-Est (Paris-12 Val de Marne)
> 94010 Créteil Cedex, France
> eFax +1-425-977-7513 (fax depuis la France 08
> 26079915)
> tel: office +33-(0)1 45171653 mobile +33 6
> 07564935
> ______________________________________________________________________
> __
> Laboratoire d'Analyse et de Mathématiques Appliquées
> CNRS UMR 8050
> Université Paris-Est
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @@
>
>
> ------------------------- Helpful Info -------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
> List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
>
>
>
------------------------------------------------------------------------
Ross Moore ross at maths.mq.edu.au
Mathematics Department office: E7A-419
Macquarie University tel: +61 +2 9850 8955
Sydney, Australia 2109 fax: +61 +2 9850 8114
------------------------------------------------------------------------
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the MacOSX-TeX
mailing list