summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorjao <jao@oblong.net>2009-05-09 00:49:53 +0200
committerjao <jao@oblong.net>2009-05-09 00:49:53 +0200
commitb2dc70474333811c4754da48bc40d052f4213dd8 (patch)
treed9b1691b8201000edac91febe587aef1e5597423 /sample
parentef9a55314304f6a4eb756542304b3d20ffd91e46 (diff)
downloadnowebmk-b2dc70474333811c4754da48bc40d052f4213dd8.tar.gz
nowebmk-b2dc70474333811c4754da48bc40d052f4213dd8.tar.bz2
Sample files in their own folder.
Diffstat (limited to 'sample')
-rw-r--r--sample/Makefile.sample53
-rw-r--r--sample/chapter1.nw15
-rw-r--r--sample/contents.tex9
-rw-r--r--sample/index.tex12
-rw-r--r--sample/intro.tex19
5 files changed, 108 insertions, 0 deletions
diff --git a/sample/Makefile.sample b/sample/Makefile.sample
new file mode 100644
index 0000000..a18a985
--- /dev/null
+++ b/sample/Makefile.sample
@@ -0,0 +1,53 @@
+# Author: Jose A Ortega Ruiz <jao@member.fsf.org>
+# Start date: Mon Jan 06, 2003 01:15
+#
+# Copyright (C) 2003, 2009 by Jose Antonio Ortega Ruiz
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+
+# document languages (comma separated)
+# NW_LANGUAGES = spanish
+
+# The name of the main tex file to be created
+# NW_MAIN = main
+
+# File containing the main tex file contents (included nw files loaded with
+# \input)
+# NW_CONTENTS = contents.tex
+
+# The document class for the main tex file
+# NW_DOCUMENT_CLASS ?= report
+
+# Files \input in the main file before noweb ones (listed in NW_CONTENTS)
+NW_PRE_TEX = intro.tex
+# Files \input in the main file after noweb ones (listed in NW_CONTENTS)
+NW_POST_TEX = index.tex
+
+# List of dirs to recurse into
+NW_SUBDIRS = .
+
+# Line format flag to noweb
+# NW_LINEFORMAT = -L"\# %L \"%F\" %N"
+NW_LINEFORMAT =
+
+# Location of noweb.mk
+NW_MAKEFILE = ../noweb.mk
+
+include $(NW_MAKEFILE)
+
+# Your all target here. noweb.mk provides: tangle, weave, dvi, html, clean
+all: tangle weave
+
diff --git a/sample/chapter1.nw b/sample/chapter1.nw
new file mode 100644
index 0000000..03a85b9
--- /dev/null
+++ b/sample/chapter1.nw
@@ -0,0 +1,15 @@
+% -*- mode: Noweb; noweb-code-mode: scheme-mode -*-
+
+% Noweb sample file, the first one \input in NW_CONTENTS
+
+\chapter{First sample chapter}
+
+Here you've got some code:
+
+<<sample.scm>>=
+
+(define identity (lambda (x) x))
+
+@ %def identity
+
+More text.
diff --git a/sample/contents.tex b/sample/contents.tex
new file mode 100644
index 0000000..8c58747
--- /dev/null
+++ b/sample/contents.tex
@@ -0,0 +1,9 @@
+% This file, referenced as NW_CONTENTS in the Makefile, inputs the
+% contents of the main tex file to be created. It will consist mainly
+% of a series of input commands loading the different .nw files
+% (without extension), but can contain arbitrary TeX code.
+
+
+\input{chapter1} % chapter1.nw
+
+
diff --git a/sample/index.tex b/sample/index.tex
new file mode 100644
index 0000000..481b685
--- /dev/null
+++ b/sample/index.tex
@@ -0,0 +1,12 @@
+% This file is listed in NW_POST_TEX in the Makefile, and, therefore,
+% will be loaded after the ones listed in NW_CONTENTS, without
+% weaving.
+
+\chapter{Index}
+\noindent Here is a list of all identifiers and code chunks defined
+and used in this document, and where they appear. Underlined entries
+indicate the place of definition.
+\subsubsection*{Identifiers}
+\nowebindex
+\subsubsection*{Chunks}
+\nowebchunks
diff --git a/sample/intro.tex b/sample/intro.tex
new file mode 100644
index 0000000..7b8fc31
--- /dev/null
+++ b/sample/intro.tex
@@ -0,0 +1,19 @@
+% This file is listed in NW_PRE_TEX in the Makefile, and, therefore,
+% will be loaded before the ones listed in NW_CONTENTS, without
+% weaving.
+
+\title{MzTube}
+\author{Jos\'e A Ortega Ruiz}
+
+\maketitle
+
+\begin{abstract}
+ Your abstract goes here
+\end{abstract}
+
+\tableofcontents
+
+\chapter{Introduction}
+\label{sec:introduction}
+
+And put here the introductory text