summaryrefslogtreecommitdiff
path: root/Master/texmf/asymptote/slide.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/asymptote/slide.asy')
-rw-r--r--Master/texmf/asymptote/slide.asy8
1 files changed, 4 insertions, 4 deletions
diff --git a/Master/texmf/asymptote/slide.asy b/Master/texmf/asymptote/slide.asy
index 579253b182f..092c3429145 100644
--- a/Master/texmf/asymptote/slide.asy
+++ b/Master/texmf/asymptote/slide.asy
@@ -444,7 +444,7 @@ void asyinclude(string s, real xsize=0, real ysize=xsize)
picture currentpictureSave=currentpicture;
currentpicture=new picture;
_eval("include \""+s+"\";",true);
- s=stripdirectory(settings.outname+"_"+s);
+ s=stripdirectory(outprefix()+"_"+s);
codefile.push(s);
frame f=(xsize > 0 || ysize > 0) ?
currentpicture.fit(xsize,ysize) : currentpicture.fit();
@@ -490,7 +490,7 @@ void asyfigure(string s, string options="", string caption="", pair align=S,
string asywrite(string s, string preamble="")
{
static int count=0;
- string name=settings.outname+"_slide"+(string) count;
+ string name=outprefix()+"_slide"+(string) count;
++count;
file temp=output(name+".asy");
write(temp,preamble);
@@ -526,8 +526,8 @@ void item(string s, pen p=itempen, bool step=itemstep)
frame b;
label(b,bullet,(0,0),p);
real bulletwidth=max(b).x-min(b).x;
- remark(bullet+"\hangindent"+(string) bulletwidth+"pt$\,$"+s,p,
- -bulletwidth*pt,step=step);
+ remark(bullet+"\hangindent"+(string) (bulletwidth/pt)+"pt$\,$"+s,p,
+ -bulletwidth,step=step);
}
void subitem(string s, pen p=itempen)