NicomDoc Example

This is a
boiler!

Contents (Title can be set)

1. Document Structure
1.1 Paragraphs
1.2 Examples
2. Character Formatting
2.1 Basic Formatting
2.2 Magic Formatting
2.3 Subscript and Superscript
2.4 Colour
2.5 Fonts
3. Lists
3.1 Ordered List
3.2 Unordered List
3.3 Defines
4. Notes
5. Tables
6. Paragraph Formatting
6.1 Alignment
6.2 Indentation
6.3 Magic
7. Misc.
7.1 URLs
7.2 Lines
7.3 Images
8. Math

1. Document Structure

1.1 Paragraphs

A paragraph is some lines of text ended by an empty line (an extra newline).
So this is the first paragraph,

and this is another paragraph.

1.2 Examples

An example is some indented text, which will be shown in a box with a non-proportional font. It's good for e.g. code examples:

REBOL []

print "Hello World!"

2. Character Formatting

Character formatting is implemented as state changes. The writer doesn't have to think about, whether the formatting is ended in the same order as it was started (like we have to with e.g. HTML). At the end of each paragraph, the character formatting is reset to default.

2.1 Basic Formatting

You can have bold, italic, striked and underlined text.
It's possible to combine this formatting in any way.

2.2 Magic Formatting

An easy way to write bold, italic, striked and underlined text, is to use the =magic command. With this turned on, those formattings can be written with the use of the short *, ~, - and _ notation instead of using the normal state changes. This formatting can also be combined.

The magic mode is rather intelligent, so you can write math in bold like: a+b*c=d
or use underline in words like: A_word_with_underlines
without much hazzle.

2.3 Subscript and Superscript

It's possible to write subscript and superscript text.

2.4 Colour

It's possible to have COLOURED text.

The following colour words are recognized:


aqua bar-color base-color beige black blue brick brown button-color coal coffee crimson cyan forest gold gray green ivory khaki leaf linen magenta main-color maroon mint navy oldrab olive orange over-color papaya pewter pink purple reblue rebolor red sienna silver sky snow tan teal violet water wheat white yello yellow


Yes, some of them are hard to see on white background.

2.5 Fonts

It's possible to choose a different font and a different size at any time in the text. Fonts can be specified as a family or directly by name. If specified directly by name, the font has to be installed on the system, or the program used to view the text has to support the font.

Font families

Typewrite Family

Sans Serif Family

Roman Family

Font sizes

Font size -4

Font size -3

Font size -2

Font size -1

Font size normal

Font size +1

Font size +2

Font size +3

Font size +4

Font size +5

3. Lists

3.1 Ordered List

Both ordered:

  1. First item
  2. Second item

3.2 Unordered List

and unordered:

  • An item
  • Another item

can be made, and it's possible to have 3 niveaus of both kind of lists and to combine them in any way:

  • Item 1
    1. Item 2
      • Item 3
      • Item 4
    • Item 5
    • Item 6
      1. Item 7
      2. Item 8
      • Item 9
    1. Item 10

3.3 Defines

Definitions will look like this:

 NicomDocAn easy to use document format.
 RebXMLA REBOL representation of an XML structure.

NicomDoc documents are converted to a general RebXML format, which can then be converted to all different kinds of formats, be it TeX, HTML, XML, PDF, PostScript, RTF and so on.

4. Notes

A note

can be made very easily. Character formatting works within a note.

5. Tables

Topic

Description

Tables

can be complex structures. They consist of:

Rows

goes horizontal through the table.

Cells can span

more than one column and span more than one row.

...

This cell span two colums and has the bgcolor orange.

An

alternate

way

to

construct

a

table,

this

time

with

no-header

option.

6. Paragraph Formatting

6.1 Alignment

Normally paragraphs are left aligned.

But they can also be centered or

right-aligned.

6.2 Indentation

Paragraphs can have indentation like the next one.

This paragraph has left indentation and
continues over two lines.

6.3 Magic

The =magic command will turn on magic character formatting, and it will last, until it's reset or to end of document.

7. Misc.

7.1 URLs

URLs can be in the middle of the text, like: REBOL Technologies, and they can have optional text together with the link.

7.2 Lines


It's possible to make horizontal lines.


7.3 Images

Images can be included:

Einstein.png

Images will default be centered, but they can easily be left- or right-aligned.

8. Math

There's a dialect to easily write formulas:

\displaylines{E=mc^2\cr e^{i\pi }=-1\cr i\hbar {\partial \Psi (\bar r,t)\over \partial t}=-{\hbar ^2\over 2m}\nabla ^2\Psi (\bar r,t)+V(\bar r)\Psi (\bar r,t)\equiv \widetilde H\Psi (\bar r,t)\cr }

Mathematical formulas can also be inline, like: a^2+b^2=c^2


NicomDoc - 2-Mar-2009