Copyright (C) 2000-2012 |
GNU Info (texinfo)Conditional CommandsConditional 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'. (Note: Info Summary and Permissions.) 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: However, this text will appear only in Info. Notice that you only see one of the input lines, depending on which version of the manual you are reading. automatically generated by info2www version 1.2.2.9 |