Online articles should be delivered in a text file called page.src.txt. You can just store your article, together with your figures, in a .zip or .tar.gz article and send it directly to your editor. To make things simpler for our readers, listings are just embedded directly in the article's code; our system automatically reformat long listings so that they won't take up too much screen space.
You should always use a UTF-8-compliant text editor to create your text files. This will ensure that all special characters are encoded properly for our system to read.
The Masthead
The masthead of your article must contain three elements:
=t= tag is used to indicate the beginning and end of the title, while =b= indicates the beginning and end of the byline, and =d= indicates the beginning and end of the deck.
Note that you cannot have any line breaks inside the title or byline. Line breaks are, however, allowed inside the deck.
The Body
Once you have completed the masthead, you can move on to the body of the article. Here, there are only a handful of rules to keep in mind.
First of all, for the most part you can type your text directly as if you were using a word processor; if you need to use characters outside the standard ASCII set, such as accented letters, em-dashes, and so forth, you can type them directly without having to worry about special encoding. On those operating systems that do not support extended character sets natively, most editors usually provide key combinations that make it possible to enter them anyway.
In any case, you need to ensure that, if you use non-ASCII character, your text editor is capable of saving files in UTF-8 format. This is very important, as our system may be unable to properly display your text otherwise.
Other than this particular precaution, there is very little that you need to worry about; paragraphs in your text are separated by two newline characters (in other words, press Enter twice and you've started a new paragraph), and there is no need to indent the first line of a new paragraph.
Formatting Text
Our system supports three types of inline text format:
Monospace text is enclosed by two single quote characters at each end. For example: ''monospace!'' becomes monospace
Headings
Headings (like the one above this line) are used to break up your article into smaller units that the reader can use as reference points to navigate the text. Ceres only recognizes one level of headings, identified by the =h= tag:
Lists
Ceres only supports unordered lists. A list block is identified by a line that starts with a dash, followed by a space. For example:
This is normal text.
Code Listings
Code listings are encapsulated by a <code> tag, which must be on a line of its own:
<code> tag. The list is too long to include here, but chances are that any language you may need to highlight is actually supported by Ceres—including SQL, XML and HTML.
IMPORTANT: code listings should be wrapped at 70 characters.
Tables
Tables can be inserted directly in the body of your article using a syntax that is very similar to HTML (but much simpler and stricter). Here's an example:
align=“center” or valign=“top”, you simply specify one of left, right, center for horizontal alignment and top, bottom and middle for vertical alignment. As you can see above, the aligment parameters can be used to align both table cells and the table itself.
Here's what the table above will be rendered like:
| Position Name | Level | Salary |
|---|---|---|
| CEO | Senior | €100,000 |
| Vice President | Senior | €90,000 |
| Senior Architect | Senior | €70,000 |
| Developer | Intermediate | €50,000 |
Images
Images can be embedded in your article by using the {{figure}} tag:
Images are floated on the current paragraph, and you can align them either to the left, right or center.
Note that you should never embed external images (we did here just to give you an idea of what the figure tag looks like). Instead, you should store your images in a folder and reference them by filename only. You can them archive the folder together with your article and send it to your editor.
For example, suppose you have two images: figure1.png and figure2.jpg. You can store both images in the img folder that you send together with your article to the editor, and then reference them as follows:
Note that any images you send must be in one of the following formats: GIF, PNG, JPG (RGB only), TIF (RGB only), BMP. Our software is capable of handling these formats and converting them to a web-readable format.
Here's an example:
You should never run while holding scissors; it can be bad for your health