[OS X TeX] dropped parentheses

Nitecki, Zbigniew H. Zbigniew.Nitecki at tufts.edu
Sun Jul 18 13:29:20 EDT 2021


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


\newcommand{\distX}[1]{\ensuremath{\distsub{X}}}
\newcommand{\distY}[1]{\ensuremath{\distsub{Y}}}


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


Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

telephones:
Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966
http://www.tufts.edu/~znitecki/



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20210718/4685f6af/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: disttest-2.tex
Type: application/octet-stream
Size: 576 bytes
Desc: disttest-2.tex
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20210718/4685f6af/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: disttest-2.log
Type: application/octet-stream
Size: 5121 bytes
Desc: disttest-2.log
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20210718/4685f6af/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: disttest-2.pdf
Type: application/pdf
Size: 6894 bytes
Desc: disttest-2.pdf
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20210718/4685f6af/attachment.pdf>


More information about the MacOSX-TeX mailing list