UDO offers you the commands !include, !input, !vinclude and !rinclude. With these commands you are enabled to split up a document into many files that are included by a main file. Furthermore you can use these commands to include an often used passage that you have to type only once.
This documentation uses this commands intensively. The file udo.u doesn't contain any text and just includes other files. So I have the possibility to find some passages more fast if I have to change the documentation.
You can use !include wherever you want. So you can define macros, definitions or Hyphenation patterns in external files that can be used by other files, too.
For displaying the preformatted contents of a file you can use the
!vinclude command (verbatim include
). You can use
this command e.g. for displaying source files or header files.
If you want to include special commands for a destination format
like difficult tables for LaTeX or HTML you can use the
!rinclude command (raw include
).
Possible examples of use:
Warning: Avoid constructions like these which cause infinite loops:
a.ui: | !include b.ui |
b.ui: | !include a.ui |
or
a.ui: | !include b.ui
|
UDO cannot recognize such overcross references. You get only a
(less informative) error message memory allocation failed
.