[OS X TeX] dropped parentheses

Nitecki, Zbigniew H. Zbigniew.Nitecki at tufts.edu
Sun Jul 18 15:36:46 EDT 2021

(Big slap to forehead).  Thanks :-)

On Jul 18, 2021, at 15:30, Herbert Schulz <herbs at wideopenwest.com<mailto:herbs at wideopenwest.com>> wrote:

On Jul 18, 2021, at 12:29 PM, Nitecki, Zbigniew H. <Zbigniew.Nitecki at tufts.edu<mailto:Zbigniew.Nitecki at tufts.edu>> wrote:

What I thought was a simple macro definition is yielding puzzling results.
The full testfiles are attached below.  Bottom line:
with these definitions

\newcommand{\dist}[2]{\ensuremath{\operatorname{dist}(#1,#2)}}% distance function
\newcommand{\distsub}[1]{\ensuremath{\operatorname{dist}_{#1}}}%subscripted distance name
\newcommand{\dists}[3]{\ensuremath{\distsub{#1}(#2,#3)}}%subscripted distance function


why are my closing parentheses (not part of the macro) dropped?


You define \distX and \distY to have an argument which happens to be the ) which is then absorbed since you don't use it.

Good Luck,

Herb Schulz
herbs at wideopenwest.com<mailto:herbs at wideopenwest.com>

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20210718/3c159241/attachment.htm>

More information about the MacOSX-TeX mailing list