Commit 33698b9a authored by antoine's avatar antoine

script.sh added error fixed

parent 9f7aec98
Pipeline #503 canceled with stages
This is MetaPost, version 2.00 (TeX Live 2019/Arch Linux) (kpathsea version 6.3.1) 14 JAN 2020 14:18
This is MetaPost, version 2.00 (TeX Live 2019/Arch Linux) (kpathsea version 6.3.1) 14 JAN 2020 14:52
**meta-elastique.md
(/usr/share/texmf-dist/metapost/base/mpost.mp
(/usr/share/texmf-dist/metapost/base/plain.mp
Preloading the plain mem file, version 1.005) ) (./meta-elastique.md [102])
*end
1 output file written: svg/102.svg
Preloading the plain mem file, version 1.005) ) (./meta-elastique.md
! Redundant equation.
<to be read again>
;
beginchar->...ycle.scaled0withcolor.red;height=40;
if.grid=1:defaultscale:=0....
l.60 beginchar(35, 22)
;
I already knew that this equation was true.
But perhaps no harm has been done; let's continue.
! A statement can't begin with `withcolor'.
<to be read again>
withcolor
beginchar->...d.strokeY.rotated.rotation.withcolor
.pinkrose
l.60 beginchar(35, 22)
;
I was looking for the beginning of a new statement.
If you just proceed without changing anything, I'll ignore
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)
! Extra tokens will be flushed.
<to be read again>
withcolor
beginchar->...d.strokeY.rotated.rotation.withcolor
.pinkrose
l.60 beginchar(35, 22)
;
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)
! Extra tokens will be flushed.
<to be read again>
withcolor
<for(1)> dotlabels.urt([(EXPR0)])withcolor
.blue; ENDFOR
endchar->...otlabels.urt([i])withcolor.blue;endfor
;fi;endfig;
l.82 endchar(8)
;
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)
! Extra tokens will be flushed.
<to be read again>
withcolor
<for(2)> dotlabels.urt([(EXPR0)])withcolor
.blue; ENDFOR
endchar->...otlabels.urt([i])withcolor.blue;endfor
;fi;endfig;
l.82 endchar(8)
;
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)
! Extra tokens will be flushed.
<to be read again>
withcolor
<for(3)> dotlabels.urt([(EXPR0)])withcolor
.blue; ENDFOR
endchar->...otlabels.urt([i])withcolor.blue;endfor
;fi;endfig;
l.82 endchar(8)
;
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)
! Extra tokens will be flushed.
<to be read again>
withcolor
<for(4)> dotlabels.urt([(EXPR0)])withcolor
.blue; ENDFOR
endchar->...otlabels.urt([i])withcolor.blue;endfor
;fi;endfig;
l.82 endchar(8)
;
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)
! Extra tokens will be flushed.
<to be read again>
withcolor
<for(5)> dotlabels.urt([(EXPR0)])withcolor
.blue; ENDFOR
endchar->...otlabels.urt([i])withcolor.blue;endfor
;fi;endfig;
l.82 endchar(8)
;
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)
! Extra tokens will be flushed.
<to be read again>
withcolor
<for(6)> dotlabels.urt([(EXPR0)])withcolor
.blue; ENDFOR
endchar->...otlabels.urt([i])withcolor.blue;endfor
;fi;endfig;
l.82 endchar(8)
;
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)
! Extra tokens will be flushed.
<to be read again>
withcolor
<for(7)> dotlabels.urt([(EXPR0)])withcolor
.blue; ENDFOR
endchar->...otlabels.urt([i])withcolor.blue;endfor
;fi;endfig;
l.82 endchar(8)
;
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)
! Extra tokens will be flushed.
<to be read again>
withcolor
<for(8)> dotlabels.urt([(EXPR0)])withcolor
.blue; ENDFOR
endchar->...otlabels.urt([i])withcolor.blue;endfor
;fi;endfig;
l.82 endchar(8)
;
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)
[35] )
1 output file written: svg/35.svg
......@@ -11,22 +11,22 @@
outputtemplate := "svg/%c.svg"; outputformat := "svg";
u = 7pt;
u = 21pt;
ux = 1*u;
uy = 1*u;
sx = 1*u;
sy = 1*u;
rot = 0;
strokeX = 3*u;
strokeY = 1.5*u;
rotation = 0;
height = 40;
grid = 0;
grid = 1;
color pinkrose; pinkrose:= (255/102,153/255,200/255) ;
def beginchar(expr keycode, width)=
beginfig(keycode);
pickup pencircle scaled .2;
pickup pencircle scaled 1;
draw (0 * ux, 0 * uy) -- (width * ux, 0 * uy) -- (width * ux, height * uy) -- (0 * ux, height * uy) -- cycle scaled 0 withcolor red;
height = 40;
......@@ -40,12 +40,13 @@ def beginchar(expr keycode, width)=
endfor;
fi;
pickup pencircle xscaled sx yscaled sy rotated rot;
pickup pencircle xscaled strokeX yscaled strokeY rotated rotation withcolor pinkrose
enddef;
def endchar(expr lenDots)=
if grid = 1:
defaultscale :=.5;
defaultscale :=.1*u;
for i=1 upto lenDots:
dotlabels.urt([i]) withcolor blue;
endfor;
......@@ -55,22 +56,34 @@ def endchar(expr lenDots)=
enddef;
beginfig(102);
z1 = (0, 50);
z2 = (100, 100);
z3 = (200, 150);
% #
beginchar(35, 22);
x1 := 11.0 * ux;
y1 := 43.0 * uy;
x2 := 4.0 * ux;
y2 := 11.0 * uy;
x3 := 17.0 * ux;
y3 := 43.0 * uy;
x4 := 10.0 * ux;
y4 := 11.0 * uy;
x5 := 4.0 * ux;
y5 := 30.0 * uy;
x6 := 18.0 * ux;
y6 := 30.0 * uy;
x7 := 3.0 * ux;
y7 := 24.0 * uy;
x8 := 17.0 * ux;
y8 := 24.0 * uy;
draw z1 -- z2;
draw z3 -- z4;
draw z5 -- z6;
draw z7 -- z8;
endchar(8);
% La commande `draw` permet de dessiner des chemins.
% Ici, on demande à metapost de tracer la ligne droite allant de `z1`à `z2`;
draw z1--z2;
end;
% On peut choisir une couleur autre que le noir.
draw z2--z3 withcolor blue;
% La ligne suivante permet d'afficher nos trois points numérotés.
dotlabels.top(1, 2, 3)
endfig;
end;
......
......@@ -2,7 +2,7 @@ URL='http://pads.osp.kitchen/p/meta-elastique/export/txt'
while :
do
curl $URL -o meta-elastique.md & mpost -interraction=batchmode meta-elastique.md
curl $URL -o meta-elastique.md & mpost -interaction=batchmode meta-elastique.md
sleep 5
done
<?xml version="1.0"?>
<!-- Created by MetaPost 2.00 on 2020.01.14:1418 -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="204.981339" height="159.420364" viewBox="0 0 204.981339 159.420364">
<!-- Original BoundingBox: -2.490677 48.500000 202.490662 159.420364 -->
<path d="M2.000000 109.000000L102.000000 59.000000" style="stroke:rgb(0.000000%,0.000000%,0.000000%); stroke-width: 0.500000;stroke-linecap: round;stroke-linejoin: round;stroke-miterlimit: 10.000000;fill: none;"></path>
<path d="M102.000000 59.000000L202.000000 9.000000" style="stroke:rgb(0.000000%,0.000000%,100.000000%); stroke-width: 0.500000;stroke-linecap: round;stroke-linejoin: round;stroke-miterlimit: 10.000000;fill: none;"></path>
<g transform="translate(-0.490677 106.000000)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
<text font-size="9.962646">1</text>
</g>
<path d="M2.000000 109.000000l0 0" style="stroke:rgb(0.000000%,0.000000%,0.000000%); stroke-width: 3.000000;stroke-linecap: round;stroke-linejoin: round;stroke-miterlimit: 10.000000;fill: none;"></path>
<g transform="translate(99.509323 56.000000)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
<text font-size="9.962646">2</text>
</g>
<path d="M102.000000 59.000000l0 0" style="stroke:rgb(0.000000%,0.000000%,0.000000%); stroke-width: 3.000000;stroke-linecap: round;stroke-linejoin: round;stroke-miterlimit: 10.000000;fill: none;"></path>
<g transform="translate(199.509323 6.000000)" style="fill: rgb(0.000000%,0.000000%,0.000000%);">
<text font-size="9.962646">3</text>
</g>
<path d="M202.000000 9.000000l0 0" style="stroke:rgb(0.000000%,0.000000%,0.000000%); stroke-width: 3.000000;stroke-linecap: round;stroke-linejoin: round;stroke-miterlimit: 10.000000;fill: none;"></path>
</svg>
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment