Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > d8544620e4ac7bee48ddb48c85d55709 > files > 233

ikiwiki-3.20190228-1.mga7.noarch.rpm

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>asymptote</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />

<link rel="stylesheet" href="../../../../../style.css" type="text/css" />

<link rel="stylesheet" href="../../../../../local.css" type="text/css" />






<meta name="robots" content="noindex, follow" />



</head>
<body>

<div class="page">

<div class="pageheader">
<div class="header">
<span>
<span class="parentlinks">

<a href="../../../../../index.html">ikiwiki</a>/ 

<a href="../../../../../plugins.html">plugins</a>/ 

<a href="../../../../contrib.html">contrib</a>/ 

<a href="../../../asymptote.html">asymptote</a>/ 

<a href="../../../../../index.html">ikiwiki</a>/ 

<a href="../../../../../index.html">directive</a>/ 

</span>
<span class="title">
asymptote

</span>
</span>



</div>









</div>





<div id="pagebody">

<div id="content" role="main">
<p>The <code>asymptote</code> directive is supplied by the <a href="http://ikiwiki.info/plugins/contrib/asymptote/">asymptote</a> plugin.</p>

<p>This directive allows embedding <a href="http://asymptote.sourceforge.net/">asymptote</a>
diagrams in a page. Example usage:</p>

<pre><code>[[!asymptote  src="""
    import geometry;
    unitsize(1cm);
    triangle t = triangle((0,0), (4,0), (0.5,2));
    show(La="&#036;D&#036;", Lb="&#036;E&#036;", Lc="", t);
    dot(t.A^^t.B^^t.C);
    point pD = midpoint(t.BC); dot(pD);
    point pE = midpoint(t.AC); dot(pE);
    draw(pD--pE);
    point A_ = (pD-t.A)*2+t.A; dot("&#036;A'&#036;", A_, NE);
    draw(t.B--A_--t.C, dashed);
    draw(t.A--A_, dashed);
    point E_ = midpoint(line(t.B,A_)); dot(Label("&#036;E'&#036;", E_, E));
    draw(E_--pD, dashed);
    """]]
</code></pre>

<p>The <code>asymptote</code> directive supports the following parameters:</p>

<ul>
<li><code>src</code> - The asymptote source code to render.</li>
</ul>

</div>







</div>

<div id="footer" class="pagefooter" role="contentinfo">

<div id="pageinfo">






<div id="backlinks">
Links:

<a href="../../../asymptote.html">asymptote</a>


</div>






<div class="pagedate">
Last edited <span class="date">Tue Feb 26 23:01:54 2019</span>
<!-- Created <span class="date">Tue Feb 26 23:01:54 2019</span> -->
</div>

</div>


<!-- from ikiwiki -->
</div>

</div>

</body>
</html>