This file is indexed.

/usr/share/doc/texinfo/html/Macro-Details.html is in texinfo-doc-nonfree 6.1.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This manual is for GNU Texinfo (version 6.1, 6 February 2016),
a documentation system that can produce both online information and a
printed manual from a single source using semantic markup.

Copyright (C) 1988, 1990, 1991, 1992, 1993, 1995, 1996, 1997,
1998, 1999, 2001, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
2010, 2011, 2012, 2013, 2014, 2015, 2016 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with the Front-Cover Texts being "A GNU Manual",
and with the Back-Cover Texts as in (a) below.  A copy of the license
is included in the section entitled "GNU Free Documentation
License".

(a) The FSF's Back-Cover Text is: "You have the freedom to copy and
modify this GNU manual.  Buying copies from the FSF supports it in
developing GNU and promoting software freedom." -->
<!-- Created by GNU Texinfo 6.1, http://www.gnu.org/software/texinfo/ -->
<head>
<title>GNU Texinfo 6.1: Macro Details</title>

<meta name="description" content="GNU Texinfo 6.1: Macro Details">
<meta name="keywords" content="GNU Texinfo 6.1: Macro Details">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="Command-and-Variable-Index.html#Command-and-Variable-Index" rel="index" title="Command and Variable Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Defining-New-Texinfo-Commands.html#Defining-New-Texinfo-Commands" rel="up" title="Defining New Texinfo Commands">
<link href="_0040alias.html#g_t_0040alias" rel="next" title="@alias">
<link href="Invoking-Macros.html#Invoking-Macros" rel="prev" title="Invoking Macros">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>


</head>

<body lang="en">
<a name="Macro-Details"></a>
<div class="header">
<p>
Next: <a href="_0040alias.html#g_t_0040alias" accesskey="n" rel="next"><code>@alias</code></a>, Previous: <a href="Invoking-Macros.html#Invoking-Macros" accesskey="p" rel="prev">Invoking Macros</a>, Up: <a href="Defining-New-Texinfo-Commands.html#Defining-New-Texinfo-Commands" accesskey="u" rel="up">Defining New Texinfo Commands</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Command-and-Variable-Index.html#Command-and-Variable-Index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="Macro-Details-and-Caveats"></a>
<h3 class="section">17.3 Macro Details and Caveats</h3>
<a name="index-Macro-details"></a>
<a name="index-Details-of-macro-usage"></a>
<a name="index-Caveats-for-macro-usage"></a>

<a name="index-Macro-expansion_002c-contexts-for"></a>
<a name="index-Expansion-of-macros_002c-contexts-for"></a>
<p>By design, macro expansion does not happen in the following contexts
in <code>makeinfo</code>:
</p>
<ul>
<li> <code>@macro</code> and <code>@unmacro</code> lines;

</li><li> <code>@if...</code> lines, including <code>@ifset</code> and similar;

</li><li> <code>@set</code>, <code>@clear</code>, <code>@value</code>;

</li><li> <code>@clickstyle</code> lines;

</li><li> <code>@end</code> lines.
</li></ul>

<p>Unfortunately, TeX may do some expansion in these situations,
possibly yielding errors.
</p>
<p>Also, quite a few macro-related constructs cause problems with TeX;
some of the caveats are listed below.  Thus, if you get macro-related
errors when producing the printed version of a manual, you might try
expanding the macros with <code>makeinfo</code> by invoking
<code>texi2dvi</code> with the &lsquo;<samp>-E</samp>&rsquo; option (see <a href="Format-with-texi2dvi.html#Format-with-texi2dvi">Format with <code>texi2dvi</code></a>).  Or, more reliably, eschew Texinfo macros altogether
and use a language designed for macro processing, such as M4
(see <a href="External-Macro-Processors.html#External-Macro-Processors">External Macro Processors</a>).
</p>
<ul>
<li> As mentioned earlier, macro names must consist entirely of letters.

</li><li> It is not advisable to redefine any TeX primitive, plain, or
Texinfo command name as a macro. Unfortunately this is a large and
open-ended set of names, and the possible resulting errors are
unpredictable.

</li><li> Arguments to macros taking more than one argument cannot cross lines.

</li><li> Macros containing a command which must be on a line by itself, such as
a conditional, cannot be invoked in the middle of a line.  Similarly,
macros containing line-oriented commands or text, such as
<code>@example</code> environments, may behave unpredictably in TeX.

</li><li> 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 &ldquo;@&rdquo; 
sign), instead of being interpreted with their intended meaning.

</li><li> White space is ignored at the beginnings of lines.

</li><li> Macros can&rsquo;t be reliably used in the argument to accent commands
(see <a href="Inserting-Accents.html#Inserting-Accents">Inserting Accents</a>).

</li><li> The backslash escape for commas in macro arguments does not work;
<code>@comma{}</code> must be used.

</li><li> Likewise, if you want to pass an argument with the Texinfo command 
<code>@,</code> (to produce a cedilla, see <a href="Inserting-Accents.html#Inserting-Accents">Inserting Accents</a>), you have 
to use <code>@value</code> or another work-around.  Otherwise, the comma
may be taken as separating the arguments.  For example,

<div class="example">
<pre class="example">@macro mactwo{argfirst, argsecond}
\argfirst\+\argsecond\.
@end macro
@set fc Fran@,cois
@mactwo{@value{fc},}
</pre></div>

<p>produces:
</p>
<div class="display">
<pre class="display">Fran&ccedil;ois+.
</pre></div>


</li><li> Ending a macro body with &lsquo;<samp>@c</samp>&rsquo; may cause text following the macro
invocation to be ignored as a comment in <code>makeinfo</code>.  This is 
not the case when processing with TeX (in case you really want to 
comment out following text, use &lsquo;<samp>@comment</samp>&rsquo; instead).  This was
often done to &ldquo;comment out&rdquo; an unwanted newline at the end of a macro 
body, but this is not necessary any more, as the final newline before 
&lsquo;<samp>@end macro</samp>&rsquo; is not included in the macro body anyway.

</li><li> In general, you can&rsquo;t arbitrarily substitute a macro (or
<code>@value</code>) call for Texinfo command arguments, even when the text
is the same.  Texinfo is not M4 (or even plain TeX).  It might work
with some commands, it fails with others.  Best not to do it at all.
For instance, this fails:

<div class="example">
<pre class="example">@macro offmacro
off
@end macro
@headings @offmacro
</pre></div>

<p>This looks equivalent to <code>@headings off</code>, but for TeXnical
reasons, it fails with a mysterious error message (namely,
&lsquo;<samp>Paragraph ended before @headings was complete</samp>&rsquo;).
</p>
</li><li> Macros cannot define macros in the natural way.  To do this, you must
use conditionals and raw TeX.  For example:

<div class="example">
<pre class="example">@ifnottex
@macro ctor {name, arg}
@macro \name\
something involving \arg\ somehow
@end macro
@end macro
@end ifnottex
@tex
\gdef\ctor#1{\ctorx#1,}
\gdef\ctorx#1,#2,{\def#1{something involving #2 somehow}}
@end tex
</pre></div>
</li></ul>

<p>The <code>makeinfo</code> implementation also has the following
limitations (by design):
</p>
<ul>
<li> <code>@verbatim</code> and macros do not mix; for instance, you can&rsquo;t start
a verbatim block inside a macro and end it outside
(see <a href="_0040verbatim.html#g_t_0040verbatim"><code>@verbatim</code></a>).  Starting any environment inside a macro
and ending it outside may or may not work, for that matter.

</li><li> Macros that completely define macros are ok, but it&rsquo;s not possible to
have incompletely nested macro definitions.  That is, <code>@macro</code>
and <code>@end macro</code> (likewise for <code>@rmacro</code>) must be
correctly paired.  For example, you cannot start a macro definition
within a macro, and then end that nested definition outside the macro.
</li></ul>

<p>In the <code>makeinfo</code> implementation before Texinfo 5.0, ends of
lines from expansion of a <code>@macro</code> definition did not end an
@-command line-delimited argument (<code>@chapter</code>, <code>@center</code>,
etc.).  This is no longer the case.  For example:
</p>
<div class="example">
<pre class="example">@macro twolines{}
aaa
bbb
@end macro
@center @twolines{}
</pre></div>

<p>In the current <code>makeinfo</code>, this is equivalent to:
</p>
<div class="example">
<pre class="example">@center aaa
bbb
</pre></div>

<p>with just &lsquo;<samp>aaa</samp>&rsquo; as the argument to <code>@center</code>.  In
the earlier implementation, it would have been parsed as this:
</p>
<div class="example">
<pre class="example">@center aaa bbb
</pre></div>


<hr>
<div class="header">
<p>
Next: <a href="_0040alias.html#g_t_0040alias" accesskey="n" rel="next"><code>@alias</code></a>, Previous: <a href="Invoking-Macros.html#Invoking-Macros" accesskey="p" rel="prev">Invoking Macros</a>, Up: <a href="Defining-New-Texinfo-Commands.html#Defining-New-Texinfo-Commands" accesskey="u" rel="up">Defining New Texinfo Commands</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Command-and-Variable-Index.html#Command-and-Variable-Index" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>