summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty')
-rw-r--r--Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty24
1 files changed, 21 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty b/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty
index 9164dbd36aa..d9320425f40 100644
--- a/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty
+++ b/Master/texmf-dist/tex/latex/ydoc/ydoc-doc.sty
@@ -8,8 +8,8 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{ydoc-doc}[%
- 2011/08/11
- v0.5alpha
+ 2011/11/19
+ v0.6alpha
ydoc package to provide 'doc' macros]
\newcount\ydoc@bslashcnt
\def\ydoc@countbslashes{%
@@ -149,6 +149,9 @@
\def\package{\def\@package}
\package{\jobname}
+\def\bundle{\def\@bundle}
+\let\@bundle\@empty
+
\def\ctanlocation{\def\@ctanlocation##1}
\ctanlocation{http://www.ctan.org/pkg/#1}
@@ -158,12 +161,15 @@
\begingroup
\edef\@tempa{%
\endgroup
+ CTAN:
\noexpand\url
- {\@ctanlocation{\@package}}%
+ {\@ctanlocation{\ifx\@bundle\@empty\@package\else\@bundle\fi}}%
}%
\@tempa
}
+\let\@repository\@empty
+\protected\def\repository{\urldef\@repository\url}
\protected\def\homepage{\urldef\@homepage\url}
\protected\def\email{\hyper@normalise\email@}
\def\email@#1{\def\@plainemail{#1}\def\@email{\hyper@linkurl{\Hurl{#1}}{mailto:#1}}}
@@ -172,6 +178,7 @@
\let\@plainemail\empty
\title{The \texorpdfstring{\pkgtitle{\@package}}{\@package} Package}
+\def\@bundlesubtitle{Part of the \texorpdfstring{\pkgtitle{\@bundle}}{\@bundle} bundle}
\protected\def\pkgtitle#1{%
\texorpdfstring{\textsf{#1}}{#1}%
@@ -183,6 +190,9 @@
\begin{center}%
\let\footnote\thanks
{\LARGE \@title \par }\vskip 1.5em%
+ \ifx\@bundle\@empty\else
+ {\large \@bundlesubtitle \par }\vskip 1.5em%
+ \fi
{\large \lineskip .5em%
\begin{tabular}[t]{c}%
\@author
@@ -202,6 +212,14 @@
\end{tabular}%
\par}%
\vskip 1em
+ \ifx\@repository\@empty\else
+ {\large \lineskip .5em%
+ \begin{tabular}[t]{c}%
+ VC: \@repository
+ \end{tabular}%
+ \par}%
+ \fi
+ \vskip 1em
{\large \@date }%
\end{center}%
\par\vskip 1.5em