[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[7750] Macro Details interchange macro and conditional
From: |
gavinsmith0123 |
Subject: |
[7750] Macro Details interchange macro and conditional |
Date: |
Sun, 23 Apr 2017 08:52:26 -0400 (EDT) |
Revision: 7750
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7750
Author: gavin
Date: 2017-04-23 08:52:26 -0400 (Sun, 23 Apr 2017)
Log Message:
-----------
Macro Details interchange macro and conditional
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/texinfo.texi
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2017-04-23 12:35:37 UTC (rev 7749)
+++ trunk/ChangeLog 2017-04-23 12:52:26 UTC (rev 7750)
@@ -1,5 +1,10 @@
2017-04-23 Gavin Smith <address@hidden>
+ * doc/texinfo.texi (Macro Details): Mention possibility of
+ interchanging a macro and a conditional.
+
+2017-04-23 Gavin Smith <address@hidden>
+
* Makefile.am (po-check): Change parsetexi/ to tp/parsetexi.
2017-04-23 Gavin Smith <address@hidden>
Modified: trunk/doc/texinfo.texi
===================================================================
--- trunk/doc/texinfo.texi 2017-04-23 12:35:37 UTC (rev 7749)
+++ trunk/doc/texinfo.texi 2017-04-23 12:52:26 UTC (rev 7750)
@@ -14034,6 +14034,38 @@
@code{@@example} environments, may behave unpredictably in @TeX{}.
@item
+If you have problems using conditionals within a macro, an alternative
+is to use separate macro definitions inside conditional blocks. For
+example, instead of
+
address@hidden
+@@macro Mac
+@@iftex
+text for TeX output
+@@end iftex
+@@ifnottex
+text for not TeX output
+@@end ifnottex
+@@end macro
address@hidden example
+
address@hidden you can do the following instead:
+
address@hidden
+@@iftex
+@@macro Mac
+text for TeX output
+@@end macro
+@@end iftex
+
+@@ifnottex
+@@macro Mac
+text for not TeX output
+@@end macro
+@@end ifnottex
address@hidden example
+
address@hidden
Texinfo commands in the expansion of a macro in the text of an index
entry may end up being typeset as literal text (including an ``@@''
sign), instead of being interpreted with their intended meaning.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [7750] Macro Details interchange macro and conditional,
gavinsmith0123 <=