summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/inversepath
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-08-06 23:39:25 +0000
committerKarl Berry <karl@freefriends.org>2008-08-06 23:39:25 +0000
commit336e2e61d697ff9b25fb217f84225290fd9a369a (patch)
tree90ef83389eaab25a3536d9b23949ff59b83a68f6 /Master/texmf-dist/tex/latex/inversepath
parent9af6775c48f2c62549bce5974dbf4c13ba8396b2 (diff)
inversepath update (6aug08)
git-svn-id: svn://tug.org/texlive/trunk@10125 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/inversepath')
-rw-r--r--Master/texmf-dist/tex/latex/inversepath/inversepath.sty18
1 files changed, 11 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/inversepath/inversepath.sty b/Master/texmf-dist/tex/latex/inversepath/inversepath.sty
index 8f4720f66df..60d4ff0a1b0 100644
--- a/Master/texmf-dist/tex/latex/inversepath/inversepath.sty
+++ b/Master/texmf-dist/tex/latex/inversepath/inversepath.sty
@@ -6,21 +6,25 @@
%%
%% inversepath.dtx (with options: `package')
%%
-%% __________________________________
-%% Copyright (C) 2007 Will Robertson
+%% _______________________________________
+%% Copyright (C) 2007-2008 Will Robertson
%%
%% License information appended.
%%
%%
\ProvidesPackage{inversepath}
- [26/04/2007 v0.1 Inverse relative paths]
-\newcommand\inversepath[1]{%
+ [2008/07/31 v0.2 Inverse relative paths]
+\newcommand\inversepath{%
+ \@ifstar{\inversepath@star}{\inversepath@nostar}}
+\newcommand\inversepath@star[1]{%
\let\ip@origjobpath\ip@jobpath
\let\ip@directpath\@empty
\let\ip@inversepath\@empty
\ip@strippath#1/\@nil/%
- \let\ip@jobpath\ip@origjobpath
- \ip@inversepath}
+ \let\ip@jobpath\ip@origjobpath}
+\newcommand\inversepath@nostar[1]{%
+ \inversepath@star{#1}%
+ \let\ip@jobpath\ip@origjobpath}
\newcommand\absolutepath[1]{\def\ip@jobpath{#1}}
\def\ip@literaldotdot{..}
\def\ip@strippath#1/#2/{%
@@ -60,7 +64,7 @@
\expandafter\@tempa
\fi}
%%
-%% Copyright (C) 2006 by Will Robertson <wspr81@gmail.com>
+%% Copyright (C) 2007-2008 by Will Robertson <wspr81@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of