X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/db9452a9b5941d43e6ef3988cd0d30d2758844cf..0578e5cd0d433794ba33cefc8963476ef1c22d53:/doc/doc-docbook/Markup.txt diff --git a/doc/doc-docbook/Markup.txt b/doc/doc-docbook/Markup.txt index 84fd42664..58116a792 100644 --- a/doc/doc-docbook/Markup.txt +++ b/doc/doc-docbook/Markup.txt @@ -1,5 +1,3 @@ -$Cambridge: exim/doc/doc-docbook/Markup.txt,v 1.3 2006/07/31 13:19:36 ph10 Exp $ - XFPT MARKUP USED IN THE EXIM DOCUMENTATION ------------------------------------------ @@ -141,9 +139,9 @@ To refer to a URL, use &url, followed by parentheses that can enclose one or two arguments, comma separated. The second, if present, is used as the displayed text. If there is only one argument, it is used both as the displayed text and as the URL. For example, here is a reference to -&url(http://www.exim.org/,the exim home page). In HTML output, all you see is +&url(https://www.exim.org/,the exim home page). In HTML output, all you see is the display text; in printed output you see something like "the exim home page -[http://www.exim.org/]". The URL is printed in a bold font. +[https://www.exim.org/]". The URL is printed in a bold font. CHAPTERS AND SECTIONS @@ -215,18 +213,20 @@ To create an index entry, include a line like one of these: .cindex "primary text" "secondary text" .oindex "primary text" "secondary text" + .vindex "&$variable_name$&" -The first is for the "concept index" and the second is for the "options index". -The secondary text is of course optional. Not all forms of output distinguish -between these - sometimes there is just one index. For the concept index, it is -also possible to set "start" and "end" markers so that the entry lists a range -of pages. This is how to do that: +The first is for the "concept index", the second is for the "options index", +and the third is for the "variables" index. The secondary text is of course +optional. Not all forms of output distinguish between these - sometimes there +is just one index. For the concept index, it is also possible to set "start" +and "end" markers so that the entry lists a range of pages. This is how to do +that: .scindex IID "primary text" "secondary text" .ecindex IID -The IID must be some unique string to tie the entries together. +The IID must be some unique string that ties the entries together. The index for the Exim reference manual has a number of "see also" entries. These are coded in raw XML at the start of the source file. @@ -309,12 +309,14 @@ and "Default", so you do not have to supply them. Notice the use of the &!! flag to put a dagger after the word "string". -CHANGE BARS +CHANGE BARS (REVISION MARKINGS) I have not yet found a way of producing change bars in the PostScript and PDF -versions of the documents. However, it is possible to put a green background -behind changed text in the HTML version, so the appropriate markup should be -used in the source. There is a facility in xfpt for setting the "revisionflag" +versions of the documents when they are generated using the "fop" command. +However, the revision marks do work when these formats are produced using my +own "sdop" processor. Also, it is possible to put a green background behind +changed text in the HTML version, so the appropriate markup should be used in +the source. There is a facility in xfpt for setting the "revisionflag" attribute on appropriate XML elements. There is also a macro called .new which packages this up for use in three different ways. One or more large text items can be placed between .new and .wen ("wen" is "new" backwards). For example: @@ -335,9 +337,11 @@ When called without an argument, .new terminates the current paragraph, and can, of course, put in blank lines if you wish, and it is probably clearer to do so. -WARNING: If there are index directives, put them after rather than before .new -because otherwise you are likely to get an empty paragraph, which shows up as -unwanted vertical whitespace. +!!WARNING WARNING WARNING!! +If there are index directives, put them after rather than before .new because +otherwise you are likely to get an empty paragraph, which shows up as unwanted +vertical whitespace. +!!WARNING WARNING WARNING!! If want to mark just a few words inside a paragraph as new, you can call the .new macro with an argument. The macro can be called either as a directive or @@ -351,6 +355,10 @@ name, with the argument in parentheses. For example: The effect of this is to generate a XML element with the revisionflag attribute set. The .wen macro is not used in this case. +You can also use .new/.wen inside .display and .code sections, and &new() will +work inside lines in a .display section. It will not work in a .code section, +because all text is literal. + If you want to mark a whole table as new, .new and .wen can be used to surround it as described above. However, current DocBook processors do not seem to recognize the "revisionflag" attribute on individual rows and table entries. @@ -359,8 +367,9 @@ by using an inline macro call. For example: .row "&new(some text)" "...." -Each such entry must be separately marked. If there are more than one or two, -it may be easier just to mark the entire table. +This works as required when the XML is processed by "sdop" rather than "fop" to +generate PostScript and PDF. Each such entry must be separately marked. If +there are more than one or two, it may be easier just to mark the entire table. Philip Hazel -Last updated: 31 July 2006 +Last updated: 10 April 2007