Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add "Bundle Tree" example -- it works!
- Loading branch information
Showing
9 changed files
with
172 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env texlua | ||
|
||
bundle = "bundle-tree" | ||
module = "module-one" | ||
maindir = ".." | ||
|
||
sourcefiledir = "code" | ||
docfiledir = "doc" | ||
typesetfiles = {"*.dtx","*.tex"} | ||
packtdszip = true -- recommended for "tree" layouts | ||
|
||
kpse.set_program_name("kpsewhich") | ||
dofile(kpse.lookup("l3build.lua")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
% \iffalse | ||
% | ||
%<*driver> | ||
\ProvidesFile{module-one.dtx} | ||
%</driver> | ||
%<pkg>\ProvidesPackage{module-one} | ||
%<*pkg> | ||
[2017/12/10 v0.1 Module One example] | ||
%</pkg> | ||
% | ||
%<*driver> | ||
\documentclass{ltxdoc} | ||
\EnableCrossrefs | ||
\CodelineIndex | ||
\begin{document} | ||
\DocInput{\jobname.dtx} | ||
\end{document} | ||
%</driver> | ||
% \fi | ||
% | ||
% \GetFileInfo{module-one.dtx} | ||
% \title{The \textsf{module-one} example} | ||
% \date{\filedate\qquad\fileversion} | ||
% \maketitle | ||
% \begin{abstract} | ||
% This is the implementation of the module-one example. | ||
% \end{abstract} | ||
% | ||
% \tableofcontents | ||
% | ||
% \section{Introduction} | ||
% | ||
% In the module-one example, code is located in code/ and documentation is located in doc/. | ||
% | ||
% \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 | ||
% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
\input docstrip.tex | ||
\keepsilent | ||
\askforoverwritefalse | ||
\generate{\file{\jobname.sty}{\from{\jobname.dtx}{pkg}}} | ||
\endbatchfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
\documentclass{article} | ||
|
||
\begin{document} | ||
|
||
\title{Documentation for bundle tree / module one} | ||
\maketitle | ||
|
||
\section{Introduction} | ||
|
||
There's not much more to say right here. | ||
This is where the user documentation for the example goes. | ||
|
||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env texlua | ||
|
||
bundle = "bundle-tree" | ||
module = "module-two" | ||
maindir = ".." | ||
|
||
sourcefiledir = "code" | ||
docfiledir = "doc" | ||
typesetfiles = {"*.dtx","*.tex"} | ||
packtdszip = true -- recommended for "tree" layouts | ||
|
||
kpse.set_program_name("kpsewhich") | ||
dofile(kpse.lookup("l3build.lua")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
% \iffalse | ||
% | ||
%<*driver> | ||
\ProvidesFile{module-two.dtx} | ||
%</driver> | ||
%<pkg>\ProvidesPackage{module-two} | ||
%<*pkg> | ||
[2017/12/10 v0.1 Module two example] | ||
%</pkg> | ||
% | ||
%<*driver> | ||
\documentclass{ltxdoc} | ||
\EnableCrossrefs | ||
\CodelineIndex | ||
\begin{document} | ||
\DocInput{\jobname.dtx} | ||
\end{document} | ||
%</driver> | ||
% \fi | ||
% | ||
% \GetFileInfo{module-two.dtx} | ||
% \title{The \textsf{module-two} example} | ||
% \date{\filedate\qquad\fileversion} | ||
% \maketitle | ||
% \begin{abstract} | ||
% This is the implementation of the module-two example. | ||
% \end{abstract} | ||
% | ||
% \tableofcontents | ||
% | ||
% \section{Introduction} | ||
% | ||
% In the module-two example, code is located in code/ and documentation is located in doc/. | ||
% | ||
% \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 | ||
% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
\input docstrip.tex | ||
\keepsilent | ||
\askforoverwritefalse | ||
\generate{\file{\jobname.sty}{\from{\jobname.dtx}{pkg}}} | ||
\endbatchfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
\documentclass{article} | ||
|
||
\begin{document} | ||
|
||
\title{Documentation for bundle tree / module two} | ||
\maketitle | ||
|
||
\section{Introduction} | ||
|
||
There's not much more to say right here. | ||
This is where the user documentation for the example goes. | ||
|
||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env texlua | ||
|
||
bundle = "bundle-tree" | ||
|
||
packtdszip = true | ||
|
||
kpse.set_program_name("kpsewhich") | ||
dofile(kpse.lookup("l3build.lua")) |