summaryrefslogtreecommitdiff
path: root/web/schemeweb2/example/main.sw
blob: a6da8ec3fc1da1de5f126c2851ebee96d9ab46fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
\documentclass[a4paper]{article}

\title{Example of SchemeWEB file}

\begin{document}

\maketitle
 
\section{Introduction}
Welcome to SchemeWEB.

\section{Comment sections}
Here, we are in comment section, so, the text can be formated with
LaTeX.

For example, we can say that ${(a + b)}^2 = a^2 + 2ab + b^2$, and use
any other commands.

\section{Code section}

If a line begins with a '(', then, a code section begins, like in

(define (foo bar) 
  #f)

The comments inside code section are also considered as LaTeX source,
so, you can write things like

(define (f alpha) ; Returns $2 * \alpha$
  (* alpha 2))

\section{File inclusion}

Off course, you can include other documents as usual with
\verb!\input! :

\input{SampleOfInclusion}

Enjoy yourself with SchemeWEB ! 

\tableofcontents

\end{document}