summaryrefslogtreecommitdiff
path: root/docutils/tools
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-05-09 22:41:22 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-05-09 22:41:22 +0000
commit41bd3bb04c93a1958324b0b2216f41e67a6d7579 (patch)
tree4af3a50512b679484e36dfac429b85b35b2e57cd /docutils/tools
parent6dc552ad0163b7534ea94bafd6b635b5c594558f (diff)
downloaddocutils-41bd3bb04c93a1958324b0b2216f41e67a6d7579.tar.gz
added support for image base path
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3328 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/tools')
-rw-r--r--docutils/tools/stylesheets/latex.tex12
1 files changed, 8 insertions, 4 deletions
diff --git a/docutils/tools/stylesheets/latex.tex b/docutils/tools/stylesheets/latex.tex
index 5fca53d61..d04dbbe88 100644
--- a/docutils/tools/stylesheets/latex.tex
+++ b/docutils/tools/stylesheets/latex.tex
@@ -859,13 +859,17 @@
}%
}%
}
-\providecommand{\DcurrentNimageAwidth}{}
+% Base path for images.
+\providecommand{\Dimagebase}{}
+% Auxiliary command. Current image path.
+\providecommand{\Dimagepath}{}
\providecommand{\DNimageAuri}[5]{%
% Insert image. We treat the URI like a path here.
- \ifthenelse{\equal{\DcurrentNimageAwidth}{}}{%
- \Dsimpleimage{#3}%
+ \renewcommand{\Dimagepath}{\Dimagebase#3}
+ \Difdefined{DcurrentNimageAwidth}{%
+ \Dpercentwidthimage{\DcurrentNimageAwidth}{\Dimagepath}%
}{%
- \Dpercentwidthimage{\DcurrentNimageAwidth}{#3}%
+ \Dsimpleimage{\Dimagepath}%
}%
}
\providecommand{\Dsimpleimage}[1]{%