Test Cases

Joe Bloggs


Passthrough attributes

*lorum ipsum*

<b>*lorum ipsum*</b>


Author attributes

{eval:expression}, {sys:command} and {sys2:command}, {counter:c1}

Hello Joe Bloggs (Joe Bloggs, JB).

first name or last name or surname.

first name and last name.


System attributes

1 99 A

1 = 1, 99 = 99, A = A

2 100 B 2 100 B

2 = 2, 100 = 100, B = B

y: Foobar

3, 7

3, 3


Quoted text attributes

A=X, (X), X, [X] X

A=X, (_X_), X, [X] X X

[*X*] +X+

[_intro] intro [_intro] intro

fun with text. fun with text. fun with text. fun with text. fun with text. “fun with text”. ‘fun with text’.

fun with text.

fun with text.

Obvious and very obvious.

Underline text, overline text and line-through text.

Testing 123 …

(“+1\n+”) if (usually “+-1\n+”)

(“1\n”) if (usually “-1\n”)

(‘Joe Bloggs’) and ‘Joe Bloggs’


Configuration attribute entries

term

definition

term

definition


role attribute

Paragraph with a role attribute.


Break list nesting

  1. List 1.

  2. List 1.

  1. List 2.

  2. List 2.


Listing Blocks

$ ls -al
[subs="quotes"]
------------------------------------------
$ ls *-al*
------------------------------------------

Listing

$ ls -al
$ ls -al

Example 1. Listing example

Python paragraph

if n < 0: print 'Hello World!'

Titled Python listing

if n < 0: print 'Hello World!'
if n < 0: print 'Hello World!'

Example 2. Python listing example


Links

An inline anchor. An inline anchor with reftext.

[X1]; captioned link to this test case.

[X2] link to inline anchor; captioned link to inline anchor.

Link to [X3] anchor.

An example link to a bibliography entry [Test::Unit].

[Test::Unit]

http://ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html


Titles

Level 4

Level 3

Level 2

Level 1

Level 4

Level 3

Level 2

Level 1

Block title
Lorum ipsum.


Lists

Bulleted:

Numbered:

  1. arabic (decimal) numbering

    1. loweralpha numbering

      1. upperalpha numbering

        1. lowerroman numbering

          1. upperroman numbering

            1. arabic (decimal) numbering

              1. loweralpha numbering

                1. lowerroman numbering

                  1. upperalpha numbering

                    1. upperroman numbering

Labeled:

label

item text

label

item text

label

item text

label

item text

With item anchor:

one

Item one.

two

Item two.

three

Item three.


Inline passthroughs

List start number test:

  1. List item 7.

  2. List item 8.


Images

Block images

Tyger tyger

Figure 1. Tyger tyger

Tiger

Figure 2: Tyger tyger two

music2.png
Note Lorum ipsum.

Inline images

Inline image smallnew.png

Inline image NEW!

Inline image NEW!


Admonishments

Note

Lorum ipsum.

Tip

Lorum ipsum.

Warning

Lorum ipsum.

Caution

Lorum ipsum.

Important

Lorum ipsum.
Note Lorum ipsum.
Tip Lorum ipsum.
Warning Lorum ipsum.
Caution Lorum ipsum.
Important Lorum ipsum.

Backslash escapes

Apostrophe
Don’t vs don't.

Exceptions
There are a number of exceptions to the usual single backslash rule — mostly relating to URL macros that have two syntaxes or quoting ambiguity. Here are some non-standard escape examples:

AsciiDoc Renders
\joe.bloggs@example.com
<\joe.bloggs@example.com>
\mailto:[\joe.bloggs@example.com]
joe.bloggs@example.com
<joe.bloggs@example.com>
mailto:[joe.bloggs@example.com]
\http://www.example.com
\\http://www.example.com[]
\\http://www.example.com[Foobar Limited]
http://www.example.com
http://www.example.com[]
http://www.example.com[Foobar Limited]
A C\++ Library for C++
\\``double-quotes''
\*\*F**ile Open\...
A C++ Library for C++
``double-quotes''
**F**ile Open...

Paragraphs

Normal paragraph
This is a bold a line This is a strong line This is another strong line

Literal paragraph

This is a *bold* a line
This is a 'strong' line
This is another _strong_ line

Verse paragraph

This is a bold a line
This is a strong line
This is another strong line

Indented (literal) paragraph

This is a *bold* a line
This is a 'strong' line
This is another _strong_ line

Indented with quotes substitution

This is a bold a line
This is a strong line
This is another strong line

Literal paragraph with quotes substitution

This is a bold a line
This is a strong line
This is another strong line

Monospaced paragraph with line breaks
This is a bold line
This is a strong line
This is another strong line

Another monospaced paragraph with line breaks
This is a bold a line
This is a strong line
This is another strong line

Literal block with quotes substitution

This is a bold a line
This is a strong line
This is another strong line
To see a world in a grain of sand,
And a heaven in a wild flower,
Hold infinity in the palm of your hand,
And eternity in an hour.

from Auguries of Innocence
— William Blake

A good notation has subtlety and suggestiveness which at times makes it almost seem like a live teacher.

The World of Mathematics (1956)
— Bertrand Russell


URLs

Mail Addresses

joe_bloggs@mail_server.com_

joe-bloggs@mail-server.com.

joe-bloggs@mail-server.com,joe-bloggs@mail-server.com,

Mail

Mail

Mail

joe.bloggs@mail.server.com
lorum ipsum.


Comments

Qui in magna commodo, est labitur dolorum an. Est ne magna primis. adolescens. Sit munere ponderum dignissim et. Minim luptatum et.

This comment line will be displayed in the output.

Qui in magna commodo, est labitur dolorum an. Est ne magna primis.
Visible inline comment line.
adolescens. Sit munere ponderum dignissim et. Minim luptatum et.

Block title
Lorum ipsum.

Block title
Lorum ipsum.


Index Terms

Test 1 test1.

Test 2 .

Test 3 .

Test 4 .

Test 5 test5.

Test 6 .

Test 7 .

Test 8 .

Multi-passthough substitution (see http://groups.google.com/group/asciidoc/browse_frm/thread/1269dc2feb1a482c) foo


Table with fractional column width units

Note

pagewidth and pageunits only apply to DocBook outputs.
Date Duration Avg HR Notes

22-Aug-08

10:24

157

Worked out MSHR (max sustainable heart rate) by going hard for this interval.

22-Aug-08

23:03

152

Back-to-back with previous interval.

24-Aug-08

40:00

145

Moderately hard interspersed with 3x 3min intervals (2min hard + 1min really hard taking the HR up to 160).

Table 1. Horizontal and vertical source data


Table with parent configuration file and header attribute entry

  • Attribute entry from header: TEST_ATTRIBUTE

  • Replacement from testcases.conf configuration file: TEST_REPLACEMENT


Table column specifiers with merged cells

See http://groups.google.com/group/asciidoc/browse_thread/thread/c9238380a1f2507a

1- A

2- B

i- a

ii- b

Values 1

v1

v2

v3

Values 2

v4

v5

v6


Floating tables and images

1

2

A

3

4

B

5

6

C

Table 2. Simple table

Tiger image

Figure 2. Tiger



Section level offsets

At level 1

Section title

At level 2

Section title

At level 2

Section title

At level 3


Section level offsets

At level 1


Single-quoted attributes

Sir, a woman’s preaching is like a dog’s walking on his hind legs. It is not done well; but you are surprised to find it done at all.

Samuel Johnson

Sir, a woman’s preaching is like a dog’s walking on his hind legs. It is not done well; but you are surprised to find it done at all.

Samuel Johnson


Footnotes

Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel.
[footnote one. Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel. Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel.]
Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel.
[footnote two. Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel.]
Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel
[F2]
. Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel.
[http://asciidoc.org/ Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel images/smallnew.png]
Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel.
[http://asciidoc.org/]
Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et vel
[AsciiDoc website.]
. Qui in magna commodo, est labitur dolorum an. Est ne magna primis adolescens. Sit munere ponderum dignissim et. Minim luptatum et
[A footnote, "with an image" images/smallnew.png]
.
[With [square brackets]]
Qui in magna commodo, est labitur dolorum an. Est ne magna primis.


Rulers and page breaks

Lorum ipsum…


Lorum ipsum…

Lorum ipsum…


这是一个测试

Double-with character titles. link to auto-generated section ID.


Block macros

RS458 is 2.

Template line 1. Template line 2.


àn îd without accénts

Lorum ipsum…


àn îd with accénts

Lorum ipsum…


Inline macros

A URL with [square brackets].


Last updated 2002-11-25 00:37:42 UTC