Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

28 Working with macros > 28.1 Defining and invoking macros > 28.1.4 Using predefined macros


28.1.4 Using predefined macros

Mif2Go provides several predefined macros for HTML, listed in Table 28-1.

Predefined macro names are reserved

Avoid giving any of your own macros a name that starts with an underscore; the Mif2Go definition takes precedence. The “$” says “this is a Mif2Go construct”; the “_” says “the name is reserved, not one of yours”.

Note:  For backward compatibility Mif2Go recognizes a predefined macro name without the underscore (such as <$trail>), but only if you have not defined your own macro with the same name. Your macro definition takes precedence if there is no underscore.

Table 28-1 Predefined macros for HTML output

Macro

Description

­Ref.

<$_localtoc>

List of links to subordinate files (a local TOC)

20.3.3

<$_lastlocaltoc>

Copy of last local TOC generated

20.3.3

<$_madewith>

“Made with Mif2Go” label or button

13.15

<$_next>

Link to, and title of, following file

20.4

<$_prev>

Link to, and title of, preceding file

20.4

<$_seqnext>

Link to, and title of, following file in the book

20.4

<$_seqprev>

Link to, and title of, preceding file in the book

20.4

<$_TopicStartCode>

Macros from marker type TopicStartCode

29.2.1

<$_trail>

Inserts a “breadcrumb trail” of links

20.2

You cannot use predefined macros in system commands. See §34.4.5 Supplying system commands in a .bat file.



28 Working with macros > 28.1 Defining and invoking macros > 28.1.4 Using predefined macros