Skip to content

Latest commit

 

History

History
140 lines (105 loc) · 3.42 KB

asciidoc-markup.asciidoc

File metadata and controls

140 lines (105 loc) · 3.42 KB

This document is a guide for using asciidoc markup

Master Document file Headers, first line replace en with two letter language code

Getting Started V2.5, 2025-02-21

The EMC Team

The parameters are interpreted well before the load files lang-xx.conf and the other files .conf It is particularly important for the parameters as :lang:

The typical authorized attributes : doctype, lang, encoding, icons, data-uri, toc, numbered

Titles

Document Title (level 0) = Note: level 0 can only be once per file!

Section title (level 1) == Note: trailing delimiter is optional.

Section title (level 2)

Example

bombs

only bombs will show in the text with an underline so always provide a caption for a link

Listing Block for G Code and terminal output

---- < 4 dashes start of block lines of code …​ more code ---- < 4 dashes end of block < 1 blank line after

Literal blocks

  1. < 4 periods start the block literal block will show up just as you type it.

  2. < 4 periods end the block < 1 blank line after

Lists

  • bullet

    • bullet

      1. numbered

        1. numbered

List Item Continuation * List item paragaph one continued with a single plus hard left.

+ List item one continued with a second paragraph and first line of second paragraph must be hard left.

HAL pins and parameters use the following format for consistency * 'parport.<p>.pin-<n>-out' (bit) Drives a physical output pin. bulleted list with the pin name emphasized by surrounding it with single quotes.

Images

put all images in the images subdirectory

<attributes>

example image::images/axis.png[] image::images/tiger.png["Tiger image",align="center"]

If the image is small and displays too big in the pdf you can use the scaledwidth="60%" attribute

Inline Images

Same as images except only one : is used and no attributes are used between the []

My text has an image in it axisbutton

Figures

Use the following format for figures so any links to the anchor will move to correct place. Only create a link to a figure if it is somewhere else and not the next thing you see when scrolling down. Just say something like "in the following figure…​"

parport block diag
Figure 1. Parport Block Diagram

Notes and Warnings

Inline example NOTE: This is an example note.

Paragraph example

Note
This is an example note of the paragraph style.

Styles include NOTE TIP IMPORTANT WARNING CAUTION

Escaping a character

Normally characters like ' and * would not print unless you use \' or \* then they will print as normal characters.

Making a horizontal labeled list.

Label

The text about the label

Latexmath is broken at the moment and trashes the HTML. A work around is to use open office math to create the math image and gimp to screen capture and save to a png.

check asciidoc cheatsheet http://powerman.name/doc/asciidoc or user manual http://www.methods.co.nz/asciidoc/userguide.html for details about format.