diff options
author | Karl Berry <karl@freefriends.org> | 2022-11-01 19:50:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-11-01 19:50:40 +0000 |
commit | bb0b72659a9f57a4d360f919a7b00ade0d533030 (patch) | |
tree | 158b578054b8522e1498c5a006d54b97479b5739 /Master/texmf-dist/source/latex/ydoc/ydoc.dtx | |
parent | aa6046aa8081d7aa6edd54c8ae2b746331548803 (diff) |
ydoc (1nov22)
git-svn-id: svn://tug.org/texlive/trunk@64887 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/ydoc/ydoc.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/ydoc/ydoc.dtx | 96 |
1 files changed, 65 insertions, 31 deletions
diff --git a/Master/texmf-dist/source/latex/ydoc/ydoc.dtx b/Master/texmf-dist/source/latex/ydoc/ydoc.dtx index c285ee5ca96..4366e753023 100644 --- a/Master/texmf-dist/source/latex/ydoc/ydoc.dtx +++ b/Master/texmf-dist/source/latex/ydoc/ydoc.dtx @@ -103,11 +103,10 @@ % \fi % \iffalse COPYRIGHT %% -%% Copyright (c) 2010-2011 by Martin Scharrer <martin@scharrer-online.de> -%% WWW: http://latex.scharrer-online.de/ +%% Copyright (c) 2010-2022 by Martin Scharrer <martin.scharrer@web.de> %% %% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 +%% conditions of the LaTeX Project Public License, either version 1.3c %% 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 @@ -120,7 +119,7 @@ %% %% This work consists of the files ydoc.dtx and ydoc.ins %% and the derived file ydoc.cls, ydoc.sty, ydoc-code.sty, -%% ydoc-expl.sty and ydoc-desc.sty. +%% ydoc-expl.sty, ydoc-doc.sty and ydoc-desc.sty. %% % \fi % @@ -182,10 +181,10 @@ \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesFile{ydoc.dtx}[% %<=*DATE> - 2012/05/03 + 2022/10/26 %<=/DATE> %<=*VERSION> - v0.6alpha + v0.7alpha %<=/VERSION> DTX file of ydoc] @@ -233,11 +232,12 @@ % % \DoNotIndex{\newcommand,\newenvironment} % -% \GetFileInfoSVN{ydoc.dtx} +% \GetFileInfo{ydoc.dtx} % % \title{The \textsf{\textbf{ydoc}} Class and Packages} % \author{Martin Scharrer} -% \repository{https://bitbucket.org/martin_scharrer/ydoc/} +% \repository{https://github.com/MartinScharrer/ydoc/} +% \github{MartinScharrer/ydoc} % \email{martin@scharrer.de} % \makeatletter % \date{Version \expandafter\@gobble\fileversion\\[0.5ex]\filedate} @@ -247,7 +247,7 @@ % % \ifpdf % \hypersetup{% -% pdfauthor = {Martin Scharrer <martin@scharrer-online.de>}, +% pdfauthor = {Martin Scharrer <martin.scharrer@web.de>}, % pdftitle = {The ydoc package, \fileversion, \filedate}, % pdfsubject = {Documentation of LaTeX package ydoc.}, % pdfkeywords = {ydoc, documentation, LaTeX} @@ -564,7 +564,6 @@ % \end{macrocode} % % \begin{macrocode} -\RequirePackage{svn-prov}[2010/04/03] \RequirePackage{ydoc-code} \RequirePackage{ydoc-expl} \RequirePackage{ydoc-desc} @@ -1257,19 +1256,20 @@ \def\ctanlocation{\def\@ctanlocation##1} -\ctanlocation{http://www.ctan.org/pkg/#1} +\ctanlocation{https://www.ctan.org/pkg/#1} \date{Version \fileversion\space -- \filedate} \def\@homepage{% - \begingroup - \edef\@tempa{% - \endgroup - CTAN: - \noexpand\url - {\@ctanlocation{\ifx\@bundle\@empty\@package\else\@bundle\fi}}% - }% - \@tempa + CTAN: \@ctan +} + +\def\@ctan{% + \ydoc@eurl{\@ctanlocation{\ifx\@bundle\@empty\@package\else\@bundle\fi}}% +} + +\def\@texdoc{% + \ydoc@eurl{https://texdoc.org/pkg/\ifx\@bundle\@empty\@package\else\@bundle\fi}% } \let\@repository\@empty @@ -1277,10 +1277,12 @@ \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}}} - \let\@email\empty - \let\@plainemail\empty + +\let\@github\empty +\protected\def\github{\def\@github} + \title{The \texorpdfstring{\pkgtitle{\@package}}{\@package} Package} \def\@bundlesubtitle{Part of the \texorpdfstring{\pkgtitle{\@bundle}}{\@bundle} bundle} @@ -1288,7 +1290,28 @@ \texorpdfstring{\textsf{#1}}{#1}% } +\def\@begintitlelinks{% + \vskip .5em +\begingroup +\large \lineskip .5em% +\begin{tabular}[t]{rl}% +} + +\def\@endtitlelinks{% +\end{tabular}% +\par +\endgroup +} +\def\@maketitlelink#1#2{% +#1: & #2\\[\medskipamount] +} + +\def\@license{% +\@maketitlelink{License}{\href{https://www.latex-project.org/lppl/lppl-1-3c/}{LPPL v1.3c or later}}% +} + +\def\ydoc@eurl#1{{\edef\URL{{#1}}\expandafter\url\URL}} \def\@maketitle{% \newpage @@ -1312,23 +1335,34 @@ \par}% \fi \vskip 1em + {\large \@date }% + \vskip 1em + \ifx\@github\@empty {\large \lineskip .5em% \begin{tabular}[t]{c}% \@homepage \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 }% +\ifx\@repository\@empty\else +{\large \lineskip .5em% +\begin{tabular}[t]{c}% +VC: \@repository +\end{tabular}% +\par}% +\fi +\else +\@begintitlelinks +\@license +\@maketitlelink{CTAN}{\@ctan}% +\@maketitlelink{Texdoc}{\@texdoc}% +\@maketitlelink{Homepage}{\ydoc@eurl{https://github.com/\@github}}% +\@maketitlelink{Repository}{\ydoc@eurl{https://github.com/\@github.git}}% +\@maketitlelink{Issue tracker}{\ydoc@eurl{https://github.com/\@github/issues}}% +\@endtitlelinks +\fi \end{center}% - \par\vskip 1.5em + \par\vskip 1em \aftergroup\ydocpdfsettings } |