The abstract is a concise overview of your article. In one or two paragraphs, the abstract should describe the key topics and solutions your article covers.
Another way to determine what should be included in your abstract: what are the two or three big facts/messages/takeaways a reader will learn from your article?
Each section within your article must be titled. Enter a blank line beneath each title and then start writing the section’s content. Most of your article content will be in paragraph form.
The section title above is classified as a level-2 section title. It is the equivalent of an <h3> tagged title.
Show me an image and a figure! And don’t forget how to title them and how to reference them in the text. Figure MDA-1
-
Image paths should be relative to the images directory!
-
Image titles should be placed above the image macro following a leading dot
-
Bold the comment about using the block image macro instead of the inline image macro
-
Should titles end in a period?
Blocks add pizzazz
Caution
|
Don’t forget how to lable and reference in the text. (Listing MDA-1) |
-
If most of your code examples are in one language, you can set the :language: attribute entry in the header and leave off the language of the source style
-
Strongly recommend that code be included rather than inlined
-
Show syntax for including a tagged region of a file
-
Should titles end in a period?
Source code is present in a listing block which is delimited by four hyphens.
link:code/GreedyCoinChanger.groovy[role=include]
.Query and Local Processing
[source,java]
----
db = conn.db();
List partialAnswer = q(queryPartA, db); // <1>
List enhanced = localProcess(partialAnswer); // <2>
List finalResult = q(queryPartB, db, enhanced); // <3>
----
<1> Define the query
<2> Do some local processing
<3> Build on first query, still consistent!
Tip
|
As shown in the example, you can put the callout behind a line comment in most programming languages to avoid causing a syntax error in the raw source code. In XML, the syntax of the commented callout should be |
Console commands should be indented by a single space and begin with a dollar sign ($) followed by a space. Using this convention provides the semantics to allow us to style them appropriately.
$ gem install asciidoctor
If you need to display a few lines of console output, put it on a line that begins with a hash (#) followed by a space.
$ file -b --mime-encoding article.adoc
# utf-8
If you need to display many lines of console output, use a separate literal block.
$ mvn compile
.Command output
....
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building asciidoctorj 1.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] - maven-enforcer-plugin:1.0:enforce (enforce-maven) @ asciidoctorj
[INFO]
[INFO] - gem-maven-plugin:1.0.0-rc4:initialize (default) @ asciidoctorj
[INFO]
[INFO] - maven-resources-plugin:2.5:resources (default-resources) @ asciidoctorj
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] - maven-compiler-plugin:3.1:compile (default-compile) @ asciidoctorj
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
....
Don’t forget citations.
-
Recommend either air quotes form or Markdown style
-
Strongly recommend that quotes be cited, show example
Content with obsessive cumpolsive disorder can feel secure within the structure of a list or table.
Content can also be presented as unordered, ordered and definition lists.
This is an unordered list with nested levels and a title:
-
List item 1
-
Nested list item
-
Nested nested list item
-
-
-
List item 2
This is an ordered list with nested levels:
-
List item 1
-
Nested list item
-
-
List item 2
-
Nested list item
-
Nested nested list item
-
-
This is a definition list:
- Word
-
Description of word
- CPU
-
The brain of the computer.
Tip
|
Lists can contain complex content such as delimited blocks. See the AsciiDoc syntax quick reference or the Asciidoctor user manual. |