Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
178 lines (94 sloc) 1.42 KB

Introduction

This is a test of Erudite output rendering, commands and syntax elements

Chunks

This is a good chunk

<<<chunk1>>>

This is a good chunk

<<<chunk2>>>

This is the chunk:

<<chunk2>>=
(+ 1 1)
<<chunk4>>=
(print "Start")

The end

<<<chunk4>>>

This is the factorial function:

(defun factorial (n)
  (if (<= n 1)
<<<base-case>>>
<<<recursive-case>>>
      ))

The base case is simple, just check for n=1 less:

<<base-case>>=
      1

The recursive step is n x n - 1:

<<recursive-case>>=
      (* n (factorial (1- n)))

Extracts

Extract test This has been extracted

(+ 1 2)

Extract 3

Start End

Includes

Include test This is includeA

(print "include A")
(print "Include")

This is includeB

(print "include B")

Ignore

Conditional output

When test This should appear

This is other output text

Erudite syntax

Subsection

Subsubsection

Verbatim

This is in verbatim

Code

(defun hello-world ()
(print "Hello world"))

List

  • First item
  • Second item

Emphasis

This is emphasized

This is in bold

This is in italics

Inline verbatim

This is in inline verbatim

Link

Erudite

Reference

hello-world

Label and index

This section is labelled

You can’t perform that action at this time.