[latex3-commits] [git/l3build] master: add "Simple Flat" example (038f33c)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Dec 11 13:52:34 CET 2017
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/038f33c9e72c0c08c3fe00be1ee7b955e6e9a51d
>---------------------------------------------------------------
commit 038f33c9e72c0c08c3fe00be1ee7b955e6e9a51d
Author: Will Robertson <will at wspr.io>
Date: Mon Dec 11 22:05:07 2017 +1030
add "Simple Flat" example
sorry to have hijacked this branch!!
it just seemed like a good idea for testing
[ci skip]
>---------------------------------------------------------------
038f33c9e72c0c08c3fe00be1ee7b955e6e9a51d
examples/README.md | 1 +
examples/Simple-Flat/build.lua | 8 +++++
examples/Simple-Flat/simple-flat-code.tex | 3 ++
examples/Simple-Flat/simple-flat.dtx | 50 +++++++++++++++++++++++++++++
examples/Simple-Flat/simple-flat.ins | 6 ++++
examples/Simple-Flat/simple-flat.tex | 3 ++
6 files changed, 71 insertions(+)
diff --git a/examples/README.md b/examples/README.md
index eeccdce..654c334 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -11,6 +11,7 @@ The examples are:
| Example | Description |
| --- | --- |
+| `Simple-Flat` | Demonstrates a simple package in a flat layout |
| `Simple-Tree` | Demonstrates a simple package in a tree layout |
diff --git a/examples/Simple-Flat/build.lua b/examples/Simple-Flat/build.lua
new file mode 100755
index 0000000..c209d97
--- /dev/null
+++ b/examples/Simple-Flat/build.lua
@@ -0,0 +1,8 @@
+#!/usr/bin/env texlua
+
+module = "simple-flat"
+
+typesetfiles = {"*.tex"}
+
+kpse.set_program_name("kpsewhich")
+dofile(kpse.lookup("l3build.lua"))
diff --git a/examples/Simple-Flat/simple-flat-code.tex b/examples/Simple-Flat/simple-flat-code.tex
new file mode 100644
index 0000000..51661da
--- /dev/null
+++ b/examples/Simple-Flat/simple-flat-code.tex
@@ -0,0 +1,3 @@
+
+\AtBeginDocument{\AlsoImplementation}
+\input{simple-flat.dtx}
diff --git a/examples/Simple-Flat/simple-flat.dtx b/examples/Simple-Flat/simple-flat.dtx
new file mode 100644
index 0000000..ee4c43a
--- /dev/null
+++ b/examples/Simple-Flat/simple-flat.dtx
@@ -0,0 +1,50 @@
+%
+% \iffalse
+%<*driver>
+\ProvidesFile{simple-flat.dtx}
+%</driver>
+%<pkg>\ProvidesPackage{simple-flat}
+%<*pkg>
+ [2017/12/11 v0.1 Simple flat example]
+%</pkg>
+%<*driver>
+\documentclass{ltxdoc}
+\EnableCrossrefs
+\CodelineIndex
+\begin{document}
+ \DocInput{simple-flat.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+% \GetFileInfo{simple-flat.dtx}
+% \title{The Simple Flat example}
+% \date{\fileversion \qquad \filedate}
+% \maketitle
+%
+% \begin{abstract}
+% This is the documentation of the Simple Flat example.
+% \end{abstract}
+%
+% \section{Introduction}
+%
+% This is where you would explain the package to a user.
+%
+% \StopEventually{}
+%
+% \section{Implementation}
+%
+% \begin{macrocode}
+%<*pkg>
+% \end{macrocode}
+%
+% \begin{macrocode}
+\typeout{Actually this isn't a real package!}
+% \end{macrocode}
+%
+% \begin{macrocode}
+%</pkg>
+% \end{macrocode}
+%
+% \Finale
+%
diff --git a/examples/Simple-Flat/simple-flat.ins b/examples/Simple-Flat/simple-flat.ins
new file mode 100644
index 0000000..9255566
--- /dev/null
+++ b/examples/Simple-Flat/simple-flat.ins
@@ -0,0 +1,6 @@
+
+\input docstrip.tex
+\keepsilent
+\askforoverwritefalse
+\generate{\file{\jobname.sty}{\from{\jobname.dtx}{pkg}}}
+\endbatchfile
diff --git a/examples/Simple-Flat/simple-flat.tex b/examples/Simple-Flat/simple-flat.tex
new file mode 100644
index 0000000..73e480b
--- /dev/null
+++ b/examples/Simple-Flat/simple-flat.tex
@@ -0,0 +1,3 @@
+
+\AtBeginDocument{\OnlyDescription}
+\input{simple-flat.dtx}
More information about the latex3-commits
mailing list