diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-05-22 11:51:14 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-05-22 11:51:14 +0000 |
commit | 5d73f3920ec5a45afe3f6a89f59cbf5ba5f90a8f (patch) | |
tree | 809728caa5688c6c16b7b299501f59d7d0d544ad /Master | |
parent | 51bc2615feac0dfc9d2ec6d489d62eb23624fa66 (diff) |
inverspath update (from tds.zip)
git-svn-id: svn://tug.org/texlive/trunk@8284 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/inversepath/README | 12 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/inversepath/inversepath.pdf | bin | 84415 -> 80304 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/inversepath/dtx-style.sty | 117 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/inversepath/inversepath.dtx | 28 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/inversepath/inversepath.ins | 3 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/inversepath/inversepath.sty | 1 | ||||
-rwxr-xr-x | Master/tlpkg/bin/ctan2tds | 60 |
7 files changed, 32 insertions, 189 deletions
diff --git a/Master/texmf-dist/doc/latex/inversepath/README b/Master/texmf-dist/doc/latex/inversepath/README index dd3c575a833..2db7a52f6a5 100644 --- a/Master/texmf-dist/doc/latex/inversepath/README +++ b/Master/texmf-dist/doc/latex/inversepath/README @@ -1,5 +1,11 @@ -Calculate inverse relative paths. E.g., from -"/one/two/three.tex" or "/one/two/" to "../../". +_______________________ +The INVERSEPATH package +v0.1 + +Calculate inverse relative paths in LaTeX. E.g., from +"/one/two/three.tex" or "/one/two/" to "../../". Could be easily converted to Plain TeX if I wasn't lazy. -License: LaTeX Pruject Public License
\ No newline at end of file +______________ +Will Robertson +2007 diff --git a/Master/texmf-dist/doc/latex/inversepath/inversepath.pdf b/Master/texmf-dist/doc/latex/inversepath/inversepath.pdf Binary files differindex 5e435519a41..3fe424c946b 100644 --- a/Master/texmf-dist/doc/latex/inversepath/inversepath.pdf +++ b/Master/texmf-dist/doc/latex/inversepath/inversepath.pdf diff --git a/Master/texmf-dist/source/latex/inversepath/dtx-style.sty b/Master/texmf-dist/source/latex/inversepath/dtx-style.sty deleted file mode 100644 index a153eadedf8..00000000000 --- a/Master/texmf-dist/source/latex/inversepath/dtx-style.sty +++ /dev/null @@ -1,117 +0,0 @@ -\ProvidesPackage{dtx-style} - -\errorcontextlines=999 - -\def\@dotsep{1000} -\setcounter{tocdepth}{2} -\setlength\columnseprule{0.4pt} -\renewcommand\tableofcontents{\relax - \begin{multicols}{2}[\section*{\contentsname}]\relax - \@starttoc{toc}\relax - \end{multicols}} - -\setcounter{IndexColumns}{2} -\renewenvironment{theglossary} - {\small\list{}{} - \item\relax - \glossary@prologue\GlossaryParms - \let\item\@idxitem \ignorespaces - \def\pfill{\hspace*{\fill}}} - {\endlist} - -\usepackage[svgnames]{xcolor} -\usepackage{amsmath,array,bm,booktabs,calc,enumitem,fancyvrb,graphicx,ifthen,longtable,refstyle,subfig,topcapt,varioref,\jobname,url} - -\usepackage[sc,osf]{mathpazo} - -\linespread{1.069} % A bit more space between lines -\frenchspacing % Remove ugly extra space after punctuation - -\definecolor{niceblue}{rgb}{0.2,0.4,0.8} -\newenvironment{example}[1] - {\VerbatimEnvironment - \def\Options{#1}% - \begin{VerbatimOut}[gobble=2]{\examplefilename}} - {\end{VerbatimOut}\relax - \typesetexample} - -\fvset{formatcom=\color{niceblue}} -\DefineShortVerb{\|} - -\def\theCodelineNo{\textcolor{niceblue}{\sffamily\tiny\arabic{CodelineNo}}} - -\let\examplesize\normalsize -\let\auxwidth\relax - -\newlength\examplewidth\newlength\verbatimwidth -\newlength\exoutdent \newlength\exverbgap -\setlength\exverbgap{1em} -\setlength\exoutdent{-0.15\textwidth} -\newsavebox\verbatimbox -\edef\examplefilename{\jobname.example} - -\newcommand\typesetexample{\relax - \smallskip - \noindent - \begin{minipage}{\linewidth} - \color{niceblue} - \hrulefill\par - \edef\@tempa{[gobble=0,fontsize=\noexpand\small,\Options]}% - \begin{lrbox}{\verbatimbox}\relax - \expandafter\BVerbatimInput\@tempa{\examplefilename}% - \end{lrbox} - \begin{list}{}{\setlength\itemindent{0pt} - \setlength\leftmargin\exoutdent - \setlength\rightmargin{0pt}}\item - \ifx\auxwidth\relax - \setlength\verbatimwidth{\wd\verbatimbox}% - \else - \setlength\verbatimwidth{\auxwidth}% - \fi - \begin{minipage}[c]{\textwidth-\exoutdent-\verbatimwidth-\exverbgap} - \catcode`\%=14\centering\linespread{1.6}\input\examplefilename\relax - \end{minipage}\hfill - \begin{minipage}[c]{\verbatimwidth} - \usebox\verbatimbox - \end{minipage} - \end{list} - \par\noindent\hrulefill - \end{minipage} - \smallskip} - -\newcommand*\setverbwidth[1]{\def\auxwidth{#1}} - -\newcommand*\name[1]{{#1}} -\newcommand*\pkg[1]{\textsf{#1}} -\newcommand*\feat[1]{\texttt{#1}} -\newcommand*\opt[1]{\texttt{#1}} - -\newcommand*\note[1]{\unskip\footnote{#1}} - -\let\latin\textit -\def\eg{\latin{e.g.}} -\def\Eg{\latin{E.g.}} -\def\ie{\latin{i.e.}} -\def\etc{\@ifnextchar.{\latin{etc}}{\latin{etc.}\@}} - -\def\STIX{\textsc{stix}} -\def\MacOSX{Mac~OS~X} -\def\ascii{\textsc{ascii}} -\def\OMEGA{Omega} -\def\CTAN{\textsc{ctan}} - -\newcounter{argument} -\g@addto@macro\endmacro{\setcounter{argument}{0}} -\newcommand*\darg[1]{% - \stepcounter{argument}% - {\ttfamily\char`\#\theargument~:~}#1\par\noindent\ignorespaces} -\newcommand*\doarg[1]{% - \stepcounter{argument}% - {\ttfamily\makebox[0pt][r]{[}\char`\#\theargument]:~}#1\par\noindent\ignorespaces} - -\def\codeline{\par\hspace{2\parindent}} - -\newcommand\unichar[2]{\textsc{\MakeLowercase{u+#1: #2}}} - -\setlength\parindent{2em} - diff --git a/Master/texmf-dist/source/latex/inversepath/inversepath.dtx b/Master/texmf-dist/source/latex/inversepath/inversepath.dtx index fb4eb97a5b2..61d617fe5dc 100644 --- a/Master/texmf-dist/source/latex/inversepath/inversepath.dtx +++ b/Master/texmf-dist/source/latex/inversepath/inversepath.dtx @@ -45,13 +45,15 @@ This work consists of the file \jobname.dtx \endpostamble \askforoverwritefalse \generate{\file{\jobname.sty}{\from{\jobname.dtx}{package}}} -\generate{\file{\jobname.ins}{\from{\jobname.dtx}{batchfile}}} -\nopreamble\nopostamble -\generate{\file{dtx-style.sty}{\from{\jobname.dtx}{dtx-style}}} %</batchfile> %<batchfile>\endbatchfile %<*internalbatchfile> +\generate{\file{\jobname.ins}{\from{\jobname.dtx}{batchfile}}} +\nopreamble\nopostamble +\generate{\file{README.txt}{\from{\jobname.dtx}{readme}}} +\generate{\file{dtx-style.sty}{\from{\jobname.dtx}{dtx-style}}} \endgroup +\immediate\write18{mv README.txt README} \immediate\write18{makeindex -s gind.ist -o \jobname.ind \jobname.idx} \immediate\write18{makeindex -s gglo.ist -o \jobname.gls \jobname.glo} %</internalbatchfile> @@ -68,6 +70,20 @@ This work consists of the file \jobname.dtx \end{document} %</driver> % +%<*readme> +_______________________ +The INVERSEPATH package +v0.1 + +Calculate inverse relative paths in LaTeX. E.g., from +"/one/two/three.tex" or "/one/two/" to "../../". +Could be easily converted to Plain TeX if I wasn't lazy. + +______________ +Will Robertson +2007 +%</readme> +% % \fi % % \GetFileInfo{\jobname.sty} @@ -92,11 +108,11 @@ This work consists of the file \jobname.dtx % % \bigskip % {\centering\noindent -% \cmd\inversepath\marg{path}---expands to the inverse of \meta{path}.\par} +% \cmd\inversepath\marg{path} --- expands to the inverse of \meta{path}.\par} % % \bigskip % {\raggedleft\noindent -% \cmd\absolutepath\marg{abs.\ path}---specifies the absolute +% \cmd\absolutepath\marg{abs.\ path} --- specifies the absolute % path for calculating parent/sibling relative paths.\par} % % \noindent Regular usage: @@ -165,7 +181,7 @@ This work consists of the file \jobname.dtx % \begin{macro}{\ip@strippath} % This is the macro that does all the work. % It takes input like |a/b/c/...x/y/z/\@nil/| and -% expands to \cmd\ip@inversepath, the inverse path of \ip@directpath +% expands to \cmd\ip@inversepath, the inverse path of \cmd\ip@directpath\ % (|a/b/.../y/|). % \begin{macrocode} \def\ip@strippath#1/#2/{% diff --git a/Master/texmf-dist/source/latex/inversepath/inversepath.ins b/Master/texmf-dist/source/latex/inversepath/inversepath.ins index 4ef4c247e17..94f81096584 100644 --- a/Master/texmf-dist/source/latex/inversepath/inversepath.ins +++ b/Master/texmf-dist/source/latex/inversepath/inversepath.ins @@ -39,9 +39,6 @@ This work consists of the file \jobname.dtx \endpostamble \askforoverwritefalse \generate{\file{\jobname.sty}{\from{\jobname.dtx}{package}}} -\generate{\file{\jobname.ins}{\from{\jobname.dtx}{batchfile}}} -\nopreamble\nopostamble -\generate{\file{dtx-style.sty}{\from{\jobname.dtx}{dtx-style}}} \endbatchfile %% %% Copyright (C) 2006 by Will Robertson <wspr81@gmail.com> diff --git a/Master/texmf-dist/tex/latex/inversepath/inversepath.sty b/Master/texmf-dist/tex/latex/inversepath/inversepath.sty index dc011e4421f..8f4720f66df 100644 --- a/Master/texmf-dist/tex/latex/inversepath/inversepath.sty +++ b/Master/texmf-dist/tex/latex/inversepath/inversepath.sty @@ -11,6 +11,7 @@ %% %% License information appended. %% +%% \ProvidesPackage{inversepath} [26/04/2007 v0.1 Inverse relative paths] \newcommand\inversepath[1]{% diff --git a/Master/tlpkg/bin/ctan2tds b/Master/tlpkg/bin/ctan2tds index 5e5e750f64e..75a5aac3e66 100755 --- a/Master/tlpkg/bin/ctan2tds +++ b/Master/tlpkg/bin/ctan2tds @@ -190,7 +190,6 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw 'ibycus-babel',"&MAKEibycusbabel", 'ibygrk', "&MAKEflatten", 'ifacmtg', "die 'skipping, nonfree license'", - 'inversepath', "&MAKEinversepath", 'invoice', "&MAKEflatten", 'iwona', "&MAKEcopy", 'japanese', "die 'skipping, requires ptex'", @@ -421,7 +420,6 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw 'glossaries' => '&POSTglossaries', 'ibygrk' => '&POSTibygrk', 'interactiveworkbook' => '&POSTinteractiveworkbook', - 'inversepath' => '&POSTinversepath', 'koma-script' => '&POSTkoma', 'pgf' => '&POSTpgf', 'pst-cox' => '&POSTpstcox', @@ -2558,56 +2556,6 @@ sub MAKEFAQen &SYSTEM ("tar xzf FAQ-html.tar.gz && rm FAQ-html.tar.gz"); } -# Almost donormal() but .ins overwites itself... Wrote to Will (2008/04/15) -sub MAKEinversepath { - print "doing MAKE$package... \n" - &setup; - chdir("$DEST/doc/$whichdocformat/$package"); - &buildfilelist; - - ## save the original .ins - &SYSTEM ("$CP $package.ins $package.ins.ori"); - - # run the .ins files (if any) supplied - $inspatt = $specialins{$package} || $standardins; - $Foundry = $specialfoundry{$package} || $standardfoundry; - &runins($inspatt); - - ## restore the original .ins - &SYSTEM ("$MV $package.ins.ori $package.ins"); - - # rebuild the list of files in the directory - &buildfilelist; - - if ($Foundry eq "metafont") { - &dosimplemf; - } else { - &domf; - } - - &dodvi; - # rebuild again, as we have .dvi files now - &buildfilelist; - &dobst; - &domp; - &dobib; - &doxmt; - &dotex; - &runfonts; - &domakeindex; - &doomega; - &dosource; - &dotype1; - &doscripts; - - # remove empty directories that we never used. - &SYSTEM ("rmdir $DEST/*/$whichformat/$package 2>/dev/null"); - - &killfiles ($specialclean{$package} || $standardclean); - my $postaction = $specialpostaction{$package}; - eval ($postaction) if $postaction; -} - # all the lshort translations are pretty similar. sub MAKElshort { print "MAKElshort $package\n"; @@ -3187,14 +3135,6 @@ sub POSTinteractiveworkbook &SYSTEM ("rmdir interactiveworkbook.sty"); } -sub POSTinversepath -{ - print "POST$package - moving dtx-style to source\n"; - my $dest = "$DEST/source/latex/$package"; - &SYSTEM ("mkdir -p $dest"); - &SYSTEM ("$MV dtx-style.sty $dest/"); -} - sub POSTkoma { print "POSTkoma - removing symlinks\n"; |