From: W. Trevor King Date: Fri, 20 May 2011 19:53:56 +0000 (-0400) Subject: Use SVG Asymptote examples (instead of old PNG). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e94e8c05ea20319ae4540b076047b69c0269ddb7;p=blog.git Use SVG Asymptote examples (instead of old PNG). --- diff --git a/posts/Asymptote.mdwn b/posts/Asymptote.mdwn index 692a88a..d5f470e 100644 --- a/posts/Asymptote.mdwn +++ b/posts/Asymptote.mdwn @@ -1,26 +1,23 @@ [Asymptote][] is a C++ style graphics drawing package for [[LaTeX]]. I've written a few libraries to make it easier to draw pictures for physics problem sets (as part of my [[course website]] package). Here -are a few teasers: +are a few teasers (rendered as SVGs). Mechanics --------- -[[!img Mechanics-test.png alt="Test suite for Mechanics.asy" - title="Test suite for Mechanics.asy" ]] +[[!inline pagenames="Mechanics-test.svg" template="raw" feeds="no"]] ElectroMag ---------- -[[!img ElectroMag-test.png alt="Test suite for ElectroMag.asy" - title="Test suite for ElectroMag.asy" ]] +[[!inline pagenames="ElectroMag-test.svg" template="raw" feeds="no"]] Circ ---- -[[!img Circ-test.png alt="Test suite for Circ.asy" - title="Test suite for Circ.asy" ]] +[[!inline pagenames="Circ-test.svg" template="raw" feeds="no"]] To see the `Circ` library in full form, check out [[this writeup|phys102-chap28-prob71.pdf]] of a recent recitation problem. @@ -30,8 +27,7 @@ writeup|phys102-chap28-prob71.pdf]] of a recent recitation problem. stickfigure ----------- -[[!img stickfigure-test.png alt="Test suite for stickfigure.asy" - title="Test suite for stickfigure.asy" ]] +[[!inline pagenames="stickfigure-test.svg" template="raw" feeds="no"]] [[!tag tags/latex]] diff --git a/posts/Asymptote/Circ-test.png b/posts/Asymptote/Circ-test.png deleted file mode 100644 index 66e09e6..0000000 Binary files a/posts/Asymptote/Circ-test.png and /dev/null differ diff --git a/posts/Asymptote/Circ-test.svg b/posts/Asymptote/Circ-test.svg new file mode 100644 index 0000000..e158a70 --- /dev/null +++ b/posts/Asymptote/Circ-test.svg @@ -0,0 +1,680 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/posts/Asymptote/ElectroMag-test.png b/posts/Asymptote/ElectroMag-test.png deleted file mode 100644 index 22f59c8..0000000 Binary files a/posts/Asymptote/ElectroMag-test.png and /dev/null differ diff --git a/posts/Asymptote/ElectroMag-test.svg b/posts/Asymptote/ElectroMag-test.svg new file mode 100644 index 0000000..4bc59bd --- /dev/null +++ b/posts/Asymptote/ElectroMag-test.svg @@ -0,0 +1,187 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/posts/Asymptote/Mechanics-test.png b/posts/Asymptote/Mechanics-test.png deleted file mode 100644 index e015340..0000000 Binary files a/posts/Asymptote/Mechanics-test.png and /dev/null differ diff --git a/posts/Asymptote/Mechanics-test.svg b/posts/Asymptote/Mechanics-test.svg new file mode 100644 index 0000000..db2ed11 --- /dev/null +++ b/posts/Asymptote/Mechanics-test.svg @@ -0,0 +1,200 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/posts/Asymptote/stickfigure-test.png b/posts/Asymptote/stickfigure-test.png deleted file mode 100644 index 8d3c866..0000000 Binary files a/posts/Asymptote/stickfigure-test.png and /dev/null differ diff --git a/posts/Asymptote/stickfigure-test.svg b/posts/Asymptote/stickfigure-test.svg new file mode 100644 index 0000000..aec9525 --- /dev/null +++ b/posts/Asymptote/stickfigure-test.svg @@ -0,0 +1,393 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +