From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- web/schemeweb2/example/Makefile | 5 ++++ web/schemeweb2/example/SampleOfInclusion.sw | 3 ++ web/schemeweb2/example/main.sw | 43 +++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 web/schemeweb2/example/Makefile create mode 100644 web/schemeweb2/example/SampleOfInclusion.sw create mode 100644 web/schemeweb2/example/main.sw (limited to 'web/schemeweb2/example') 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} -- cgit v1.2.3