X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/9b3719888275859f10e5a8c6e87a92899abc0d95..a29e5231ac02b045d8fdd5610abac3c38131366f:/doc/doc-docbook/Markup.txt?ds=sidebyside diff --git a/doc/doc-docbook/Markup.txt b/doc/doc-docbook/Markup.txt index 9220eb4e8..b44727684 100644 --- a/doc/doc-docbook/Markup.txt +++ b/doc/doc-docbook/Markup.txt @@ -1,4 +1,4 @@ -$Cambridge: exim/doc/doc-docbook/Markup.txt,v 1.1 2006/02/01 11:01:01 ph10 Exp $ +$Cambridge: exim/doc/doc-docbook/Markup.txt,v 1.5 2007/04/11 15:26:09 ph10 Exp $ XFPT MARKUP USED IN THE EXIM DOCUMENTATION ------------------------------------------ @@ -215,10 +215,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". -Not all forms of output distinguish between these - sometimes there is just one -index. +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 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. @@ -301,12 +311,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: @@ -327,6 +339,12 @@ 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 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 as an inline macro call, which takes the form of an ampersand followed by the @@ -339,6 +357,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. @@ -347,8 +369,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: 25 January 2006 +Last updated: 10 April 2007