|
This technical appendix documents ways of adding structure to a Wikipublisher book. On this page… (hide) 1. Chapter sectionsWiki heading markup (one or more ! marks at the start of a line) is translated into sectioning commands. Wikipublisher is able to nest 3 levels of page heading. In a book where the trail page is a single level list of chapters, the heading levels correspond to sections, subsections and subsubsections. If the trail page is a nested list of chapters and sections, heading levels on the section pages correspond to subsections, subsubsections and paragraphs. Within a wiki page, authors can make a cross-reference to a related section using a heading label and section reference. For example, 2. Tabular materialWiki table markup (one or more lines starting with ||) produces a table. Column widths are determined automatically, based on the width of the paper and the contents of individual cells. If the first row of the table uses table heading markup (cells marked as ||!heading text), Wikipublisher recognises this as a “head row” and inserts a rule between this row and the following row. If the last table row uses heading or emphasis markup (cells marked as By using a class attribute in the table definition row, authors can direct Wikipublisher to give a table special treatment. Supported table classes lists the recognised classes. Authors can make a cross-reference to a table using a table id and table reference. The table id is of the form
3. FiguresWhen working with images, authors need to consider the following matters:
Wikipublisher recognises links to files with the extensions png, gif and jpg as images. To use a high resolution image, an author creates a link of the form ![]() A 16th century printing office In the absence of an explicit caption, Wikipublisher uses an image’s alt text as the figure caption. By default, the caption prints below the image. However, if the author applies the %rfloat% or %lfloat% class to the image, Wikipublisher interprets this as “side caption” markup and prints the caption on the outside of the image (i.e., to the right of the image on recto pages and to the left on verso pages). An author can apply side captions to all images by using the If the author applies the same float class to two consecutive images (i.e., side-by-side floating images with no intervening text), Wikipublisher treats these as “subfigures”. Subfigure markup example illustrates markup for a 3 part subfigure, with individual image captions, plus an overall figure caption. First style and Second style refer to individual sub-figures and illustrate this. Subfigure markup example %lfloat height=187px%Attach:sample0.png"sample 0" \ %lfloat height=187px%Attach:sample1.png"sample 1" \ %lfloat height=187px%Attach:sample2.png"sample 2" %% Suspendisse potenti Fifteenth century alphabets
The %rframe% and %lframe% image classes by default produce the same output as the lfloat and rfloat classes. However, an author can also use these to wrap text around an image. To activate this option, an author adds
If the image has an id attribute and alt text, an author can use 4. Floating and other divsBy adding Fusce eget gravida risus. Aliquam augue arcu, pretium ut venenatis vel, pellentesque id felis. Etiam imperdiet malesuada faucibus. Donec tincidunt luctus aliquet. Aliquam rhoncus dolor eget nisl porttitor a pharetra elit euismod. Donec eu eleifend sem. Duis fermentum dignissim varius. Aliquam hendrerit nibh et leo lacinia ultrices pellentesque lorem convallis. Donec id est ipsum. Praesent id viverra odio. An author can control the background colour of a div class=frame using the bgcolor attribute. For a div class=block, authors can use the 5. Special charactersMarkup for special characters lists ways to include HTML character entities using markup.
← Shape Shifting | Book Guide | Customisation → |