diff options
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-empty.html')
-rw-r--r-- | Master/texmf-doc/doc/english/FAQ-en/html/FAQ-empty.html | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-empty.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-empty.html index fb132a0f368..0d37b2b6658 100644 --- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-empty.html +++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-empty.html @@ -2,7 +2,7 @@ <title>UK TeX FAQ -- question label empty</title> </head><body> <h3>Detecting that something is empty</h3> -<p>Suppose you need to know that the argument of your command is empty: +<p/>Suppose you need to know that the argument of your command is empty: that is, to distinguish between <code>\</code><code>cmd{}</code> and <code>\</code><code>cmd{blah}</code>. This is pretty simple: <blockquote> @@ -21,10 +21,11 @@ and <code>\</code><code>cmd{blah}</code>. This is pretty simple: The case where you want to ignore an argument that consists of nothing but spaces, rather than something completely empty, is more tricky. It’s solved in the code fragment <i>ifmtarg</i>, which defines -commands <code>\</code><code>@ifmtarg</code> and <code>\</code><code>@ifnotmtarg</code>, which distinguish (in -opposite directions) between a second and third argument. The -package’s code also appears in the LaTeX <i>memoir</i> class. -<p><i>Ifmtarg</i> makes challenging reading; there’s also a discussion of the +commands <code>\</code><code>@ifmtarg</code> and <code>\</code><code>@ifnotmtarg</code>, which examine their +first argument, and select (in opposite directions) their second or +third argument. The package’s code also appears in the LaTeX +<i>memoir</i> class. +<p/><i>Ifmtarg</i> makes challenging reading; there’s also a discussion of the issue in number two of the “around the bend” articles by the late lamented Mike Downes. <dl> @@ -32,5 +33,5 @@ lamented Mike Downes. <dt><tt><i>ifmtarg.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/misc/ifmtarg.sty">macros/latex/contrib/misc/ifmtarg.sty</a> <dt><tt><i>memoir.cls</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/memoir.zip">macros/latex/contrib/memoir</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/memoir.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir/">browse</a>) </dl> -<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=empty">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=empty</a> +<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=empty">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=empty</a> </body> |