With the command !ifdest you can test the destination format. Use the following abbreviations:
amg | AmigaGuide
hypertext system, used for documentation of Amiga programs Commodore Amiga |
aqv | Apple QuickView
old hypertext format for Mac OS Apple |
asc | ASCII
Plain Text all platforms |
c | Sourcecode (C format)
The UDO source file will be converted to sourcecode, i.e. normal text becomes comment, the content of the sourcecode environment becomes C sourcecode. several |
drc | David's Readme Compiler
DOS program for creating menu-driven ReadMe files as EXE-programs MS-DOS |
hah | HTML format for Apple Help Books
Mac OS X |
helptag | HP-Helptag-SGML
SGML-based hypertext help system for commercial Unices (HP-UX, Sun Solaris, IBM AIX) Unix |
hh | HTMLHelp
HTML-related format, for creation of HTML help files under windows Win32 |
html | HTML (Hypertext Markup Language)
page description language – for websites, documentations and more platform-independent |
info | GNU Texinfo
for making online documentations, started with info 'command' Linux, MiNTNet |
ipf | OS/2 IPF
SGML-based text format for creating help files (INF, HLP) under OS/2 OS/2 |
linuxdoc | Linuxdoc-SGML
Linuxdoc-SGML (recently: SGMLtools) is – like UDO – a multiformat converter which converts its own format to LaTeX, Manualpage, RTF, HTML, Texinfo, etc. Unix/Linux |
lyx | LyX
a LaTeX-related document processor Unix/Linux |
man | Manualpage
Unix/Linux help pages for commandline programs Unix/Linux |
nroff | NROFF
Unix/Linux help pages for commandline programs Unix/Linux |
pascal | Sourcecode (Pascal format)
the UDO source file will be converted to sourcecode, i.e. normal text becomes comment, the content of the sourcecode environment becomes Pascal sourcecode. several |
pchelp | Pure C Help
help system for the Pure C compiler Atari TOS |
pdflatex | PDFLaTeX
for producing PDF files from LaTeX several |
ps | PostScript
device-independent page description language, e.g. for printers; can also be used for producing PDF files (Ghostscript, Adobe Distiller) several |
rtf | RTF (Rich Text Format)
for exchanging text between different programs and platforms several |
stg | ST-Guide
a hypertext system Atari TOS |
tex | LaTeX 2.09, LaTeX2e
typesetting system, especially for scientific publications many platforms |
udo | UDO
merges all UDO input files into one big file all platforms with UDO support |
v | Turbo-Vision-Help
creating online helpfiles for DOS programs written with Borland's Turbo Vision Library MS-DOS |
win, wh4 | Windows-Help, WinHelp4
RTF-derived format for producing WinHelp files under Windows Windows (Win16, Win32) |
In addition to these abbreviations you can use all
and
none
. A query with all
always returns a true value, a
query with none
always returns a false value.
The following example shows how to set a special document title for Windows Help:
The !ifndest command is related to !ifdest. But !ifndest will check if you do not convert to the given destination format. Thus you can write the upper example this way, too:
You can pass more than one abbreviation to the query command. If you do so the query returns a true value if one or more abbreviations match the current destination format. The next example shows how to set a special document title for hypertext formats:
!ifdest [win,html,stg,htag] !docinfo [title] The hypertext to !else !docinfo [title] The guide to !endif