Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
252 additions
and 6 deletions.
There are no files selected for viewing
| @@ -0,0 +1,18 @@ | ||
| #!/bin/bash | ||
| ## Buildscript | ||
|
|
||
| if [ -z "$1" ] | ||
| then echo "Please give a jobname" | ||
| exit 1 | ||
| fi | ||
| jobname=${1%.} | ||
|
|
||
| pdflatex "$jobname.ins" | ||
| pdflatex "$jobname.dtx" | ||
| makeindex -s gglo.ist -o "$jobname.gls" "$jobname.glo" | ||
| makeindex -s gind "$jobname" | ||
| pdflatex "$jobname.dtx" | ||
| makeindex -s gglo.ist -o "$jobname.gls" "$jobname.glo" | ||
| makeindex -s gind "$jobname" | ||
| thumbpdf "$jobname" | ||
| pdflatex "$jobname.dtx" |
| @@ -0,0 +1,29 @@ | ||
| %% | ||
| %% This is file `single-file-template.sty', | ||
| %% generated with the docstrip utility. | ||
| %% | ||
| %% The original source files were: | ||
| %% | ||
| %% single-file-template.dtx (with options: `package') | ||
| %% | ||
| %% 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. | ||
| %% | ||
| %% THERE ARE A FEW PROBLEMS WITH THIS TEMPLATE | ||
| %% (because I cound not figure out how to get them to work): | ||
| %% - no CharacterTable | ||
| %% - no CheckSum | ||
| %% - no DoNotIndex{backslash if} | ||
| \NeedsTeXFormat{LaTeX2e} | ||
| \ProvidesPackage{template}[2012/08/18 v1.0 Template .dtx file] | ||
|
|
||
| \endinput | ||
| %% | ||
| %% End of file `single-file-template.sty'. |
| @@ -0,0 +1,136 @@ | ||
| % \iffalse meta-comment | ||
| % | ||
| % 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. | ||
| % | ||
| % \fi | ||
| % | ||
| % \iffalse | ||
| %<*driver> | ||
| \ProvidesFile{\jobname.dtx} | ||
| %</driver> | ||
| %<package>\NeedsTeXFormat{LaTeX2e}[1998/12/01] | ||
| %<package>\ProvidesPackage{template} | ||
| %<*package> | ||
| [2012/08/23 v1.0 Template] | ||
| %</package> | ||
| % | ||
| %<*driver> | ||
| \documentclass[english]{ltxdoc} | ||
| \newcommand{\PackageURL}{https://github.com/ypid/latex-packages} | ||
| \newcommand{\PackageAuthor}{Robin Schneider} | ||
| \newcommand{\PackageAuthorEmail}{ypid23@aol.de} | ||
| \newcommand{\PrintPackage}[1]{\textsf{#1}} | ||
| \typeout{} | ||
| \typeout{* If the two package names look the same you can ignore this LaTeX Warning *} | ||
| \usepackage{\jobname} %% ^^A This produces a warning even when there is no problem. | ||
| %% ^^A I think there is an error in the comparison (expand \jobname ...) | ||
| \usepackage{ | ||
| babel, | ||
| xcolor, | ||
| url, | ||
| hypdoc, | ||
| } | ||
| \GetFileInfo{\jobname.sty} | ||
| \hypersetup{ | ||
| pdftitle={A manual for \jobname}, | ||
| pdfauthor={\PackageAuthor{} <\PackageAuthorEmail>}, | ||
| pdfsubject={\fileinfo}, | ||
| baseurl={\PackageURL}, | ||
| pdfkeywords={This document corresponds to \textsf{\jobname}~\fileversion, | ||
| dated \filedate} | ||
| } | ||
|
|
||
| \title{The \PrintPackage{\jobname} package\thanks{This document | ||
| corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}} | ||
| \author{\PackageAuthor \\ | ||
| \texttt{\href{mailto:\PackageAuthorEmail?subject=LaTeX package \jobname}{\PackageAuthorEmail}}} | ||
|
|
||
| \EnableCrossrefs | ||
| \CodelineIndex | ||
| \RecordChanges | ||
| \begin{document} | ||
| \DocInput{\jobname.dtx} | ||
| \PrintChanges | ||
| \PrintIndex | ||
| \end{document} | ||
| %</driver> | ||
| % \fi | ||
| % | ||
| % \CheckSum{0} | ||
| % \CharacterTable | ||
| % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z | ||
| % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z | ||
| % Digits \0\1\2\3\4\5\6\7\8\9 | ||
| % Exclamation \! Double quote \" Hash (number) \# | ||
| % Dollar \$ Percent \% Ampersand \& | ||
| % Acute accent \' Left paren \( Right paren \) | ||
| % Asterisk \* Plus \+ Comma \, | ||
| % Minus \- Point \. Solidus \/ | ||
| % Colon \: Semicolon \; Less than \< | ||
| % Equals \= Greater than \> Question mark \? | ||
| % Commercial at \@ Left bracket \[ Backslash \\ | ||
| % Right bracket \] Circumflex \^ Underscore \_ | ||
| % Grave accent \` Left brace \{ Vertical bar \| | ||
| % Right brace \} Tilde \~} | ||
| % | ||
| % \changes{v1.0}{2012/06/12}{Initial version} | ||
| % | ||
| % \DoNotIndex{\RequirePackage, \DeclareOption, \ProcessOptions} | ||
| % \DoNotIndex{\PackageWarning, \MessageBreak} | ||
| % \DoNotIndex{\DeclareRobustCommand, \newcommand, \renewcommand} | ||
| % \DoNotIndex{\newenvironment} | ||
| % \DoNotIndex{\if, \else, \fi, \ifcase, \or, \ifthenelse, \AND, \value, \relax} | ||
| % \DoNotIndex{\@currname, \newcounter, \setcounter} | ||
| % \DoNotIndex{\endinput} | ||
| % | ||
| % \maketitle | ||
| % | ||
| % \phantomsection | ||
| % \addcontentsline{toc}{section}{\abstractname} | ||
| % \begin{abstract} | ||
| % The \PrintPackage{\jobname} package \\ | ||
| % Fork me on GitHub: \url{\PackageURL} \end{abstract} | ||
| % | ||
| % \tableofcontents | ||
| % | ||
| % \section{Introduction} | ||
| % The \PrintPackage{\jobname} package defines | ||
| % | ||
| % \section{Usage} | ||
| % Just load the package placing | ||
| % \begin{quote} | ||
| % |\usepackage{template}| | ||
| % \end{quote} | ||
| % in the preamble of your \LaTeXe{} source file. | ||
| % | ||
| % \DescribeMacro{\templateTest} | ||
| % The macro |\templateTest| {\marg{\LaTeX{} counter name}} takes a name of a LaTeX counter as its only | ||
| % not optional parameter and typesets it. | ||
| % | ||
| % | ||
| % \StopEventually{} | ||
| % | ||
| % \section{Implementation} | ||
| % This package depends on these packages. | ||
| % \begin{macrocode} | ||
| \RequirePackage{xifthen} | ||
| % \end{macrocode} | ||
| % \subsection{Macro definition} | ||
| % \begin{macro}{\templateTest} | ||
| % A test macro. | ||
| % \begin{macrocode} | ||
| \DeclareRobustCommand{\templateTest}[1]{% | ||
| \arabic{#1}% | ||
| } | ||
| \endinput | ||
| % \end{macrocode} | ||
| % \end{macro} | ||
| % \endinput |
| @@ -0,0 +1,35 @@ | ||
| % \iffalse The license starting three lines down applies to this file | ||
| \input docstrip.tex \declarepreamble\mypreamble | ||
|
|
||
| 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. | ||
|
|
||
| \endpreamble | ||
|
|
||
| \keepsilent | ||
| \usedir{tex/latex/\jobname} | ||
| \usepreamble\mypreamble | ||
| \askforoverwritefalse | ||
| \generate{\file{\jobname.sty}{\from{\jobname.dtx}{package}}} | ||
|
|
||
| \Msg{***********************************************************} | ||
| \Msg{*} | ||
| \Msg{* To finish the installation you have to move the following} | ||
| \Msg{* file into a directory searched by TeX:} | ||
| \Msg{*} | ||
| \Msg{* \space\space \jobname.sty} | ||
| \Msg{*} | ||
| \Msg{* To produce the documentation run the files} | ||
| \Msg{* `\jobname.dtx' through LaTeX.} | ||
| \Msg{*} | ||
| \Msg{* Happy TeXing} | ||
| \Msg{***********************************************************} | ||
|
|
||
| \endbatchfile |
| @@ -0,0 +1,28 @@ | ||
| %% | ||
| %% This is file `template.sty', | ||
| %% generated with the docstrip utility. | ||
| %% | ||
| %% The original source files were: | ||
| %% | ||
| %% template.dtx (with options: `package') | ||
| %% | ||
| %% 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. | ||
| %% | ||
| \NeedsTeXFormat{LaTeX2e}[1998/12/01] | ||
| \ProvidesPackage{template} | ||
| [2012/08/23 v1.0 Template] | ||
| \RequirePackage{xifthen} | ||
| \DeclareRobustCommand{\templateTest}[1]{% | ||
| \arabic{#1}% | ||
| } | ||
| \endinput | ||
| %% | ||
| %% End of file `template.sty'. |