summaryrefslogtreecommitdiff
path: root/graphics/asymptote/base/slide.asy
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/base/slide.asy')
-rw-r--r--graphics/asymptote/base/slide.asy14
1 files changed, 11 insertions, 3 deletions
diff --git a/graphics/asymptote/base/slide.asy b/graphics/asymptote/base/slide.asy
index a695953768..6f72321c5f 100644
--- a/graphics/asymptote/base/slide.asy
+++ b/graphics/asymptote/base/slide.asy
@@ -25,6 +25,9 @@ if(landscape) {
pageheight += settings.paperheight;
}
+texpreamble("\paperwidth="+string(pagewidth)+"bp");
+texpreamble("\paperheight"+string(pageheight)+"bp");
+
size(pagewidth,pageheight,IgnoreAspect);
picture background;
@@ -401,21 +404,26 @@ void display(string s, string caption="", pair align=S, pen p=itempen,
void figure(string[] s, string options="", real margin=0,
string[] captions=new string[], string caption="",
+ string[] url=new string[],
pair align=S, pen p=itempen, pen figuremattpen=figuremattpen,
bool final=true)
{
string[] S;
for(int i=0; i < s.length; ++i) {
S[i]=graphic(s[i],options);
+ if(i < url.length && url[i] != "")
+ S[i]="\href{"+url[i]+"/"+s[i]+".html}{"+S[i]+"}";
}
display(S,margin,captions,caption,align,itempen,figuremattpen,final);
}
-void figure(string s, string options="", string caption="", pair align=S,
+void figure(string s, string options="", string caption="",
+ string url="", pair align=S,
pen p=itempen, pen figuremattpen=figuremattpen, bool final=true)
{
- figure(new string[] {s},options,caption,align,p,figuremattpen,final);
+ figure(new string[] {s},options,caption,new string[] {url},align,p,
+ figuremattpen,final);
}
void multifigure(string[] slist, string options="", string caption="",
@@ -581,7 +589,7 @@ void bibliography(string name)
real hmargin,vmargin;
if(pdf()) {
hmargin=1;
- vmargin=0;
+ vmargin=0.5;
} else {
hmargin=1.5;
vmargin=1;