summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/dtxgallery/single-source.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-08-08 17:46:07 +0000
committerKarl Berry <karl@freefriends.org>2007-08-08 17:46:07 +0000
commite5fe7bcd5a619359401f314997d3e95db5100c5f (patch)
tree0b702e1f6db15e9d38f62cae172caf44fb664dd0 /Master/texmf-dist/source/latex/dtxgallery/single-source.dtx
parent47a39d3836481a603a6eed0de31822508101f6d5 (diff)
new package dtxgallery (6aug07)
git-svn-id: svn://tug.org/texlive/trunk@4715 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/dtxgallery/single-source.dtx')
-rw-r--r--Master/texmf-dist/source/latex/dtxgallery/single-source.dtx67
1 files changed, 67 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/dtxgallery/single-source.dtx b/Master/texmf-dist/source/latex/dtxgallery/single-source.dtx
new file mode 100644
index 00000000000..2b24ed47637
--- /dev/null
+++ b/Master/texmf-dist/source/latex/dtxgallery/single-source.dtx
@@ -0,0 +1,67 @@
+% \iffalse
+%
+% Part of Will Robertson's DTXGALLERY bundle, version 1.
+%
+%<*internal>
+\iffalse
+%</internal>
+%<*readme>
+-----------------
+single-source.dtx
+
+This is an example of everything
+being extracted from the .dtx file.
+-----------------
+%</readme>
+%<*internal>
+\fi
+\begingroup
+%</internal>
+%<*batchfile>
+\input docstrip.tex
+\keepsilent\askforoverwritefalse
+\nopreamble\nopostamble
+\generate{\file{\jobname.sty}{\from{\jobname.dtx}{package}}}
+%</batchfile>
+%<batchfile>\endbatchfile
+%<*internal>
+\generate{\file{\jobname.ins}{\from{\jobname.dtx}{batchfile}}}
+\generate{\file{\jobname-readme.txt}{\from{\jobname.dtx}{readme}}}
+\endgroup
+%</internal>
+%
+%<*driver>
+\documentclass{ltxdoc}
+\usepackage{single-source,fancyvrb}
+\EnableCrossrefs
+\CodelineIndex
+\RecordChanges
+%\OnlyDescription
+\begin{document}
+\title{Example of `single source' docscript extraction}
+\DocInput{\jobname.dtx}
+\end{document}
+%</driver>
+%
+% \fi
+%
+% \section{The documented source code}
+%
+% \begin{macrocode}
+%<*package>
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{single-source}[2005/07/15 v0.1 dtx: single-source]
+\def\mymacro{hello :)}
+%</package>
+% \end{macrocode}
+%
+% \section{The contents of single-source.sty}
+% \VerbatimInput[frame=single]{single-source.sty}
+%
+% \section{The contents of single-source.ins}
+% \VerbatimInput[frame=single]{single-source.ins}
+%
+% \section{The contents of single-source-readme.txt}
+% \VerbatimInput[frame=single]{single-source-readme.txt}
+%
+% \Finale