Skip to content
Permalink
Browse files
optimized
  • Loading branch information
Robin Schneider committed Aug 31, 2012
1 parent ab0554c commit 75a5b9d653b2798a9cb8f10535f50abf98e94cd2
@@ -1,6 +1,7 @@
%% Chemie Abkürzungen
%% You have to use \includeListOfAbbreviationsChemistry[multicols] to include it
% \printSectionListOfAbbreviationsChemistry
%\ProvidesFile{ListOfAbbreviationsChemistry.tex}[2010/10/17 chemistryRS List Of Abbreviations]%
\acro{k.g.V.}[k.\,g.\,V.]{kleinste gemeinsame Vielfache}%
\acro{1}[H]{Wasserstoff}%
\acro{2}[He]{Helium}%
@@ -209,4 +210,4 @@
\acro{P2O5}[\ce{P2O5}]{Phosphorpentoxid}%
\acro{SO}[\ce{SO}]{Schwefeloxid}%
\acro{SO2}[\ce{SO2}]{Schwefeldioxid}%
\acro{SO3}[\ce{SO3}]{Schwefeltrioxid}%
\acro{SO3}[\ce{SO3}]{Schwefeltrioxid}%
@@ -10,10 +10,10 @@
\usepackage{fixmath} %% ISO-konforme griech. Buchstaben
\usepackage{array}
%\usepackage{lcg} %% erzeugt zufallszahlen %\rand\arabic{rand}
%\input random.tex %\setrannum{\temp}{1}{6}\the\temp
%\input{random.tex} %\setrannum{\temp}{1}{6}\the\temp

%\RequirePackage{zahl2string} %% \Numstring{page}\Numstr{23}
%\input binhex %% conversion into binary-based number systems
%\input{binhex.tex} %% conversion into binary-based number systems
%\RequirePackage{fp}

%\usepackage{tabularcalc} %% Berechnet Formeln in einer tabellarischen Umgebung
@@ -12,7 +12,5 @@ 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"
@@ -10,6 +10,21 @@ The latest version of this license is in
and version 1.3 or later is part of all distributions of LaTeX
version 2005/12/01 or later.

CTAN: http://www.ctan.org/pkg/XXXPACKAGEXXX
Code repository: https://github.com/ypid/latex-packages/XXXPACKAGEXXX

DESCRIPTION

DESCRIPTION
ASDSDASJKLFEJIOAFJEIOFJOSDJISJDIASDSDASJKLFEJIOAFJEIOFJOSDJISJDI


GENERATING THE FILES
You can generate the XXXPACKAGEXXX.sty file with: pdflatex XXXPACKAGEXXX.ins

The documentation can be generated with:
pdflatex XXXPACKAGEXXX.dtx
makeindex -s gglo.ist -o XXXPACKAGEXXX.gls XXXPACKAGEXXX.glo
makeindex -s gind XXXPACKAGEXXX
pdflatex XXXPACKAGEXXX.dtx
thumbpdf XXXPACKAGEXXX
pdflatex XXXPACKAGEXXX.dtx
@@ -1,7 +1,7 @@
% \iffalse meta-comment
%
% 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.
@@ -21,7 +21,7 @@
%
% \iffalse
%<*driver>
\ProvidesFile{\jobname.dtx}
\ProvidesFile{<+filebase+>.dtx}
%</driver>
%<<+type+>>%% See file '<+filebase+>.dtx' for copyright and licence.
%<<+type+>>\NeedsTeXFormat{LaTeX2e}[1998/12/01]
@@ -33,35 +33,33 @@
%<*driver>
\documentclass[english]{ltxdoc}
\newcommand{\PackageURL}{https://github.com/ypid/latex-packages/tree/master/<+filebase+>}
\newcommand{\PackageCTANURL}{http://www.ctan.org/pkg/<+filebase+>}
\newcommand{\PackageAuthor}{<+author+>}
\newcommand{\PackageAuthorEmail}{<+email+>}
\newcommand{\PackageName}{\PrintPackage{<+filebase+>}}
\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{<+filebase+>}
\usepackage{
babel,
csquotes,
xcolor,
url,
hypdoc,
}
\GetFileInfo{\jobname.dtx}
\GetFileInfo{<+filebase+>.dtx}
\hypersetup{
pdftitle={A manual for \jobname},
pdftitle={A manual for \PackageName},
pdfauthor={\PackageAuthor{} <\PackageAuthorEmail>},
pdfsubject={\fileinfo},
baseurl={\PackageURL},
pdfkeywords={This document corresponds to \textsf{\jobname}~\fileversion,
pdfkeywords={This document corresponds to \PackageName~\fileversion,
dated \filedate}
}

\title{The \PrintPackage{\jobname} package\thanks{This document
corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
\title{The \PackageName{} package\thanks{This document
corresponds to \PackageName~\fileversion, dated \filedate.}}
\author{\PackageAuthor \\
\texttt{\href{mailto:\PackageAuthorEmail?subject=LaTeX package \jobname}%
\texttt{\href{mailto:\PackageAuthorEmail?subject=LaTeX package <+filebase+>}%
{\PackageAuthorEmail}%
}%
}
@@ -70,7 +68,7 @@ corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
\CodelineIndex
\RecordChanges
\begin{document}
\DocInput{\jobname.dtx}
\DocInput{<+filebase+>.dtx}
\PrintChanges
\PrintIndex
\end{document}
@@ -102,7 +100,7 @@ corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
% \DoNotIndex{\DeclareRobustCommand, \newcommand, \renewcommand}
% \DoNotIndex{\DeclareStringOption, \ProcessLocalKeyvalOptions}
% \DoNotIndex{\ProcessKeyvalOptions, \SetupKeyvalOptions, \DeclareBoolOption}
% \DoNotIndex{\newenvironment, \jobname}
% \DoNotIndex{\newenvironment}
% \DoNotIndex{\if, \else, \fi, \ifcase, \or, \ifthenelse, \AND, \value, \relax}
% \DoNotIndex{\equal, \@currname, \newcounter, \setcounter}
% \DoNotIndex{\endinput}
@@ -112,21 +110,22 @@ corresponds to \textsf{\jobname}~\fileversion, dated \filedate.}}
% \phantomsection
% \addcontentsline{toc}{section}{\abstractname}
% \begin{abstract}
% The \PrintPackage{\jobname} package \\
% The \PackageName{} package \\
%% ^^A Location on CTAN: \url{\PackageCTANURL} \\
% Fork me on GitHub: \url{\PackageURL} \end{abstract}
%
%
% \tableofcontents
%
%
% \section{Introduction}
% The \PrintPackage{\jobname} package defines
%
% The \PrintPackage{<+filebase+>} package defines
%
% \section{Usage}
% Just load the package placing
% \begin{quote}
% |\usepackage{<+filebase+>}|
% \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.
@@ -2,20 +2,20 @@
\input docstrip.tex

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

\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.<+extension+>}
\Msg{* \space\space <+filebase+>.<+extension+>}
\Msg{*}
\Msg{* To produce the documentation run the files}
\Msg{* `\jobname.dtx' through LaTeX.}
\Msg{* `<+filebase+>.dtx' through LaTeX.}
\Msg{*}
\Msg{* Happy TeXing}
\Msg{***********************************************************}
@@ -0,0 +1,8 @@
#!/bin/sh
## kpseshow -- Datei anzeigen, die TeX finden würde
## O'Reilly LaTeX Hack #91

file=`kpsewhich $1`
if [ -n "$file" ]
then editor $file
fi

0 comments on commit 75a5b9d

Please sign in to comment.