General rules for creating the DokuWiki-based books. v.1.7

Table of Contents

A book's table of contents page has all the linked pages it will use for its materials. If a page is not linked in there, it will not appear in the book.

The ToC does not assign the chapters in the book. That is done on every linked page separately, depending on the header. Info about headers is down below.
Do not use capital letters or spaces in the chapter links!

Exclude a page

To exclude a page in the book, simply remove it from the ToC, or if you want to keep it in the ToC, then put the page between

<del> </del>

tags and it will not show up in the book.

Example: Chapter 3

<del> Chapter 3 </del>

More of this is under the " Comments in the pages" guidelines.

Chapters and headers

Place the top chapter (header level 1) title in six equation chars:

====== Title ======

Each page should start from the highest chapter level. The PDF book generator will automatically shift it down by the starting position, e.g.:

1. Introduction (page1) 1.1 Definition of the problem (page2)

page1 starts with:

======Introduction======

page2 starts with:

======Definition of the problem======
Note, in the final document, page1's header will be rendered as HTML's H1, while page2's header will be rendered as H2, thus it is automatically converted from 6x= to 5x=.
This is particularly important when using
===

headers because depending on the chapter nesting, they can be decreased down to either

==

or even

=

that does not represent legit header!

Subchapter

DO NOT INCLUDE CHAPTER NUMBERS in the headers!!!! The sample above is to present the relation between chapters, but numbers are to be generated automatically!

References

References should appear in the text as pointers e.g.

[(AuthorsYear)]

The full record of this reference must be in the separate References page, e.g. References. Make sure that all pointers are correctly listed in the Reference page.

You can see the references only in Edit mode. In standard View mode, the Reference page looks empty. This is normal behaviour

If using the RefNotes plugin for structured or bibliographical references (e.g., Harvard or IEEE-style), make sure to disable the automatic backlink numbers that appear in the reference list. Otherwise, the same citation may appear with duplicated numbers such as `[2], [2]`.

To make each reference appear only once in the footer (as in proper academic formatting), add the following to the end of your page:

<refnotes>
back-ref-format : none
</refnotes>

Figures

Figures with their captions should be placed using the Caption plug-in, i.e.:

 This is IOT-OPEN.EU logo
Figure 1: IOT-OPEN.EU Logo

If a picture is too small to be seen inline, then use the link to open it as a separate page; otherwise, use nolink.

<figure Ref.Pic.1>
{{ :logotyp_1_-_fb_-_square.png?nolink&200 | This is IOT-OPEN.EU logo}}
<caption>IOT-OPEN.EU Logo</caption>
</figure>

Internal references to figures should be done with the figure number using Caption plug-in syntax, i.e.: As shown on Figure 1

Figure {{ref>Ref.Pic.1|Alternate text for Figure 1}}

Note - when you insert a new figure, you must give it a unique name, here Ref. Pic.1, right by the HTML tag figure (default is a label), then you can refer to it as in regular HTML.

Due to the WCAG compatibility, add a copy of the Figure's caption as its alternative text:
{{ref>Ref.Pic.1|Alternate text for Figure 1}}
Maximum image width is 470 pixels for A4 portrait printing.
{{:en:iot-open:remotelab:sut:iotrx.jpg?470|Alternate text}}

Because we intend to use portrait rather than landscape layouts in printed books, please consider preparing diagrams as landscape ones rather than portrait. Eventually, portrait diagrams, images, and graphics could be rotated 90 degrees counterclockwise to fit into the printing layout.

Due to the requirement of the accessibility of the contents, it is necessary to provide Alternative text for all figures.

A video presenting work with figures, tables and references is here:

Tables

Tables with their captions should be placed using the Caption plug-in:

Table 1: caption
Header 1 Header 2
cell 1 cell 2
cell span

and referred in the text to the same mechanism as figures, i.e.: “as shown in Table ##REF:Ref. Tab . 1.1##”.

<table Ref.Tab.1.1>
<caption>caption</caption>
^ Header 1 ^ Header 2 ^
| cell 1 | cell 2|
| cell span ||
</table>

Our Dokuwiki has installed the table editor plugin, so once you create and save the page with a table, you can edit it in a simpler way using the GUI editor.

Equations

Mathematical equations should be inserted as figures and referenced as figures.

Code

Code examples written within tags

<code>...</code>

<code c>

Code example here

</code>

Part of the code placed in the text like_this_function(var arg) should be written as monospace text within double apostrophes

’’printf(“something”);’’

Important information

Tips, warnings, tricks and important facts should be introduced using note plugin, classified as:

regular note on something
warning information
some useful tip for reades
and some important information

as below:

<note>regular note on something</note> 
<note warning>warning information</note> 
<note tip>some useful tip for reades</note>  
<note important>and some important information</note>

Description of programming environment

While you write about menu options in software applications – write names of options in italic, i.e. like this one home/file/open

Option and suboption chains write with “/” (slash) character

//home/file/open//

Buttons

Write names of the buttons in square brackets, in bold.

[open]

**[open]**

Variables

Names of variables referred from the program code written in italic, i.e. Integer val1.

//variable//

Citing

Whole sentences cited write within parenthesis “I love DokuWiki.”, simply by:

“I love DokuWiki.”

Comments in the pages

When you need some text to be hidden for the audience but let it exist there, use comment plugin, similar to the source code comments. Simply put the text of the comment between slash-asterisk and asterisk-slash combination:

This is an example of the sentence whereas /*this text*/ is hidden

This is an example of the sentence whereas is hidden

If you need to exclude some section from PDF printed book file, use

<hidden>excluded section</hidden>

If some chapters need to be excluded use the del tag

<del>  </del>

Parts to exclude from the PDF generator

To exclude part of the content (i.e. link lists by the end of the chapter) wrap a source code using the WRAP tags:

<WRAP excludefrompdf>

Some content is to be present in the Dokuwiki but not to be printed in PDF.

</WRAP>
You must explicitly use the name excludefrompdf identifier, otherwise it won't work.

Common language settings

Please use UK English, not US English; thus, e.g. use UK's “license”, not US's “licence”, etc.

Use depersonated form, e.g. “in this chapter, details of drone security systems are presented” rather than “in this chapter, you can read about drone security”.

Book printing to PDF remarks

On top of the ToC, there is a link for the PDF version of the contents and another to generate a new one. The book is not generated automatically, so if you change anything and then wish to see the PDF version, click the Generate new PDF book! link and wait till it is finished.

Dokuwiki server struggles with a caching issue: if you generate PDFs in a row, when downloading the PDF book, you may get an older copy instead of the recently generated one. Open the PDF book in the private tab of your browser (it does not use session cache, thus always downloads full content from the Dokuwiki server). Simply right-click the Current version of PDF Book and select Open in new private tab (or similar, browser dependent).

Useful tools

If you want to print just one page as proper PDF, you can use a DW2PDF plugin. Just add in the end of page URL a command:

?do=export_pdf
en/iot-open/rules.txt · Last modified: 2025/10/30 07:53 by raivo.sell
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0