Article View: comp.text.tex
Article #2572detecting missing arguments in latex
From: Gregory Lampshire
Date: Fri, 11 Sep 1992 16:04
Date: Fri, 11 Sep 1992 16:04
37 lines
983 bytes
983 bytes
I want to set up a macro where the presence of an argument will be
significant, that is
\newcommand\fig[3]{
\if <argument #1 is null> do this etc.
\else etc.
\fi
}
\fig{}{}{this is a phrase}
is different from
\fig{2}{3}{this is a phrase}
How do I test to see if an argument is null? I tried
\csname the #1 \endcsname but that naturally didn't work since the
argument is not a counter, register etc..
--
Gregory Lampshire
Virginia Tech NeXT CC
Bradley Department of Electrical Engineering
gbol@rglnext.geol.vt.edu (NeXTmail welcome)
------------------------
My opinions are my very own and do not reflect the opinions of any
employer
Technical Details
Message-ID:
<6725@vtserf.cc.vt.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!vtserf!rglnext.geol.vt.eduShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!vtserf!rglnext.geol.vt.edu From: gbol@rglnext.geol.vt.edu (Gregory Lampshire) Newsgroups: comp.text.tex Subject: detecting missing arguments in latex Message-ID: <6725@vtserf.cc.vt.edu> Date: 11 Sep 92 16:04:03 GMT Sender: usenet@vtserf.cc.vt.edu Lines: 37