diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/schemeweb2/example |
Initial commit
Diffstat (limited to 'web/schemeweb2/example')
-rw-r--r-- | web/schemeweb2/example/Makefile | 5 | ||||
-rw-r--r-- | web/schemeweb2/example/SampleOfInclusion.sw | 3 | ||||
-rw-r--r-- | web/schemeweb2/example/main.sw | 43 |
3 files changed, 51 insertions, 0 deletions
diff --git a/web/schemeweb2/example/Makefile b/web/schemeweb2/example/Makefile new file mode 100644 index 0000000000..2a07565d8a --- /dev/null +++ b/web/schemeweb2/example/Makefile @@ -0,0 +1,5 @@ +TEXFILE = main.tex + +include ../sweb.make + + diff --git a/web/schemeweb2/example/SampleOfInclusion.sw b/web/schemeweb2/example/SampleOfInclusion.sw new file mode 100644 index 0000000000..b72be34c00 --- /dev/null +++ b/web/schemeweb2/example/SampleOfInclusion.sw @@ -0,0 +1,3 @@ +This is an example of inclusion within SchemeWEB document, which ends +right here. + diff --git a/web/schemeweb2/example/main.sw b/web/schemeweb2/example/main.sw new file mode 100644 index 0000000000..a6da8ec3fc --- /dev/null +++ b/web/schemeweb2/example/main.sw @@ -0,0 +1,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} |