====== General rules for creating the DokuWiki-based books. v.1.5 ======
===== 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.
tags and it will not show up in the book.
Example:
Chapter 3
More of this is under the [[https://robolabor.ee/homelab/en/iot-open/rules#comments_in_the_pages|" Comments in the pages"]] guidelines.
===== Chapters and headers =====
Place the top chapter (header level 1) title in six equation chars:
Chapter 3 ====== 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======
===
headers because depending on the chapter nesting, they can be decreased down to either ==
or even =
that does not represent legit header!((Reference))
===== Figures =====
Figures with their captions should be placed using the [[http://www.till-biskup.de/de/software/dokuwiki/caption|Caption plug-in]], i.e.:
If a picture is too small to be seen inline, then use the link to open it as a separate page; otherwise, use //nolink//.
Internal references to figures should be done with the figure number using [[http://www.till-biskup.de/de/software/dokuwiki/caption|Caption plug-in]] syntax, i.e.:
As shown on Figure {{ref>RefPic1}}
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.
{{ref>Ref.Pic.1|Alternate text for Figure 1}}
{{:en:iot-open:remotelab:sut:iotrx.jpg?470|Alternate text}}
caption
^ Header 1 ^ Header 2 ^
| cell 1 | cell 2|
| cell span ||
===== Equations =====
Mathematical equations should be inserted as figures and referenced as figures.
===== Code =====
Code examples written within tags
%%...
%%
Code example here
’’printf(“something”);’’
===== Important information =====
Tips, warnings, tricks and important facts should be introduced using [[https://www.dokuwiki.org/plugin:note|note plugin]], classified as:
regular note on something
warning information
some useful tip for reades
and some important information
===== Description of programming environment =====
==== Navigating in the menu ====
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 [[https://www.dokuwiki.org/plugin:comment|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 /*this text*/ is hidden
If you need to exclude some section from PDF printed book file, use
excluded section
If some chapters need to be excluded use the del tag
===== 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:
Some content is to be present in the Dokuwiki but not to be printed in PDF.