Go to the first, previous, next, last section, table of contents.


Conditional Commands

@ifinfo begins segments of text that should be ignored by TeX when it typesets the printed manual. The segment of text appears only in the Info file. The @ifinfo command should appear on a line by itself; end the Info-only text with a line containing @end ifinfo by itself. At the beginning of a Texinfo file, the Info permissions are contained within a region marked by @ifinfo and @end ifinfo. (See section Summary and Copying Permissions for Info.)

The @iftex and @end iftex commands are similar to the @ifinfo and @end ifinfo commands, except that they specify text that will appear in the printed manual but not in the Info file. Likewise for @ifhtml and @end ifhtml, which specify text to appear only in HTML output.

For example,

@iftex
This text will appear only in the printed manual.
@end iftex
@ifinfo
However, this text will appear only in Info.
@end ifinfo
@ifhtml
And this text will only appear in HTML.
@end ifhtml

The preceding example produces the following line: This text will appear only in the printed manual. And this text will only appear in HTML.

Notice that you only see one of the input lines, depending on which version of the manual you are reading.


Go to the first, previous, next, last section, table of contents.