Man page - yodlmacros(7)
Packages contains this manual
Manual
Yodl macros
NAMESYNOPSIS
DESCRIPTION
OPTIONS
FILES
SEE ALSO
BUGS
AUTHOR
NAME
yodlmacros - Macros for the Yodl converters
SYNOPSIS
This manual page lists the standard macros of the Yodl package.
DESCRIPTION
The following list shows the macros defined by the Yodl converters define and which can be used in Yodl documents. Refer to the Yodl user guide, distributed with the Yodl package, for a full description.
The following
list shows all macros of the package in alphabetical order.
âabstract(text)â
Defines an abstract for an article or report type of document. Abstracts are not implemented for books or manpages. Must appear before starting the document using the âarticleâ or âreportâ macro.
âaddntosymbol(symbol)(n)(text)â
Adds âtextâ ânâ times to âsymbolâ. The value ânâ may also be the name of a defined counter (which is not modified).
âaffiliation(site)â
Defines an affiliation, to appear in the document titlepage below the author field. Must appear before starting the document with âarticleâ, âreportâ or âbookâ. The affiliation is only printed when the author field is not empty. When converting to html the way the affiliation is displayed can be tuned using CSS id selector specifications. The affiliation has âid="affiliation"â.
âAfourEnlarged()â
Enlarges the usable height of A4 paper by 2 cm.: the top margin is reduced by 2 cm. This macro should be called in the preamble. The macro is available only for LaTeX conversions.
âappendix()â
Starts appendices
âarticle(title)(author)(date)â
Starts an article. The top-level sectioning command is â(n)sectâ. In HTML conversions only one output file is written, while the way the headings are displayed can be tuned using CSS id selector specifications: the title has âid="title"â, the author âid="author"â, and the date âid="date"â.)
âattrib(text)â
In html, pushes âtextâ as an attribute for the next html tag supporting âattribâ. E.g, to set a blue color and 30 pixel left-hand side margin for a section use
attrib(style="color:blue;margin-left:30px;")\
sect(Section name)
This results in the html markup
<h1 style="color:blue;margin-left:30px;">Section name</h1>
This macro is only effective with html conversions. It is applied in a stack-wise fashion: when multiple âattribâ calls are used, then the topmost attrib-string is added to the first macro calling the âattribinsertâ macro, with subsequent macros using subsequent elements on the attrib-stack.
Commonly used attributes are âid="idname"â, expecting a â#idnameâ CSS label in either internal or external CSS specifications, or âstyle="spec"â (as shown in the example).
Example: when using
attrib(width =
"100" height = "100")
attrib(id = "#fig")
figure(imgfile)(Caption)(IMG)
then the â#idâ attribute is applied to â<figure>â, and the âwidthâ and âheightâ attributes are applied to â<img>â, which html markup is inserted by the âfigureâ macro.
The âattribâ macro is supported by the following predefined macros (between parentheses the number of attribute strings that are inserted by these macros; if only 1 attribute string is inserted no number is shown):
âbf cell cells center chapter code dashes dit em figure(3) file htmltag itdesc lchapter link lref lsect lsubsect lsubsubsect nchapter npart nsect nsubsect nsubsubsect paragraph part quote row sc sect strong subs subsect subsubsect subsubsubsect sups tableatt tbl tac tc tnac tnc tr tt ttbegin url verb verborg verbincludeâ.
âattribclear()â
Removes any existing contents from the attrib-stack. This macro is only active when converting to html
âattribinsert()â
In html, if the attrib-stack is not empty, inserts the value on top of the attrib-stack and then pops the topmost value. If the attrib-stack is empty, nothing happens.
âbf(text)â
Sets âtextâ in boldface.
âbind(text)â
Generate a binding character (non-breaking space) after text.
âbook(title)(author)(date)â
Starts a book document. The top-level sectioning command is â(n)chapterâ, â(n)partâ being optional. In HTML output files are created for each chapter, while the way the headings are displayed can be tuned using CSS id selector specifications: the title has âid="title"â, the author âid="author"â, and the date âid="date"â.)
âcell(contents)â
Sets a table cell, i.e., one element in a row. With the man/ms converters multiple blanks between âcell()â macro calls are merged into a single blank character.
Instead of using âcellâ in âtableâ, consider using âtcâ in âtblâ.
âcells(nColumns)(contents)â
Set a table cell over ânColumnsâ columns. With LaTeX and xml the information in the combined cells is centered.
With man/ms conversions the âcells()â macro simply calls the âcell()â macro, but here the âsetmanalign()â macro can be used to determine the alignment of multiple cells.
With html the macro âattribâ can be used, but when it contains a âstyleâ specification the macroâs default âstyle="text-align: center"â is ignored (but it can optionally be specified using the âattribâ macro).
Instead of using âcellsâ in âtableâ, consider using âtncâ in âtblâ.
âcellsline(from)(count)â
Sets a horizontal line starting at column number âfromâ over âcountâ columns in a row. If âfromâ is less then the number of columns already added to a row then it is ignored. This macro must be embedded in a ârowâ macro defining a table row. To put a line across the tableâs full width use ârowlineâ. To set horizontal lines across columns 1 until 2 and columns 4 until 5 table of a table use:
row(cellsline(1)(2)cellsline(4)(2))
Combining âcellslineâ and âcellâ or âcellsâ calls in one row produces undefined results.
Instead of using âcellslineâ in âtableâ, consider using âtlineâ in âtblâ.
âcenter(text)â
Centers âtextâ. Use ânl()â in the text to break lines. In html the âattribâ macro is not supported, but a division (âdivâ) with style definition âtext-align: centerâ is used. To center a table in html use the âtableattâ macro. If a âtableâ or âtableattâ macro is used inside a âcenterâ macro then the contents of columns are column-wise centered.
Inside a âcenter(...)â context the counter âXXcenterâ is unequal 0.
âchapter(title)â
Starts a new chapter in books or reports.
âcindex()â
Generate an index entry for LaTex() or texinfo c-indices. Its argument is the index entry. See also the â[fptv]indexâ macro.
âcite(text)â
Sets âtextâ as a citation or quotation
âclearpage()â
Starts a new page, when the output format permits. Under HTML a horizontal line is drawn.
âcode(text)â
Sets âtextâ in code font, and prevents it from being expanded. For unbalanced parameter lists, use âCHAR(40)â to get â(â and âCHAR(41)â to get â)â.
âcolumnline(from)(through)â
Sets a horizontal line over some columns in a row. Note that âcolumnlineâ defines a row by itself, consisting of just a horizontal line spanning some of its columns, rather than the tableâs full width, like ârowlineâ. The two arguments represent column numbers. It is the responsibility of the author to make sure that the âfromâ and âthroughâ values are sensible. I.e.,
1 <= from <= through <= ncolumns
To set a horizontal line in just one column select âthroughâ equal to âfromâ.
Note : this macro cannot be used if multiple lines must be set in one row. In those cases the macros âtline, tskipâ, and âtendlineâ should be used.
Instead of using âcolumnlineâ in âtableâ, consider using âtlineâ in âtblâ.
âdashes()â
Inserts two dashes in teletype font, and prevents them from being expanded.
In html the âattribâ macro is recognized by the â<code>â tag that is used to embed the two dashes.
âdef(macroname)(nrofargs)(redefinition)â
Defines âmacronameâ as a macro, having ânrofargsâ arguments, and expanding to âredefinitionâ. This macro is a shorthand for âDEFINEMACROâ. An error occurs when the macro is already defined. Use âredef()â to unconditionally define or redefine a macro.
âdescription(list)â
Sets âlistâ as a description list. Use âdit(item)â to indicate items in the list.
âdit(itemname)â
Starts an item named âitemnameâ in a description list. The list should be used in âdescriptionâ macros. With âhtmlâ conversions the contents of a description item is separated from the item itself. The âditâ macro only defines the item, and not the description itself. This macro sets the item in bold-face (âstrongâ font). The macro âitdescâ, available since Yodl 3.05, can be used to defines an item and its description, using its suggested format (i.e., indenting the description relative to the item).
âeit()â
Indicates an item in an enumerated list. The âeitâ macro should be used as an argument in âenumerationâ macros.
âellipsis()â
Sets ellipsis (...).
âem(text)â
Sets âtextâ as emphasized, usually italics.
âemail(address)â
In HTML, this macro sets the âaddressâ in a â<a href="mailto=..">â locator. In other output formats, the âaddressâ is sent to the output. The âemailâ macro is a special case of âurlâ.
âenumeration(list)â
âenumeration()â starts an enumerated list. Use âeit()â in the list to indicate items in the list.
âeuro()â
Sets the euro currency symbol in latex, html, (and possibly sgml and xml). In all other conversions EUR which is the official textual abbreviation (cf. http://ec.europa.eu/euro/entry.html) is written. Note that LaTeX may require latexpackage()(eurosym).
âevalsymbol(symbol)(expression)â
Symbol symbol receives the value resulting from evaluating expression . E.g., if âsymâ is a defined symbol, then
evalsymbol(sym)(SUBSTR(hello world)(3)(2))
assigns the value âloâ to âsymâ.
âfig(label)â
This macro is a shorthand for âfigure ref(label)â and just makes the typing shorter, as in âsee fig(schematic) for ..â See âgetfigurestring()â and âsetfigurestring()â for the âfigureâ text.
âfigure(file)(caption)(label)â
Sets the picture in âfileâ as a figure in the current document, using the descriptive text âcaptionâ. The âlabelâ is defined as a placeholder for the figure number and can be used in a corresponding ârefâ statement. Note that the âfileâ must be the filename without extension: By default, Yodl will supply â.gifâ when in HTML mode, or â.psâ when in LaTeX mode. Figures in other modes may not (yet) haven been implemented.
When converting to html, this macro uses three attribute-strings (if available). The string pushed first using an attrib-call defines the attributes for its â<figcaption>â html-markup; the string pushed next defines the attributes for its â<img>â html-markup; the string pushed last defines the attributes for its â<figure>â html-markup. The âfigureâ macroâs html output is organized like this:
<figure
-attrib-string pushed last (if any)>
<img ... -attrib-string pushed last but one>
<figcaption -attrib-string pushed 2nd to last>
...
</figcaption>
</figure>
Starting with Yodl 3.07.00 no âalt="Figure # is shown here..."â attribute is defined anymore for the âimgâ markup: an âaltâ-attribute can easily be defined at the last attrib-call, using âgetfigurestring()â to obtain âFigureâ or its language-specific translation, and âCOUNTERVALUE(XXfigurecounter)â to obtain the order-number of the figure shown in the next âfigureâ-macro call.
âfile(text)â
Sets âtextâ as filename, usually boldface. In html âattribâ macro applies to the â<strong>â tag.
âfindex()â
Generate an index entry for LaTex() or texinfo f-indices. Its argument is the index entry. See also the â[cptv]indexâ macro.
âfootnote(text)â
Sets âtextâ as a footnote, or between parentheses when the output format does not allow footnotes.
âgagmacrowarning(name name ...)â
Prevents the âyodlâ program from printing cannot expand possible user macro . E.g., if you have in your document âthe file(s) are ..â then you might want to put before that: âgagmacrowarning(file)â. Calls âNOUSERMACROâ.
âgetaffilstring()â
Expands to the string that defines the name of Affiliation Information , by default AFFILIATION INFORMATION . Can be redefined for national language support by âsetaffilstring()â. Currently, it is relevant only for txt.
âgetauthorstring()â
Expands to the string that defines the name of Author Information , by default AUTHOR INFORMATION . Can be redefined for national language support by âsetauthorstring()â. Currently, it is relevant only for txt.
âgetchapterstring()â
Expands to the string that defines a âchapterâ entry, by default Chapter . Can be redefined for national language support by âsetchapterstring()â.
âgetdatestring()â
Expands to the string that defines the name of Date Information , by default DATE INFORMATION . Can be redefined for national language support by âsetdatestring()â. Currently, it is relevant only for txt.
âgetfigurestring()â
Returns the string that defines a âfigureâ text, in captions or in the âfig()â macro. The string can be redefined using the âsetfiguretext()â macro.
âgetpartstring()â
Expands to the string that defines a âpartâ entry, by default Part . Can be redefined for national language support by âsetpartstring()â.
âgettitlestring()â
Expands to the string that defines the name of Title Information , by default TITLE INFORMATION . Can be redefined for national language support by âsettitlestring()â. Currently, it is relevant only for txt.
âgettocstring()â
Expands to the string that defines the name of the table of contents, by default Table of Contents . Can be redefined for national language support by âsettocstring()â.
âhtmlcommand(cmd)â
Writes âcmdâ to the output when converting to html. The âcmdâ is not further expanded by Yodl.
âhtmlheadfile(file)â
Adds the contents of âfileâ to the âheadâ section of an HTML document. The contents of file are not interpreted and should contain plain html text. This option can be useful when large bodies of text, like the contents of â<script>â sections, must be included into the head section of html documents. This macro is only active in the preamble, should only specified once, and is only interpreted for html conversions.
âhtmlheadopt(option)â
Adds the literal text âoptionâ to the current information in the âheadâ section of an HTML document. âOptionâ may (or: should) contain plain html text. A commonly occurring head option is âlinkâ, defining, e.g., a style sheet. Since that option is frequently used, it has received a dedicated macro: âhtmlstylesheetâ. When large bodies of html-text must be added to html documents the macro âhtmlheadfileâ should be used. This macro is only active in the preamble and is only interpreted for html conversions.
âhtmlnewfile()â
In HTML output, starts a new file. All other formats are not affected. Note that you must take your own provisions to access the new file; say via links. Also, itâs safe to start a new file just befoore opening a new section, since sections are accessible from the clickable table of contents. The HTML converter normally only starts new files prior to a âchapterâ definition.
âhtmlstyle(tag)(definition)â
Adds a â<style
type="text/css"> ... </style>â
element to the head section of an HTML document.
Use âhtmlstyleâ to specify one or more CSS
definitions which are eventually inserted at the ellipsis
(â...â) in the generic âstyleâ
definition shown above. E.g., (using â#rrggbbâ
to specify a color, where ârrâ are two
hexadecimal digits specifying the colorâs red
component, âggâ two hexadecimal digits
specifying the colorâs green component, and
âbbâ two hexadecimal digits specifying the
colorâs blue component) specifying
htmlstyle(body)(color:
#rrggbb; background-color: #rrggbb)
htmlstyle(h1)(color: blue; text-align: center)
htmlstyle(h2)(color: green)
results in the element
<style
type="text/css">
body {color: #rrggbb; background-color: #rrggbb;}
h1 {color: blue; text-align: center;}
h2 {color: green;}
</style>
The macros âhtmlheadoptâ and âhtmlstylesheetâ could also be used to put information into the head-section of an HTML document, but âhtmlheadoptâ is of a much more general nature, while âhtmlstylesheetâ refers to CSS elements stored in an external file. The macro âattribâ can be used to define inline styles .
The
âhtmlstyleâ macro is only active in the preamble
and is only interpreted for html conversions.
Refer to available CSS specifications (cf.,
http://www.w3schools.com/cssref/ for an overview of how CSS
specifications are used, and which CSS specifications are
available).
By default the
internal style specification
âfigure {text-align: center;} img {vertical-align:
center;}â
is used. If this is not appropriate, specify
ânohtmlimgstyle()â in the preamble.
âhtmlstylesheet(url)â
Adds a â<link rel="stylesheet" type="text/css" ...>â element to the head section of an HTML document, using âurlâ in its âhrefâ field. The argument âurlâ is not expanded, and should be plain HTML text, without surrounding quotes. The macro âhtmlheadoptâ can also be used to put information in the head-section of an HTML document, but âhtmlheadoptâ is of a much more general nature. This macro is only active in the preamble and is only interpreted for html conversions.
âhtmltag(tagname)(start)â
Sets âtagnameâ as a HTML tag, enclosed by â<â and â>â. When âstartâ is zero, the âtagnameâ is prefixed with â/â. As not all html tags are available through predefined Yodl-macros (there are too many of them, some are used very infrequently, and you can easily define macros for the tags for which Yodl doesnât offer predefined ones), the âhtmltagâ macro can be used to handle your own set of macros. In html the âattribâ macro is supported. E.g.,
attrib(title="World Health Organization") htmltag(abbr)()WHO+htmltag(abbr)(0)
âifnewparagraph(truelist)(falselist)â
The macro âifnewparagraphâ should be called from the âPARAGRAPHâ macro, if defined. It will insert âtruelistâ if a new paragraph is inserted, otherwise âfalselistâ is inserted (e.g., following two consecutive calls of PARAGRAPH). This macro can be used to prevent outputting multiple blank lines.
âincludefile(file)â
Includes âfileâ. The default extension â.yoâ is supplied if necessary.
Since Yodl version 3.00.0 Yodlâs default file inclusion behavior has changed. The current working directory no longer remains fixed at the directory in which Yodl is called, but is volatile, changing to the directory in which a yodl-file is located. This has the advantage that Yodlâs file inclusion behavior now matches the way C âs â#includeâ directive operates. The originally implemented file inclusion behavior is used when Yodlâs â-Lâ (â--legacy-includeâ) option is used.
âincludeverbatim(file)â
Include âfileâ into
the output. No processing is done, âfileâ should
be in preformatted form, e.g.:
whenhtml(includeverbatim(foo.html))
|
âit()â |
Indicates an item in an itemized list. Items in âitâ macros are arguments of âitemizationâ macros. |
âitdesc(itemname)(contents)â
Starts an item and its description in a description list. Its name is âitemnameâ, the contents of the item is defined by âcontentsâ. The âitemnameâ is defined by using the âditâ macro.
With âhtmlâ conversions the contents are surrounded by â<dd>â and â</dd>â tags, resulting in contents which are indented relative to the itemname. When the âattribâ macro is used it is applied to the itemname (âdtâ-tags).
With other conversions the âcontentsâ are quoted (as if using âquote(contents)â).
âitemization(list)â
Sets âlistâ as an itemizationd list. Use âit()â to indicate items in the list.
âkindex()â
Generate an index entry for LaTex() or texinfo k-indices. Its argument is the index entry. See also the â[cfptv]vindexâ macro.
âlabel(labelname)â
Defines âlabelnameâ as an anchor for a âlinkâ command, or to stand for the last numbering of a section or figure in a ârefâ command.
âlangle()â
Character <
âlanguagedutch()â
Defines the Dutch-language specific headers. Active this macro via setlanguage(dutch).
âlanguageenglish()â
Defines the English-language specific headers. Active this macro via setlanguage(english).
âlanguageportugese()â
Defines the Portugese-language specific headers. Active this macro via setlanguage(portugese).
âLaTeX()â
The LaTeX symbol.
âlatexaddlayout(arg)â
This macro is provided to add Yodl-interpreted text to your own LaTeX layout commands. The command is terminated with an end-of-line. See also the macro âlatexlayoutcmds()â
âlatexcommand(cmd)â
Writes âcmdâ plus a white space to the output when converting to LaTeX. The âcmdâ is not further expanded by Yodl.
âlatexdocumentclass(class)â
Forces the LaTeX â\documentclass{...}â setting to âclassâ. Normally the class is defined by the macros âarticleâ, âreportâ or âbookâ. This macro is an escape route in case you need to specify your own document class for LaTeX. This option is a modifier and must appear before the âarticleâ, âreportâ or âbookâ macros.
âlatexlayoutcmds(NOTRANSs)â
This macro is provided in case you want to put your own LaTeX layout commands into LaTeX output. The âNOTRANSsâ are pasted right after the â\documentclassâ stanza. The default is, of course, no local LaTeX commands. Note that this macro does not overrule my favorite LaTeX layout. Use ânosloppyhfuzz()â and âstandardlayout()â to disable my favorite LaTeX layout.
âlatexoptions(options)â
Set latex options: âdocumentclass[options]â. This command must appear before the document type is stated by âarticleâ, âreportâ, etc..
âlatexpackage(options)(name)â
Include latex package(s), a useful package is, e.g., âepsfâ. This command must appear before the document type is stated by âarticleâ, âreportâ, etc..
âlchapter(label)(title)â
Starts a new chapter in books or reports, setting a label at the beginning of the chapter.
âletter(language)(date)(subject)(opening)(salutation)(author)â
Starts a letter written in the indicated language. The date of the letter is set to âdateâ, the subject of the letter will be âsubjectâ. The letter starts with âopeningâ. It is based on the âletter.clsâ document class definition. The macro is available for LaTeX only. Preamble command suggestions:
|
o |
âlatexoptions(11pt)â |
||
|
o |
âa4enlarged()â |
||
|
o |
âletterreplyto(name)(address)(postalcode/city)â |
||
|
o |
âletterfootitem(phone)(number)â, maybe e-mail too. |
||
|
o |
âletteradmin(yourdate)(yourref)â |
||
|
o |
âletterto(addressitem)â. Use a separate âletterto()â macro call for each new line of the address. |
âletteraddenda(type)(value)â
Adds an addendum at the end of a letter. âtypeâ should be âbijlagenâ, âccâ or âpsâ.
âletteradmin(yourdate)(yourref)â
Puts âyourletterfromâ and âyourreferenceâ elements in the letter. If left empty, two dashes are inserted.
âletterfootitem(name)(value)â
Puts a footer at the bottom of letter-pages. Up to three will usually fit. LaTeX only.
âletterreplyto(name)(address)(zip city)â
Defines the âreply toâ address in LaTeX or txt-letters.
âletterto(element)â
Adds âelementâ as an additional line to the address in LaTeX letters.
âlink(description)(labelname)â
In HTML output a clickable link with the text âdescriptionâ is created that points to the place where âlabelnameâ is defined using the âlabelâ macro, and âattribâ macro applies to the â<a>â tag. Using âlinkâ is similar to âurlâ, except that a hyperlink is set pointing to a location in the same document. For output formats other than HTML, only the âdescriptionâ appears.
âlref(description)(labelname)â
This macro is a combination of the ârefâ and âlinkâ macros. In HTML output a clickable link with the text âdescriptionâ and the label value is created that points to the place where âlabelnameâ is defined using the âlabelâ macro, and âattribâ macro applies to the â<a>â tag. For output formats other than HTML, only the âdescriptionâ and the label value appears.
âlsect(label)(title)â
Starts a new section, setting a label at the beginning of the section. In html âattribâ macro applies to the â<h2>â tag.
âlsubsect(label)(title)â
Starts a new subsection. Other sectioning commands are âsubsubsectâ and âsubsubsubsectâ. A label is added just before the subsection. In html âattribâ macro applies to the â<h3>â tag.
âlsubsubsect(label)(title)â
Starts a sub-subsection, a label is added just before the section In html âattribâ macro applies to the â<h4>â tag.
âlsubsubsubsect(label)(title)â
Starts a sub-sub-sub section. This level of sectioning is not numbered, in contrast to âhigherâ sectionings. A label is added just before the subsubsubection.
âlurl(locator)â
An url described by its Locator. For small urls with readable addresses.
âmailto(address)â
Defines the default âmailtoâ address for HTML output. Must appear before the document type is stated by âarticleâ, âreportâ, etc..
âmakeindex()â
Make index for latex.
âmancommand(cmd)â
Writes âcmdâ to the output when converting to man. The âcmdâ is not further expanded by Yodl.
âmanpage(title)(section)(date)(source)(manual)â
Starts a manual page document. The âsectionâ argument must be a number, stating to which section the manpage belongs to. Most often used are commands (1), file formats (5) and macro packages (7). The sectioning commands in a manpage are not â(n)sectâ etc., but âmanpage...()â. The first section must be the âmanpagenameâ, the last section must be the âmanpageauthorâ. The standard manpage for section 1 contains the following sections (in the given order): âmanpagenameâ, âmanpagesynopsisâ, âmanpagedescriptionâ, âmanpageoptionsâ, âmanpagefilesâ, âmanpageseealsoâ, âmanpagediagnosticsâ, âmanpagebugsâ, âmanpageauthorâ. Optional extra sections can be added with âmanpagesectionâ. Standard manpageframes for several manpagesections are provided in â/usr/local/share/yodl/manframesâ. YODL manual pages can be converted to âgroff, htmlâ, or plain ascii text formats.
âmanpageauthor()â
Starts the AUTHOR entry in a âmanpageâ document. Must be the last section of a âmanpageâ.
âmanpagebugs()â
Starts the BUGS entry in a âmanpageâ document.
âmanpagedescription()â
Starts the DESCRIPTION entry in a âmanpageâ document.
âmanpagediagnostics()â
Starts the DIAGNOSTICS entry in a âmanpageâ document.
âmanpagefiles()â
Starts the FILES entry in a âmanpageâ document.
âmanpagename(name)(short description)â
Starts the NAME entry in a âmanpageâ document. The short description is used by, e.g., the âwhatisâ database.
âmanpageoptions()â
Starts the OPTIONS entry in a âmanpageâ document.
âmanpagesection(SECTIONNAME)â
Inserts a non-required section named âSECTIONNAMEâ in a âmanpageâ document. This macro can be used to augment âstandardâ manual pages with extra sections, e.g., EXAMPLES. Note that the name of the extra section should appear in upper case, which is consistent with the normal typesetting of manual pages.
âmanpageseealso()â
Starts the SEE ALSO entry in a âmanpageâ document.
âmanpagesynopsis()â
Starts the SYNOPSIS entry in a âmanpageâ document.
âmanttquoted(onOff)â
With man-conversions arguments of tt macros are displayed as normal text. To enhance their visibility arguments of tt macros may be quoted, in which case they are surrounded by backtics and normal quotes. By default arguments of tt macros are not quoted. Quotation is used after calling âmanttquoted(1)â, and is suppressed after calling âmanttquoted(0)â. The macro is only active when converting to man.
âmbox()â
Unbreakable box in LaTeX. Other formats may have different opitions on our unbreakable boxex.
âmetaC(text)â
Put a line comment in the output.
âmetaCOMMENT(text)â
Write format-specific comment to the output.
âmscommand(cmd)â
Writes âcmdâ to the output when converting to ms. The âcmdâ is not further expanded by Yodl.
ânbsp(count)â
Inserts âcountâ ânon-breaking spaceâ characters into the generated output; i.e., the space character is not optimized away. If the argument list is empty one non-breaking space is inserted.
ânchapter(title)â
Starts a chapter (in a âbookâ or âreportâ) without generating a number before the title and without placing an entry for the chapter in the table of contents. In html âattribâ macro applies to the â<h1>â tag.
ânemail(name)(address)â
Named email. A more consistent naming for url, lurl, email and nemail would be nice.
|
ânl()â |
Forces a newline; i.e., breaks the current line in two. |
ânodeprefix(text)â
Prepend text to node names,
e.g.
nodeprefix(LilyPond) sect(Overview)
Currently used in texinfo descriptions only.
ânodeprefix(text)â
Prepend text to node names,
e.g.
nodeprefix(LilyPond) sect(Overview)
Currently used in texinfo descriptions only.
ânodetext(text)â
Use text as description for the
next node, e.g.
nodetext(The GNU Music Typesetter)chapter(LilyPond)
Currently used in texinfo descriptions only.
ânohtmlfive()â
Starting yodl 3.05 html-conversions by default use html5. This can be suppressed (in favor of using html4) by calling this macro. This macro merely suppresses writing the initial â<!DOCTYPE html>â to generated html files; it is only active in the preamble and is only interpreted for html conversions.
ânohtmlimgstyle()â
By default html-pages specify
â(<style type="text/css" img
{vertical-align: bottom;}></style>)â
This macro suppresses this âimgâ CSS style
specification. This macro is only active in the preamble and
is only interpreted for html conversions.
ânop(text)â
Expand to text, to avoid spaces before macros e.g.: a. Although a+sups(2) should have the same effect.
ânosloppyhfuzz()â
By default, LaTeX output contains commands that cause it to shut up about hboxes that are less than 4pt overfull. When ânosloppyhfuzz()â appears before stating the document type, LaTeX complaints are âvanillaâ.
ânotableofcontents()â
Prevents the generation of a table of contents. This is default in, e.g., âmanpageâ and âplainhtmlâ documents. When present, this option must appear before stating the document type with âarticleâ, âreportâ etc..
ânotitleclearpage()â
Prevents the generation of a âclearpage()â instruction after the typesetting of title information. This instruction is default in all non âarticleâ documents. When present, must appear before stating the document type with âarticleâ, âbookâ or âreportâ.
ânotocclearpage()â
With the LaTeX converter, no âclearpage()â instruction is inserted immediately beyond the documentâs table of contents. The âclearpage()â instruction is default in all but the âarticleâ document type. When present, must appear before stating the document type with âarticleâ, âbookâ or âreportâ. With other converters than the LaTeX converter, it is ignored.
ânotransinclude(filename)â
Reads filename and inserts it literally in the text not subject to macro expansion or character translation. No information is written either before or after the fileâs contents, not even a newline.
ânoxlatin()â
When used in the preamble, the LaTeX converter disables the inclusion of the file âxlatin1.texâ. Normally this file gets included in the LateX output files to ensure the conversion of high ASCII characters (like e) to LaTeX-understandable codes. (The file âxlatin1.texâ comes with the YODL distribution.)
ânparagraph(title)â
Starts a non-numbered paragraph (duh, corresponds to subparagraph in latex).
ânpart(title)â
Starts a part in a âbookâ document, but without numbering it and without entering the title of the part in the table of contents. In html âattribâ macro applies to the â<h1>â tag.
ânsect(title)â
Starts a section, but does not generate a number before the âtitleâ nor an entry in the table of contents. Further sectioning commands are ânsubsectâ, ânsubsubsectâ and ânsubsubsubsectâ. In html âattribâ macro applies to the â<h2>â tag.
ânsubsect(title)â
Starts a non-numbered subsection. In html the âattribâ macro applies to the â<h3>â tag.
ânsubsubsect(title)â
Starts a non-numbered sub-sub section. In html âattribâ macro applies to the â<p>â tag.
ânsubsubsect(title)â
Starts a non-numbered sub-subsection.
âparagraph(title)â
Starts a paragraph. This level of sectioning is not numbered, in contrast to âhigherâ sectionings (duh, corresponds to subparagraph in latex). In html âattribâ macro applies to the â<p>â tag.
âpart(title)â
Starts a new part in a âbookâ document. In html âattribâ macro applies to the â<h1>â tag.
âpindex()â
Generate an index entry for LaTex() or texinfo p-indices. Its argument is the index entry. See also the â[cftv]indexâ macro.
âplainhtml(title)â
Starts a document for only a plain HTML conversion. Not available in other output formats. Similar to âarticleâ, except that an author- and date field are not needed.
âprintindex()â
Make index for texinfo (?).
âquote(text)â
Sets the text as a quotation. Usually, the text is indented, depending on the output format. In html the âattribâ macro is recognized by the â<blockquote>â tag.
ârangle()â
Inserts the right angle character (>).
âredef(macro)(nrofargs)(redefinition)â
Defines macro âmacroâ to expand to âredefinitionâ. Similar to âdefâ, but any pre-existing definition is overruled. Use âARGâ x in the redefinition part to indicate where the arguments should be pasted. E.g., âARG1â places the first argument, âARG2â the second argument, etc...
âredefinemacro(macro)(nrofargs)(redefinition)â
Defines macro âmacroâ to expand to âredefinitionâ. Similar to âdefâ, but any pre-existing definition is overruled. Use âARGâ x in the redefinition part to indicate where the arguments should be pasted. E.g., âARG1â places the first argument, âARG2â the second argument, etc... This commands is actually calling redef().
âref(labelname)â
Sets the reference for âlabelnameâ. Use âlabelâ to define a label.
âreport(title)(author)(date)â
Starts a report type document. The top-level sectioning command in a report is âchapterâ. In html the way the headings are displayed can be tuned using CSS id selector specifications: the title has âid="title"â, the author âid="author"â, and the date âid="date"â.
âroffcmd(dotcmd)(sameline)(secondline)(thirdline)â
Sets a t/nroff command that starts with a dot, on its own line. The arguments are: âdotcmdâ - the command itself, e.g., â.IPâ; âsamelineâ - when not empty, âsamelineâ is set on the same line, following the âdotcmdâ; âsecondlineâ - when not empty, is set on the next line; âthirdlineâ - when not empty, is set on the third line. Note: âdotcmdâ and âthirdlineâ are not further expanded by YODL, the other arguments are.
ârow(contents)â
The argument âcontentsâ may contain a man-page alignment specification (only one specification can be entered per row), using âsetmanalign()â. If omitted, the standard alignment is used. Furthermore it contains the contents of the elements of the row, using âcell()â or âcells()â macros. If âcells()â is used, âsetmanalign()â should have been used too. In this macro call only the âcell()â, âcells()â and âsetmanalign()â macros should be called. Any other macro call may produce unexpected results.
The ârowâ macro defines a counter âXXcolâ that can be inspected and is incremented by predefined macros adding columns to a row. The counter is initially 0. Predefined macros adding columns to a row add the number of columns they add to the row inserting the contents of those columns. These macros rely on the correct value of this counter and any user-defined macros adding columns to table rows should correctly update âXXcolâ. In html âattribâ macro applies to the â<tr>â tag.
Instead of using ârowâ in âtableâ, consider using âtrâ in âtblâ.
ârowline()â
Sets a horizontal line over the full width of the table. See also the âcolumnlineâ macro. Use ârowlineâ instead of a ârowâ macro call to provide a table with a horizontal line-separator.
Instead of using ârowlineâ consider using âtlineâ in a âtblâ argument.
âsc(text)â
Set âtextâ in the tt (code) font, using small caps. In html the âattribâ macro is not supported, while the code section is embedded in a â<div style="font-size: 90%">â section.
âsect(title)â
Starts a new section. In html the âattribâ macro is recognized by the â<h2>â tag.
âsetaffilstring(name)â
Defines ânameâ as the âaffiliation informationâ string, by default AFFILIATION INFORMATION . E.g., after âsetaffilstring(AFILIACION)â, YODL outputs this Spanish string to describe the affiliation information. Currently, it is relevant only for txt.
âsetauthorstring(name)â
Defines ânameâ as the âAuthor informationâ string, by default AUTHOR INFORMATION . E.g., after âsetauthorstring(AUTOR)â, YODL outputs this portuguese string to describe the author information. Currently, it is relevant only for txt.
âsetchapterstring(name)â
Defines ânameâ as the âchapterâ string, by default Chapter . E.g., after âsetchapterstring(Hoofdstuk)â, YODL gains some measure of national language support for Dutch. Note that LaTeX support has its own NLS, this macro doesnât affect the way LaTeX output looks.
âsetdatestring(name)â
Defines ânameâ as the âdate informationâ string, by default DATE INFORMATION . E.g., after âsetdatestring(DATA)â, YODL outputs this portuguese string to describe the date information. Currently, it is relevant only for txt.
âsetfigureext(name)â
Defines the ânameâ as the âfigureâ extension. The extension should include the period, if used. E.g., use setfigureext(.ps) if the extensions of the figure-images should end in â.psâ
âsetfigurestring(name)â
Defines the ânameâ as the âfigureâ text, used e.g. in figure captions. E.g., after âsetfigurestring(Figuur)â, Yodl uses Dutch names for figures.
âsethtmlfigureext(ext)â
Defines the filename extension for HTML figures, defaults to â.jpgâ. Note that a leading dot must be included in âextâ. The new extension takes effect starting with the following usage of the âfigureâ macro. It is only active in html, but otherwise acts identically as setfigureext().
See also the âsetlatexfigureextâ macro.
âhtmlmetacharset(meta-charset)â
Adds â<meta charset="meta-charset">â to the head of html documents. By default â<meta charset="UTF-8">â is used. This macro is only active in the preamble and is only interpreted for html conversions.
âsetincludepath(name)â
Sets a new value of the include-path specification used when opening .yo files. A warning is issued when the path specification does not include a .: element. Note that the local directory may still be an element of the new include path, as the local directory may be the only or the last element of the specification. For these eventualities the new path specification is not checked.
âsetlanguage(name)â
Installs the headers specific to a language. The argument must be the name of a language, whose headers have been set by a corresponding languageXXX() call. For example: languagedutch(). The language macros should set the names of the headers of the following elements: table of contents, affiliation, author, chapter, date, figure, part and title
âsetlatexalign(alignment)â
This macro defines the table alignment used when setting tables in LaTeX. Use as many âlâ (for left-alignment), ârâ (for right alignment), and âcâ (for centered-alignment) characters as there are columns in the table. See also âtable()â.
Instead of using the âtableâ macro consider using the âtblâ macro.
âsetlatexfigureext(ext)â
Defines the filename extension for encapsulated PostScript figures in LaTeX, defaults to â.psâ. The dot must be included in t new extension âextâ. The new extension takes effect starting with a following usage of the âfigureâ macro. It is only active in LaTeX, but otherwise acts identically as setfigureext().
See also the âsethtmlfigureextâ macro.
âsetlatexverbchar(char)â
Set the char used to quote LaTeX \verb sequences
âsetmanalign(alignment)â
This macro defines the table alignment in the context of the âtableâ macro, and is used when setting tables in man-pages (see tbl (1)).
Use as many âlâ (for left-alignment), ârâ (for right alignment), and âcâ (for centered-alignment) characters as there are columns in the table.
Use âsâ to indicate that the column to its left is combined (spans into) the current column. Use this specification when cells spanning multiple columns must be defined.
Each row in a table which must be convertible to a manpage may be preceded by its own âsetmanalignâ call.
Note that neither ârowlineâ nor âcolumnlineâ requires âsetmanalignâ specifications, as these macros define rows by themselves. It is the responsibility of the author to ensure that the number of alignment characters is equal to the number of columns of the table.
Instead of using the âtableâ macro consider using the âtblâ macro.
âsetpartstring(name)â
Defines ânameâ as the âpartâ string, by default Part . E.g., after âsetpartstring(Teil)â, Yodl identifies parts in the German way. Note that LaTeX output does its own national language support; this macro doesnât affect the way LaTeX output looks.
âsetrofftab(x)â
Sets the character separating items in a line of input data of a âroffâ (manpage) table. By default it is set to âËâ. This separator is used internally, and needs only be changed (into some unique character) if the table elements themselves contain âËâ characters.
This macro can be used in the context of the âtableâ and âtblâ macros.
âsetrofftableoptions(optionlist)â
Set options used for man-conversion, as used by the âtblâ and âtableâ macros. By default no options are used. Multiple options should be separated by blanks. From the tbl (1) manpage, the following options are available:
|
o |
âcenterâ Centers the table; default is left-justified. In the context of the âtblâ macro this is implied when the âtblâ macro is specified as argument of the âcenterâ macro. |
||
|
o |
âexpandâ Makes the table as wide as the current line length |
||
|
o |
âboxâ Encloses the table in a box |
||
|
o |
âallboxâ Encloses each item of the table in a box |
See also âsetrofftabâ which is used to set the character separating items in a line of input data.
âsettitlestring(name)â
Defines ânameâ as the âtitle informationâ string, by default TITLE INFORMATION . E.g., after âsettitlestring(TITEL)â, YODL outputs this Dutch string to describe the title information. Currently, it is relevant only for txt.
âsettocstring(name)â
Defines ânameâ as the âtable of contentsâ string, by default Table of Contents . E.g., after âsettocstring(Inhalt)â, YODL identifies the table of contents in the German way. Note that LaTeX output does its own national language support; this macro doesnât affect the way LaTeX output looks.
âsgmlcommand(cmd)â
Writes âcmdâ to the output when converting to sgml. The âcmdâ is not further expanded by Yodl.
âsgmltag(tag)(onoff)â
Similar to âhtmltagâ, but used in the SGML converter.
âsloppyhfuzz(points)â
By default, LaTeX output contains commands that cause it to shut up about hboxes that are less than 4pt overfull. When âsloppyhfuzz()â appears before stating the document type, LaTeX complaints occur only if hboxes are overfull by more than âpointsâ.
âstandardlayout()â
Enables the default LaTeX layout. When this macro is absent, then the first lines of paragraphs are not indented and the space between paragraphs is somewhat larger. The âstandardlayout()â directive must appear before stating the document type as âarticleâ, âreportâ, etc..
âstrong(contents)â
In html and xml the âcontentsâ are set between â<strong>â and â</strong>â tags. In html âattribâ macro applies to the â<strong>â tag.
âsubs(text)â
Sets text in subscript in supporting formats. In html the âattribâ macro is recognized by the â<sub>â tag.
For super scripting, the âsupsâ macro can be used.
âsubsect(title)â
Starts a new subsection. Other sectioning commands are âsubsubsectâ and âsubsubsubsectâ. In html âattribâ macro applies to the â<h3>â tag.
âsubsubsect(title)â
Starts a sub-subsection. In html âattribâ macro applies to the â<h4>â tag.
âsubsubsubsect(title)â
Starts a sub-sub-sub-subsection. This level of sectioning is not numbered, in contrast to âhigherâ sectionings.
âsups(text)â
Sets text in superscript in supporting formats In html the âattribâ macro is recognized by the â<sup>â tag.
For sub scripting, the âsubsâ macro can be used.
âtable(nColumns)(alignment)(Contents)â
Instead of using the âtableâ macro, consider using the âtblâ macro.
The âtable()â-macro defines a table. Its first argument specifies the number of columns in the table.
Its second argument specifies the (standard) alignment of the information within the cells as used by LaTeX or man/ms. Use âlâ for left-alignment, âcâ for centered-alignment and ârâ for right alignment.
Its third argument defines the contents of the table which are the rows, each containing column-specifications and optionally man/ms alignment definitions for this row.
See also the âtableattâ macro and the specialized âsetmanalign()â macro.
âtableatt(nColumns)(alignment)(Contents)â
Instead of using the âtableattâ macro, consider using the âtblâ macro.
The âtableatt()â-macro defines a table. The last âattribâ call that was specified before using the âtableatt()â-macro is used to specify html attributes for the table. E.g., to center a table in html use
attrib(style="margin-left:auto;margin-right:auto;")
tableatt(...)
The macroâs first argument specifies the number of columns in the table. Its second argument specifies the (standard) alignment of the information within the cells as used by LaTeX or man/ms. Use âlâ for left-alignment, âcâ for centered-alignment and ârâ for right alignment. Its third argument defines the contents of the table which are the rows, each containing column-specifications and optionally man/ms alignment definitions for this row.
See also the âtableâ macro and the specialized âsetmanalign()â macro.
âtac(alignment)(contents)â
This macro is one of the four macros that can be used to define column contents of rows of tables defined by the âtblâ macro. Alternatively, âtc, tncâ, and âtnacâ can be used.
The âtacâ macro is used as argument of the âtrâ macro. The cellâs alignment is defined by the âalignmentâ specification, containing at most two alignment specifications: a horizontal alignment (one of c, l, r (centered, left-aligned, right-aligned)) and a vertical alignment (one of t, b (vertical top- and bottom-alignment)) (not all conversion types may support all alignment types, e.g., man-conversion does not support vertical bottom alignment). Specifications other than c, l, r, b, and t and specifications beyond the second one are ignored. The result of specifying conflicting alignment types (e.g., âlrâ or âtbâ) is not defined.
When converting to âmanâ, if the tableâs contents should span multiple rows, then a groff/troff (1) text block must be used. Since most tables do not use this, a text block is not generated by default. To actually wrap the contents of column elements in a text block while converting to âmanâ prefix the first text block requiring a text-block wrapping by âtwrap(1)â, and end the last text block requiring a text-block wrapping by âwrap(0)â.
The âtaoâ macro can be used to overrule the specified alignment for a specific conversion type.
The macro âtacâ recognizes âattribâ.
âtao(type)(specification)â
This macro is used inside the âtblâ macro to override the alignment specification that would otherwise be used for the next table element. It is only active for the next âtc, tnc, tac,â or âtnacâ call. Its first argument defines the conversion type for which the override should be used, its second argument defines the alignment specification to use.
Here are some examples:
tbl(lr)(
tr(
tc(left aligned)
tc(right aligned)
)
tr(
tao(html)(c)
tc(left aligned, centered with html)
tao(latex)(l)
tao(man)(l)
tac(c)(centered, latex and man: left aligned)
)
)
Further details about the âtaoâ macro are provided in the yodltables (7) man-page.
âtbl(align)(contents)â
The âtblâ macro refines the more basic âtableâ macro. It was named after the tbl (1) table formatting program used with troff (1) documents.
The âtblâ macro currently is available for âhtml, man/ms, latexâ and âtxtâ conversions.
Its first argument defines the alignment of the information in the tableâs columns, and is used by all conversions except âtxtâ. Use âlâ for left-alignment, âcâ for centered-alignment and ârâ for right-alignment. Individual cells of the table may override these default settings using the macros âtacâ and âtnacâ.
Its second argument defines the contents of the table consisting of rows (using âtrâ), and horizontal lines (using âtlineâ), which may extend over the full table width or may cover one or more individual columns. With âtxtâ conversion rough approximations of horizontal lines are used.
Tables defined by the âtblâ macro are centered (pseudo centering (8 space characters) is used for âtxtâ conversion) when used as argument of the âcenterâ macro.
See also the âtaoâ macro for information about how to realize specific alignments for specific conversion types.
When defining âtblâ tables it is advised to clearly layout the table specification. To avoid inadvertently introducing new lines lines should end in a backslash (or The macro âtblâ recognizes âattribâ.
âtc(contents)â
This macro is one of the four macros that can be used to define column contents of rows of tables defined by the âtblâ macro. Alternatively, âtnc, tacâ, and âtnacâ can be used.
The âtcâ macro is used as argument of the âtrâ macro. Its order within a row defines its type attribute, using the alignment specification defined by the first argument of the âtblâ call. E.g., if âtbl(clr)(...)â was used, then the contents of the first âtcâ call in a âtrâ is centered in the tableâs first column; the contents of the second âtcâ call is left-aligned in the tableâs second column; and the contents of the third âtcâ call is right-aligned in the tableâs third column.
When converting to âmanâ, if the tableâs contents should span multiple rows, then a groff/troff (1) text block must be used. Since most tables do not use this, a text block is not generated by default. To actually wrap the contents of column elements in a text block while converting to âmanâ prefix the first text block requiring a text-block wrapping by âtwrap(1)â, and end the last text block requiring a text-block wrapping by âwrap(0)â.
The âtaoâ macro can be used to overrule the default alignment specification for a specific conversion type.
The macro âtcâ recognizes âattribâ.
âtcell(text)â
Roff helper to set a table text-cell, i.e., a paragraph. For LaTeX special table formatting p{} should be used.
When using the âtblâ macro for defining tables the âtwrapâ macro can be used to set table elements in text-blocks (i.e., enclosing text, possibly containing newlines in âT{â and âT}â sequences).
âtelycommand(cmd)â
Writes âcmdâ to the output when converting to tely. The âcmdâ is not further expanded by Yodl.
âTeX()â
The TeX symbol.
âtexinfocommand(cmd)â
Writes âcmdâ to the output when converting to texinfo. The âcmdâ is not further expanded by Yodl.
âtindex()â
Generate an index entry for LaTex() or texinfo t-indices. Its argument is the index entry. See also the â[cfpv]indexâ macro.
âtitleclearpage()â
Forces a new page (using âclearpageâ) following the title of a document. This is already the default in books and reports, but can be overruled using ânotitleclearpageâ. When present, it must appear in the preamble , i.e., before the document type is stated as article, book or report.
âtline(beginNr)(endNr)â
This macro is used to insert a horizontal line spanning one or more columns of a table defined by the âtblâ macro.
If âendNrâ is not specified, and the âtlineâ call does not follow a previous âlineâ call in which âendNrâ was specified, then a horizontal line spanning the full width of the table is defined (except when converting to plain text in which case a line of âbeginNrâ - (minus) characters is written; if âbeginNrâ is not specified then a line of 60 - characters is written).
If âendNrâ is not specified, but the âtlineâ call follows previous âtlineâ calls that did specify âendNrâ then the current row is ended.
If âendNrâ is specified, then a horizontal line is set, starting at column number âbeginNrâ continuing through column number âendNrâ. Note that these are numbers , not offsets : âbeginNrâ should be at least 1, âendNrâ must at least be equal to âbeginNrâ and should be at most equal to the number of columns in the table. The âbeginNrâ values of subsequent âtlineâ calls refer to the same row as the first âtlineâ call, and must exceed âendNrâ of the previous âtlineâ call.
Examples:
tline()() sets
a line spanning the full table width
tline(1)(1) sets a line in column 1
tline(3)(4) sets another line in column 3 and 4
tline()() ends the previous line
tline()() sets a line spanning the full table width
âtnac(nCells)(alignment)(contents)â
This macro is one of the four macros that can be used to define column contents of rows of tables defined by the âtblâ macro. Alternatively, âtc, tacâ, and âtncâ can be used.
The âtnacâ macro is used as argument of the âtrâ macro. Its first argument defines the number of columns spanned by the contents (2nd argument) of the âtncâ macro.
The cellâs alignment is defined by the macroâs second (âalignmentâ) specification, containing at most two alignment specifications: a horizontal alignment (one of c, l, r (centered, left-aligned, right-aligned)) and a vertical alignment (one of t, b (vertical top- and bottom-alignment)) (not all conversion types may support all alignment types). Specifications other than c, l, r, b, and t and specifications beyond the second one are ignored. The result of specifying conflicting alignment types (e.g., âlrâ or âtbâ) is not defined.
When converting to âmanâ, if the tableâs contents should span multiple rows, then a groff/troff (1) text block must be used. Since most tables do not use this, a text block is not generated by default. To actually wrap the contents of column elements in a text block while converting to âmanâ prefix the first text block requiring a text-block wrapping by âtwrap(1)â, and end the last text block requiring a text-block wrapping by âwrap(0)â. Multiple rows in a text block are top-aligned with left and righ neighboring cells.
The âtaoâ macro can be used to overrule the default alignment specification for a specific conversion type.
The macro âtnacâ recognizes âattribâ.
âtnc(nCells)(contents)â
This macro is one of the four macros that can be used to define the column contents of rows of tables that are defined by the âtblâ macro. Alternatively, âtc, tacâ, and âtnacâ can be used.
The âtncâ macro is used as argument to the âtrâ macro. Its first argument defines the number of columns spanned by the contents (2nd argument) of the âtncâ macro. The contents are centered in the ânCellsâ columns.
When converting to âmanâ, if the tableâs contents should span multiple rows, then a groff/troff (1) text block must be used. Since most tables do not use this, a text block is not generated by default. To actually wrap the contents of column elements in a text block while converting to âmanâ prefix the first text block requiring a text-block wrapping by âtwrap(1)â, and end the last text block requiring a text-block wrapping by âwrap(0)â. Multiple rows in a text block are top-aligned with left and righ neighboring cells.
The âtaoâ macro can be used to overrule the default alignment specification for a specific conversion type.
The macro âtcâ recognizes âattribâ.
âtocclearpage()â
With the LaTeX converter, a âclearpage()â directive if inserted, immediately following the documentâs table of contents. This is already the default in all but the âarticleâ document type, but it can be overruled by ânotocclearpage()â. When present, it must appear in the preamble ; i.e., before the document type is stated with âarticleâ, âbookâ or âreportâ. With other converters than the LaTeX converter, it is ignored.
âtr(contents)â
This macro defines the rows of a table that is defined by the âtblâ macro.
The macro âtrâ expects one argument: the contents of the row, defining the rowâs column elements. It is not used for defining a (partial) horizontal line: to set horizontal lines in a table defined by the âtblâ macro use the macro âtlineâ.
Normally the contents of the columns in a (âtrâ) row is defined by of one or more calls to the macros âtc, tac, tnc,â and/or âtnacâ.
The macro âtrâ recognizes âattribâ.
âtt(text)â
Sets âtextâ in teletype font, and prevents it from being expanded. When converting to man, âtextâ is surrounded by a backtick and a single quote character.
For unbalanced parameter lists, use âCHAR(40)â to get â(â and âCHAR(41)â to get â)â.
The âttâ macro does interpret character tables as well as any âSUBSTâ definitions. This is usually what is intended. In situations where this is unwelcome the âttbeginâ and âttendâ pair of macros can be used, between which the builtin commands âPUSHSUBST, POPSUBST, NOEXPANDâ and/or âNOTRANSâ can be used. E.g., to clearly show two hyphens in LaTeX teletype font use
ttbegin()--ttend()
rather than
tt(--)
Likewise, use âttbeginâ and âttendâ if the teletype text contains accented letters like e. To set this in teletype font use âttbegin()\"ââe+ttend()â.
With html conversions the âattribâ macro applies to the â<code>â tag.
With man conversions the arguments of tt macros can be quoted. See the âmanttquotedâ macro for details.
âttbegin()â
Initiates text set in teletype font. Following the text to set in teletype font a âttend()â macro should be called.
Usually the âttâ macro can be used instead of the âttbeginâ -- âttendâ combination. However, âttâ interprets character tables as well as âSUBSTâ definitions. In situations where this is unwelcome the âttbeginâ and âttendâ pair of macros can be used, between which builtin commands like âPUSHSUBST, POPSUBST, NOEXPANDâ and/or âNOTRANSâ can be used.
In html the âattribâ macro applies to the â<code>â tag.
âttend()â
Ends text set in teletype font following âttbeginâ. Refer to the âttbeginâ macroâs description for details.
âtwrap(value)â
Used for man/ms conversions only: when called with a non-zero argument before using the âtc, tnc, tacâ, and âtnacâ macros then their contents are wrapped in text blocks (âT{ ... T}â blocks). To end the wrapping âtwrap(0)â must be called. E.g., in the following row-definition the contents of columns three and four are set in T-blocks when converting to man/ms:
tr(tc(one)tc(two)twrap(1)tc(one)tc(two)twrap(0))
âtxtcommand(cmd)â
Writes âcmdâ to the output when converting to txt. The âcmdâ is not further expanded by Yodl.
âurl(description)(locator)â
In LaTeX documents the âdescriptionâ is sent to the output. For HTML, a link is created with the descriptive text âdescriptionâ and pointing to âlocatorâ. The âlocatorâ should be the full URL, including service; e.g, âhttp://www.icce.rug.nlâ, but excluding the double quotes that are necessary in plain HTML. Use the macro âlinkâ to create links within the same document. For other formats, something like description [locator] will appear. In html âattribâ macro applies to the â<a>â tag.
âverb(text)â
Sets âtextâ in verbatim mode: not subject to macro expansion or character table expansion, and starting with Yodl version 4.00.00: not using âSUBSTâ definitions. See also âverborgâ, which does not provide the protection against âSUBSTâ definitions.
While converting Yodl-documents to target document types Yodl frequently uses the (not further documented) builtin function âXXSUBSTâ. In the unlikely event that the text âXXSUBST(...)â must be written in a document, the sequence
XXSUBST+CHAR(40)...CHAR(41)
can be used.
The text that is passed as argument to the âverbâ-macro appears literally on the output, usually in a teletype font (that depends on the output format). This macro is for larger chunks, e.g., listings.
When starting
the âverb(â macro on a line by itself and
writing the closing parenthesis on a line by itself then
those newlines also appear in the resulting verbatim text.
To omit those lines immediately start the first line of text
after âverbâ and append the closing parenthesis
to the last line of verbatim text. E.g.,
verb( First line of indented literal text
Last line of indented literal text)
When unbalanced parameter lists are required, use âCHAR(40)â to get â(â and âCHAR(41)â to get â)â.
âverbinclude(filename)â
Reads filename and inserts it literally in the text, set in verbatim mode. not subject to macro expansion. The text appears literally on the output, usually in a teletype font (that depends on the output format). This macro is an alternative to âverb(...)â, when the text to set in verbatim mode is better kept in a separate file.
âverbinsert(args)â
Passes âargsâ to yodlverbinsert (1), inserting its output into the converted file. This macro can be used to insert, e.g., a line-numbered indented file, or a labeled subsection of a file, into the file thatâs currently being written by âyodlâ. E.g,
verbinsert(-ans4
file) -- inserts file, showing line
numbers, using a 4 blank-space
character wide indentation.
verbinsert(-ns4
//SECT file) -- inserts the section of file,
labeled //SECT file, showing
line numbers, using a 4
blank-space character wide
indentation.
âverborg(text)â
Sets âtextâ in verbatim mode: not subject to macro expansion or character table expansion, and starting with Yodl version 4.00.00: this macro replaces the previously defined âverbâ macro. The current âverbâ macro surrounds this macro by âPUSHSUBSTâ and âPOPSUBSTâ.
The text that is passed as argument to the âverborgâ-macro appears literally on the output, albeit that âSUBSTâ definitions are processed, usually in a teletype font (that depends on the output format). This macro is for larger chunks, e.g., listings.
When unbalanced parameter lists are required, use âCHAR(40)â to get â(â and âCHAR(41)â to get â)â.
âverbpipe(command)(text)â
Pipe text through command, but donât expand the output.
âvindex()â
Generate an index entry for LaTex() or texinfo v-indices. Its argument is the index entry. See also the â[cfkpt]indexâ macro.
âwhenhtml(text)â
Sends âtextâ to the output when in HTML conversion mode. The text is further expanded if necessary.
âwhenlatex(text)â
Sends âtextâ to the output when in LATEX conversion mode. The text is further expanded if necessary.
âwhenman(text)â
Sends âtextâ to the output when in MAN conversion mode. The text is further expanded if necessary.
âwhenms(text)â
Sends âtextâ to the output when in MS conversion mode. The text is further expanded if necessary.
âwhensgml(text)â
Sends âtextâ to the output when in SGML conversion mode. The text is further expanded if necessary.
âwhentely(text)â
Sends âtextâ to the output when in TELY conversion mode. The text is further expanded if necessary.
âwhentexinfo(text)â
Sends âtextâ to the output when in TEXINFO conversion mode. The text is further expanded if necessary.
âwhentxt(text)â
Sends âtextâ to the output when in TXT conversion mode. The text is further expanded if necessary.
âwhenxml(text)â
Sends âtextâ to the output when in XML conversion mode. The text is further expanded if necessary.
âxit(itemname)â
Starts an xml menu item where the file to which the menu refers to is the argument of the xit() macro. It should be used as argument to xmlmenu(), which has a 3rd argument: the default path prefixed to the xit() elements.
This macro is only available within the xml-conversion mode. The argument must be a full filename, including .xml extension, if applicable.
No .xml extension indicates a subdirectory, containing another sub-menu.
âxmlcommand(cmd)â
Writes âcmdâ to the output when converting to xml. The âcmdâ is not further expanded by Yodl.
âxmlmenu(order)(title)(menulist)â
Starts an xmlmenu. Use itemization() to define the items. Only available in xml conversion. The menutitle appears in the menu as the heading of the menu. The menulist is a series of xit() elements, containing the name of the file to which the menu refers as their argument (including a final /). Prefixed to evert every xit()-element is the value of XXdocumentbase.
Order is the the âorderâ of the menu. If omitted, no order is defined.
âxmlnewfile()â
In XML output, starts a new file. All other formats are not affected. Note that you must take your own provisions to access the new file; say via links. Also, itâs safe to start a new file just befoore opening a new section, since sections are accessible from the clickable table of contents. The XML converter normally only starts new files prior to a âchapterâ definition.
âxmlsetdocumentbase(name)â
Defines ânameâ as the XML document base. No default. Only interpreted with xml conversions. It is used with the figure and xmlmenu macros.
âxmltag(tag)(onoff)â
Similar to âhtmltagâ, but used in the XML converter.
OPTIONS
No options are relevant in respect to the macros.
FILES
The files in tmp/wip/macros define the converterâs macro packages. The scripts yodl2tex , yodl2html , yodl2man etc. perform the conversions.
SEE ALSO
yodl (1), yodlbuiltins (7), yodlconverters (1), yodlletter (7), yodlmanpage (7), yodlpost (1), yodlstriproff (1), yodltables (7), yodlverbinsert (1).
BUGS
-
AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl),