Skip to content
Permalink
Browse files
optimized
  • Loading branch information
Robin Schneider committed Aug 27, 2012
1 parent 619a7f6 commit 06f948149a3b0bd2c81062078add19af6bb1ac5d

This file was deleted.

@@ -0,0 +1,6 @@
* The template 'single-file-template.dtx' is based on http://texhacks.blogspot.de/2011/01/simpler-dtx-template.html
If you like the idea of a single file you can also check out 'ydoc.dtx'

* The files 'template.dtx' and 'template.ins' are templates for the perl script sty2dtx

* ./make [jobname] for example ./make fnumprint
@@ -0,0 +1,10 @@
#!/bin/bash
## makes a zip file to upload it to ctan
if [ -z "$1" ]
then echo "Please give a package. The package has to be in a directory."
exit 1
fi

archiv="$1.zip"
rm "$archiv"
zip "$archiv" "$1/$1.dtx" "$1/$1.ins" "$1/$1.pdf" "$1/README"
@@ -0,0 +1,15 @@
LaTeX package 'XXXPACKAGEXXX'
~~~~~~~~~~~~~~~~~~~~~~~~
Copyright (C) 2012 by Robin Schneider <ypid23@aol.de>

This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
of this license or (at your option) any later version.
The latest version of this license is in
http://www.latex-project.org/lppl.txt
and version 1.3 or later is part of all distributions of LaTeX
version 2005/12/01 or later.

Code repository: https://github.com/ypid/latex-packages/XXXPACKAGEXXX

DESCRIPTION
@@ -10,12 +10,20 @@
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is <+maintainer+>.
%
% This work consists of the files <+filebase+>.dtx and <+filebase+>.ins
% and the derived filebase <+filebase+>.<+extension+>.
%
% \fi
%
% \iffalse
%<*driver>
\ProvidesFile{\jobname.dtx}
%</driver>
%<<+type+>>%% See file '<+filebase+>.dtx' for copyright and licence.
%<<+type+>>\NeedsTeXFormat{LaTeX2e}[1998/12/01]
%<<+type+>>\Provides<+Type+>{<+filebase+>}
%<*<+type+>>
@@ -24,7 +32,7 @@
%
%<*driver>
\documentclass[english]{ltxdoc}
\newcommand{\PackageURL}{https://github.com/ypid/latex-packages}
\newcommand{\PackageURL}{https://github.com/ypid/latex-packages/tree/master/<+filebase+>}
\newcommand{\PackageAuthor}{<+author+>}
\newcommand{\PackageAuthorEmail}{<+email+>}
\newcommand{\PrintPackage}[1]{\textsf{#1}}
@@ -35,6 +43,7 @@ LaTeX Warning *}
%% ^^A I think there is an error in the comparison (expand \jobname ...)
\usepackage{
babel,
csquotes,
xcolor,
url,
hypdoc,
@@ -91,9 +100,11 @@ corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
% \DoNotIndex{\RequirePackage, \DeclareOption, \ProcessOptions}
% \DoNotIndex{\PackageWarning, \MessageBreak}
% \DoNotIndex{\DeclareRobustCommand, \newcommand, \renewcommand}
% \DoNotIndex{\DeclareStringOption, \ProcessLocalKeyvalOptions}
% \DoNotIndex{\ProcessKeyvalOptions, \SetupKeyvalOptions, \DeclareBoolOption}
% \DoNotIndex{\newenvironment}
% \DoNotIndex{\if, \else, \fi, \ifcase, \or, \ifthenelse, \AND, \value, \relax}
% \DoNotIndex{\@currname, \newcounter, \setcounter}
% \DoNotIndex{\equal, \@currname, \newcounter, \setcounter}
% \DoNotIndex{\endinput}
%
% \maketitle
@@ -112,7 +123,7 @@ corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
% \section{Usage}
% Just load the package placing
% \begin{quote}
% |\usepackage{template}|
% |\usepackage{<+filebase+>}|
% \end{quote}
% in the preamble of your \LaTeXe{} source file.
%
@@ -139,7 +150,6 @@ corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
% A test macro.

<+IMPLEMENTATION+>

% \end{macro}
%
% \iffalse
@@ -1,23 +1,11 @@
%% The license starting three lines down applies to this file
\input docstrip.tex \declarepreamble\mypreamble

Copyright (C) <+year+> by <+author+> <<+email+>>

This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
of this license or (at your option) any later version.
The latest version of this license is in
http://www.latex-project.org/lppl.txt
and version 1.3 or later is part of all distributions of LaTeX
version 2005/12/01 or later.

\endpreamble
%% See file '<+filebase+>.dtx' for copyright and licence.
\input docstrip.tex

\keepsilent
\usedir{tex/latex/\jobname}
\usepreamble\mypreamble
\askforoverwritefalse
\generate{\file{\jobname.<+extension+>}{\from{\jobname.dtx}{<+type+>}}}
\generate{\nopreamble\file{\jobname.<+extension+>}{\from{\jobname.dtx}{<+type+>}}}

\Msg{***********************************************************}
\Msg{*}

0 comments on commit 06f9481

Please sign in to comment.