summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/inversepath/inversepath.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/inversepath/inversepath.dtx')
-rw-r--r--Master/texmf-dist/source/latex/inversepath/inversepath.dtx28
1 files changed, 22 insertions, 6 deletions
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/{%