

<!DOCTYPE html>
<!-- Server: sfs-forge-4 -->


    

















<html lang="en" class="no-js">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
    <title>
  Drawj2d / Code /
  [r368]
  /trunk/doc/drawj2d_en.tex
</title>
    

<meta name="viewport" content="width=1100">


<link rel="icon" sizes="180x180" href="https://a.fsdn.com/con/img/sandiego/logo-180x180.png" type="image/png">
<link rel="icon" sizes="any" href="https://a.fsdn.com/con/img/sandiego/svg/originals/sf-icon-orange-no_sf.svg" type="image/svg+xml">
<link rel="apple-touch-icon" sizes="180x180" href="https://a.fsdn.com/con/img/sandiego/logo-180x180.png">
<link rel="mask-icon" href="https://a.fsdn.com/con/img/sandiego/svg/originals/sf-icon-orange-no_sf.svg" color="#FF6600">


<script src="https://a.fsdn.com/allura/nf/1752257864/_ew_/theme/sftheme/js/sftheme/cmp2.js"></script>






    
    
    
    
    
    
    
    
    <link rel="stylesheet" href="https://a.fsdn.com/con/css/lato.css?">


<script>
if (!window.SF) { window.SF = {}; }
SF.sandiego = false;
SF.sandiego_chrome = true;
SF.cdn = "https://a.fsdn.com/con";
SF.fpid = 'dc9b500e-2ab4-4639-b50c-306e71a9998e';
SF.billboard_route = '/software/product/$slug/';
</script>
    
        <!-- ew:head_css -->

    
        <link rel="stylesheet"
                type="text/css"
                href="https://a.fsdn.com/allura/nf/1752257864/_ew_/_slim/css?href=allura%2Fcss%2Fforge%2Fhilite.css%3Ballura%2Fcss%2Fforge%2Ftooltipster.css"
                >
    
        <link rel="stylesheet"
                type="text/css"
                href="https://a.fsdn.com/allura/nf/1752257864/_ew_/allura/css/font-awesome.min.css"
                >
    
        <link rel="stylesheet"
                type="text/css"
                href="https://a.fsdn.com/allura/nf/1752257864/_ew_/theme/sftheme/css/forge.css"
                >
    
        
<!-- /ew:head_css -->

    
    
        <!-- ew:head_js -->

    
        <script type="text/javascript" src="https://a.fsdn.com/allura/nf/1752257864/_ew_/_slim/js?href=allura%2Fjs%2Fjquery-3.6.0.min.js%3Ballura%2Fjs%2Fjquery.cookie-1.4.1.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fshared_head.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Ftypescript%2Fcompliance.js"></script>
    
        
<!-- /ew:head_js -->

    

    
        <style type="text/css">
            /* make URL &amp; Project custom fields in support tickets not get hidden as much */
.project-forge.mountpoint-site-support .view_holder .grid-4:nth-child(5),
.project-forge.mountpoint-site-support .view_holder .grid-4:nth-child(6) {
  overflow: visible;
  font-size: 22px;
  width: 340px;
  line-height: 1;
  margin-bottom: 5px;
}
.project-forge.mountpoint-site-support .view_holder .grid-4:nth-child(5) label, .project-forge.mountpoint-site-support .view_holder .grid-4:nth-child(6) label {
  font-size: 14px;
}
        </style>
    
    
    <link rel="alternate" type="application/rss+xml" title="RSS" href="/p/drawj2d/code/feed.rss"/>
    <link rel="alternate" type="application/atom+xml" title="Atom" href="/p/drawj2d/code/feed.atom"/>
    <style type="text/css">
        #access_urls .btn-set {
            
            min-width: 14em;
        }
    </style>

    <style>.XwpfDkcOlGOrVjkawpbwwAwrMhwDuVgywzCqw {
        display: none
    }</style>

    
    
    
        <link rel="canonical" href="https://sourceforge.net/p/drawj2d/code/368/tree/trunk/doc/drawj2d_en.tex" />
    


    

<script>
    var data = {hem: null };
    bizx.uids.gatherAndClean(data);
</script>



<script>
    function initPiwik(){
      var _paq = window._paq = window._paq || [];
      _paq.push(['trackPageView', document.title, {
            dimension1: 'drawj2d',
            dimension2: 'svn'
      }]);
      _paq.push(['enableLinkTracking']);
      
          _paq.push(['enableHeartBeatTimer']);
      
      (function() {
        var u="//analytics.slashdotmedia.com/";
        _paq.push(['setTrackerUrl', u+'sf.php']);
        _paq.push(['setSiteId', 39]);
        
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'sf.js'; s.parentNode.insertBefore(g,s);
      })();
    }
    bizx.cmp.ifConsent({ purposes: ['storage', 'measurement'], vendors: 'sdm'}, initPiwik);
</script>






<!-- Hubspot tracking -->






 <script>
    $(function() {
        bizx.cmp.ifConsent({ purposes: 'all' , vendors: 'narrative'}, function() {
            var current_time = (new Date()).getTime();
            let imageUrl = "https://io.narrative.io/?companyId=2440&id=first_party%3Adc9b500e-2ab4-4639-b50c-306e71a9998e&id=site_name%3Asourceforge.net&id=url%3A%2Fp%2Fdrawj2d%2Fcode%2F368%2Ftree%2Ftrunk%2Fdoc%2Fdrawj2d_en.tex&id=pagetitle%3A%24PAGE_TITLE&id=vertical%3AOpen+Source+Software&id=product%3ADrawj2d";
            imageUrl = imageUrl.replace(encodeURIComponent("$PAGE_TITLE"), document.title);  

            imageUrl = URL.parse(imageUrl);
            let hem = bizx.uids.getHem();
            if (hem) {
                imageUrl.searchParams.append('id', 'hem:' + hem);
            }
            imageUrl.searchParams.append('rand', current_time);

            var image = new Image();
            image.src = imageUrl.toString();
            image.style.display = "none";
            image.style.height = 0;
            image.style.width = 0;
            document.body.appendChild(image);
        });
    });
</script>



</head>

<body class="
body_class sandiego_chrome  legacy_chrome  l-allow-natural-width 
" id="forge">

    
        <!-- ew:body_top_js -->

    
        
<!-- /ew:body_top_js -->

    





<div class="off-canvas position-right" id="offCanvas" data-off-canvas>
    <!-- Menu -->
    <ul class="header-nav-menulist">
        <li class="highlight search">
            
            
                
            
            
    <form method="get" action="/directory/" class="m-search-form">
    
        <input type="text" placeholder="Search for software or solutions" autocomplete="off" name="q" >
        
        <label >
            <input type="submit" class="bt" value="">
            


<svg  data-name="search" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1216 832q0-185-131.5-316.5t-316.5-131.5-316.5 131.5-131.5 316.5 131.5 316.5 316.5 131.5 316.5-131.5 131.5-316.5zm512 832q0 52-38 90t-90 38q-54 0-90-38l-343-342q-179 124-399 124-143 0-273.5-55.5t-225-150-150-225-55.5-273.5 55.5-273.5 150-225 225-150 273.5-55.5 273.5 55.5 225 150 150 225 55.5 273.5q0 220-124 399l343 343q37 37 37 90z"/></svg>
        </label>
    </form>
        </li>
        
        <li class="highlight"><a href="/auth/">Join/Login</a></li>
        
        <li><a href="/software/">Business Software</a></li>
        <li><a href="/directory/">Open Source Software</a></li>
        <li><a  href="/software/vendors/" title="For Vendors">For Vendors</a></li>
        <li><a href="/blog/" title="Blog">Blog</a></li>
        <li><a href="/about">About</a></li>
        <li><a id="header-nav-more" data-toggle="header-nav-more header-nav-more-content" data-toggler=".toggled">More</a></li>
        <li>
            <ul id="header-nav-more-content" class="toggled" data-toggler=".toggled">
                
    

    
    
        <li><a href="/articles/">Articles</a></li>
    
    

    
 
                
                <li><a href="/create">Create</a></li>
                
                <li><a href="https://sourceforge.net/articles/category/sourceforge-podcast/">SourceForge Podcast</a></li>
                
                    <li><a href="https://sourceforge.net/p/forge/documentation/Docs%20Home/">Site Documentation</a></li>
                
                <li><a href="/user/newsletters">Subscribe to our Newsletter</a></li>
                <li><a href="/support">Support Request</a></li>
            </ul>
        </li>
    </ul>
</div>
<div class="off-canvas-content" data-off-canvas-content>

    




<script>
    SF.linkout_icon = '<svg  data-name="sf-linkout-icon" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 300 300" style="enable-background:new 0 0 300 300;" xml:space="preserve"><polygon class="st0" points="243.2,243.2 56.8,243.2 56.8,56.8 123,56.8 123,9 9,9 9,291 291,291 291,179.4 243.2,179 "/><polygon class="st0" points="128.5,213 155,186.5 176,165.5 206.7,196.3 235.5,132.5 248.9,102.6 290.6,9.8 291,9 290.6,9.2 197.4,51.1 169.1,63.8 103.7,93.3 137,126.5 115.9,147.5 89.5,174 "/></svg>';
</script>


<div class="l-header-nav  sandiego">

    <section class="sandiego l-header-nav-top show-for-large">
        <div class="row">
            <a href="/" title="Home" class="sf-logo">
                
    
    <img src="https://a.fsdn.com/con/images/sandiego/sf-logo-full.svg"  alt="SourceForge logo" class="sf-logo-full"/>
            </a>
            <nav class="links">
                
                    <a href="/user/newsletters" title="Subscribe to our newsletter"><span class="newsletter-icon">


<svg  data-name="mmSF_11mail" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 42 42" enable-background="new 0 0 42 42" xml:space="preserve"><path fill="#FFFFFF" d="M0,6v30h42V6H0z M24.2,21.2c-0.8,0.8-2.3,2-3.2,2c-0.9,0-2.4-1.2-3.2-2L5.8,9.7h30.3L24.2,21.2z M13.7,21l-9.9,9.4V11.6L13.7,21z M15.7,23L15.7,23c0.5,0.5,2.9,2.9,5.3,2.9c2.4,0,4.8-2.4,5.2-2.8l0.1-0.1l9.8,9.4H5.8L15.7,23z M28.3,21l9.9-9.5v18.9L28.3,21z"/></svg></span></a>
                
                <a href="/software/vendors/" title="For Vendors">For Vendors</a>
                
                
                    <a href="/support" title="Help">Help</a>
                    <a href="/create/" title="Create">Create</a>
                

                
                <a href="/user/registration" title="Join" >Join</a>
                <a href="/auth/" title="Login">Login</a>
                
            </nav>
        </div>
    </section>

    <section class="sandiego l-header-nav-top hide-for-large">
        <div class="row">
            <a href="/" title="Home" class="sf-logo">
                
    
    <img src="https://a.fsdn.com/con/images/sandiego/sf-logo-full.svg"  alt="SourceForge logo" class="sf-logo-full"/>
            </a>
            <div class="title-bar-right">
                <button type="button" aria-label="Toggle Main Menu" class="menu-icon" data-toggle="offCanvas"></button>
            </div>
        </div>
    </section>
    <section class="sandiego l-header-nav-bottom">
        <nav class="row">
            <a href="/" title="Home" class="sf-logo">
                
    
    <img src="https://a.fsdn.com/con/images/sandiego/sf-logo-full.svg"  alt="SourceForge logo" class="sf-logo-full"/>
            </a>
            <div class="links">
                
    
        <div class="nav-dropdown">
            <a href="/software/">Business Software</a>
            
        </div>
        <div class="nav-dropdown">
            <a href="/directory/" title="Browse">Open Source Software</a>
            
        </div>
        <div class="nav-dropdown">
            <a href="https://sourceforge.net/articles/category/sourceforge-podcast/">SourceForge Podcast</a>
        </div>
        <div class="nav-dropdown">
            <a>Resources</a>
            <ul class="nav-dropdown-menu">
                  <li><a href="/articles/">Articles</a></li>
                  
                  <li><a href="/software/case-studies/">Case Studies</a></li>
                  
                  <li><a href="/blog/">Blog</a></li>
            </ul>
        </div>
    

                <div class="dev-menu-when-stuck">
                    Menu
                    <ul class="dev-menu-dropdown header-nav-menulist">
                        <li><a href="/support">Help</a></li>
                        <li><a href="/create">Create</a></li>
                        <li><a href="/user/registration/" title="Join" >Join</a></li>
                        <li><a href="/auth/" title="Login">Login</a></li>
                    </ul>
                </div>
                <div class="search-toggle-when-stuck">
                    <a class="search-toggle">
                        


<svg  data-name="search" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1216 832q0-185-131.5-316.5t-316.5-131.5-316.5 131.5-131.5 316.5 131.5 316.5 316.5 131.5 316.5-131.5 131.5-316.5zm512 832q0 52-38 90t-90 38q-54 0-90-38l-343-342q-179 124-399 124-143 0-273.5-55.5t-225-150-150-225-55.5-273.5 55.5-273.5 150-225 225-150 273.5-55.5 273.5 55.5 225 150 150 225 55.5 273.5q0 220-124 399l343 343q37 37 37 90z"/></svg>
                    </a>
                </div>
            </div>

            <div class="search">
                
                
    
    
        <div class="main-nav-link">
            
            
            <a href="https://www.avast.com/lp-free-av?full_trSrc=mmm_srf_dlp_008_406_a&amp;utm_medium=referral&amp;utm_source=sourceforge&amp;utm_campaign=srf_dlp_008_406_a:site_banner" rel="nofollow" target="_blank" id="main-nav-badge-link" data-label="avastjuly">
                <img src="https://a.fsdn.com/con/assets/maxnav/sourceforge/ai-protection-32-75dd98b2.png"  srcset="https://a.fsdn.com/con/assets/maxnav/sourceforge/ai-protection-75de80f6.png 2x"  alt="" id="main-nav-image"/>
            </a>
        </div>
    


                
                    
                
                
                
                
    <form method="get" action="/directory/" class="m-search-form">
    
    <div class="typeahead__container">
      <div class="typeahead__field">
        <div class="typeahead__query">
        
        <input type="text" placeholder="Search for software or solutions" autocomplete="off" name="q" >
        
        </div>
        
        <label >
            <input type="submit" class="bt" value="">
            


<svg  data-name="search" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1216 832q0-185-131.5-316.5t-316.5-131.5-316.5 131.5-131.5 316.5 131.5 316.5 316.5 131.5 316.5-131.5 131.5-316.5zm512 832q0 52-38 90t-90 38q-54 0-90-38l-343-342q-179 124-399 124-143 0-273.5-55.5t-225-150-150-225-55.5-273.5 55.5-273.5 150-225 225-150 273.5-55.5 273.5 55.5 225 150 150 225 55.5 273.5q0 220-124 399l343 343q37 37 37 90z"/></svg>
        </label>
      </div>
    </div>
    
    </form>
                
            </div>
        </nav>
        
    </section>
    
</div>
    
    
    <div class="notification-on-project-page">
    
        
    
    
    
    </div>
    
    


    <section id="page-body" class=" neighborhood-Projects project-drawj2d mountpoint-code 

">
        <div id="nav_menu_holder">
            
                
                    
    <div class="sandiego"> 
            
            
            
            
<section class="project-masthead"> 
    
    

    
<div class="backdrop" style="box-sizing: content-box; padding-bottom: 24px"></div>

    <div class="content">
    
        
    <nav id="breadcrumbs" class="breadcrumbs rtl">
        <ul itemscope itemtype="http://schema.org/BreadcrumbList">
            <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                <a itemprop="item" href="/"><span itemprop="name">Home</span></a>
                <meta itemprop="position" content="1"/>
            </li>
            <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                <a itemprop="item" href="/directory/"><span itemprop="name">Browse</span></a>
                <meta itemprop="position" content="2"/>
            </li>
            
            
                
                
            
            
                
            
            
                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                    <a itemprop="item" href="/p/drawj2d/"><span itemprop="name">Drawj2d</span></a>
                <meta itemprop="position" content="3"/>
                </li>
            
                <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                    <span itemprop="name">Code</span>
                <meta itemprop="position" content="4"/>
                </li>
            
        </ul>
    </nav>
    
    
    
        
                
                
<div class="overview">
    


<div class="project-icon   " >
    
    
    <img itemprop="image" alt="Drawj2d" title="Drawj2d" 
    
    
    src="https://a.fsdn.com/allura/p/drawj2d/icon?1409611808"
    /></div>


    
    <div class="title "> 

        <meta itemprop="name" content="Drawj2d"/>
        <h1  >Drawj2d Code
        </h1>
        
        <h2 class="as-h3 summary">
            Draw vector graphics to scale using a descriptive language
        </h2>
        
            
            
          
        
            
            
            <div class="as-h3 brought-by">
                
                Brought to you by:
                
                    <a href="/u/qwert2003/profile/">qwert2003</a>
                    
                
            </div>
            
        

        

        
    </div>


    

</div>

                
                
    
  
            
            
        
    </div>
</section>

        </div>
    

                
            
        </div>
        <div id="top_nav" class="">
            
                
<div id="top_nav_admin">
<ul class="dropdown">
  
  
    <li class="">
        <a href="/projects/drawj2d/" class="tool-summary-32" >
            Summary
        </a>
        
        
    </li>
  
    <li class="">
        <a href="/projects/drawj2d/files/" class="tool-files-sf-32" >
            Files
        </a>
        
        
    </li>
  
    <li class="">
        <a href="/projects/drawj2d/reviews/" class="tool-reviews-32" >
            Reviews
        </a>
        
        
    </li>
  
    <li class="">
        <a href="/projects/drawj2d/support" class="tool-support-32" >
            Support
        </a>
        
        
    </li>
  
    <li class="">
        <a href="/p/drawj2d/wiki/" class="tool-wiki-32" >
            Wiki
        </a>
        
        
    </li>
  
    <li class="">
        <a href="/p/drawj2d/blog/" class="tool-blog-32" >
            News
        </a>
        
        
    </li>
  
    <li class="">
        <a href="/p/drawj2d/discussion/" class="tool-discussion-32" >
            Discussion
        </a>
        
        
    </li>
  
    <li class="selected">
        <a href="/p/drawj2d/code/" class="tool-svn-32" >
            Code
        </a>
        
        
    </li>
  
    <li class="">
        <a href="http://drawj2d.sourceforge.net" class="tool-link-32"  rel="nofollow">
            Website
        </a>
        
        
    </li>
  
  
</ul>
</div>


            
        </div>
        <div id="content_base">
            

    
                
                    
<a id="sidebar-activate" href="#">
    <span class="btn-label">Menu</span>
    <span class="btn-arrow-down">▾</span>
    <span class="btn-arrow-up">▴</span>
</a>

                        


<div id="sidebar">
  
    <div class="placeholder-no-searchbox">&nbsp;</div>
  
    
    
      
      
        
    
      <ul class="sidebarmenu">
      
    
  <li>
      
        <a class="icon" href="/p/drawj2d/code/commit_browser" rel="nofollow" title="Browse Commits"><i class="fa fa-list"></i>
      
      <span>Browse Commits</span>
      </a>
  </li>
  
      
        
    
  <li>
      
        <a href="/p/drawj2d/code/"  rel="nofollow" >
      
      <span>Browse Files</span>
      </a>
  </li>
  
      
    
    
      </ul>
      
    
    
</div>



<script>
$('#sidebar-admin-header').on('click', function(e){
    $("#sidebar-admin-menu").toggleClass("hidden");
    $(this).toggleClass("expanded");
    e.preventDefault();
});
</script>

                    

                    
                
                
                    
                
                <div class="grid-20 pad">
                    <h2 class="dark title">
                        <span>
<a href="/p/drawj2d/code/368/" rel="nofollow">[r368]</a>:

  
      <a href="./../../" rel="nofollow"><b class="fa fa-folder-open-o" title="Root directory"></b></a> /
  
  
    <a href="./../" rel="nofollow">trunk</a> /
  
    <a href="./" rel="nofollow">doc</a> /
  
 drawj2d_en.tex
</span>
                        <!-- actions -->
                        <small>
                            

    
    <a class="icon" href="#" id="maximize-content" title="Maximize"><i class="fa fa-expand"></i>&nbsp;Maximize</a>
    <a class="icon" href="#" id="restore-content" title="Restore"><i class="fa fa-compress"></i>&nbsp;Restore</a>
<a class="icon" href="/p/drawj2d/code/368/log/?path=/trunk/doc/drawj2d_en.tex" rel="nofollow" title="History"><i class="fa fa-calendar"></i>&nbsp;History</a>

                        </small>
                        <!-- /actions -->
                    </h2>
                    
                    <div>
                        
  

                        
  
    <p><a rel="nofollow" href="?format=raw">Download this file</a></p>
    <div class="clip grid-19 codebrowser">
      <h3>
        3510 lines (2616 with data), 112.4 kB
      </h3>
      
        <div class="codehilite"><table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">   1</span>
<span class="normal">   2</span>
<span class="normal">   3</span>
<span class="normal">   4</span>
<span class="normal">   5</span>
<span class="normal">   6</span>
<span class="normal">   7</span>
<span class="normal">   8</span>
<span class="normal">   9</span>
<span class="normal">  10</span>
<span class="normal">  11</span>
<span class="normal">  12</span>
<span class="normal">  13</span>
<span class="normal">  14</span>
<span class="normal">  15</span>
<span class="normal">  16</span>
<span class="normal">  17</span>
<span class="normal">  18</span>
<span class="normal">  19</span>
<span class="normal">  20</span>
<span class="normal">  21</span>
<span class="normal">  22</span>
<span class="normal">  23</span>
<span class="normal">  24</span>
<span class="normal">  25</span>
<span class="normal">  26</span>
<span class="normal">  27</span>
<span class="normal">  28</span>
<span class="normal">  29</span>
<span class="normal">  30</span>
<span class="normal">  31</span>
<span class="normal">  32</span>
<span class="normal">  33</span>
<span class="normal">  34</span>
<span class="normal">  35</span>
<span class="normal">  36</span>
<span class="normal">  37</span>
<span class="normal">  38</span>
<span class="normal">  39</span>
<span class="normal">  40</span>
<span class="normal">  41</span>
<span class="normal">  42</span>
<span class="normal">  43</span>
<span class="normal">  44</span>
<span class="normal">  45</span>
<span class="normal">  46</span>
<span class="normal">  47</span>
<span class="normal">  48</span>
<span class="normal">  49</span>
<span class="normal">  50</span>
<span class="normal">  51</span>
<span class="normal">  52</span>
<span class="normal">  53</span>
<span class="normal">  54</span>
<span class="normal">  55</span>
<span class="normal">  56</span>
<span class="normal">  57</span>
<span class="normal">  58</span>
<span class="normal">  59</span>
<span class="normal">  60</span>
<span class="normal">  61</span>
<span class="normal">  62</span>
<span class="normal">  63</span>
<span class="normal">  64</span>
<span class="normal">  65</span>
<span class="normal">  66</span>
<span class="normal">  67</span>
<span class="normal">  68</span>
<span class="normal">  69</span>
<span class="normal">  70</span>
<span class="normal">  71</span>
<span class="normal">  72</span>
<span class="normal">  73</span>
<span class="normal">  74</span>
<span class="normal">  75</span>
<span class="normal">  76</span>
<span class="normal">  77</span>
<span class="normal">  78</span>
<span class="normal">  79</span>
<span class="normal">  80</span>
<span class="normal">  81</span>
<span class="normal">  82</span>
<span class="normal">  83</span>
<span class="normal">  84</span>
<span class="normal">  85</span>
<span class="normal">  86</span>
<span class="normal">  87</span>
<span class="normal">  88</span>
<span class="normal">  89</span>
<span class="normal">  90</span>
<span class="normal">  91</span>
<span class="normal">  92</span>
<span class="normal">  93</span>
<span class="normal">  94</span>
<span class="normal">  95</span>
<span class="normal">  96</span>
<span class="normal">  97</span>
<span class="normal">  98</span>
<span class="normal">  99</span>
<span class="normal"> 100</span>
<span class="normal"> 101</span>
<span class="normal"> 102</span>
<span class="normal"> 103</span>
<span class="normal"> 104</span>
<span class="normal"> 105</span>
<span class="normal"> 106</span>
<span class="normal"> 107</span>
<span class="normal"> 108</span>
<span class="normal"> 109</span>
<span class="normal"> 110</span>
<span class="normal"> 111</span>
<span class="normal"> 112</span>
<span class="normal"> 113</span>
<span class="normal"> 114</span>
<span class="normal"> 115</span>
<span class="normal"> 116</span>
<span class="normal"> 117</span>
<span class="normal"> 118</span>
<span class="normal"> 119</span>
<span class="normal"> 120</span>
<span class="normal"> 121</span>
<span class="normal"> 122</span>
<span class="normal"> 123</span>
<span class="normal"> 124</span>
<span class="normal"> 125</span>
<span class="normal"> 126</span>
<span class="normal"> 127</span>
<span class="normal"> 128</span>
<span class="normal"> 129</span>
<span class="normal"> 130</span>
<span class="normal"> 131</span>
<span class="normal"> 132</span>
<span class="normal"> 133</span>
<span class="normal"> 134</span>
<span class="normal"> 135</span>
<span class="normal"> 136</span>
<span class="normal"> 137</span>
<span class="normal"> 138</span>
<span class="normal"> 139</span>
<span class="normal"> 140</span>
<span class="normal"> 141</span>
<span class="normal"> 142</span>
<span class="normal"> 143</span>
<span class="normal"> 144</span>
<span class="normal"> 145</span>
<span class="normal"> 146</span>
<span class="normal"> 147</span>
<span class="normal"> 148</span>
<span class="normal"> 149</span>
<span class="normal"> 150</span>
<span class="normal"> 151</span>
<span class="normal"> 152</span>
<span class="normal"> 153</span>
<span class="normal"> 154</span>
<span class="normal"> 155</span>
<span class="normal"> 156</span>
<span class="normal"> 157</span>
<span class="normal"> 158</span>
<span class="normal"> 159</span>
<span class="normal"> 160</span>
<span class="normal"> 161</span>
<span class="normal"> 162</span>
<span class="normal"> 163</span>
<span class="normal"> 164</span>
<span class="normal"> 165</span>
<span class="normal"> 166</span>
<span class="normal"> 167</span>
<span class="normal"> 168</span>
<span class="normal"> 169</span>
<span class="normal"> 170</span>
<span class="normal"> 171</span>
<span class="normal"> 172</span>
<span class="normal"> 173</span>
<span class="normal"> 174</span>
<span class="normal"> 175</span>
<span class="normal"> 176</span>
<span class="normal"> 177</span>
<span class="normal"> 178</span>
<span class="normal"> 179</span>
<span class="normal"> 180</span>
<span class="normal"> 181</span>
<span class="normal"> 182</span>
<span class="normal"> 183</span>
<span class="normal"> 184</span>
<span class="normal"> 185</span>
<span class="normal"> 186</span>
<span class="normal"> 187</span>
<span class="normal"> 188</span>
<span class="normal"> 189</span>
<span class="normal"> 190</span>
<span class="normal"> 191</span>
<span class="normal"> 192</span>
<span class="normal"> 193</span>
<span class="normal"> 194</span>
<span class="normal"> 195</span>
<span class="normal"> 196</span>
<span class="normal"> 197</span>
<span class="normal"> 198</span>
<span class="normal"> 199</span>
<span class="normal"> 200</span>
<span class="normal"> 201</span>
<span class="normal"> 202</span>
<span class="normal"> 203</span>
<span class="normal"> 204</span>
<span class="normal"> 205</span>
<span class="normal"> 206</span>
<span class="normal"> 207</span>
<span class="normal"> 208</span>
<span class="normal"> 209</span>
<span class="normal"> 210</span>
<span class="normal"> 211</span>
<span class="normal"> 212</span>
<span class="normal"> 213</span>
<span class="normal"> 214</span>
<span class="normal"> 215</span>
<span class="normal"> 216</span>
<span class="normal"> 217</span>
<span class="normal"> 218</span>
<span class="normal"> 219</span>
<span class="normal"> 220</span>
<span class="normal"> 221</span>
<span class="normal"> 222</span>
<span class="normal"> 223</span>
<span class="normal"> 224</span>
<span class="normal"> 225</span>
<span class="normal"> 226</span>
<span class="normal"> 227</span>
<span class="normal"> 228</span>
<span class="normal"> 229</span>
<span class="normal"> 230</span>
<span class="normal"> 231</span>
<span class="normal"> 232</span>
<span class="normal"> 233</span>
<span class="normal"> 234</span>
<span class="normal"> 235</span>
<span class="normal"> 236</span>
<span class="normal"> 237</span>
<span class="normal"> 238</span>
<span class="normal"> 239</span>
<span class="normal"> 240</span>
<span class="normal"> 241</span>
<span class="normal"> 242</span>
<span class="normal"> 243</span>
<span class="normal"> 244</span>
<span class="normal"> 245</span>
<span class="normal"> 246</span>
<span class="normal"> 247</span>
<span class="normal"> 248</span>
<span class="normal"> 249</span>
<span class="normal"> 250</span>
<span class="normal"> 251</span>
<span class="normal"> 252</span>
<span class="normal"> 253</span>
<span class="normal"> 254</span>
<span class="normal"> 255</span>
<span class="normal"> 256</span>
<span class="normal"> 257</span>
<span class="normal"> 258</span>
<span class="normal"> 259</span>
<span class="normal"> 260</span>
<span class="normal"> 261</span>
<span class="normal"> 262</span>
<span class="normal"> 263</span>
<span class="normal"> 264</span>
<span class="normal"> 265</span>
<span class="normal"> 266</span>
<span class="normal"> 267</span>
<span class="normal"> 268</span>
<span class="normal"> 269</span>
<span class="normal"> 270</span>
<span class="normal"> 271</span>
<span class="normal"> 272</span>
<span class="normal"> 273</span>
<span class="normal"> 274</span>
<span class="normal"> 275</span>
<span class="normal"> 276</span>
<span class="normal"> 277</span>
<span class="normal"> 278</span>
<span class="normal"> 279</span>
<span class="normal"> 280</span>
<span class="normal"> 281</span>
<span class="normal"> 282</span>
<span class="normal"> 283</span>
<span class="normal"> 284</span>
<span class="normal"> 285</span>
<span class="normal"> 286</span>
<span class="normal"> 287</span>
<span class="normal"> 288</span>
<span class="normal"> 289</span>
<span class="normal"> 290</span>
<span class="normal"> 291</span>
<span class="normal"> 292</span>
<span class="normal"> 293</span>
<span class="normal"> 294</span>
<span class="normal"> 295</span>
<span class="normal"> 296</span>
<span class="normal"> 297</span>
<span class="normal"> 298</span>
<span class="normal"> 299</span>
<span class="normal"> 300</span>
<span class="normal"> 301</span>
<span class="normal"> 302</span>
<span class="normal"> 303</span>
<span class="normal"> 304</span>
<span class="normal"> 305</span>
<span class="normal"> 306</span>
<span class="normal"> 307</span>
<span class="normal"> 308</span>
<span class="normal"> 309</span>
<span class="normal"> 310</span>
<span class="normal"> 311</span>
<span class="normal"> 312</span>
<span class="normal"> 313</span>
<span class="normal"> 314</span>
<span class="normal"> 315</span>
<span class="normal"> 316</span>
<span class="normal"> 317</span>
<span class="normal"> 318</span>
<span class="normal"> 319</span>
<span class="normal"> 320</span>
<span class="normal"> 321</span>
<span class="normal"> 322</span>
<span class="normal"> 323</span>
<span class="normal"> 324</span>
<span class="normal"> 325</span>
<span class="normal"> 326</span>
<span class="normal"> 327</span>
<span class="normal"> 328</span>
<span class="normal"> 329</span>
<span class="normal"> 330</span>
<span class="normal"> 331</span>
<span class="normal"> 332</span>
<span class="normal"> 333</span>
<span class="normal"> 334</span>
<span class="normal"> 335</span>
<span class="normal"> 336</span>
<span class="normal"> 337</span>
<span class="normal"> 338</span>
<span class="normal"> 339</span>
<span class="normal"> 340</span>
<span class="normal"> 341</span>
<span class="normal"> 342</span>
<span class="normal"> 343</span>
<span class="normal"> 344</span>
<span class="normal"> 345</span>
<span class="normal"> 346</span>
<span class="normal"> 347</span>
<span class="normal"> 348</span>
<span class="normal"> 349</span>
<span class="normal"> 350</span>
<span class="normal"> 351</span>
<span class="normal"> 352</span>
<span class="normal"> 353</span>
<span class="normal"> 354</span>
<span class="normal"> 355</span>
<span class="normal"> 356</span>
<span class="normal"> 357</span>
<span class="normal"> 358</span>
<span class="normal"> 359</span>
<span class="normal"> 360</span>
<span class="normal"> 361</span>
<span class="normal"> 362</span>
<span class="normal"> 363</span>
<span class="normal"> 364</span>
<span class="normal"> 365</span>
<span class="normal"> 366</span>
<span class="normal"> 367</span>
<span class="normal"> 368</span>
<span class="normal"> 369</span>
<span class="normal"> 370</span>
<span class="normal"> 371</span>
<span class="normal"> 372</span>
<span class="normal"> 373</span>
<span class="normal"> 374</span>
<span class="normal"> 375</span>
<span class="normal"> 376</span>
<span class="normal"> 377</span>
<span class="normal"> 378</span>
<span class="normal"> 379</span>
<span class="normal"> 380</span>
<span class="normal"> 381</span>
<span class="normal"> 382</span>
<span class="normal"> 383</span>
<span class="normal"> 384</span>
<span class="normal"> 385</span>
<span class="normal"> 386</span>
<span class="normal"> 387</span>
<span class="normal"> 388</span>
<span class="normal"> 389</span>
<span class="normal"> 390</span>
<span class="normal"> 391</span>
<span class="normal"> 392</span>
<span class="normal"> 393</span>
<span class="normal"> 394</span>
<span class="normal"> 395</span>
<span class="normal"> 396</span>
<span class="normal"> 397</span>
<span class="normal"> 398</span>
<span class="normal"> 399</span>
<span class="normal"> 400</span>
<span class="normal"> 401</span>
<span class="normal"> 402</span>
<span class="normal"> 403</span>
<span class="normal"> 404</span>
<span class="normal"> 405</span>
<span class="normal"> 406</span>
<span class="normal"> 407</span>
<span class="normal"> 408</span>
<span class="normal"> 409</span>
<span class="normal"> 410</span>
<span class="normal"> 411</span>
<span class="normal"> 412</span>
<span class="normal"> 413</span>
<span class="normal"> 414</span>
<span class="normal"> 415</span>
<span class="normal"> 416</span>
<span class="normal"> 417</span>
<span class="normal"> 418</span>
<span class="normal"> 419</span>
<span class="normal"> 420</span>
<span class="normal"> 421</span>
<span class="normal"> 422</span>
<span class="normal"> 423</span>
<span class="normal"> 424</span>
<span class="normal"> 425</span>
<span class="normal"> 426</span>
<span class="normal"> 427</span>
<span class="normal"> 428</span>
<span class="normal"> 429</span>
<span class="normal"> 430</span>
<span class="normal"> 431</span>
<span class="normal"> 432</span>
<span class="normal"> 433</span>
<span class="normal"> 434</span>
<span class="normal"> 435</span>
<span class="normal"> 436</span>
<span class="normal"> 437</span>
<span class="normal"> 438</span>
<span class="normal"> 439</span>
<span class="normal"> 440</span>
<span class="normal"> 441</span>
<span class="normal"> 442</span>
<span class="normal"> 443</span>
<span class="normal"> 444</span>
<span class="normal"> 445</span>
<span class="normal"> 446</span>
<span class="normal"> 447</span>
<span class="normal"> 448</span>
<span class="normal"> 449</span>
<span class="normal"> 450</span>
<span class="normal"> 451</span>
<span class="normal"> 452</span>
<span class="normal"> 453</span>
<span class="normal"> 454</span>
<span class="normal"> 455</span>
<span class="normal"> 456</span>
<span class="normal"> 457</span>
<span class="normal"> 458</span>
<span class="normal"> 459</span>
<span class="normal"> 460</span>
<span class="normal"> 461</span>
<span class="normal"> 462</span>
<span class="normal"> 463</span>
<span class="normal"> 464</span>
<span class="normal"> 465</span>
<span class="normal"> 466</span>
<span class="normal"> 467</span>
<span class="normal"> 468</span>
<span class="normal"> 469</span>
<span class="normal"> 470</span>
<span class="normal"> 471</span>
<span class="normal"> 472</span>
<span class="normal"> 473</span>
<span class="normal"> 474</span>
<span class="normal"> 475</span>
<span class="normal"> 476</span>
<span class="normal"> 477</span>
<span class="normal"> 478</span>
<span class="normal"> 479</span>
<span class="normal"> 480</span>
<span class="normal"> 481</span>
<span class="normal"> 482</span>
<span class="normal"> 483</span>
<span class="normal"> 484</span>
<span class="normal"> 485</span>
<span class="normal"> 486</span>
<span class="normal"> 487</span>
<span class="normal"> 488</span>
<span class="normal"> 489</span>
<span class="normal"> 490</span>
<span class="normal"> 491</span>
<span class="normal"> 492</span>
<span class="normal"> 493</span>
<span class="normal"> 494</span>
<span class="normal"> 495</span>
<span class="normal"> 496</span>
<span class="normal"> 497</span>
<span class="normal"> 498</span>
<span class="normal"> 499</span>
<span class="normal"> 500</span>
<span class="normal"> 501</span>
<span class="normal"> 502</span>
<span class="normal"> 503</span>
<span class="normal"> 504</span>
<span class="normal"> 505</span>
<span class="normal"> 506</span>
<span class="normal"> 507</span>
<span class="normal"> 508</span>
<span class="normal"> 509</span>
<span class="normal"> 510</span>
<span class="normal"> 511</span>
<span class="normal"> 512</span>
<span class="normal"> 513</span>
<span class="normal"> 514</span>
<span class="normal"> 515</span>
<span class="normal"> 516</span>
<span class="normal"> 517</span>
<span class="normal"> 518</span>
<span class="normal"> 519</span>
<span class="normal"> 520</span>
<span class="normal"> 521</span>
<span class="normal"> 522</span>
<span class="normal"> 523</span>
<span class="normal"> 524</span>
<span class="normal"> 525</span>
<span class="normal"> 526</span>
<span class="normal"> 527</span>
<span class="normal"> 528</span>
<span class="normal"> 529</span>
<span class="normal"> 530</span>
<span class="normal"> 531</span>
<span class="normal"> 532</span>
<span class="normal"> 533</span>
<span class="normal"> 534</span>
<span class="normal"> 535</span>
<span class="normal"> 536</span>
<span class="normal"> 537</span>
<span class="normal"> 538</span>
<span class="normal"> 539</span>
<span class="normal"> 540</span>
<span class="normal"> 541</span>
<span class="normal"> 542</span>
<span class="normal"> 543</span>
<span class="normal"> 544</span>
<span class="normal"> 545</span>
<span class="normal"> 546</span>
<span class="normal"> 547</span>
<span class="normal"> 548</span>
<span class="normal"> 549</span>
<span class="normal"> 550</span>
<span class="normal"> 551</span>
<span class="normal"> 552</span>
<span class="normal"> 553</span>
<span class="normal"> 554</span>
<span class="normal"> 555</span>
<span class="normal"> 556</span>
<span class="normal"> 557</span>
<span class="normal"> 558</span>
<span class="normal"> 559</span>
<span class="normal"> 560</span>
<span class="normal"> 561</span>
<span class="normal"> 562</span>
<span class="normal"> 563</span>
<span class="normal"> 564</span>
<span class="normal"> 565</span>
<span class="normal"> 566</span>
<span class="normal"> 567</span>
<span class="normal"> 568</span>
<span class="normal"> 569</span>
<span class="normal"> 570</span>
<span class="normal"> 571</span>
<span class="normal"> 572</span>
<span class="normal"> 573</span>
<span class="normal"> 574</span>
<span class="normal"> 575</span>
<span class="normal"> 576</span>
<span class="normal"> 577</span>
<span class="normal"> 578</span>
<span class="normal"> 579</span>
<span class="normal"> 580</span>
<span class="normal"> 581</span>
<span class="normal"> 582</span>
<span class="normal"> 583</span>
<span class="normal"> 584</span>
<span class="normal"> 585</span>
<span class="normal"> 586</span>
<span class="normal"> 587</span>
<span class="normal"> 588</span>
<span class="normal"> 589</span>
<span class="normal"> 590</span>
<span class="normal"> 591</span>
<span class="normal"> 592</span>
<span class="normal"> 593</span>
<span class="normal"> 594</span>
<span class="normal"> 595</span>
<span class="normal"> 596</span>
<span class="normal"> 597</span>
<span class="normal"> 598</span>
<span class="normal"> 599</span>
<span class="normal"> 600</span>
<span class="normal"> 601</span>
<span class="normal"> 602</span>
<span class="normal"> 603</span>
<span class="normal"> 604</span>
<span class="normal"> 605</span>
<span class="normal"> 606</span>
<span class="normal"> 607</span>
<span class="normal"> 608</span>
<span class="normal"> 609</span>
<span class="normal"> 610</span>
<span class="normal"> 611</span>
<span class="normal"> 612</span>
<span class="normal"> 613</span>
<span class="normal"> 614</span>
<span class="normal"> 615</span>
<span class="normal"> 616</span>
<span class="normal"> 617</span>
<span class="normal"> 618</span>
<span class="normal"> 619</span>
<span class="normal"> 620</span>
<span class="normal"> 621</span>
<span class="normal"> 622</span>
<span class="normal"> 623</span>
<span class="normal"> 624</span>
<span class="normal"> 625</span>
<span class="normal"> 626</span>
<span class="normal"> 627</span>
<span class="normal"> 628</span>
<span class="normal"> 629</span>
<span class="normal"> 630</span>
<span class="normal"> 631</span>
<span class="normal"> 632</span>
<span class="normal"> 633</span>
<span class="normal"> 634</span>
<span class="normal"> 635</span>
<span class="normal"> 636</span>
<span class="normal"> 637</span>
<span class="normal"> 638</span>
<span class="normal"> 639</span>
<span class="normal"> 640</span>
<span class="normal"> 641</span>
<span class="normal"> 642</span>
<span class="normal"> 643</span>
<span class="normal"> 644</span>
<span class="normal"> 645</span>
<span class="normal"> 646</span>
<span class="normal"> 647</span>
<span class="normal"> 648</span>
<span class="normal"> 649</span>
<span class="normal"> 650</span>
<span class="normal"> 651</span>
<span class="normal"> 652</span>
<span class="normal"> 653</span>
<span class="normal"> 654</span>
<span class="normal"> 655</span>
<span class="normal"> 656</span>
<span class="normal"> 657</span>
<span class="normal"> 658</span>
<span class="normal"> 659</span>
<span class="normal"> 660</span>
<span class="normal"> 661</span>
<span class="normal"> 662</span>
<span class="normal"> 663</span>
<span class="normal"> 664</span>
<span class="normal"> 665</span>
<span class="normal"> 666</span>
<span class="normal"> 667</span>
<span class="normal"> 668</span>
<span class="normal"> 669</span>
<span class="normal"> 670</span>
<span class="normal"> 671</span>
<span class="normal"> 672</span>
<span class="normal"> 673</span>
<span class="normal"> 674</span>
<span class="normal"> 675</span>
<span class="normal"> 676</span>
<span class="normal"> 677</span>
<span class="normal"> 678</span>
<span class="normal"> 679</span>
<span class="normal"> 680</span>
<span class="normal"> 681</span>
<span class="normal"> 682</span>
<span class="normal"> 683</span>
<span class="normal"> 684</span>
<span class="normal"> 685</span>
<span class="normal"> 686</span>
<span class="normal"> 687</span>
<span class="normal"> 688</span>
<span class="normal"> 689</span>
<span class="normal"> 690</span>
<span class="normal"> 691</span>
<span class="normal"> 692</span>
<span class="normal"> 693</span>
<span class="normal"> 694</span>
<span class="normal"> 695</span>
<span class="normal"> 696</span>
<span class="normal"> 697</span>
<span class="normal"> 698</span>
<span class="normal"> 699</span>
<span class="normal"> 700</span>
<span class="normal"> 701</span>
<span class="normal"> 702</span>
<span class="normal"> 703</span>
<span class="normal"> 704</span>
<span class="normal"> 705</span>
<span class="normal"> 706</span>
<span class="normal"> 707</span>
<span class="normal"> 708</span>
<span class="normal"> 709</span>
<span class="normal"> 710</span>
<span class="normal"> 711</span>
<span class="normal"> 712</span>
<span class="normal"> 713</span>
<span class="normal"> 714</span>
<span class="normal"> 715</span>
<span class="normal"> 716</span>
<span class="normal"> 717</span>
<span class="normal"> 718</span>
<span class="normal"> 719</span>
<span class="normal"> 720</span>
<span class="normal"> 721</span>
<span class="normal"> 722</span>
<span class="normal"> 723</span>
<span class="normal"> 724</span>
<span class="normal"> 725</span>
<span class="normal"> 726</span>
<span class="normal"> 727</span>
<span class="normal"> 728</span>
<span class="normal"> 729</span>
<span class="normal"> 730</span>
<span class="normal"> 731</span>
<span class="normal"> 732</span>
<span class="normal"> 733</span>
<span class="normal"> 734</span>
<span class="normal"> 735</span>
<span class="normal"> 736</span>
<span class="normal"> 737</span>
<span class="normal"> 738</span>
<span class="normal"> 739</span>
<span class="normal"> 740</span>
<span class="normal"> 741</span>
<span class="normal"> 742</span>
<span class="normal"> 743</span>
<span class="normal"> 744</span>
<span class="normal"> 745</span>
<span class="normal"> 746</span>
<span class="normal"> 747</span>
<span class="normal"> 748</span>
<span class="normal"> 749</span>
<span class="normal"> 750</span>
<span class="normal"> 751</span>
<span class="normal"> 752</span>
<span class="normal"> 753</span>
<span class="normal"> 754</span>
<span class="normal"> 755</span>
<span class="normal"> 756</span>
<span class="normal"> 757</span>
<span class="normal"> 758</span>
<span class="normal"> 759</span>
<span class="normal"> 760</span>
<span class="normal"> 761</span>
<span class="normal"> 762</span>
<span class="normal"> 763</span>
<span class="normal"> 764</span>
<span class="normal"> 765</span>
<span class="normal"> 766</span>
<span class="normal"> 767</span>
<span class="normal"> 768</span>
<span class="normal"> 769</span>
<span class="normal"> 770</span>
<span class="normal"> 771</span>
<span class="normal"> 772</span>
<span class="normal"> 773</span>
<span class="normal"> 774</span>
<span class="normal"> 775</span>
<span class="normal"> 776</span>
<span class="normal"> 777</span>
<span class="normal"> 778</span>
<span class="normal"> 779</span>
<span class="normal"> 780</span>
<span class="normal"> 781</span>
<span class="normal"> 782</span>
<span class="normal"> 783</span>
<span class="normal"> 784</span>
<span class="normal"> 785</span>
<span class="normal"> 786</span>
<span class="normal"> 787</span>
<span class="normal"> 788</span>
<span class="normal"> 789</span>
<span class="normal"> 790</span>
<span class="normal"> 791</span>
<span class="normal"> 792</span>
<span class="normal"> 793</span>
<span class="normal"> 794</span>
<span class="normal"> 795</span>
<span class="normal"> 796</span>
<span class="normal"> 797</span>
<span class="normal"> 798</span>
<span class="normal"> 799</span>
<span class="normal"> 800</span>
<span class="normal"> 801</span>
<span class="normal"> 802</span>
<span class="normal"> 803</span>
<span class="normal"> 804</span>
<span class="normal"> 805</span>
<span class="normal"> 806</span>
<span class="normal"> 807</span>
<span class="normal"> 808</span>
<span class="normal"> 809</span>
<span class="normal"> 810</span>
<span class="normal"> 811</span>
<span class="normal"> 812</span>
<span class="normal"> 813</span>
<span class="normal"> 814</span>
<span class="normal"> 815</span>
<span class="normal"> 816</span>
<span class="normal"> 817</span>
<span class="normal"> 818</span>
<span class="normal"> 819</span>
<span class="normal"> 820</span>
<span class="normal"> 821</span>
<span class="normal"> 822</span>
<span class="normal"> 823</span>
<span class="normal"> 824</span>
<span class="normal"> 825</span>
<span class="normal"> 826</span>
<span class="normal"> 827</span>
<span class="normal"> 828</span>
<span class="normal"> 829</span>
<span class="normal"> 830</span>
<span class="normal"> 831</span>
<span class="normal"> 832</span>
<span class="normal"> 833</span>
<span class="normal"> 834</span>
<span class="normal"> 835</span>
<span class="normal"> 836</span>
<span class="normal"> 837</span>
<span class="normal"> 838</span>
<span class="normal"> 839</span>
<span class="normal"> 840</span>
<span class="normal"> 841</span>
<span class="normal"> 842</span>
<span class="normal"> 843</span>
<span class="normal"> 844</span>
<span class="normal"> 845</span>
<span class="normal"> 846</span>
<span class="normal"> 847</span>
<span class="normal"> 848</span>
<span class="normal"> 849</span>
<span class="normal"> 850</span>
<span class="normal"> 851</span>
<span class="normal"> 852</span>
<span class="normal"> 853</span>
<span class="normal"> 854</span>
<span class="normal"> 855</span>
<span class="normal"> 856</span>
<span class="normal"> 857</span>
<span class="normal"> 858</span>
<span class="normal"> 859</span>
<span class="normal"> 860</span>
<span class="normal"> 861</span>
<span class="normal"> 862</span>
<span class="normal"> 863</span>
<span class="normal"> 864</span>
<span class="normal"> 865</span>
<span class="normal"> 866</span>
<span class="normal"> 867</span>
<span class="normal"> 868</span>
<span class="normal"> 869</span>
<span class="normal"> 870</span>
<span class="normal"> 871</span>
<span class="normal"> 872</span>
<span class="normal"> 873</span>
<span class="normal"> 874</span>
<span class="normal"> 875</span>
<span class="normal"> 876</span>
<span class="normal"> 877</span>
<span class="normal"> 878</span>
<span class="normal"> 879</span>
<span class="normal"> 880</span>
<span class="normal"> 881</span>
<span class="normal"> 882</span>
<span class="normal"> 883</span>
<span class="normal"> 884</span>
<span class="normal"> 885</span>
<span class="normal"> 886</span>
<span class="normal"> 887</span>
<span class="normal"> 888</span>
<span class="normal"> 889</span>
<span class="normal"> 890</span>
<span class="normal"> 891</span>
<span class="normal"> 892</span>
<span class="normal"> 893</span>
<span class="normal"> 894</span>
<span class="normal"> 895</span>
<span class="normal"> 896</span>
<span class="normal"> 897</span>
<span class="normal"> 898</span>
<span class="normal"> 899</span>
<span class="normal"> 900</span>
<span class="normal"> 901</span>
<span class="normal"> 902</span>
<span class="normal"> 903</span>
<span class="normal"> 904</span>
<span class="normal"> 905</span>
<span class="normal"> 906</span>
<span class="normal"> 907</span>
<span class="normal"> 908</span>
<span class="normal"> 909</span>
<span class="normal"> 910</span>
<span class="normal"> 911</span>
<span class="normal"> 912</span>
<span class="normal"> 913</span>
<span class="normal"> 914</span>
<span class="normal"> 915</span>
<span class="normal"> 916</span>
<span class="normal"> 917</span>
<span class="normal"> 918</span>
<span class="normal"> 919</span>
<span class="normal"> 920</span>
<span class="normal"> 921</span>
<span class="normal"> 922</span>
<span class="normal"> 923</span>
<span class="normal"> 924</span>
<span class="normal"> 925</span>
<span class="normal"> 926</span>
<span class="normal"> 927</span>
<span class="normal"> 928</span>
<span class="normal"> 929</span>
<span class="normal"> 930</span>
<span class="normal"> 931</span>
<span class="normal"> 932</span>
<span class="normal"> 933</span>
<span class="normal"> 934</span>
<span class="normal"> 935</span>
<span class="normal"> 936</span>
<span class="normal"> 937</span>
<span class="normal"> 938</span>
<span class="normal"> 939</span>
<span class="normal"> 940</span>
<span class="normal"> 941</span>
<span class="normal"> 942</span>
<span class="normal"> 943</span>
<span class="normal"> 944</span>
<span class="normal"> 945</span>
<span class="normal"> 946</span>
<span class="normal"> 947</span>
<span class="normal"> 948</span>
<span class="normal"> 949</span>
<span class="normal"> 950</span>
<span class="normal"> 951</span>
<span class="normal"> 952</span>
<span class="normal"> 953</span>
<span class="normal"> 954</span>
<span class="normal"> 955</span>
<span class="normal"> 956</span>
<span class="normal"> 957</span>
<span class="normal"> 958</span>
<span class="normal"> 959</span>
<span class="normal"> 960</span>
<span class="normal"> 961</span>
<span class="normal"> 962</span>
<span class="normal"> 963</span>
<span class="normal"> 964</span>
<span class="normal"> 965</span>
<span class="normal"> 966</span>
<span class="normal"> 967</span>
<span class="normal"> 968</span>
<span class="normal"> 969</span>
<span class="normal"> 970</span>
<span class="normal"> 971</span>
<span class="normal"> 972</span>
<span class="normal"> 973</span>
<span class="normal"> 974</span>
<span class="normal"> 975</span>
<span class="normal"> 976</span>
<span class="normal"> 977</span>
<span class="normal"> 978</span>
<span class="normal"> 979</span>
<span class="normal"> 980</span>
<span class="normal"> 981</span>
<span class="normal"> 982</span>
<span class="normal"> 983</span>
<span class="normal"> 984</span>
<span class="normal"> 985</span>
<span class="normal"> 986</span>
<span class="normal"> 987</span>
<span class="normal"> 988</span>
<span class="normal"> 989</span>
<span class="normal"> 990</span>
<span class="normal"> 991</span>
<span class="normal"> 992</span>
<span class="normal"> 993</span>
<span class="normal"> 994</span>
<span class="normal"> 995</span>
<span class="normal"> 996</span>
<span class="normal"> 997</span>
<span class="normal"> 998</span>
<span class="normal"> 999</span>
<span class="normal">1000</span>
<span class="normal">1001</span>
<span class="normal">1002</span>
<span class="normal">1003</span>
<span class="normal">1004</span>
<span class="normal">1005</span>
<span class="normal">1006</span>
<span class="normal">1007</span>
<span class="normal">1008</span>
<span class="normal">1009</span>
<span class="normal">1010</span>
<span class="normal">1011</span>
<span class="normal">1012</span>
<span class="normal">1013</span>
<span class="normal">1014</span>
<span class="normal">1015</span>
<span class="normal">1016</span>
<span class="normal">1017</span>
<span class="normal">1018</span>
<span class="normal">1019</span>
<span class="normal">1020</span>
<span class="normal">1021</span>
<span class="normal">1022</span>
<span class="normal">1023</span>
<span class="normal">1024</span>
<span class="normal">1025</span>
<span class="normal">1026</span>
<span class="normal">1027</span>
<span class="normal">1028</span>
<span class="normal">1029</span>
<span class="normal">1030</span>
<span class="normal">1031</span>
<span class="normal">1032</span>
<span class="normal">1033</span>
<span class="normal">1034</span>
<span class="normal">1035</span>
<span class="normal">1036</span>
<span class="normal">1037</span>
<span class="normal">1038</span>
<span class="normal">1039</span>
<span class="normal">1040</span>
<span class="normal">1041</span>
<span class="normal">1042</span>
<span class="normal">1043</span>
<span class="normal">1044</span>
<span class="normal">1045</span>
<span class="normal">1046</span>
<span class="normal">1047</span>
<span class="normal">1048</span>
<span class="normal">1049</span>
<span class="normal">1050</span>
<span class="normal">1051</span>
<span class="normal">1052</span>
<span class="normal">1053</span>
<span class="normal">1054</span>
<span class="normal">1055</span>
<span class="normal">1056</span>
<span class="normal">1057</span>
<span class="normal">1058</span>
<span class="normal">1059</span>
<span class="normal">1060</span>
<span class="normal">1061</span>
<span class="normal">1062</span>
<span class="normal">1063</span>
<span class="normal">1064</span>
<span class="normal">1065</span>
<span class="normal">1066</span>
<span class="normal">1067</span>
<span class="normal">1068</span>
<span class="normal">1069</span>
<span class="normal">1070</span>
<span class="normal">1071</span>
<span class="normal">1072</span>
<span class="normal">1073</span>
<span class="normal">1074</span>
<span class="normal">1075</span>
<span class="normal">1076</span>
<span class="normal">1077</span>
<span class="normal">1078</span>
<span class="normal">1079</span>
<span class="normal">1080</span>
<span class="normal">1081</span>
<span class="normal">1082</span>
<span class="normal">1083</span>
<span class="normal">1084</span>
<span class="normal">1085</span>
<span class="normal">1086</span>
<span class="normal">1087</span>
<span class="normal">1088</span>
<span class="normal">1089</span>
<span class="normal">1090</span>
<span class="normal">1091</span>
<span class="normal">1092</span>
<span class="normal">1093</span>
<span class="normal">1094</span>
<span class="normal">1095</span>
<span class="normal">1096</span>
<span class="normal">1097</span>
<span class="normal">1098</span>
<span class="normal">1099</span>
<span class="normal">1100</span>
<span class="normal">1101</span>
<span class="normal">1102</span>
<span class="normal">1103</span>
<span class="normal">1104</span>
<span class="normal">1105</span>
<span class="normal">1106</span>
<span class="normal">1107</span>
<span class="normal">1108</span>
<span class="normal">1109</span>
<span class="normal">1110</span>
<span class="normal">1111</span>
<span class="normal">1112</span>
<span class="normal">1113</span>
<span class="normal">1114</span>
<span class="normal">1115</span>
<span class="normal">1116</span>
<span class="normal">1117</span>
<span class="normal">1118</span>
<span class="normal">1119</span>
<span class="normal">1120</span>
<span class="normal">1121</span>
<span class="normal">1122</span>
<span class="normal">1123</span>
<span class="normal">1124</span>
<span class="normal">1125</span>
<span class="normal">1126</span>
<span class="normal">1127</span>
<span class="normal">1128</span>
<span class="normal">1129</span>
<span class="normal">1130</span>
<span class="normal">1131</span>
<span class="normal">1132</span>
<span class="normal">1133</span>
<span class="normal">1134</span>
<span class="normal">1135</span>
<span class="normal">1136</span>
<span class="normal">1137</span>
<span class="normal">1138</span>
<span class="normal">1139</span>
<span class="normal">1140</span>
<span class="normal">1141</span>
<span class="normal">1142</span>
<span class="normal">1143</span>
<span class="normal">1144</span>
<span class="normal">1145</span>
<span class="normal">1146</span>
<span class="normal">1147</span>
<span class="normal">1148</span>
<span class="normal">1149</span>
<span class="normal">1150</span>
<span class="normal">1151</span>
<span class="normal">1152</span>
<span class="normal">1153</span>
<span class="normal">1154</span>
<span class="normal">1155</span>
<span class="normal">1156</span>
<span class="normal">1157</span>
<span class="normal">1158</span>
<span class="normal">1159</span>
<span class="normal">1160</span>
<span class="normal">1161</span>
<span class="normal">1162</span>
<span class="normal">1163</span>
<span class="normal">1164</span>
<span class="normal">1165</span>
<span class="normal">1166</span>
<span class="normal">1167</span>
<span class="normal">1168</span>
<span class="normal">1169</span>
<span class="normal">1170</span>
<span class="normal">1171</span>
<span class="normal">1172</span>
<span class="normal">1173</span>
<span class="normal">1174</span>
<span class="normal">1175</span>
<span class="normal">1176</span>
<span class="normal">1177</span>
<span class="normal">1178</span>
<span class="normal">1179</span>
<span class="normal">1180</span>
<span class="normal">1181</span>
<span class="normal">1182</span>
<span class="normal">1183</span>
<span class="normal">1184</span>
<span class="normal">1185</span>
<span class="normal">1186</span>
<span class="normal">1187</span>
<span class="normal">1188</span>
<span class="normal">1189</span>
<span class="normal">1190</span>
<span class="normal">1191</span>
<span class="normal">1192</span>
<span class="normal">1193</span>
<span class="normal">1194</span>
<span class="normal">1195</span>
<span class="normal">1196</span>
<span class="normal">1197</span>
<span class="normal">1198</span>
<span class="normal">1199</span>
<span class="normal">1200</span>
<span class="normal">1201</span>
<span class="normal">1202</span>
<span class="normal">1203</span>
<span class="normal">1204</span>
<span class="normal">1205</span>
<span class="normal">1206</span>
<span class="normal">1207</span>
<span class="normal">1208</span>
<span class="normal">1209</span>
<span class="normal">1210</span>
<span class="normal">1211</span>
<span class="normal">1212</span>
<span class="normal">1213</span>
<span class="normal">1214</span>
<span class="normal">1215</span>
<span class="normal">1216</span>
<span class="normal">1217</span>
<span class="normal">1218</span>
<span class="normal">1219</span>
<span class="normal">1220</span>
<span class="normal">1221</span>
<span class="normal">1222</span>
<span class="normal">1223</span>
<span class="normal">1224</span>
<span class="normal">1225</span>
<span class="normal">1226</span>
<span class="normal">1227</span>
<span class="normal">1228</span>
<span class="normal">1229</span>
<span class="normal">1230</span>
<span class="normal">1231</span>
<span class="normal">1232</span>
<span class="normal">1233</span>
<span class="normal">1234</span>
<span class="normal">1235</span>
<span class="normal">1236</span>
<span class="normal">1237</span>
<span class="normal">1238</span>
<span class="normal">1239</span>
<span class="normal">1240</span>
<span class="normal">1241</span>
<span class="normal">1242</span>
<span class="normal">1243</span>
<span class="normal">1244</span>
<span class="normal">1245</span>
<span class="normal">1246</span>
<span class="normal">1247</span>
<span class="normal">1248</span>
<span class="normal">1249</span>
<span class="normal">1250</span>
<span class="normal">1251</span>
<span class="normal">1252</span>
<span class="normal">1253</span>
<span class="normal">1254</span>
<span class="normal">1255</span>
<span class="normal">1256</span>
<span class="normal">1257</span>
<span class="normal">1258</span>
<span class="normal">1259</span>
<span class="normal">1260</span>
<span class="normal">1261</span>
<span class="normal">1262</span>
<span class="normal">1263</span>
<span class="normal">1264</span>
<span class="normal">1265</span>
<span class="normal">1266</span>
<span class="normal">1267</span>
<span class="normal">1268</span>
<span class="normal">1269</span>
<span class="normal">1270</span>
<span class="normal">1271</span>
<span class="normal">1272</span>
<span class="normal">1273</span>
<span class="normal">1274</span>
<span class="normal">1275</span>
<span class="normal">1276</span>
<span class="normal">1277</span>
<span class="normal">1278</span>
<span class="normal">1279</span>
<span class="normal">1280</span>
<span class="normal">1281</span>
<span class="normal">1282</span>
<span class="normal">1283</span>
<span class="normal">1284</span>
<span class="normal">1285</span>
<span class="normal">1286</span>
<span class="normal">1287</span>
<span class="normal">1288</span>
<span class="normal">1289</span>
<span class="normal">1290</span>
<span class="normal">1291</span>
<span class="normal">1292</span>
<span class="normal">1293</span>
<span class="normal">1294</span>
<span class="normal">1295</span>
<span class="normal">1296</span>
<span class="normal">1297</span>
<span class="normal">1298</span>
<span class="normal">1299</span>
<span class="normal">1300</span>
<span class="normal">1301</span>
<span class="normal">1302</span>
<span class="normal">1303</span>
<span class="normal">1304</span>
<span class="normal">1305</span>
<span class="normal">1306</span>
<span class="normal">1307</span>
<span class="normal">1308</span>
<span class="normal">1309</span>
<span class="normal">1310</span>
<span class="normal">1311</span>
<span class="normal">1312</span>
<span class="normal">1313</span>
<span class="normal">1314</span>
<span class="normal">1315</span>
<span class="normal">1316</span>
<span class="normal">1317</span>
<span class="normal">1318</span>
<span class="normal">1319</span>
<span class="normal">1320</span>
<span class="normal">1321</span>
<span class="normal">1322</span>
<span class="normal">1323</span>
<span class="normal">1324</span>
<span class="normal">1325</span>
<span class="normal">1326</span>
<span class="normal">1327</span>
<span class="normal">1328</span>
<span class="normal">1329</span>
<span class="normal">1330</span>
<span class="normal">1331</span>
<span class="normal">1332</span>
<span class="normal">1333</span>
<span class="normal">1334</span>
<span class="normal">1335</span>
<span class="normal">1336</span>
<span class="normal">1337</span>
<span class="normal">1338</span>
<span class="normal">1339</span>
<span class="normal">1340</span>
<span class="normal">1341</span>
<span class="normal">1342</span>
<span class="normal">1343</span>
<span class="normal">1344</span>
<span class="normal">1345</span>
<span class="normal">1346</span>
<span class="normal">1347</span>
<span class="normal">1348</span>
<span class="normal">1349</span>
<span class="normal">1350</span>
<span class="normal">1351</span>
<span class="normal">1352</span>
<span class="normal">1353</span>
<span class="normal">1354</span>
<span class="normal">1355</span>
<span class="normal">1356</span>
<span class="normal">1357</span>
<span class="normal">1358</span>
<span class="normal">1359</span>
<span class="normal">1360</span>
<span class="normal">1361</span>
<span class="normal">1362</span>
<span class="normal">1363</span>
<span class="normal">1364</span>
<span class="normal">1365</span>
<span class="normal">1366</span>
<span class="normal">1367</span>
<span class="normal">1368</span>
<span class="normal">1369</span>
<span class="normal">1370</span>
<span class="normal">1371</span>
<span class="normal">1372</span>
<span class="normal">1373</span>
<span class="normal">1374</span>
<span class="normal">1375</span>
<span class="normal">1376</span>
<span class="normal">1377</span>
<span class="normal">1378</span>
<span class="normal">1379</span>
<span class="normal">1380</span>
<span class="normal">1381</span>
<span class="normal">1382</span>
<span class="normal">1383</span>
<span class="normal">1384</span>
<span class="normal">1385</span>
<span class="normal">1386</span>
<span class="normal">1387</span>
<span class="normal">1388</span>
<span class="normal">1389</span>
<span class="normal">1390</span>
<span class="normal">1391</span>
<span class="normal">1392</span>
<span class="normal">1393</span>
<span class="normal">1394</span>
<span class="normal">1395</span>
<span class="normal">1396</span>
<span class="normal">1397</span>
<span class="normal">1398</span>
<span class="normal">1399</span>
<span class="normal">1400</span>
<span class="normal">1401</span>
<span class="normal">1402</span>
<span class="normal">1403</span>
<span class="normal">1404</span>
<span class="normal">1405</span>
<span class="normal">1406</span>
<span class="normal">1407</span>
<span class="normal">1408</span>
<span class="normal">1409</span>
<span class="normal">1410</span>
<span class="normal">1411</span>
<span class="normal">1412</span>
<span class="normal">1413</span>
<span class="normal">1414</span>
<span class="normal">1415</span>
<span class="normal">1416</span>
<span class="normal">1417</span>
<span class="normal">1418</span>
<span class="normal">1419</span>
<span class="normal">1420</span>
<span class="normal">1421</span>
<span class="normal">1422</span>
<span class="normal">1423</span>
<span class="normal">1424</span>
<span class="normal">1425</span>
<span class="normal">1426</span>
<span class="normal">1427</span>
<span class="normal">1428</span>
<span class="normal">1429</span>
<span class="normal">1430</span>
<span class="normal">1431</span>
<span class="normal">1432</span>
<span class="normal">1433</span>
<span class="normal">1434</span>
<span class="normal">1435</span>
<span class="normal">1436</span>
<span class="normal">1437</span>
<span class="normal">1438</span>
<span class="normal">1439</span>
<span class="normal">1440</span>
<span class="normal">1441</span>
<span class="normal">1442</span>
<span class="normal">1443</span>
<span class="normal">1444</span>
<span class="normal">1445</span>
<span class="normal">1446</span>
<span class="normal">1447</span>
<span class="normal">1448</span>
<span class="normal">1449</span>
<span class="normal">1450</span>
<span class="normal">1451</span>
<span class="normal">1452</span>
<span class="normal">1453</span>
<span class="normal">1454</span>
<span class="normal">1455</span>
<span class="normal">1456</span>
<span class="normal">1457</span>
<span class="normal">1458</span>
<span class="normal">1459</span>
<span class="normal">1460</span>
<span class="normal">1461</span>
<span class="normal">1462</span>
<span class="normal">1463</span>
<span class="normal">1464</span>
<span class="normal">1465</span>
<span class="normal">1466</span>
<span class="normal">1467</span>
<span class="normal">1468</span>
<span class="normal">1469</span>
<span class="normal">1470</span>
<span class="normal">1471</span>
<span class="normal">1472</span>
<span class="normal">1473</span>
<span class="normal">1474</span>
<span class="normal">1475</span>
<span class="normal">1476</span>
<span class="normal">1477</span>
<span class="normal">1478</span>
<span class="normal">1479</span>
<span class="normal">1480</span>
<span class="normal">1481</span>
<span class="normal">1482</span>
<span class="normal">1483</span>
<span class="normal">1484</span>
<span class="normal">1485</span>
<span class="normal">1486</span>
<span class="normal">1487</span>
<span class="normal">1488</span>
<span class="normal">1489</span>
<span class="normal">1490</span>
<span class="normal">1491</span>
<span class="normal">1492</span>
<span class="normal">1493</span>
<span class="normal">1494</span>
<span class="normal">1495</span>
<span class="normal">1496</span>
<span class="normal">1497</span>
<span class="normal">1498</span>
<span class="normal">1499</span>
<span class="normal">1500</span>
<span class="normal">1501</span>
<span class="normal">1502</span>
<span class="normal">1503</span>
<span class="normal">1504</span>
<span class="normal">1505</span>
<span class="normal">1506</span>
<span class="normal">1507</span>
<span class="normal">1508</span>
<span class="normal">1509</span>
<span class="normal">1510</span>
<span class="normal">1511</span>
<span class="normal">1512</span>
<span class="normal">1513</span>
<span class="normal">1514</span>
<span class="normal">1515</span>
<span class="normal">1516</span>
<span class="normal">1517</span>
<span class="normal">1518</span>
<span class="normal">1519</span>
<span class="normal">1520</span>
<span class="normal">1521</span>
<span class="normal">1522</span>
<span class="normal">1523</span>
<span class="normal">1524</span>
<span class="normal">1525</span>
<span class="normal">1526</span>
<span class="normal">1527</span>
<span class="normal">1528</span>
<span class="normal">1529</span>
<span class="normal">1530</span>
<span class="normal">1531</span>
<span class="normal">1532</span>
<span class="normal">1533</span>
<span class="normal">1534</span>
<span class="normal">1535</span>
<span class="normal">1536</span>
<span class="normal">1537</span>
<span class="normal">1538</span>
<span class="normal">1539</span>
<span class="normal">1540</span>
<span class="normal">1541</span>
<span class="normal">1542</span>
<span class="normal">1543</span>
<span class="normal">1544</span>
<span class="normal">1545</span>
<span class="normal">1546</span>
<span class="normal">1547</span>
<span class="normal">1548</span>
<span class="normal">1549</span>
<span class="normal">1550</span>
<span class="normal">1551</span>
<span class="normal">1552</span>
<span class="normal">1553</span>
<span class="normal">1554</span>
<span class="normal">1555</span>
<span class="normal">1556</span>
<span class="normal">1557</span>
<span class="normal">1558</span>
<span class="normal">1559</span>
<span class="normal">1560</span>
<span class="normal">1561</span>
<span class="normal">1562</span>
<span class="normal">1563</span>
<span class="normal">1564</span>
<span class="normal">1565</span>
<span class="normal">1566</span>
<span class="normal">1567</span>
<span class="normal">1568</span>
<span class="normal">1569</span>
<span class="normal">1570</span>
<span class="normal">1571</span>
<span class="normal">1572</span>
<span class="normal">1573</span>
<span class="normal">1574</span>
<span class="normal">1575</span>
<span class="normal">1576</span>
<span class="normal">1577</span>
<span class="normal">1578</span>
<span class="normal">1579</span>
<span class="normal">1580</span>
<span class="normal">1581</span>
<span class="normal">1582</span>
<span class="normal">1583</span>
<span class="normal">1584</span>
<span class="normal">1585</span>
<span class="normal">1586</span>
<span class="normal">1587</span>
<span class="normal">1588</span>
<span class="normal">1589</span>
<span class="normal">1590</span>
<span class="normal">1591</span>
<span class="normal">1592</span>
<span class="normal">1593</span>
<span class="normal">1594</span>
<span class="normal">1595</span>
<span class="normal">1596</span>
<span class="normal">1597</span>
<span class="normal">1598</span>
<span class="normal">1599</span>
<span class="normal">1600</span>
<span class="normal">1601</span>
<span class="normal">1602</span>
<span class="normal">1603</span>
<span class="normal">1604</span>
<span class="normal">1605</span>
<span class="normal">1606</span>
<span class="normal">1607</span>
<span class="normal">1608</span>
<span class="normal">1609</span>
<span class="normal">1610</span>
<span class="normal">1611</span>
<span class="normal">1612</span>
<span class="normal">1613</span>
<span class="normal">1614</span>
<span class="normal">1615</span>
<span class="normal">1616</span>
<span class="normal">1617</span>
<span class="normal">1618</span>
<span class="normal">1619</span>
<span class="normal">1620</span>
<span class="normal">1621</span>
<span class="normal">1622</span>
<span class="normal">1623</span>
<span class="normal">1624</span>
<span class="normal">1625</span>
<span class="normal">1626</span>
<span class="normal">1627</span>
<span class="normal">1628</span>
<span class="normal">1629</span>
<span class="normal">1630</span>
<span class="normal">1631</span>
<span class="normal">1632</span>
<span class="normal">1633</span>
<span class="normal">1634</span>
<span class="normal">1635</span>
<span class="normal">1636</span>
<span class="normal">1637</span>
<span class="normal">1638</span>
<span class="normal">1639</span>
<span class="normal">1640</span>
<span class="normal">1641</span>
<span class="normal">1642</span>
<span class="normal">1643</span>
<span class="normal">1644</span>
<span class="normal">1645</span>
<span class="normal">1646</span>
<span class="normal">1647</span>
<span class="normal">1648</span>
<span class="normal">1649</span>
<span class="normal">1650</span>
<span class="normal">1651</span>
<span class="normal">1652</span>
<span class="normal">1653</span>
<span class="normal">1654</span>
<span class="normal">1655</span>
<span class="normal">1656</span>
<span class="normal">1657</span>
<span class="normal">1658</span>
<span class="normal">1659</span>
<span class="normal">1660</span>
<span class="normal">1661</span>
<span class="normal">1662</span>
<span class="normal">1663</span>
<span class="normal">1664</span>
<span class="normal">1665</span>
<span class="normal">1666</span>
<span class="normal">1667</span>
<span class="normal">1668</span>
<span class="normal">1669</span>
<span class="normal">1670</span>
<span class="normal">1671</span>
<span class="normal">1672</span>
<span class="normal">1673</span>
<span class="normal">1674</span>
<span class="normal">1675</span>
<span class="normal">1676</span>
<span class="normal">1677</span>
<span class="normal">1678</span>
<span class="normal">1679</span>
<span class="normal">1680</span>
<span class="normal">1681</span>
<span class="normal">1682</span>
<span class="normal">1683</span>
<span class="normal">1684</span>
<span class="normal">1685</span>
<span class="normal">1686</span>
<span class="normal">1687</span>
<span class="normal">1688</span>
<span class="normal">1689</span>
<span class="normal">1690</span>
<span class="normal">1691</span>
<span class="normal">1692</span>
<span class="normal">1693</span>
<span class="normal">1694</span>
<span class="normal">1695</span>
<span class="normal">1696</span>
<span class="normal">1697</span>
<span class="normal">1698</span>
<span class="normal">1699</span>
<span class="normal">1700</span>
<span class="normal">1701</span>
<span class="normal">1702</span>
<span class="normal">1703</span>
<span class="normal">1704</span>
<span class="normal">1705</span>
<span class="normal">1706</span>
<span class="normal">1707</span>
<span class="normal">1708</span>
<span class="normal">1709</span>
<span class="normal">1710</span>
<span class="normal">1711</span>
<span class="normal">1712</span>
<span class="normal">1713</span>
<span class="normal">1714</span>
<span class="normal">1715</span>
<span class="normal">1716</span>
<span class="normal">1717</span>
<span class="normal">1718</span>
<span class="normal">1719</span>
<span class="normal">1720</span>
<span class="normal">1721</span>
<span class="normal">1722</span>
<span class="normal">1723</span>
<span class="normal">1724</span>
<span class="normal">1725</span>
<span class="normal">1726</span>
<span class="normal">1727</span>
<span class="normal">1728</span>
<span class="normal">1729</span>
<span class="normal">1730</span>
<span class="normal">1731</span>
<span class="normal">1732</span>
<span class="normal">1733</span>
<span class="normal">1734</span>
<span class="normal">1735</span>
<span class="normal">1736</span>
<span class="normal">1737</span>
<span class="normal">1738</span>
<span class="normal">1739</span>
<span class="normal">1740</span>
<span class="normal">1741</span>
<span class="normal">1742</span>
<span class="normal">1743</span>
<span class="normal">1744</span>
<span class="normal">1745</span>
<span class="normal">1746</span>
<span class="normal">1747</span>
<span class="normal">1748</span>
<span class="normal">1749</span>
<span class="normal">1750</span>
<span class="normal">1751</span>
<span class="normal">1752</span>
<span class="normal">1753</span>
<span class="normal">1754</span>
<span class="normal">1755</span>
<span class="normal">1756</span>
<span class="normal">1757</span>
<span class="normal">1758</span>
<span class="normal">1759</span>
<span class="normal">1760</span>
<span class="normal">1761</span>
<span class="normal">1762</span>
<span class="normal">1763</span>
<span class="normal">1764</span>
<span class="normal">1765</span>
<span class="normal">1766</span>
<span class="normal">1767</span>
<span class="normal">1768</span>
<span class="normal">1769</span>
<span class="normal">1770</span>
<span class="normal">1771</span>
<span class="normal">1772</span>
<span class="normal">1773</span>
<span class="normal">1774</span>
<span class="normal">1775</span>
<span class="normal">1776</span>
<span class="normal">1777</span>
<span class="normal">1778</span>
<span class="normal">1779</span>
<span class="normal">1780</span>
<span class="normal">1781</span>
<span class="normal">1782</span>
<span class="normal">1783</span>
<span class="normal">1784</span>
<span class="normal">1785</span>
<span class="normal">1786</span>
<span class="normal">1787</span>
<span class="normal">1788</span>
<span class="normal">1789</span>
<span class="normal">1790</span>
<span class="normal">1791</span>
<span class="normal">1792</span>
<span class="normal">1793</span>
<span class="normal">1794</span>
<span class="normal">1795</span>
<span class="normal">1796</span>
<span class="normal">1797</span>
<span class="normal">1798</span>
<span class="normal">1799</span>
<span class="normal">1800</span>
<span class="normal">1801</span>
<span class="normal">1802</span>
<span class="normal">1803</span>
<span class="normal">1804</span>
<span class="normal">1805</span>
<span class="normal">1806</span>
<span class="normal">1807</span>
<span class="normal">1808</span>
<span class="normal">1809</span>
<span class="normal">1810</span>
<span class="normal">1811</span>
<span class="normal">1812</span>
<span class="normal">1813</span>
<span class="normal">1814</span>
<span class="normal">1815</span>
<span class="normal">1816</span>
<span class="normal">1817</span>
<span class="normal">1818</span>
<span class="normal">1819</span>
<span class="normal">1820</span>
<span class="normal">1821</span>
<span class="normal">1822</span>
<span class="normal">1823</span>
<span class="normal">1824</span>
<span class="normal">1825</span>
<span class="normal">1826</span>
<span class="normal">1827</span>
<span class="normal">1828</span>
<span class="normal">1829</span>
<span class="normal">1830</span>
<span class="normal">1831</span>
<span class="normal">1832</span>
<span class="normal">1833</span>
<span class="normal">1834</span>
<span class="normal">1835</span>
<span class="normal">1836</span>
<span class="normal">1837</span>
<span class="normal">1838</span>
<span class="normal">1839</span>
<span class="normal">1840</span>
<span class="normal">1841</span>
<span class="normal">1842</span>
<span class="normal">1843</span>
<span class="normal">1844</span>
<span class="normal">1845</span>
<span class="normal">1846</span>
<span class="normal">1847</span>
<span class="normal">1848</span>
<span class="normal">1849</span>
<span class="normal">1850</span>
<span class="normal">1851</span>
<span class="normal">1852</span>
<span class="normal">1853</span>
<span class="normal">1854</span>
<span class="normal">1855</span>
<span class="normal">1856</span>
<span class="normal">1857</span>
<span class="normal">1858</span>
<span class="normal">1859</span>
<span class="normal">1860</span>
<span class="normal">1861</span>
<span class="normal">1862</span>
<span class="normal">1863</span>
<span class="normal">1864</span>
<span class="normal">1865</span>
<span class="normal">1866</span>
<span class="normal">1867</span>
<span class="normal">1868</span>
<span class="normal">1869</span>
<span class="normal">1870</span>
<span class="normal">1871</span>
<span class="normal">1872</span>
<span class="normal">1873</span>
<span class="normal">1874</span>
<span class="normal">1875</span>
<span class="normal">1876</span>
<span class="normal">1877</span>
<span class="normal">1878</span>
<span class="normal">1879</span>
<span class="normal">1880</span>
<span class="normal">1881</span>
<span class="normal">1882</span>
<span class="normal">1883</span>
<span class="normal">1884</span>
<span class="normal">1885</span>
<span class="normal">1886</span>
<span class="normal">1887</span>
<span class="normal">1888</span>
<span class="normal">1889</span>
<span class="normal">1890</span>
<span class="normal">1891</span>
<span class="normal">1892</span>
<span class="normal">1893</span>
<span class="normal">1894</span>
<span class="normal">1895</span>
<span class="normal">1896</span>
<span class="normal">1897</span>
<span class="normal">1898</span>
<span class="normal">1899</span>
<span class="normal">1900</span>
<span class="normal">1901</span>
<span class="normal">1902</span>
<span class="normal">1903</span>
<span class="normal">1904</span>
<span class="normal">1905</span>
<span class="normal">1906</span>
<span class="normal">1907</span>
<span class="normal">1908</span>
<span class="normal">1909</span>
<span class="normal">1910</span>
<span class="normal">1911</span>
<span class="normal">1912</span>
<span class="normal">1913</span>
<span class="normal">1914</span>
<span class="normal">1915</span>
<span class="normal">1916</span>
<span class="normal">1917</span>
<span class="normal">1918</span>
<span class="normal">1919</span>
<span class="normal">1920</span>
<span class="normal">1921</span>
<span class="normal">1922</span>
<span class="normal">1923</span>
<span class="normal">1924</span>
<span class="normal">1925</span>
<span class="normal">1926</span>
<span class="normal">1927</span>
<span class="normal">1928</span>
<span class="normal">1929</span>
<span class="normal">1930</span>
<span class="normal">1931</span>
<span class="normal">1932</span>
<span class="normal">1933</span>
<span class="normal">1934</span>
<span class="normal">1935</span>
<span class="normal">1936</span>
<span class="normal">1937</span>
<span class="normal">1938</span>
<span class="normal">1939</span>
<span class="normal">1940</span>
<span class="normal">1941</span>
<span class="normal">1942</span>
<span class="normal">1943</span>
<span class="normal">1944</span>
<span class="normal">1945</span>
<span class="normal">1946</span>
<span class="normal">1947</span>
<span class="normal">1948</span>
<span class="normal">1949</span>
<span class="normal">1950</span>
<span class="normal">1951</span>
<span class="normal">1952</span>
<span class="normal">1953</span>
<span class="normal">1954</span>
<span class="normal">1955</span>
<span class="normal">1956</span>
<span class="normal">1957</span>
<span class="normal">1958</span>
<span class="normal">1959</span>
<span class="normal">1960</span>
<span class="normal">1961</span>
<span class="normal">1962</span>
<span class="normal">1963</span>
<span class="normal">1964</span>
<span class="normal">1965</span>
<span class="normal">1966</span>
<span class="normal">1967</span>
<span class="normal">1968</span>
<span class="normal">1969</span>
<span class="normal">1970</span>
<span class="normal">1971</span>
<span class="normal">1972</span>
<span class="normal">1973</span>
<span class="normal">1974</span>
<span class="normal">1975</span>
<span class="normal">1976</span>
<span class="normal">1977</span>
<span class="normal">1978</span>
<span class="normal">1979</span>
<span class="normal">1980</span>
<span class="normal">1981</span>
<span class="normal">1982</span>
<span class="normal">1983</span>
<span class="normal">1984</span>
<span class="normal">1985</span>
<span class="normal">1986</span>
<span class="normal">1987</span>
<span class="normal">1988</span>
<span class="normal">1989</span>
<span class="normal">1990</span>
<span class="normal">1991</span>
<span class="normal">1992</span>
<span class="normal">1993</span>
<span class="normal">1994</span>
<span class="normal">1995</span>
<span class="normal">1996</span>
<span class="normal">1997</span>
<span class="normal">1998</span>
<span class="normal">1999</span>
<span class="normal">2000</span>
<span class="normal">2001</span>
<span class="normal">2002</span>
<span class="normal">2003</span>
<span class="normal">2004</span>
<span class="normal">2005</span>
<span class="normal">2006</span>
<span class="normal">2007</span>
<span class="normal">2008</span>
<span class="normal">2009</span>
<span class="normal">2010</span>
<span class="normal">2011</span>
<span class="normal">2012</span>
<span class="normal">2013</span>
<span class="normal">2014</span>
<span class="normal">2015</span>
<span class="normal">2016</span>
<span class="normal">2017</span>
<span class="normal">2018</span>
<span class="normal">2019</span>
<span class="normal">2020</span>
<span class="normal">2021</span>
<span class="normal">2022</span>
<span class="normal">2023</span>
<span class="normal">2024</span>
<span class="normal">2025</span>
<span class="normal">2026</span>
<span class="normal">2027</span>
<span class="normal">2028</span>
<span class="normal">2029</span>
<span class="normal">2030</span>
<span class="normal">2031</span>
<span class="normal">2032</span>
<span class="normal">2033</span>
<span class="normal">2034</span>
<span class="normal">2035</span>
<span class="normal">2036</span>
<span class="normal">2037</span>
<span class="normal">2038</span>
<span class="normal">2039</span>
<span class="normal">2040</span>
<span class="normal">2041</span>
<span class="normal">2042</span>
<span class="normal">2043</span>
<span class="normal">2044</span>
<span class="normal">2045</span>
<span class="normal">2046</span>
<span class="normal">2047</span>
<span class="normal">2048</span>
<span class="normal">2049</span>
<span class="normal">2050</span>
<span class="normal">2051</span>
<span class="normal">2052</span>
<span class="normal">2053</span>
<span class="normal">2054</span>
<span class="normal">2055</span>
<span class="normal">2056</span>
<span class="normal">2057</span>
<span class="normal">2058</span>
<span class="normal">2059</span>
<span class="normal">2060</span>
<span class="normal">2061</span>
<span class="normal">2062</span>
<span class="normal">2063</span>
<span class="normal">2064</span>
<span class="normal">2065</span>
<span class="normal">2066</span>
<span class="normal">2067</span>
<span class="normal">2068</span>
<span class="normal">2069</span>
<span class="normal">2070</span>
<span class="normal">2071</span>
<span class="normal">2072</span>
<span class="normal">2073</span>
<span class="normal">2074</span>
<span class="normal">2075</span>
<span class="normal">2076</span>
<span class="normal">2077</span>
<span class="normal">2078</span>
<span class="normal">2079</span>
<span class="normal">2080</span>
<span class="normal">2081</span>
<span class="normal">2082</span>
<span class="normal">2083</span>
<span class="normal">2084</span>
<span class="normal">2085</span>
<span class="normal">2086</span>
<span class="normal">2087</span>
<span class="normal">2088</span>
<span class="normal">2089</span>
<span class="normal">2090</span>
<span class="normal">2091</span>
<span class="normal">2092</span>
<span class="normal">2093</span>
<span class="normal">2094</span>
<span class="normal">2095</span>
<span class="normal">2096</span>
<span class="normal">2097</span>
<span class="normal">2098</span>
<span class="normal">2099</span>
<span class="normal">2100</span>
<span class="normal">2101</span>
<span class="normal">2102</span>
<span class="normal">2103</span>
<span class="normal">2104</span>
<span class="normal">2105</span>
<span class="normal">2106</span>
<span class="normal">2107</span>
<span class="normal">2108</span>
<span class="normal">2109</span>
<span class="normal">2110</span>
<span class="normal">2111</span>
<span class="normal">2112</span>
<span class="normal">2113</span>
<span class="normal">2114</span>
<span class="normal">2115</span>
<span class="normal">2116</span>
<span class="normal">2117</span>
<span class="normal">2118</span>
<span class="normal">2119</span>
<span class="normal">2120</span>
<span class="normal">2121</span>
<span class="normal">2122</span>
<span class="normal">2123</span>
<span class="normal">2124</span>
<span class="normal">2125</span>
<span class="normal">2126</span>
<span class="normal">2127</span>
<span class="normal">2128</span>
<span class="normal">2129</span>
<span class="normal">2130</span>
<span class="normal">2131</span>
<span class="normal">2132</span>
<span class="normal">2133</span>
<span class="normal">2134</span>
<span class="normal">2135</span>
<span class="normal">2136</span>
<span class="normal">2137</span>
<span class="normal">2138</span>
<span class="normal">2139</span>
<span class="normal">2140</span>
<span class="normal">2141</span>
<span class="normal">2142</span>
<span class="normal">2143</span>
<span class="normal">2144</span>
<span class="normal">2145</span>
<span class="normal">2146</span>
<span class="normal">2147</span>
<span class="normal">2148</span>
<span class="normal">2149</span>
<span class="normal">2150</span>
<span class="normal">2151</span>
<span class="normal">2152</span>
<span class="normal">2153</span>
<span class="normal">2154</span>
<span class="normal">2155</span>
<span class="normal">2156</span>
<span class="normal">2157</span>
<span class="normal">2158</span>
<span class="normal">2159</span>
<span class="normal">2160</span>
<span class="normal">2161</span>
<span class="normal">2162</span>
<span class="normal">2163</span>
<span class="normal">2164</span>
<span class="normal">2165</span>
<span class="normal">2166</span>
<span class="normal">2167</span>
<span class="normal">2168</span>
<span class="normal">2169</span>
<span class="normal">2170</span>
<span class="normal">2171</span>
<span class="normal">2172</span>
<span class="normal">2173</span>
<span class="normal">2174</span>
<span class="normal">2175</span>
<span class="normal">2176</span>
<span class="normal">2177</span>
<span class="normal">2178</span>
<span class="normal">2179</span>
<span class="normal">2180</span>
<span class="normal">2181</span>
<span class="normal">2182</span>
<span class="normal">2183</span>
<span class="normal">2184</span>
<span class="normal">2185</span>
<span class="normal">2186</span>
<span class="normal">2187</span>
<span class="normal">2188</span>
<span class="normal">2189</span>
<span class="normal">2190</span>
<span class="normal">2191</span>
<span class="normal">2192</span>
<span class="normal">2193</span>
<span class="normal">2194</span>
<span class="normal">2195</span>
<span class="normal">2196</span>
<span class="normal">2197</span>
<span class="normal">2198</span>
<span class="normal">2199</span>
<span class="normal">2200</span>
<span class="normal">2201</span>
<span class="normal">2202</span>
<span class="normal">2203</span>
<span class="normal">2204</span>
<span class="normal">2205</span>
<span class="normal">2206</span>
<span class="normal">2207</span>
<span class="normal">2208</span>
<span class="normal">2209</span>
<span class="normal">2210</span>
<span class="normal">2211</span>
<span class="normal">2212</span>
<span class="normal">2213</span>
<span class="normal">2214</span>
<span class="normal">2215</span>
<span class="normal">2216</span>
<span class="normal">2217</span>
<span class="normal">2218</span>
<span class="normal">2219</span>
<span class="normal">2220</span>
<span class="normal">2221</span>
<span class="normal">2222</span>
<span class="normal">2223</span>
<span class="normal">2224</span>
<span class="normal">2225</span>
<span class="normal">2226</span>
<span class="normal">2227</span>
<span class="normal">2228</span>
<span class="normal">2229</span>
<span class="normal">2230</span>
<span class="normal">2231</span>
<span class="normal">2232</span>
<span class="normal">2233</span>
<span class="normal">2234</span>
<span class="normal">2235</span>
<span class="normal">2236</span>
<span class="normal">2237</span>
<span class="normal">2238</span>
<span class="normal">2239</span>
<span class="normal">2240</span>
<span class="normal">2241</span>
<span class="normal">2242</span>
<span class="normal">2243</span>
<span class="normal">2244</span>
<span class="normal">2245</span>
<span class="normal">2246</span>
<span class="normal">2247</span>
<span class="normal">2248</span>
<span class="normal">2249</span>
<span class="normal">2250</span>
<span class="normal">2251</span>
<span class="normal">2252</span>
<span class="normal">2253</span>
<span class="normal">2254</span>
<span class="normal">2255</span>
<span class="normal">2256</span>
<span class="normal">2257</span>
<span class="normal">2258</span>
<span class="normal">2259</span>
<span class="normal">2260</span>
<span class="normal">2261</span>
<span class="normal">2262</span>
<span class="normal">2263</span>
<span class="normal">2264</span>
<span class="normal">2265</span>
<span class="normal">2266</span>
<span class="normal">2267</span>
<span class="normal">2268</span>
<span class="normal">2269</span>
<span class="normal">2270</span>
<span class="normal">2271</span>
<span class="normal">2272</span>
<span class="normal">2273</span>
<span class="normal">2274</span>
<span class="normal">2275</span>
<span class="normal">2276</span>
<span class="normal">2277</span>
<span class="normal">2278</span>
<span class="normal">2279</span>
<span class="normal">2280</span>
<span class="normal">2281</span>
<span class="normal">2282</span>
<span class="normal">2283</span>
<span class="normal">2284</span>
<span class="normal">2285</span>
<span class="normal">2286</span>
<span class="normal">2287</span>
<span class="normal">2288</span>
<span class="normal">2289</span>
<span class="normal">2290</span>
<span class="normal">2291</span>
<span class="normal">2292</span>
<span class="normal">2293</span>
<span class="normal">2294</span>
<span class="normal">2295</span>
<span class="normal">2296</span>
<span class="normal">2297</span>
<span class="normal">2298</span>
<span class="normal">2299</span>
<span class="normal">2300</span>
<span class="normal">2301</span>
<span class="normal">2302</span>
<span class="normal">2303</span>
<span class="normal">2304</span>
<span class="normal">2305</span>
<span class="normal">2306</span>
<span class="normal">2307</span>
<span class="normal">2308</span>
<span class="normal">2309</span>
<span class="normal">2310</span>
<span class="normal">2311</span>
<span class="normal">2312</span>
<span class="normal">2313</span>
<span class="normal">2314</span>
<span class="normal">2315</span>
<span class="normal">2316</span>
<span class="normal">2317</span>
<span class="normal">2318</span>
<span class="normal">2319</span>
<span class="normal">2320</span>
<span class="normal">2321</span>
<span class="normal">2322</span>
<span class="normal">2323</span>
<span class="normal">2324</span>
<span class="normal">2325</span>
<span class="normal">2326</span>
<span class="normal">2327</span>
<span class="normal">2328</span>
<span class="normal">2329</span>
<span class="normal">2330</span>
<span class="normal">2331</span>
<span class="normal">2332</span>
<span class="normal">2333</span>
<span class="normal">2334</span>
<span class="normal">2335</span>
<span class="normal">2336</span>
<span class="normal">2337</span>
<span class="normal">2338</span>
<span class="normal">2339</span>
<span class="normal">2340</span>
<span class="normal">2341</span>
<span class="normal">2342</span>
<span class="normal">2343</span>
<span class="normal">2344</span>
<span class="normal">2345</span>
<span class="normal">2346</span>
<span class="normal">2347</span>
<span class="normal">2348</span>
<span class="normal">2349</span>
<span class="normal">2350</span>
<span class="normal">2351</span>
<span class="normal">2352</span>
<span class="normal">2353</span>
<span class="normal">2354</span>
<span class="normal">2355</span>
<span class="normal">2356</span>
<span class="normal">2357</span>
<span class="normal">2358</span>
<span class="normal">2359</span>
<span class="normal">2360</span>
<span class="normal">2361</span>
<span class="normal">2362</span>
<span class="normal">2363</span>
<span class="normal">2364</span>
<span class="normal">2365</span>
<span class="normal">2366</span>
<span class="normal">2367</span>
<span class="normal">2368</span>
<span class="normal">2369</span>
<span class="normal">2370</span>
<span class="normal">2371</span>
<span class="normal">2372</span>
<span class="normal">2373</span>
<span class="normal">2374</span>
<span class="normal">2375</span>
<span class="normal">2376</span>
<span class="normal">2377</span>
<span class="normal">2378</span>
<span class="normal">2379</span>
<span class="normal">2380</span>
<span class="normal">2381</span>
<span class="normal">2382</span>
<span class="normal">2383</span>
<span class="normal">2384</span>
<span class="normal">2385</span>
<span class="normal">2386</span>
<span class="normal">2387</span>
<span class="normal">2388</span>
<span class="normal">2389</span>
<span class="normal">2390</span>
<span class="normal">2391</span>
<span class="normal">2392</span>
<span class="normal">2393</span>
<span class="normal">2394</span>
<span class="normal">2395</span>
<span class="normal">2396</span>
<span class="normal">2397</span>
<span class="normal">2398</span>
<span class="normal">2399</span>
<span class="normal">2400</span>
<span class="normal">2401</span>
<span class="normal">2402</span>
<span class="normal">2403</span>
<span class="normal">2404</span>
<span class="normal">2405</span>
<span class="normal">2406</span>
<span class="normal">2407</span>
<span class="normal">2408</span>
<span class="normal">2409</span>
<span class="normal">2410</span>
<span class="normal">2411</span>
<span class="normal">2412</span>
<span class="normal">2413</span>
<span class="normal">2414</span>
<span class="normal">2415</span>
<span class="normal">2416</span>
<span class="normal">2417</span>
<span class="normal">2418</span>
<span class="normal">2419</span>
<span class="normal">2420</span>
<span class="normal">2421</span>
<span class="normal">2422</span>
<span class="normal">2423</span>
<span class="normal">2424</span>
<span class="normal">2425</span>
<span class="normal">2426</span>
<span class="normal">2427</span>
<span class="normal">2428</span>
<span class="normal">2429</span>
<span class="normal">2430</span>
<span class="normal">2431</span>
<span class="normal">2432</span>
<span class="normal">2433</span>
<span class="normal">2434</span>
<span class="normal">2435</span>
<span class="normal">2436</span>
<span class="normal">2437</span>
<span class="normal">2438</span>
<span class="normal">2439</span>
<span class="normal">2440</span>
<span class="normal">2441</span>
<span class="normal">2442</span>
<span class="normal">2443</span>
<span class="normal">2444</span>
<span class="normal">2445</span>
<span class="normal">2446</span>
<span class="normal">2447</span>
<span class="normal">2448</span>
<span class="normal">2449</span>
<span class="normal">2450</span>
<span class="normal">2451</span>
<span class="normal">2452</span>
<span class="normal">2453</span>
<span class="normal">2454</span>
<span class="normal">2455</span>
<span class="normal">2456</span>
<span class="normal">2457</span>
<span class="normal">2458</span>
<span class="normal">2459</span>
<span class="normal">2460</span>
<span class="normal">2461</span>
<span class="normal">2462</span>
<span class="normal">2463</span>
<span class="normal">2464</span>
<span class="normal">2465</span>
<span class="normal">2466</span>
<span class="normal">2467</span>
<span class="normal">2468</span>
<span class="normal">2469</span>
<span class="normal">2470</span>
<span class="normal">2471</span>
<span class="normal">2472</span>
<span class="normal">2473</span>
<span class="normal">2474</span>
<span class="normal">2475</span>
<span class="normal">2476</span>
<span class="normal">2477</span>
<span class="normal">2478</span>
<span class="normal">2479</span>
<span class="normal">2480</span>
<span class="normal">2481</span>
<span class="normal">2482</span>
<span class="normal">2483</span>
<span class="normal">2484</span>
<span class="normal">2485</span>
<span class="normal">2486</span>
<span class="normal">2487</span>
<span class="normal">2488</span>
<span class="normal">2489</span>
<span class="normal">2490</span>
<span class="normal">2491</span>
<span class="normal">2492</span>
<span class="normal">2493</span>
<span class="normal">2494</span>
<span class="normal">2495</span>
<span class="normal">2496</span>
<span class="normal">2497</span>
<span class="normal">2498</span>
<span class="normal">2499</span>
<span class="normal">2500</span>
<span class="normal">2501</span>
<span class="normal">2502</span>
<span class="normal">2503</span>
<span class="normal">2504</span>
<span class="normal">2505</span>
<span class="normal">2506</span>
<span class="normal">2507</span>
<span class="normal">2508</span>
<span class="normal">2509</span>
<span class="normal">2510</span>
<span class="normal">2511</span>
<span class="normal">2512</span>
<span class="normal">2513</span>
<span class="normal">2514</span>
<span class="normal">2515</span>
<span class="normal">2516</span>
<span class="normal">2517</span>
<span class="normal">2518</span>
<span class="normal">2519</span>
<span class="normal">2520</span>
<span class="normal">2521</span>
<span class="normal">2522</span>
<span class="normal">2523</span>
<span class="normal">2524</span>
<span class="normal">2525</span>
<span class="normal">2526</span>
<span class="normal">2527</span>
<span class="normal">2528</span>
<span class="normal">2529</span>
<span class="normal">2530</span>
<span class="normal">2531</span>
<span class="normal">2532</span>
<span class="normal">2533</span>
<span class="normal">2534</span>
<span class="normal">2535</span>
<span class="normal">2536</span>
<span class="normal">2537</span>
<span class="normal">2538</span>
<span class="normal">2539</span>
<span class="normal">2540</span>
<span class="normal">2541</span>
<span class="normal">2542</span>
<span class="normal">2543</span>
<span class="normal">2544</span>
<span class="normal">2545</span>
<span class="normal">2546</span>
<span class="normal">2547</span>
<span class="normal">2548</span>
<span class="normal">2549</span>
<span class="normal">2550</span>
<span class="normal">2551</span>
<span class="normal">2552</span>
<span class="normal">2553</span>
<span class="normal">2554</span>
<span class="normal">2555</span>
<span class="normal">2556</span>
<span class="normal">2557</span>
<span class="normal">2558</span>
<span class="normal">2559</span>
<span class="normal">2560</span>
<span class="normal">2561</span>
<span class="normal">2562</span>
<span class="normal">2563</span>
<span class="normal">2564</span>
<span class="normal">2565</span>
<span class="normal">2566</span>
<span class="normal">2567</span>
<span class="normal">2568</span>
<span class="normal">2569</span>
<span class="normal">2570</span>
<span class="normal">2571</span>
<span class="normal">2572</span>
<span class="normal">2573</span>
<span class="normal">2574</span>
<span class="normal">2575</span>
<span class="normal">2576</span>
<span class="normal">2577</span>
<span class="normal">2578</span>
<span class="normal">2579</span>
<span class="normal">2580</span>
<span class="normal">2581</span>
<span class="normal">2582</span>
<span class="normal">2583</span>
<span class="normal">2584</span>
<span class="normal">2585</span>
<span class="normal">2586</span>
<span class="normal">2587</span>
<span class="normal">2588</span>
<span class="normal">2589</span>
<span class="normal">2590</span>
<span class="normal">2591</span>
<span class="normal">2592</span>
<span class="normal">2593</span>
<span class="normal">2594</span>
<span class="normal">2595</span>
<span class="normal">2596</span>
<span class="normal">2597</span>
<span class="normal">2598</span>
<span class="normal">2599</span>
<span class="normal">2600</span>
<span class="normal">2601</span>
<span class="normal">2602</span>
<span class="normal">2603</span>
<span class="normal">2604</span>
<span class="normal">2605</span>
<span class="normal">2606</span>
<span class="normal">2607</span>
<span class="normal">2608</span>
<span class="normal">2609</span>
<span class="normal">2610</span>
<span class="normal">2611</span>
<span class="normal">2612</span>
<span class="normal">2613</span>
<span class="normal">2614</span>
<span class="normal">2615</span>
<span class="normal">2616</span>
<span class="normal">2617</span>
<span class="normal">2618</span>
<span class="normal">2619</span>
<span class="normal">2620</span>
<span class="normal">2621</span>
<span class="normal">2622</span>
<span class="normal">2623</span>
<span class="normal">2624</span>
<span class="normal">2625</span>
<span class="normal">2626</span>
<span class="normal">2627</span>
<span class="normal">2628</span>
<span class="normal">2629</span>
<span class="normal">2630</span>
<span class="normal">2631</span>
<span class="normal">2632</span>
<span class="normal">2633</span>
<span class="normal">2634</span>
<span class="normal">2635</span>
<span class="normal">2636</span>
<span class="normal">2637</span>
<span class="normal">2638</span>
<span class="normal">2639</span>
<span class="normal">2640</span>
<span class="normal">2641</span>
<span class="normal">2642</span>
<span class="normal">2643</span>
<span class="normal">2644</span>
<span class="normal">2645</span>
<span class="normal">2646</span>
<span class="normal">2647</span>
<span class="normal">2648</span>
<span class="normal">2649</span>
<span class="normal">2650</span>
<span class="normal">2651</span>
<span class="normal">2652</span>
<span class="normal">2653</span>
<span class="normal">2654</span>
<span class="normal">2655</span>
<span class="normal">2656</span>
<span class="normal">2657</span>
<span class="normal">2658</span>
<span class="normal">2659</span>
<span class="normal">2660</span>
<span class="normal">2661</span>
<span class="normal">2662</span>
<span class="normal">2663</span>
<span class="normal">2664</span>
<span class="normal">2665</span>
<span class="normal">2666</span>
<span class="normal">2667</span>
<span class="normal">2668</span>
<span class="normal">2669</span>
<span class="normal">2670</span>
<span class="normal">2671</span>
<span class="normal">2672</span>
<span class="normal">2673</span>
<span class="normal">2674</span>
<span class="normal">2675</span>
<span class="normal">2676</span>
<span class="normal">2677</span>
<span class="normal">2678</span>
<span class="normal">2679</span>
<span class="normal">2680</span>
<span class="normal">2681</span>
<span class="normal">2682</span>
<span class="normal">2683</span>
<span class="normal">2684</span>
<span class="normal">2685</span>
<span class="normal">2686</span>
<span class="normal">2687</span>
<span class="normal">2688</span>
<span class="normal">2689</span>
<span class="normal">2690</span>
<span class="normal">2691</span>
<span class="normal">2692</span>
<span class="normal">2693</span>
<span class="normal">2694</span>
<span class="normal">2695</span>
<span class="normal">2696</span>
<span class="normal">2697</span>
<span class="normal">2698</span>
<span class="normal">2699</span>
<span class="normal">2700</span>
<span class="normal">2701</span>
<span class="normal">2702</span>
<span class="normal">2703</span>
<span class="normal">2704</span>
<span class="normal">2705</span>
<span class="normal">2706</span>
<span class="normal">2707</span>
<span class="normal">2708</span>
<span class="normal">2709</span>
<span class="normal">2710</span>
<span class="normal">2711</span>
<span class="normal">2712</span>
<span class="normal">2713</span>
<span class="normal">2714</span>
<span class="normal">2715</span>
<span class="normal">2716</span>
<span class="normal">2717</span>
<span class="normal">2718</span>
<span class="normal">2719</span>
<span class="normal">2720</span>
<span class="normal">2721</span>
<span class="normal">2722</span>
<span class="normal">2723</span>
<span class="normal">2724</span>
<span class="normal">2725</span>
<span class="normal">2726</span>
<span class="normal">2727</span>
<span class="normal">2728</span>
<span class="normal">2729</span>
<span class="normal">2730</span>
<span class="normal">2731</span>
<span class="normal">2732</span>
<span class="normal">2733</span>
<span class="normal">2734</span>
<span class="normal">2735</span>
<span class="normal">2736</span>
<span class="normal">2737</span>
<span class="normal">2738</span>
<span class="normal">2739</span>
<span class="normal">2740</span>
<span class="normal">2741</span>
<span class="normal">2742</span>
<span class="normal">2743</span>
<span class="normal">2744</span>
<span class="normal">2745</span>
<span class="normal">2746</span>
<span class="normal">2747</span>
<span class="normal">2748</span>
<span class="normal">2749</span>
<span class="normal">2750</span>
<span class="normal">2751</span>
<span class="normal">2752</span>
<span class="normal">2753</span>
<span class="normal">2754</span>
<span class="normal">2755</span>
<span class="normal">2756</span>
<span class="normal">2757</span>
<span class="normal">2758</span>
<span class="normal">2759</span>
<span class="normal">2760</span>
<span class="normal">2761</span>
<span class="normal">2762</span>
<span class="normal">2763</span>
<span class="normal">2764</span>
<span class="normal">2765</span>
<span class="normal">2766</span>
<span class="normal">2767</span>
<span class="normal">2768</span>
<span class="normal">2769</span>
<span class="normal">2770</span>
<span class="normal">2771</span>
<span class="normal">2772</span>
<span class="normal">2773</span>
<span class="normal">2774</span>
<span class="normal">2775</span>
<span class="normal">2776</span>
<span class="normal">2777</span>
<span class="normal">2778</span>
<span class="normal">2779</span>
<span class="normal">2780</span>
<span class="normal">2781</span>
<span class="normal">2782</span>
<span class="normal">2783</span>
<span class="normal">2784</span>
<span class="normal">2785</span>
<span class="normal">2786</span>
<span class="normal">2787</span>
<span class="normal">2788</span>
<span class="normal">2789</span>
<span class="normal">2790</span>
<span class="normal">2791</span>
<span class="normal">2792</span>
<span class="normal">2793</span>
<span class="normal">2794</span>
<span class="normal">2795</span>
<span class="normal">2796</span>
<span class="normal">2797</span>
<span class="normal">2798</span>
<span class="normal">2799</span>
<span class="normal">2800</span>
<span class="normal">2801</span>
<span class="normal">2802</span>
<span class="normal">2803</span>
<span class="normal">2804</span>
<span class="normal">2805</span>
<span class="normal">2806</span>
<span class="normal">2807</span>
<span class="normal">2808</span>
<span class="normal">2809</span>
<span class="normal">2810</span>
<span class="normal">2811</span>
<span class="normal">2812</span>
<span class="normal">2813</span>
<span class="normal">2814</span>
<span class="normal">2815</span>
<span class="normal">2816</span>
<span class="normal">2817</span>
<span class="normal">2818</span>
<span class="normal">2819</span>
<span class="normal">2820</span>
<span class="normal">2821</span>
<span class="normal">2822</span>
<span class="normal">2823</span>
<span class="normal">2824</span>
<span class="normal">2825</span>
<span class="normal">2826</span>
<span class="normal">2827</span>
<span class="normal">2828</span>
<span class="normal">2829</span>
<span class="normal">2830</span>
<span class="normal">2831</span>
<span class="normal">2832</span>
<span class="normal">2833</span>
<span class="normal">2834</span>
<span class="normal">2835</span>
<span class="normal">2836</span>
<span class="normal">2837</span>
<span class="normal">2838</span>
<span class="normal">2839</span>
<span class="normal">2840</span>
<span class="normal">2841</span>
<span class="normal">2842</span>
<span class="normal">2843</span>
<span class="normal">2844</span>
<span class="normal">2845</span>
<span class="normal">2846</span>
<span class="normal">2847</span>
<span class="normal">2848</span>
<span class="normal">2849</span>
<span class="normal">2850</span>
<span class="normal">2851</span>
<span class="normal">2852</span>
<span class="normal">2853</span>
<span class="normal">2854</span>
<span class="normal">2855</span>
<span class="normal">2856</span>
<span class="normal">2857</span>
<span class="normal">2858</span>
<span class="normal">2859</span>
<span class="normal">2860</span>
<span class="normal">2861</span>
<span class="normal">2862</span>
<span class="normal">2863</span>
<span class="normal">2864</span>
<span class="normal">2865</span>
<span class="normal">2866</span>
<span class="normal">2867</span>
<span class="normal">2868</span>
<span class="normal">2869</span>
<span class="normal">2870</span>
<span class="normal">2871</span>
<span class="normal">2872</span>
<span class="normal">2873</span>
<span class="normal">2874</span>
<span class="normal">2875</span>
<span class="normal">2876</span>
<span class="normal">2877</span>
<span class="normal">2878</span>
<span class="normal">2879</span>
<span class="normal">2880</span>
<span class="normal">2881</span>
<span class="normal">2882</span>
<span class="normal">2883</span>
<span class="normal">2884</span>
<span class="normal">2885</span>
<span class="normal">2886</span>
<span class="normal">2887</span>
<span class="normal">2888</span>
<span class="normal">2889</span>
<span class="normal">2890</span>
<span class="normal">2891</span>
<span class="normal">2892</span>
<span class="normal">2893</span>
<span class="normal">2894</span>
<span class="normal">2895</span>
<span class="normal">2896</span>
<span class="normal">2897</span>
<span class="normal">2898</span>
<span class="normal">2899</span>
<span class="normal">2900</span>
<span class="normal">2901</span>
<span class="normal">2902</span>
<span class="normal">2903</span>
<span class="normal">2904</span>
<span class="normal">2905</span>
<span class="normal">2906</span>
<span class="normal">2907</span>
<span class="normal">2908</span>
<span class="normal">2909</span>
<span class="normal">2910</span>
<span class="normal">2911</span>
<span class="normal">2912</span>
<span class="normal">2913</span>
<span class="normal">2914</span>
<span class="normal">2915</span>
<span class="normal">2916</span>
<span class="normal">2917</span>
<span class="normal">2918</span>
<span class="normal">2919</span>
<span class="normal">2920</span>
<span class="normal">2921</span>
<span class="normal">2922</span>
<span class="normal">2923</span>
<span class="normal">2924</span>
<span class="normal">2925</span>
<span class="normal">2926</span>
<span class="normal">2927</span>
<span class="normal">2928</span>
<span class="normal">2929</span>
<span class="normal">2930</span>
<span class="normal">2931</span>
<span class="normal">2932</span>
<span class="normal">2933</span>
<span class="normal">2934</span>
<span class="normal">2935</span>
<span class="normal">2936</span>
<span class="normal">2937</span>
<span class="normal">2938</span>
<span class="normal">2939</span>
<span class="normal">2940</span>
<span class="normal">2941</span>
<span class="normal">2942</span>
<span class="normal">2943</span>
<span class="normal">2944</span>
<span class="normal">2945</span>
<span class="normal">2946</span>
<span class="normal">2947</span>
<span class="normal">2948</span>
<span class="normal">2949</span>
<span class="normal">2950</span>
<span class="normal">2951</span>
<span class="normal">2952</span>
<span class="normal">2953</span>
<span class="normal">2954</span>
<span class="normal">2955</span>
<span class="normal">2956</span>
<span class="normal">2957</span>
<span class="normal">2958</span>
<span class="normal">2959</span>
<span class="normal">2960</span>
<span class="normal">2961</span>
<span class="normal">2962</span>
<span class="normal">2963</span>
<span class="normal">2964</span>
<span class="normal">2965</span>
<span class="normal">2966</span>
<span class="normal">2967</span>
<span class="normal">2968</span>
<span class="normal">2969</span>
<span class="normal">2970</span>
<span class="normal">2971</span>
<span class="normal">2972</span>
<span class="normal">2973</span>
<span class="normal">2974</span>
<span class="normal">2975</span>
<span class="normal">2976</span>
<span class="normal">2977</span>
<span class="normal">2978</span>
<span class="normal">2979</span>
<span class="normal">2980</span>
<span class="normal">2981</span>
<span class="normal">2982</span>
<span class="normal">2983</span>
<span class="normal">2984</span>
<span class="normal">2985</span>
<span class="normal">2986</span>
<span class="normal">2987</span>
<span class="normal">2988</span>
<span class="normal">2989</span>
<span class="normal">2990</span>
<span class="normal">2991</span>
<span class="normal">2992</span>
<span class="normal">2993</span>
<span class="normal">2994</span>
<span class="normal">2995</span>
<span class="normal">2996</span>
<span class="normal">2997</span>
<span class="normal">2998</span>
<span class="normal">2999</span>
<span class="normal">3000</span>
<span class="normal">3001</span>
<span class="normal">3002</span>
<span class="normal">3003</span>
<span class="normal">3004</span>
<span class="normal">3005</span>
<span class="normal">3006</span>
<span class="normal">3007</span>
<span class="normal">3008</span>
<span class="normal">3009</span>
<span class="normal">3010</span>
<span class="normal">3011</span>
<span class="normal">3012</span>
<span class="normal">3013</span>
<span class="normal">3014</span>
<span class="normal">3015</span>
<span class="normal">3016</span>
<span class="normal">3017</span>
<span class="normal">3018</span>
<span class="normal">3019</span>
<span class="normal">3020</span>
<span class="normal">3021</span>
<span class="normal">3022</span>
<span class="normal">3023</span>
<span class="normal">3024</span>
<span class="normal">3025</span>
<span class="normal">3026</span>
<span class="normal">3027</span>
<span class="normal">3028</span>
<span class="normal">3029</span>
<span class="normal">3030</span>
<span class="normal">3031</span>
<span class="normal">3032</span>
<span class="normal">3033</span>
<span class="normal">3034</span>
<span class="normal">3035</span>
<span class="normal">3036</span>
<span class="normal">3037</span>
<span class="normal">3038</span>
<span class="normal">3039</span>
<span class="normal">3040</span>
<span class="normal">3041</span>
<span class="normal">3042</span>
<span class="normal">3043</span>
<span class="normal">3044</span>
<span class="normal">3045</span>
<span class="normal">3046</span>
<span class="normal">3047</span>
<span class="normal">3048</span>
<span class="normal">3049</span>
<span class="normal">3050</span>
<span class="normal">3051</span>
<span class="normal">3052</span>
<span class="normal">3053</span>
<span class="normal">3054</span>
<span class="normal">3055</span>
<span class="normal">3056</span>
<span class="normal">3057</span>
<span class="normal">3058</span>
<span class="normal">3059</span>
<span class="normal">3060</span>
<span class="normal">3061</span>
<span class="normal">3062</span>
<span class="normal">3063</span>
<span class="normal">3064</span>
<span class="normal">3065</span>
<span class="normal">3066</span>
<span class="normal">3067</span>
<span class="normal">3068</span>
<span class="normal">3069</span>
<span class="normal">3070</span>
<span class="normal">3071</span>
<span class="normal">3072</span>
<span class="normal">3073</span>
<span class="normal">3074</span>
<span class="normal">3075</span>
<span class="normal">3076</span>
<span class="normal">3077</span>
<span class="normal">3078</span>
<span class="normal">3079</span>
<span class="normal">3080</span>
<span class="normal">3081</span>
<span class="normal">3082</span>
<span class="normal">3083</span>
<span class="normal">3084</span>
<span class="normal">3085</span>
<span class="normal">3086</span>
<span class="normal">3087</span>
<span class="normal">3088</span>
<span class="normal">3089</span>
<span class="normal">3090</span>
<span class="normal">3091</span>
<span class="normal">3092</span>
<span class="normal">3093</span>
<span class="normal">3094</span>
<span class="normal">3095</span>
<span class="normal">3096</span>
<span class="normal">3097</span>
<span class="normal">3098</span>
<span class="normal">3099</span>
<span class="normal">3100</span>
<span class="normal">3101</span>
<span class="normal">3102</span>
<span class="normal">3103</span>
<span class="normal">3104</span>
<span class="normal">3105</span>
<span class="normal">3106</span>
<span class="normal">3107</span>
<span class="normal">3108</span>
<span class="normal">3109</span>
<span class="normal">3110</span>
<span class="normal">3111</span>
<span class="normal">3112</span>
<span class="normal">3113</span>
<span class="normal">3114</span>
<span class="normal">3115</span>
<span class="normal">3116</span>
<span class="normal">3117</span>
<span class="normal">3118</span>
<span class="normal">3119</span>
<span class="normal">3120</span>
<span class="normal">3121</span>
<span class="normal">3122</span>
<span class="normal">3123</span>
<span class="normal">3124</span>
<span class="normal">3125</span>
<span class="normal">3126</span>
<span class="normal">3127</span>
<span class="normal">3128</span>
<span class="normal">3129</span>
<span class="normal">3130</span>
<span class="normal">3131</span>
<span class="normal">3132</span>
<span class="normal">3133</span>
<span class="normal">3134</span>
<span class="normal">3135</span>
<span class="normal">3136</span>
<span class="normal">3137</span>
<span class="normal">3138</span>
<span class="normal">3139</span>
<span class="normal">3140</span>
<span class="normal">3141</span>
<span class="normal">3142</span>
<span class="normal">3143</span>
<span class="normal">3144</span>
<span class="normal">3145</span>
<span class="normal">3146</span>
<span class="normal">3147</span>
<span class="normal">3148</span>
<span class="normal">3149</span>
<span class="normal">3150</span>
<span class="normal">3151</span>
<span class="normal">3152</span>
<span class="normal">3153</span>
<span class="normal">3154</span>
<span class="normal">3155</span>
<span class="normal">3156</span>
<span class="normal">3157</span>
<span class="normal">3158</span>
<span class="normal">3159</span>
<span class="normal">3160</span>
<span class="normal">3161</span>
<span class="normal">3162</span>
<span class="normal">3163</span>
<span class="normal">3164</span>
<span class="normal">3165</span>
<span class="normal">3166</span>
<span class="normal">3167</span>
<span class="normal">3168</span>
<span class="normal">3169</span>
<span class="normal">3170</span>
<span class="normal">3171</span>
<span class="normal">3172</span>
<span class="normal">3173</span>
<span class="normal">3174</span>
<span class="normal">3175</span>
<span class="normal">3176</span>
<span class="normal">3177</span>
<span class="normal">3178</span>
<span class="normal">3179</span>
<span class="normal">3180</span>
<span class="normal">3181</span>
<span class="normal">3182</span>
<span class="normal">3183</span>
<span class="normal">3184</span>
<span class="normal">3185</span>
<span class="normal">3186</span>
<span class="normal">3187</span>
<span class="normal">3188</span>
<span class="normal">3189</span>
<span class="normal">3190</span>
<span class="normal">3191</span>
<span class="normal">3192</span>
<span class="normal">3193</span>
<span class="normal">3194</span>
<span class="normal">3195</span>
<span class="normal">3196</span>
<span class="normal">3197</span>
<span class="normal">3198</span>
<span class="normal">3199</span>
<span class="normal">3200</span>
<span class="normal">3201</span>
<span class="normal">3202</span>
<span class="normal">3203</span>
<span class="normal">3204</span>
<span class="normal">3205</span>
<span class="normal">3206</span>
<span class="normal">3207</span>
<span class="normal">3208</span>
<span class="normal">3209</span>
<span class="normal">3210</span>
<span class="normal">3211</span>
<span class="normal">3212</span>
<span class="normal">3213</span>
<span class="normal">3214</span>
<span class="normal">3215</span>
<span class="normal">3216</span>
<span class="normal">3217</span>
<span class="normal">3218</span>
<span class="normal">3219</span>
<span class="normal">3220</span>
<span class="normal">3221</span>
<span class="normal">3222</span>
<span class="normal">3223</span>
<span class="normal">3224</span>
<span class="normal">3225</span>
<span class="normal">3226</span>
<span class="normal">3227</span>
<span class="normal">3228</span>
<span class="normal">3229</span>
<span class="normal">3230</span>
<span class="normal">3231</span>
<span class="normal">3232</span>
<span class="normal">3233</span>
<span class="normal">3234</span>
<span class="normal">3235</span>
<span class="normal">3236</span>
<span class="normal">3237</span>
<span class="normal">3238</span>
<span class="normal">3239</span>
<span class="normal">3240</span>
<span class="normal">3241</span>
<span class="normal">3242</span>
<span class="normal">3243</span>
<span class="normal">3244</span>
<span class="normal">3245</span>
<span class="normal">3246</span>
<span class="normal">3247</span>
<span class="normal">3248</span>
<span class="normal">3249</span>
<span class="normal">3250</span>
<span class="normal">3251</span>
<span class="normal">3252</span>
<span class="normal">3253</span>
<span class="normal">3254</span>
<span class="normal">3255</span>
<span class="normal">3256</span>
<span class="normal">3257</span>
<span class="normal">3258</span>
<span class="normal">3259</span>
<span class="normal">3260</span>
<span class="normal">3261</span>
<span class="normal">3262</span>
<span class="normal">3263</span>
<span class="normal">3264</span>
<span class="normal">3265</span>
<span class="normal">3266</span>
<span class="normal">3267</span>
<span class="normal">3268</span>
<span class="normal">3269</span>
<span class="normal">3270</span>
<span class="normal">3271</span>
<span class="normal">3272</span>
<span class="normal">3273</span>
<span class="normal">3274</span>
<span class="normal">3275</span>
<span class="normal">3276</span>
<span class="normal">3277</span>
<span class="normal">3278</span>
<span class="normal">3279</span>
<span class="normal">3280</span>
<span class="normal">3281</span>
<span class="normal">3282</span>
<span class="normal">3283</span>
<span class="normal">3284</span>
<span class="normal">3285</span>
<span class="normal">3286</span>
<span class="normal">3287</span>
<span class="normal">3288</span>
<span class="normal">3289</span>
<span class="normal">3290</span>
<span class="normal">3291</span>
<span class="normal">3292</span>
<span class="normal">3293</span>
<span class="normal">3294</span>
<span class="normal">3295</span>
<span class="normal">3296</span>
<span class="normal">3297</span>
<span class="normal">3298</span>
<span class="normal">3299</span>
<span class="normal">3300</span>
<span class="normal">3301</span>
<span class="normal">3302</span>
<span class="normal">3303</span>
<span class="normal">3304</span>
<span class="normal">3305</span>
<span class="normal">3306</span>
<span class="normal">3307</span>
<span class="normal">3308</span>
<span class="normal">3309</span>
<span class="normal">3310</span>
<span class="normal">3311</span>
<span class="normal">3312</span>
<span class="normal">3313</span>
<span class="normal">3314</span>
<span class="normal">3315</span>
<span class="normal">3316</span>
<span class="normal">3317</span>
<span class="normal">3318</span>
<span class="normal">3319</span>
<span class="normal">3320</span>
<span class="normal">3321</span>
<span class="normal">3322</span>
<span class="normal">3323</span>
<span class="normal">3324</span>
<span class="normal">3325</span>
<span class="normal">3326</span>
<span class="normal">3327</span>
<span class="normal">3328</span>
<span class="normal">3329</span>
<span class="normal">3330</span>
<span class="normal">3331</span>
<span class="normal">3332</span>
<span class="normal">3333</span>
<span class="normal">3334</span>
<span class="normal">3335</span>
<span class="normal">3336</span>
<span class="normal">3337</span>
<span class="normal">3338</span>
<span class="normal">3339</span>
<span class="normal">3340</span>
<span class="normal">3341</span>
<span class="normal">3342</span>
<span class="normal">3343</span>
<span class="normal">3344</span>
<span class="normal">3345</span>
<span class="normal">3346</span>
<span class="normal">3347</span>
<span class="normal">3348</span>
<span class="normal">3349</span>
<span class="normal">3350</span>
<span class="normal">3351</span>
<span class="normal">3352</span>
<span class="normal">3353</span>
<span class="normal">3354</span>
<span class="normal">3355</span>
<span class="normal">3356</span>
<span class="normal">3357</span>
<span class="normal">3358</span>
<span class="normal">3359</span>
<span class="normal">3360</span>
<span class="normal">3361</span>
<span class="normal">3362</span>
<span class="normal">3363</span>
<span class="normal">3364</span>
<span class="normal">3365</span>
<span class="normal">3366</span>
<span class="normal">3367</span>
<span class="normal">3368</span>
<span class="normal">3369</span>
<span class="normal">3370</span>
<span class="normal">3371</span>
<span class="normal">3372</span>
<span class="normal">3373</span>
<span class="normal">3374</span>
<span class="normal">3375</span>
<span class="normal">3376</span>
<span class="normal">3377</span>
<span class="normal">3378</span>
<span class="normal">3379</span>
<span class="normal">3380</span>
<span class="normal">3381</span>
<span class="normal">3382</span>
<span class="normal">3383</span>
<span class="normal">3384</span>
<span class="normal">3385</span>
<span class="normal">3386</span>
<span class="normal">3387</span>
<span class="normal">3388</span>
<span class="normal">3389</span>
<span class="normal">3390</span>
<span class="normal">3391</span>
<span class="normal">3392</span>
<span class="normal">3393</span>
<span class="normal">3394</span>
<span class="normal">3395</span>
<span class="normal">3396</span>
<span class="normal">3397</span>
<span class="normal">3398</span>
<span class="normal">3399</span>
<span class="normal">3400</span>
<span class="normal">3401</span>
<span class="normal">3402</span>
<span class="normal">3403</span>
<span class="normal">3404</span>
<span class="normal">3405</span>
<span class="normal">3406</span>
<span class="normal">3407</span>
<span class="normal">3408</span>
<span class="normal">3409</span>
<span class="normal">3410</span>
<span class="normal">3411</span>
<span class="normal">3412</span>
<span class="normal">3413</span>
<span class="normal">3414</span>
<span class="normal">3415</span>
<span class="normal">3416</span>
<span class="normal">3417</span>
<span class="normal">3418</span>
<span class="normal">3419</span>
<span class="normal">3420</span>
<span class="normal">3421</span>
<span class="normal">3422</span>
<span class="normal">3423</span>
<span class="normal">3424</span>
<span class="normal">3425</span>
<span class="normal">3426</span>
<span class="normal">3427</span>
<span class="normal">3428</span>
<span class="normal">3429</span>
<span class="normal">3430</span>
<span class="normal">3431</span>
<span class="normal">3432</span>
<span class="normal">3433</span>
<span class="normal">3434</span>
<span class="normal">3435</span>
<span class="normal">3436</span>
<span class="normal">3437</span>
<span class="normal">3438</span>
<span class="normal">3439</span>
<span class="normal">3440</span>
<span class="normal">3441</span>
<span class="normal">3442</span>
<span class="normal">3443</span>
<span class="normal">3444</span>
<span class="normal">3445</span>
<span class="normal">3446</span>
<span class="normal">3447</span>
<span class="normal">3448</span>
<span class="normal">3449</span>
<span class="normal">3450</span>
<span class="normal">3451</span>
<span class="normal">3452</span>
<span class="normal">3453</span>
<span class="normal">3454</span>
<span class="normal">3455</span>
<span class="normal">3456</span>
<span class="normal">3457</span>
<span class="normal">3458</span>
<span class="normal">3459</span>
<span class="normal">3460</span>
<span class="normal">3461</span>
<span class="normal">3462</span>
<span class="normal">3463</span>
<span class="normal">3464</span>
<span class="normal">3465</span>
<span class="normal">3466</span>
<span class="normal">3467</span>
<span class="normal">3468</span>
<span class="normal">3469</span>
<span class="normal">3470</span>
<span class="normal">3471</span>
<span class="normal">3472</span>
<span class="normal">3473</span>
<span class="normal">3474</span>
<span class="normal">3475</span>
<span class="normal">3476</span>
<span class="normal">3477</span>
<span class="normal">3478</span>
<span class="normal">3479</span>
<span class="normal">3480</span>
<span class="normal">3481</span>
<span class="normal">3482</span>
<span class="normal">3483</span>
<span class="normal">3484</span>
<span class="normal">3485</span>
<span class="normal">3486</span>
<span class="normal">3487</span>
<span class="normal">3488</span>
<span class="normal">3489</span>
<span class="normal">3490</span>
<span class="normal">3491</span>
<span class="normal">3492</span>
<span class="normal">3493</span>
<span class="normal">3494</span>
<span class="normal">3495</span>
<span class="normal">3496</span>
<span class="normal">3497</span>
<span class="normal">3498</span>
<span class="normal">3499</span>
<span class="normal">3500</span>
<span class="normal">3501</span>
<span class="normal">3502</span>
<span class="normal">3503</span>
<span class="normal">3504</span>
<span class="normal">3505</span>
<span class="normal">3506</span>
<span class="normal">3507</span>
<span class="normal">3508</span>
<span class="normal">3509</span></pre></div></td><td class="code"><div><pre><div id="l1" class="code_block"><span class="k">\documentclass</span><span class="na">[a4paper,11pt,oneside]</span><span class="nb">{</span>article<span class="nb">}</span>
</div><div id="l2" class="code_block"><span class="k">\usepackage</span><span class="nb">{</span>polyglossia<span class="nb">}</span>
</div><div id="l3" class="code_block"><span class="k">\setdefaultlanguage</span><span class="na">[variant=british]</span><span class="nb">{</span>english<span class="nb">}</span>
</div><div id="l4" class="code_block"><span class="k">\input</span><span class="nb">{</span>./settings.tex<span class="nb">}</span>
</div><div id="l5" class="code_block">
</div><div id="l6" class="code_block"><span class="k">\newcommand</span><span class="nb">{</span><span class="k">\aktVERSION</span><span class="nb">}</span> <span class="nb">{</span>1.3.4<span class="nb">}</span>
</div><div id="l7" class="code_block"><span class="k">\newcommand</span><span class="nb">{</span><span class="k">\aktVERSIONdatum</span><span class="nb">}</span> <span class="nb">{</span>September 2024<span class="nb">}</span>
</div><div id="l8" class="code_block">
</div><div id="l9" class="code_block"><span class="k">\title</span><span class="nb">{</span>Vector graphics with<span class="k">\\</span>
</div><div id="l10" class="code_block"> <span class="k">\textsc</span><span class="nb">{</span>Drawj2d<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l11" class="code_block"> <span class="k">\includegraphics</span><span class="na">[height=\textwidth, angle=-90]</span><span class="nb">{</span>img/Logo.pdf<span class="nb">}}</span>
</div><div id="l12" class="code_block"><span class="k">\author</span><span class="nb">{</span>Adrian Vontobel<span class="nb">}</span>
</div><div id="l13" class="code_block"><span class="c">%% \date{09.11.2014} %% weglassen, um das Datum automatisch zu setzen</span>
</div><div id="l14" class="code_block">
</div><div id="l15" class="code_block"><span class="k">\begin</span><span class="nb">{</span>document<span class="nb">}</span>
</div><div id="l16" class="code_block"><span class="c">%% \maketitle</span>
</div><div id="l17" class="code_block"><span class="k">\thispagestyle</span><span class="nb">{</span>empty<span class="nb">}</span>
</div><div id="l18" class="code_block"><span class="k">\vspace*</span><span class="nb">{</span>2cm<span class="nb">}</span>
</div><div id="l19" class="code_block"><span class="k">\begin</span><span class="nb">{</span>center<span class="nb">}</span>
</div><div id="l20" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>Huge<span class="nb">}</span>
</div><div id="l21" class="code_block"> Vector graphics with
</div><div id="l22" class="code_block"> 
</div><div id="l23" class="code_block"> <span class="k">\textit</span><span class="nb">{</span>Drawj2d<span class="nb">}</span>
</div><div id="l24" class="code_block"> <span class="k">\end</span><span class="nb">{</span>Huge<span class="nb">}</span>
</div><div id="l25" class="code_block"> 
</div><div id="l26" class="code_block"> <span class="k">\vspace*</span><span class="nb">{</span>2cm<span class="nb">}</span>
</div><div id="l27" class="code_block"> <span class="k">\includegraphics</span><span class="na">[scale=1]</span><span class="nb">{</span>img/Logo.pdf<span class="nb">}</span>
</div><div id="l28" class="code_block"> <span class="k">\vspace*</span><span class="nb">{</span>2cm<span class="nb">}</span>
</div><div id="l29" class="code_block"> 
</div><div id="l30" class="code_block"> <span class="nb">{</span><span class="k">\LARGE</span> Program documentation<span class="nb">}</span>
</div><div id="l31" class="code_block"> 
</div><div id="l32" class="code_block"> <span class="nb">{</span><span class="k">\LARGE</span> <span class="k">\&amp;</span><span class="nb">}</span>
</div><div id="l33" class="code_block"> 
</div><div id="l34" class="code_block"> <span class="nb">{</span><span class="k">\LARGE</span> function reference<span class="nb">}</span>
</div><div id="l35" class="code_block"> <span class="k">\vspace*</span><span class="nb">{</span>3cm<span class="nb">}</span>
</div><div id="l36" class="code_block"> 
</div><div id="l37" class="code_block"> Adrian Vontobel
</div><div id="l38" class="code_block"> 
</div><div id="l39" class="code_block"> <span class="k">\today</span>
</div><div id="l40" class="code_block">
</div><div id="l41" class="code_block"><span class="k">\end</span><span class="nb">{</span>center<span class="nb">}</span>
</div><div id="l42" class="code_block">
</div><div id="l43" class="code_block">
</div><div id="l44" class="code_block"><span class="k">\newpage</span>
</div><div id="l45" class="code_block"><span class="k">\addtocontents</span><span class="nb">{</span>toc<span class="nb">}{</span><span class="k">\protect</span><span class="nb">{</span><span class="k">\pdfbookmark</span><span class="na">[1]</span><span class="nb">{</span><span class="k">\contentsname</span><span class="nb">}{</span>toc<span class="nb">}}}</span>
</div><div id="l46" class="code_block"><span class="k">\setcounter</span><span class="nb">{</span>tocdepth<span class="nb">}{</span>3<span class="nb">}</span>
</div><div id="l47" class="code_block"><span class="nb">{</span><span class="k">\setlength</span><span class="nb">{</span><span class="k">\parskip</span><span class="nb">}{</span>0pt<span class="nb">}</span> <span class="k">\tableofcontents</span><span class="nb">}</span>
</div><div id="l48" class="code_block"><span class="k">\newpage</span>
</div><div id="l49" class="code_block">
</div><div id="l50" class="code_block"><span class="k">\section</span><span class="nb">{</span>The program Drawj2D<span class="nb">}</span>
</div><div id="l51" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Purpose<span class="nb">}</span>
</div><div id="l52" class="code_block"> <span class="k">\textsc</span><span class="nb">{</span>Drawj2d<span class="nb">}</span> creates technical line drawings using a descriptive language. It is implemented in java, thus requires the Java Runtime Environment JRE (1.8 or above).
</div><div id="l53" class="code_block"> 
</div><div id="l54" class="code_block"> <span class="k">\bild</span><span class="nb">{</span>Drawing<span class="nb">}{</span>img/out-drawing<span class="nb">}</span>
</div><div id="l55" class="code_block"> 
</div><div id="l56" class="code_block"> The example in Figure <span class="k">\ref</span><span class="nb">{</span>fig-img/out-drawing<span class="nb">}</span> shows a drawing created by Drawj2d. The corresponding input file is printed in section <span class="k">\ref</span><span class="nb">{</span>InputExample<span class="nb">}</span>.
</div><div id="l57" class="code_block"> 
</div><div id="l58" class="code_block"> <span class="k">\verb</span>!drawj2d --type pdf --width 150 --height 120 --center drawing.hcl!
</div><div id="l59" class="code_block"> 
</div><div id="l60" class="code_block"> 
</div><div id="l61" class="code_block">
</div><div id="l62" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Features<span class="nb">}</span>
</div><div id="l63" class="code_block"> 
</div><div id="l64" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>itemize<span class="nb">}</span>
</div><div id="l65" class="code_block">
</div><div id="l66" class="code_block"> <span class="k">\item</span> easy to learn vector graphics language <span class="k">\\</span>
</div><div id="l67" class="code_block">  Descriptive vector graphics language, easy (tcl-like) syntax. 
</div><div id="l68" class="code_block">
</div><div id="l69" class="code_block"> <span class="k">\item</span> reusable drawings<span class="k">\\</span>
</div><div id="l70" class="code_block">  Drawings can be parametrised using variables.
</div><div id="l71" class="code_block">
</div><div id="l72" class="code_block"> <span class="k">\item</span> draw to scale <span class="k">\\</span>
</div><div id="l73" class="code_block">  1:50, 1:100, 1:20
</div><div id="l74" class="code_block">
</div><div id="l75" class="code_block"> <span class="k">\item</span> different output formats <span class="k">\\</span>
</div><div id="l76" class="code_block">  Vector formats: pdf, svg, eps, emf. Bitmap: png, bmp. Intermediate formats: dxf, tikz, rmdoc, hcl.
</div><div id="l77" class="code_block">
</div><div id="l78" class="code_block"> <span class="k">\item</span> platform independent <span class="k">\\</span>
</div><div id="l79" class="code_block">  Drawj2d runs on every platform which runs <span class="k">\textit</span><span class="nb">{</span>Java<span class="nb">}</span>: Linux, Windows, Mac OS X, Unix
</div><div id="l80" class="code_block">
</div><div id="l81" class="code_block"> <span class="k">\item</span> programming language <span class="k">\\</span>
</div><div id="l82" class="code_block">  Built in tcl-like scripting language allows advanced features and extensibility.
</div><div id="l83" class="code_block">
</div><div id="l84" class="code_block"> <span class="k">\item</span> viewer <span class="k">\\</span>
</div><div id="l85" class="code_block">  Built in viewer for the Drawj2d input files (*.hcl).
</div><div id="l86" class="code_block">  
</div><div id="l87" class="code_block"> <span class="k">\end</span><span class="nb">{</span>itemize<span class="nb">}</span>
</div><div id="l88" class="code_block"> 
</div><div id="l89" class="code_block">Additional functionality 
</div><div id="l90" class="code_block"> 
</div><div id="l91" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>itemize<span class="nb">}</span>
</div><div id="l92" class="code_block">
</div><div id="l93" class="code_block"> <span class="k">\item</span> Yacas plot data <span class="k">\\</span>
</div><div id="l94" class="code_block">  Drawj2d can draw the 2D plot data generated by the computer algebra system Yacas (see chapter<span class="k">\,\ref</span><span class="nb">{</span>yacas<span class="nb">}</span>).
</div><div id="l95" class="code_block">
</div><div id="l96" class="code_block"> <span class="k">\item</span> Spread sheet csv data <span class="k">\\</span>
</div><div id="l97" class="code_block">  Drawj2d can draw points of a csv file (see chapter <span class="k">\ref</span><span class="nb">{</span>bgd<span class="nb">}</span>).
</div><div id="l98" class="code_block">
</div><div id="l99" class="code_block"> <span class="k">\item</span> Fachwerk background drawings <span class="k">\\</span>
</div><div id="l100" class="code_block">  Drawj2d can read the simple text based <span class="k">\textit</span><span class="nb">{</span>bgd<span class="nb">}</span> format Fachwerk uses (see chapter <span class="k">\ref</span><span class="nb">{</span>bgd<span class="nb">}</span>).
</div><div id="l101" class="code_block">  
</div><div id="l102" class="code_block"> <span class="k">\end</span><span class="nb">{</span>itemize<span class="nb">}</span>
</div><div id="l103" class="code_block">
</div><div id="l104" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Difference to other programs<span class="nb">}</span>
</div><div id="l105" class="code_block"> <span class="k">\textsc</span><span class="nb">{</span>Drawj2d<span class="nb">}</span> is inspired by <span class="k">\textsc</span><span class="nb">{</span>Asymptote<span class="nb">}</span>, but it does 2D line drawing only. Both provide a programming syntax: Asymptote is C++-like, Drawj2d is tcl-like.
</div><div id="l106" class="code_block"> Drawj2d benefits from its limits though: less dependencies, no installation required. Drawj2d is easier, programming experience is not necessary.
</div><div id="l107" class="code_block"> 
</div><div id="l108" class="code_block"> Drawj2d is not a CAD program, it provides no graphical user interface!
</div><div id="l109" class="code_block"> 
</div><div id="l110" class="code_block">
</div><div id="l111" class="code_block">
</div><div id="l112" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Licence<span class="nb">}</span>
</div><div id="l113" class="code_block"> <span class="k">\textsc</span><span class="nb">{</span>Drawj2d<span class="nb">}</span> is subject to the <span class="k">\textit</span><span class="nb">{</span>GNU General Public License Version<span class="k">\,</span>3+<span class="nb">}</span> <span class="k">\footnote</span><span class="nb">{</span><span class="k">\textit</span><span class="nb">{</span>GNU General Public License Version<span class="k">\,</span>2+<span class="nb">}</span> is applicable provided the optional extensions OrsonPDF and JFreeSVG are dropped.<span class="nb">}</span>. The licence disclaims all liability of the author.
</div><div id="l114" class="code_block"> 
</div><div id="l115" class="code_block"> The program uses several libraries. They come with their own compatible open source licences. The text of the licences is distributed together with the program source code.
</div><div id="l116" class="code_block"> 
</div><div id="l117" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>itemize<span class="nb">}</span>
</div><div id="l118" class="code_block">  <span class="k">\item</span> Drawj2d core - GPL<span class="k">\,</span>2+  <span class="k">\\</span>
</div><div id="l119" class="code_block">  The core of the drawj2d program.<span class="k">\\</span>
</div><div id="l120" class="code_block">  https://sourceforge.net/projects/drawj2d
</div><div id="l121" class="code_block">  
</div><div id="l122" class="code_block">  <span class="k">\item</span> Hecl - Apache<span class="k">\,</span>License<span class="k">\,</span>2  <span class="k">\\</span>
</div><div id="l123" class="code_block">  The drawj2d vector graphics language uses and extends the Hecl scripting language. <span class="k">\\</span>
</div><div id="l124" class="code_block">  http://www.hecl.org
</div><div id="l125" class="code_block">  
</div><div id="l126" class="code_block">  <span class="k">\item</span> java-getopt - LGPL<span class="k">\,</span>2  <span class="k">\\</span>
</div><div id="l127" class="code_block">  Command line option parser. <span class="k">\\</span>
</div><div id="l128" class="code_block">  http://www.urbanophile.com/arenn/hacking/getopt
</div><div id="l129" class="code_block">  
</div><div id="l130" class="code_block">  <span class="k">\item</span> EvalEx - MIT License (X11 License)  <span class="k">\\</span>
</div><div id="l131" class="code_block">  Java expression evaluator used for the <span class="k">\texttt</span><span class="nb">{</span>expr<span class="nb">}</span> command. <span class="k">\\</span>
</div><div id="l132" class="code_block">  https://udojava.com/category/open-source/expression-evaluator
</div><div id="l133" class="code_block">  
</div><div id="l134" class="code_block">  <span class="k">\item</span> FreeHEP Graphics2D - LGPL<span class="k">\,</span>2.1 or Apache<span class="k">\,</span>License<span class="k">\,</span>2  <span class="k">\\</span>
</div><div id="l135" class="code_block">  Graphical back-end for pdf, svg, emf. Fall-back mode for eps. <span class="k">\\</span>
</div><div id="l136" class="code_block">  https://freehep.github.io/freehep-vectorgraphics
</div><div id="l137" class="code_block">  
</div><div id="l138" class="code_block">  <span class="k">\item</span> EpsGraphics - GPL<span class="k">\,</span>2+  <span class="k">\\</span>
</div><div id="l139" class="code_block">  Graphical back-end for eps. <span class="k">\\</span>
</div><div id="l140" class="code_block">  https://sourceforge.net/projects/epsgraphics
</div><div id="l141" class="code_block">  
</div><div id="l142" class="code_block">  <span class="k">\item</span> JTikZ - LGPL<span class="k">\,</span>2.1  <span class="k">\\</span>
</div><div id="l143" class="code_block">  Graphical back-end for tikz (TikZ/PGF). Extended for dxf, bgd, hcl and rm. <span class="k">\\</span>
</div><div id="l144" class="code_block">  https://sourceforge.net/projects/jtikz
</div><div id="l145" class="code_block">  
</div><div id="l146" class="code_block">  <span class="k">\item</span> OrsonPDF - GPL<span class="k">\,</span>3+  <span class="k">\\</span>
</div><div id="l147" class="code_block">  Graphical back-end for pdf (fall-back mode). <span class="k">\\</span>
</div><div id="l148" class="code_block">  https://github.com/jfree/orsonpdf
</div><div id="l149" class="code_block">  
</div><div id="l150" class="code_block">  <span class="k">\item</span> JFreeSVG - GPL<span class="k">\,</span>3+  <span class="k">\\</span>
</div><div id="l151" class="code_block">  Graphical back-end for svg (fall-back mode). <span class="k">\\</span>
</div><div id="l152" class="code_block">  https://github.com/jfree/jfreesvg
</div><div id="l153" class="code_block">  
</div><div id="l154" class="code_block">  <span class="k">\item</span> JLaTeXMath - GPL<span class="k">\,</span>2+ with linking exception  <span class="k">\\</span>
</div><div id="l155" class="code_block">  LaTeX rendering for command <span class="k">\texttt</span><span class="nb">{</span>texlabel<span class="nb">}</span>. <span class="k">\\</span>
</div><div id="l156" class="code_block">  https://github.com/opencollab/jlatexmath
</div><div id="l157" class="code_block">  
</div><div id="l158" class="code_block">  <span class="k">\item</span> G-library - LGPL<span class="k">\,</span>2.1+  <span class="k">\\</span>
</div><div id="l159" class="code_block">  Geometry functions for some commands <span class="k">\texttt</span><span class="nb">{</span>geom.*<span class="nb">}</span>. <span class="k">\\</span>
</div><div id="l160" class="code_block">  http://geosoft.no/graphics
</div><div id="l161" class="code_block">  
</div><div id="l162" class="code_block">  <span class="k">\item</span> TclDxf-library - disclaimer (ref. to source code)  <span class="k">\\</span>
</div><div id="l163" class="code_block">  Dxf drawing parser for the <span class="k">\texttt</span><span class="nb">{</span>dxf<span class="nb">}</span> command. <span class="k">\\</span>
</div><div id="l164" class="code_block">  http://www.oocities.org/tunegov/products/tcldxf4java.htm
</div><div id="l165" class="code_block">  
</div><div id="l166" class="code_block">  <span class="k">\item</span> PDFRenderer - LGPL<span class="k">\,</span>2.1+  <span class="k">\\</span>
</div><div id="l167" class="code_block">  Pdf interpreter for the <span class="k">\texttt</span><span class="nb">{</span>image<span class="nb">}</span> command. <span class="k">\\</span>
</div><div id="l168" class="code_block">  https://github.com/katjas/PDFrenderer
</div><div id="l169" class="code_block">  
</div><div id="l170" class="code_block">  <span class="k">\item</span> svgSalamander - BSD or LGPL<span class="k">\,</span>3  <span class="k">\\</span>
</div><div id="l171" class="code_block">  Svg interpreter for the <span class="k">\texttt</span><span class="nb">{</span>image<span class="nb">}</span> command. <span class="k">\\</span>
</div><div id="l172" class="code_block">  https://github.com/blackears/svgSalamander
</div><div id="l173" class="code_block">  
</div><div id="l174" class="code_block">  <span class="k">\item</span> Yacas Grapher - LGPL<span class="k">\,</span>2.1+  <span class="k">\\</span>
</div><div id="l175" class="code_block">  Plotter front-end for yacas plot data. <span class="k">\\</span>
</div><div id="l176" class="code_block">  https://sourceforge.net/projects/yacas
</div><div id="l177" class="code_block">  
</div><div id="l178" class="code_block">  <span class="k">\item</span> JTar - Apache<span class="k">\,</span>License<span class="k">\,</span>2  <span class="k">\\</span>
</div><div id="l179" class="code_block">  Tar library for rmn. <span class="k">\\</span>
</div><div id="l180" class="code_block">  https://github.com/kamranzafar/jtar
</div><div id="l181" class="code_block">  
</div><div id="l182" class="code_block">  <span class="k">\item</span> Hershey fonts - (ref. to source code)  <span class="k">\\</span>
</div><div id="l183" class="code_block">  Vector fonts the <span class="k">\texttt</span><span class="nb">{</span>Lines<span class="nb">}</span> font is based on.<span class="k">\\</span>
</div><div id="l184" class="code_block">  https://emergent.unpythonic.net/software/hershey
</div><div id="l185" class="code_block">  
</div><div id="l186" class="code_block"> <span class="k">\end</span><span class="nb">{</span>itemize<span class="nb">}</span>
</div><div id="l187" class="code_block"> 
</div><div id="l188" class="code_block"> 
</div><div id="l189" class="code_block"><span class="k">\subsection*</span><span class="nb">{</span>Licence of this program documentation<span class="nb">}</span>
</div><div id="l190" class="code_block">
</div><div id="l191" class="code_block"> This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
</div><div id="l192" class="code_block"> 
</div><div id="l193" class="code_block">
</div><div id="l194" class="code_block">
</div><div id="l195" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Program development<span class="nb">}</span>
</div><div id="l196" class="code_block"> This manual is based on version: Drawj2d <span class="k">\aktVERSION\</span> (<span class="k">\aktVERSIONdatum</span>)
</div><div id="l197" class="code_block"> 
</div><div id="l198" class="code_block"> Changes in syntax and functionality are to be expected. It is recommended to check the website <span class="k">\htmladdnormallink</span><span class="nb">{</span>https://drawj2d.sourceforge.io<span class="nb">}{</span>https://drawj2d.sourceforge.io/<span class="nb">}</span> for a new version from time to time.
</div><div id="l199" class="code_block"> 
</div><div id="l200" class="code_block"> 
</div><div id="l201" class="code_block"><span class="k">\clearpage</span>
</div><div id="l202" class="code_block"><span class="k">\section</span><span class="nb">{</span>How to use the program<span class="nb">}</span>
</div><div id="l203" class="code_block"><span class="k">\textsc</span><span class="nb">{</span>Drawj2d<span class="nb">}</span> is a command line program. There is no visible program window. Instead a text editor is used for the input and a shell (terminal, cmd/DOS-window, console) for running drawj2d.
</div><div id="l204" class="code_block">
</div><div id="l205" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-start<span class="nb">}</span>
</div><div id="l206" class="code_block">
</div><div id="l207" class="code_block">First open a text editor and write the description of the drawing. The syntax is explained in the next chapter, for basic strokes it is straight forward. Save the file as normal UTF-8 encoded text, choosing a name with the suffix <span class="k">\textit</span><span class="nb">{</span>hcl<span class="nb">}</span>.
</div><div id="l208" class="code_block">
</div><div id="l209" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>[title=drawing.hcl]
</div><div id="l210" class="code_block">moveto 50 100
</div><div id="l211" class="code_block">lineto 170 100
</div><div id="l212" class="code_block">moveto 120 80
</div><div id="l213" class="code_block">circle 20
</div><div id="l214" class="code_block">arrowrel 40 0
</div><div id="l215" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l216" class="code_block">
</div><div id="l217" class="code_block">Now open the command line terminal, cd into the drawing directory and start drawj2d. It will read the input file and draw into a <span class="k">\textit</span><span class="nb">{</span>pdf<span class="nb">}</span> file called out-drawing.pdf.
</div><div id="l218" class="code_block">
</div><div id="l219" class="code_block"><span class="k">\verb</span>!drawj2d drawing.hcl!
</div><div id="l220" class="code_block">
</div><div id="l221" class="code_block">
</div><div id="l222" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Installation<span class="nb">}</span>
</div><div id="l223" class="code_block">
</div><div id="l224" class="code_block">No installation needed.
</div><div id="l225" class="code_block">
</div><div id="l226" class="code_block">It is recommended though to add the drawj2d program directory to the path.
</div><div id="l227" class="code_block">
</div><div id="l228" class="code_block">Alternatively create a batch file which calls &quot;java -jar drawj2d.jar&quot; and put it in a folder which is in the path. Windows: <span class="k">\texttt</span><span class="nb">{</span>echo <span class="k">\%</span>PATH<span class="k">\%</span><span class="nb">}</span>, Linux <span class="k">\&amp;</span> Mac: <span class="k">\texttt</span><span class="nb">{</span>echo <span class="k">\$</span>PATH<span class="nb">}</span>.
</div><div id="l229" class="code_block">
</div><div id="l230" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>itemize<span class="nb">}</span>  
</div><div id="l231" class="code_block">  <span class="k">\item</span> Windows &quot;drawj2d.bat&quot;: <span class="k">\\</span>
</div><div id="l232" class="code_block">  <span class="k">\verb</span>!java -jar C:<span class="k">\PROGRAMDIRECTORY\drawj</span>2d.jar <span class="c">%*!</span>
</div><div id="l233" class="code_block">  
</div><div id="l234" class="code_block">  <span class="k">\item</span> Linux <span class="k">\&amp;</span> Mac &quot;drawj2d&quot;: <span class="k">\\</span>
</div><div id="l235" class="code_block">  <span class="k">\verb</span>!java -jar /PROGRAMDIRECTORY/drawj2d.jar <span class="s">$</span><span class="nb">@</span><span class="o">!</span>
</div><div id="l236" class="code_block"><span class="nb"> </span>
</div><div id="l237" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{itemize}</span>
</div><div id="l238" class="code_block"><span class="nb"> </span>
</div><div id="l239" class="code_block"><span class="nb"> </span>
</div><div id="l240" class="code_block"><span class="nv">\subsection</span><span class="nb">{Basic usage}</span>
</div><div id="l241" class="code_block">
</div><div id="l242" class="code_block"><span class="nv">\verb</span><span class="o">!</span><span class="nb">drawj</span><span class="m">2</span><span class="nb">d drawing.hcl</span><span class="o">!</span>
</div><div id="l243" class="code_block">
</div><div id="l244" class="code_block"><span class="nb">or</span>
</div><div id="l245" class="code_block">
</div><div id="l246" class="code_block"><span class="nv">\verb</span><span class="o">!</span><span class="nb">drawj</span><span class="m">2</span><span class="nb">d </span><span class="o">--</span><span class="nb">type pdf drawing.hcl</span><span class="o">!</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l247" class="code_block"><span class="nv">\verb</span><span class="o">!</span><span class="nb">drawj</span><span class="m">2</span><span class="nb">d </span><span class="o">--</span><span class="nb">type pdf </span><span class="o">--</span><span class="nb">width </span><span class="m">150</span><span class="nb"> </span><span class="o">--</span><span class="nb">height </span><span class="m">100</span><span class="nb"> </span><span class="o">--</span><span class="nb">center drawing.hcl</span><span class="o">!</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l248" class="code_block"><span class="nv">\verb</span><span class="o">!</span><span class="nb">drawj</span><span class="m">2</span><span class="nb">d </span><span class="o">-</span><span class="nb">T pdf </span><span class="o">-</span><span class="nb">W </span><span class="m">150</span><span class="nb"> </span><span class="o">-</span><span class="nb">H </span><span class="m">100</span><span class="nb"> </span><span class="o">-</span><span class="nb">c drawing.hcl</span><span class="o">!</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l249" class="code_block"><span class="nv">\verb</span><span class="o">!</span><span class="nb">drawj</span><span class="m">2</span><span class="nb">d </span><span class="o">-</span><span class="nb">T pdf </span><span class="o">-</span><span class="nb">W </span><span class="m">150</span><span class="nb"> </span><span class="o">-</span><span class="nb">H </span><span class="m">100</span><span class="nb"> drawing.hcl</span><span class="o">!</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l250" class="code_block"><span class="nv">\verb</span><span class="o">!</span><span class="nb">drawj</span><span class="m">2</span><span class="nb">d </span><span class="o">-</span><span class="nb">T pdf </span><span class="o">-</span><span class="nb">W </span><span class="m">150</span><span class="nb"> </span><span class="o">-</span><span class="nb">H </span><span class="m">100</span><span class="nb"> </span><span class="o">-</span><span class="nb">X </span><span class="m">50</span><span class="nb"> </span><span class="o">-</span><span class="nb">Y </span><span class="m">50</span><span class="nb"> drawing.hcl</span><span class="o">!</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l251" class="code_block"><span class="nv">\verb</span><span class="o">!</span><span class="nb">drawj</span><span class="m">2</span><span class="nb">d </span><span class="o">-</span><span class="nb">T svg </span><span class="o">-</span><span class="nb">W </span><span class="m">150</span><span class="nb"> </span><span class="o">-</span><span class="nb">H </span><span class="m">100</span><span class="nb"> </span><span class="o">-</span><span class="nb">c drawing.hcl</span><span class="o">!</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l252" class="code_block"><span class="nv">\verb</span><span class="o">!</span><span class="nb">drawj</span><span class="m">2</span><span class="nb">d </span><span class="o">-</span><span class="nb">T pdf </span><span class="o">-</span><span class="nb">o drawing.pdf drawing.hcl</span><span class="o">!</span>
</div><div id="l253" class="code_block">
</div><div id="l254" class="code_block">
</div><div id="l255" class="code_block"><span class="nv">\subsection</span><span class="nb">{Viewer}</span>
</div><div id="l256" class="code_block">
</div><div id="l257" class="code_block"><span class="nb">Preview the drawing using the screen type argument.</span>
</div><div id="l258" class="code_block">
</div><div id="l259" class="code_block"><span class="nv">\verb</span><span class="o">!</span><span class="nb">drawj</span><span class="m">2</span><span class="nb">d </span><span class="o">-</span><span class="nb">Tscr drawing.hcl</span><span class="o">!</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l260" class="code_block"><span class="nv">\verb</span><span class="o">!</span><span class="nb">drawj</span><span class="m">2</span><span class="nb">d </span><span class="o">-</span><span class="nb">T screen </span><span class="o">-</span><span class="nb">W </span><span class="m">297</span><span class="nb"> </span><span class="o">-</span><span class="nb">H </span><span class="m">210</span><span class="nb"> drawing.hcl</span><span class="o">!</span>
</div><div id="l261" class="code_block">
</div><div id="l262" class="code_block"><span class="nb">To redraw press F</span><span class="m">5</span><span class="nb">. This will parse the input file again. Thus the viewer can stay open, while you edit the input file in an editor. Pressing F</span><span class="m">5</span><span class="nb"> will refresh the drawing.</span>
</div><div id="l263" class="code_block"><span class="nb">To close the window type ESC.</span>
</div><div id="l264" class="code_block">
</div><div id="l265" class="code_block">
</div><div id="l266" class="code_block">
</div><div id="l267" class="code_block">
</div><div id="l268" class="code_block"><span class="nv">\subsection</span><span class="nb">{Output file types}</span>
</div><div id="l269" class="code_block">
</div><div id="l270" class="code_block"><span class="nv">\subsubsection</span><span class="o">*</span><span class="nb">{Vector formats}</span>
</div><div id="l271" class="code_block">
</div><div id="l272" class="code_block"><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{linewidth}</span><span class="o">]</span>
</div><div id="l273" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pdf}</span><span class="o">]</span><span class="nb">  Portable Document Format </span><span class="o">(</span><span class="nb">Acrobat Reader, pdfLaTeX</span><span class="o">)</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l274" class="code_block"><span class="nb">                      backend mode Freehep, fallback mode JFree</span>
</div><div id="l275" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{svg}</span><span class="o">]</span><span class="nb">  Scalable Vector Graphics </span><span class="o">(</span><span class="nb">Browser, OpenOffice</span><span class="o">/</span><span class="nb">LibreOffice</span><span class="o">)</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l276" class="code_block"><span class="nb">                      backend mode Freehep, fallback mode JFree</span>
</div><div id="l277" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{eps}</span><span class="o">]</span><span class="nb">  Encapsulated PostScript </span><span class="o">(</span><span class="nb">LaTeX</span><span class="o">)</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l278" class="code_block"><span class="nb">                      backend mode EpsGraphics, fallback mode Freehep</span>
</div><div id="l279" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{emf}</span><span class="o">]</span><span class="nb">  Enhanced Metafile </span><span class="o">(</span><span class="nb">Microsoft Word</span><span class="o">)</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l280" class="code_block"><span class="nb">                      backend mode Freehep</span>
</div><div id="l281" class="code_block"><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l282" class="code_block">
</div><div id="l283" class="code_block"><span class="nv">\subsubsection</span><span class="o">*</span><span class="nb">{Raster graphics image file formats}</span>
</div><div id="l284" class="code_block">
</div><div id="l285" class="code_block"><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{linewidth}</span><span class="o">]</span>
</div><div id="l286" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{png}</span><span class="o">]</span><span class="nb">  Portable Network Graphics. Supports transparency. </span><span class="nv">\\</span>
</div><div id="l287" class="code_block"><span class="nb">                      backend mode Freehep, fallback mode JRE</span>
</div><div id="l288" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{wpng}</span><span class="o">]</span><span class="nb"> Portable Network Graphics. No transparency, white background. </span><span class="nv">\\</span>
</div><div id="l289" class="code_block"><span class="nb">                      backend mode JRE</span>
</div><div id="l290" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{bmp}</span><span class="o">]</span><span class="nb">  Bitmap Image </span><span class="nv">\\</span>
</div><div id="l291" class="code_block"><span class="nb">                      backend mode Freehep, fallback mode JRE</span>
</div><div id="l292" class="code_block"><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l293" class="code_block"><span class="nb">                      </span>
</div><div id="l294" class="code_block">
</div><div id="l295" class="code_block"><span class="nv">\subsubsection</span><span class="o">*</span><span class="nb">{Intermediate formats}</span>
</div><div id="l296" class="code_block">
</div><div id="l297" class="code_block"><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{rmdoc, rmn, rm}</span><span class="o">]</span>
</div><div id="l298" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{tikz}</span><span class="o">]</span><span class="nb"> PGF</span><span class="o">/</span><span class="nb">TikZ graphics </span><span class="o">(</span><span class="nb">...LaTex</span><span class="o">)</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l299" class="code_block"><span class="nb">                      backend mode JTikZ</span>
</div><div id="l300" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{bgd}</span><span class="o">]</span><span class="nb">  Background Drawing </span><span class="o">(</span><span class="nb">Fachwerk</span><span class="o">)</span><span class="nb">. Single colour. Recommended scale </span><span class="m">1</span><span class="nb">:</span><span class="m">50</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l301" class="code_block"><span class="nb">                      backend mode JTikZ</span>
</div><div id="l302" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{rmdoc, rmn, rm}</span><span class="o">]</span><span class="nb">   ReMarkable paper tablet. Monochrome line drawing </span><span class="nv">\\</span>
</div><div id="l303" class="code_block"><span class="nb">                      backend mode JTikZ</span>
</div><div id="l304" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dxf}</span><span class="o">]</span><span class="nb">  Drawing Exchange Format </span><span class="o">(</span><span class="nb">QCAD, AutoCAD</span><span class="o">)</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l305" class="code_block"><span class="nb">                      backend mode JTikZ</span>
</div><div id="l306" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{hcl}</span><span class="o">]</span><span class="nb">  Drawj</span><span class="m">2</span><span class="nb">d drawing </span><span class="nv">\\</span>
</div><div id="l307" class="code_block"><span class="nb">                      backend mode JTikZ</span>
</div><div id="l308" class="code_block"><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l309" class="code_block">
</div><div id="l310" class="code_block"><span class="nv">\subsection</span><span class="nb">{Command line options}</span>
</div><div id="l311" class="code_block"><span class="nb">For help type</span>
</div><div id="l312" class="code_block"><span class="nb"> </span>
</div><div id="l313" class="code_block"><span class="nv">\verb</span><span class="o">!</span><span class="nb">java </span><span class="o">-</span><span class="nb">jar drawj</span><span class="m">2</span><span class="nb">d.jar </span><span class="o">--</span><span class="nb">help</span><span class="o">!</span>
</div><div id="l314" class="code_block">
</div><div id="l315" class="code_block">
</div><div id="l316" class="code_block"><span class="nb">The program will print the command line parameters.</span>
</div><div id="l317" class="code_block">
</div><div id="l318" class="code_block">
</div><div id="l319" class="code_block"><span class="nv">\begin</span><span class="nb">{verbatim}</span>
</div><div id="l320" class="code_block"><span class="nb">            Welcome to Drawj</span><span class="m">2</span><span class="nb">d</span>
</div><div id="l321" class="code_block"><span class="nb">            Copyright </span><span class="o">(</span><span class="nb">c</span><span class="o">)</span><span class="nb"> A. Vontobel, </span><span class="m">2014</span><span class="o">-</span><span class="m">2024</span>
</div><div id="l322" class="code_block"><span class="nb">            Version </span><span class="m">1</span><span class="nb">.</span><span class="m">3</span><span class="nb">.</span><span class="m">4</span>
</div><div id="l323" class="code_block">
</div><div id="l324" class="code_block"><span class="nb">Usage:</span>
</div><div id="l325" class="code_block"><span class="nb">java </span><span class="o">-</span><span class="nb">jar drawj</span><span class="m">2</span><span class="nb">d.jar  </span><span class="o">[-</span><span class="nb">TWHcXYrfvqhV</span><span class="o">]</span><span class="nb"> </span>
</div><div id="l326" class="code_block"><span class="nb">                       </span><span class="o">[-</span><span class="nb">o OutputFile</span><span class="o">]</span><span class="nb"> </span>
</div><div id="l327" class="code_block"><span class="nb">                       </span><span class="o">[</span><span class="nb">InputFile</span><span class="o">]</span><span class="nb">  </span><span class="o">[</span><span class="nb">arguments</span><span class="o">]</span><span class="nb"> </span>
</div><div id="l328" class="code_block">
</div><div id="l329" class="code_block"><span class="o">-</span><span class="nb">T, </span><span class="o">--</span><span class="nb">type                Output file type: pdf </span><span class="o">(</span><span class="nb">default</span><span class="o">)</span><span class="nb">, svg, eps, png, wpng</span>
</div><div id="l330" class="code_block"><span class="nb">                                            screen </span><span class="o">(</span><span class="nb">displays the drawing</span><span class="o">)</span>
</div><div id="l331" class="code_block"><span class="nb">                                            emf, dxf, tikz, bgd, hcl</span>
</div><div id="l332" class="code_block"><span class="nb">                                            rmdoc, rmn, rm</span>
</div><div id="l333" class="code_block"><span class="o">-</span><span class="nb">W, </span><span class="o">--</span><span class="nb">width               Graphics width </span><span class="o">(</span><span class="nb">default </span><span class="m">210</span><span class="nb">mm</span><span class="o">)</span>
</div><div id="l334" class="code_block"><span class="o">-</span><span class="nb">H, </span><span class="o">--</span><span class="nb">height              Graphics height </span><span class="o">(</span><span class="nb">default </span><span class="m">297</span><span class="nb">mm</span><span class="o">)</span><span class="nb"> </span>
</div><div id="l335" class="code_block"><span class="o">-</span><span class="nb">c, </span><span class="o">--</span><span class="nb">center              Set origin to center of sheet, instead of top left</span>
</div><div id="l336" class="code_block"><span class="o">-</span><span class="nb">X, </span><span class="o">--</span><span class="nb">originx             Offset origin right </span><span class="o">(</span><span class="nb">default </span><span class="m">0</span><span class="nb">mm</span><span class="o">)</span>
</div><div id="l337" class="code_block"><span class="o">-</span><span class="nb">Y, </span><span class="o">--</span><span class="nb">originy             Offset origin down </span><span class="o">(</span><span class="nb">default </span><span class="m">0</span><span class="nb">mm</span><span class="o">)</span>
</div><div id="l338" class="code_block"><span class="o">-</span><span class="nb">r, </span><span class="o">--</span><span class="nb">resolution          Resolution of images </span><span class="o">(</span><span class="nb">default </span><span class="m">200</span><span class="nb">dpi</span><span class="o">)</span><span class="nb">, svg </span><span class="o">(</span><span class="m">96</span><span class="nb">dpi</span><span class="o">)</span>
</div><div id="l339" class="code_block"><span class="o">-</span><span class="nb">f, </span><span class="o">--</span><span class="nb">fallback            Fallback mode</span>
</div><div id="l340" class="code_block"><span class="o">-</span><span class="nb">F, </span><span class="o">--</span><span class="nb">frontend            Input file type: hcl </span><span class="o">(</span><span class="nb">default</span><span class="o">)</span><span class="nb">, bgd, ypd</span>
</div><div id="l341" class="code_block"><span class="o">-</span><span class="nb">v, </span><span class="o">--</span><span class="nb">verbose             Verbose output</span>
</div><div id="l342" class="code_block"><span class="o">-</span><span class="nb">q, </span><span class="o">--</span><span class="nb">quiet               No messages to stdout</span>
</div><div id="l343" class="code_block"><span class="o">-</span><span class="nb">h, </span><span class="o">--</span><span class="nb">help                Usage information; this help screen</span>
</div><div id="l344" class="code_block"><span class="o">-</span><span class="nb">V, </span><span class="o">--</span><span class="nb">version             Display version</span>
</div><div id="l345" class="code_block"><span class="o">-</span><span class="nb">o  </span><span class="o">--</span><span class="nb">outfile OutputFile  OutputFile name </span><span class="o">(</span><span class="nb">default: out</span><span class="o">-</span><span class="nb">filename</span><span class="o">)</span>
</div><div id="l346" class="code_block"><span class="nb">InputFile                 InputFile or </span><span class="o">-</span><span class="nb"> </span><span class="o">(</span><span class="nb">stdin</span><span class="o">)</span><span class="nb">. If omitted reads from stdin</span>
</div><div id="l347" class="code_block"><span class="nb">arguments                 Arguments passed to the drawing in the variable </span><span class="s">$</span>argv
</div><div id="l348" class="code_block"><span class="k">\end</span><span class="nb">{</span>verbatim<span class="nb">}</span>
</div><div id="l349" class="code_block">
</div><div id="l350" class="code_block"> 
</div><div id="l351" class="code_block"><span class="k">\clearpage</span>
</div><div id="l352" class="code_block"><span class="k">\section</span><span class="nb">{</span>Drawj2D Function Reference<span class="nb">}</span>
</div><div id="l353" class="code_block"><span class="k">\label</span><span class="nb">{</span>Function reference<span class="nb">}</span>
</div><div id="l354" class="code_block">
</div><div id="l355" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Utility commands: coordinates and units<span class="nb">}</span>
</div><div id="l356" class="code_block">
</div><div id="l357" class="code_block">The Drawj2d coordinate system is shown below. The y-axis points downwards!
</div><div id="l358" class="code_block">
</div><div id="l359" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-Koordsys<span class="nb">}</span>
</div><div id="l360" class="code_block">
</div><div id="l361" class="code_block">The sheet unit is <span class="k">\textit</span><span class="nb">{</span>mm<span class="nb">}</span>. The drawing unit is not predefined, the scale can be set. Initially the drawing unit is assumed to be <span class="k">\textit</span><span class="nb">{</span>mm<span class="nb">}</span> (scale 1:1). The scale for arrows representing forces can be set separately.
</div><div id="l362" class="code_block">
</div><div id="l363" class="code_block"> 
</div><div id="l364" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>unitlength (unitsize)<span class="nb">}</span>
</div><div id="l365" class="code_block">
</div><div id="l366" class="code_block"> Set the scale.
</div><div id="l367" class="code_block">
</div><div id="l368" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l369" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>unitlength<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>scale<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>unit<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l370" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>unitlength<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>mm<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l371" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>unitlength<span class="nb">}</span>
</div><div id="l372" class="code_block"> 
</div><div id="l373" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[scale]
</div><div id="l374" class="code_block"> <span class="k">\item</span><span class="na">[\textit{scale}]</span> scaling factor, e.g. <span class="k">\verb</span>![/ 1. 100.]!
</div><div id="l375" class="code_block"> <span class="k">\item</span><span class="na">[\textit{unit}]</span>  <span class="k">\verb</span>!mm! | <span class="k">\verb</span>!cm! | <span class="k">\verb</span>!meter!, <span class="k">\verb</span>!m! | <span class="k">\verb</span>!km! | <span class="k">\verb</span>!µm! | <span class="k">\verb</span>!nm! | <span class="k">\verb</span>!inch!, <span class="k">\verb</span>!in! | <span class="k">\verb</span>!foot!, <span class="k">\verb</span>!ft! | <span class="k">\verb</span>!yard!, <span class="k">\verb</span>!yd! | <span class="k">\verb</span>!mile! | <span class="k">\verb</span>!point!, <span class="k">\verb</span>!pt! | number in mm. Default: mm
</div><div id="l376" class="code_block"> <span class="k">\item</span><span class="na">[\textit{mm}]</span> the length (in mm) on the sheet for one drawing unit
</div><div id="l377" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l378" class="code_block"> 
</div><div id="l379" class="code_block"> EXAMPLE
</div><div id="l380" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l381" class="code_block">unitlength [/ 1. 50.] m; # Scale 1:50, assuming the input units are in m
</div><div id="l382" class="code_block">puts [unitlength];       # Prints 20.0 (1000mm/50 = 20.0mm)
</div><div id="l383" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l384" class="code_block"> 
</div><div id="l385" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>forceunitlength<span class="nb">}</span>
</div><div id="l386" class="code_block">
</div><div id="l387" class="code_block"> Force unit length.
</div><div id="l388" class="code_block">
</div><div id="l389" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l390" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>forceunitlength<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>mm<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>decdigits<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l391" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>forceunitlength<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>mm<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l392" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>forceunitlength<span class="nb">}</span>
</div><div id="l393" class="code_block"> 
</div><div id="l394" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[decdigits]
</div><div id="l395" class="code_block"> <span class="k">\item</span><span class="na">[\textit{mm}]</span>  the length (in mm) on the sheet for one force unit (usually kN)
</div><div id="l396" class="code_block"> <span class="k">\item</span><span class="na">[\textit{decdigits}]</span>  Number of decimal places. If omitted: 1
</div><div id="l397" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l398" class="code_block"> 
</div><div id="l399" class="code_block"> EXAMPLE
</div><div id="l400" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l401" class="code_block">forceunitlength 5.0 1; # 1kN is drawn 5.0mm, assuming the input unit
</div><div id="l402" class="code_block">                       # is kN. Force values are written with one 
</div><div id="l403" class="code_block">                       # decimal after the point, e.g. 
</div><div id="l404" class="code_block">                       # 10.333kN will be written 10.3.
</div><div id="l405" class="code_block">forceunitlength;       # Equivalent to: forceunitlength 1.0 1
</div><div id="l406" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l407" class="code_block">
</div><div id="l408" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>offset<span class="nb">}</span>
</div><div id="l409" class="code_block">
</div><div id="l410" class="code_block"> Offset the origin (0/0) coordinate. Offset is relative to the previous origin position.
</div><div id="l411" class="code_block"> 
</div><div id="l412" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l413" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>offset<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dX<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dY<span class="nb">}</span>
</div><div id="l414" class="code_block"> 
</div><div id="l415" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[dX]
</div><div id="l416" class="code_block"> <span class="k">\item</span><span class="na">[\textit{dX}]</span>  offset to the right, measured in drawing units
</div><div id="l417" class="code_block"> <span class="k">\item</span><span class="na">[\textit{dY}]</span>  offset downwards, measured in drawing units
</div><div id="l418" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l419" class="code_block"> 
</div><div id="l420" class="code_block"> EXAMPLE
</div><div id="l421" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l422" class="code_block">offset 1 1
</div><div id="l423" class="code_block">offset [mm 1 1]
</div><div id="l424" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l425" class="code_block"> 
</div><div id="l426" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>here (r), herepolar (rp)<span class="nb">}</span>
</div><div id="l427" class="code_block">
</div><div id="l428" class="code_block"> Get the current position. Or a position relative to the current one.
</div><div id="l429" class="code_block"> 
</div><div id="l430" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l431" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>here<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dx<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dy<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l432" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>here<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l433" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>herepolar<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dL<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>α<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l434" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>herepolar<span class="nb">}</span>
</div><div id="l435" class="code_block"> 
</div><div id="l436" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[dx dy]
</div><div id="l437" class="code_block"> <span class="k">\item</span><span class="na">[\textit{dx dy}]</span>  Relative coordinates from the current position. &quot;0 0&quot; if omitted.
</div><div id="l438" class="code_block"> <span class="k">\item</span><span class="na">[\textit{dL α}]</span>   Relative polar coordinates from the current position. &quot;0 0&quot; if omitted.
</div><div id="l439" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l440" class="code_block"> 
</div><div id="l441" class="code_block"> EXAMPLE
</div><div id="l442" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l443" class="code_block">set pos [here]
</div><div id="l444" class="code_block">puts <span class="s">$</span><span class="nb">pos;     # Prints the coordinates of the current position.</span>
</div><div id="l445" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l446" class="code_block"><span class="nb"> </span>
</div><div id="l447" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{mm}</span>
</div><div id="l448" class="code_block">
</div><div id="l449" class="code_block"><span class="nb"> mm to unit length conversion.</span>
</div><div id="l450" class="code_block"><span class="nb"> </span>
</div><div id="l451" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l452" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{mm} </span><span class="nv">\textit</span><span class="nb">{length</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{length</span><span class="m">2</span><span class="nb">} </span><span class="nv">\ldots</span><span class="nb">  </span><span class="nv">\\</span>
</div><div id="l453" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{mm} </span><span class="nv">\textit</span><span class="nb">{length}</span>
</div><div id="l454" class="code_block"><span class="nb"> </span>
</div><div id="l455" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span>
</div><div id="l456" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{length}</span><span class="o">]</span><span class="nb">  length measured in </span><span class="nv">\si</span><span class="nb">{mm}</span>
</div><div id="l457" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l458" class="code_block"><span class="nb"> </span>
</div><div id="l459" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l460" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l461" class="code_block"><span class="nb">moverel </span><span class="o">[</span><span class="nb">mm </span><span class="m">0</span><span class="nb"> </span><span class="m">10</span><span class="o">]</span><span class="nb">; # Moves the cursor </span><span class="m">10</span><span class="nb">mm downwards.</span>
</div><div id="l462" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l463" class="code_block"><span class="nb"> </span>
</div><div id="l464" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{fu </span><span class="o">(</span><span class="nb">kN</span><span class="o">)</span><span class="nb">}</span>
</div><div id="l465" class="code_block">
</div><div id="l466" class="code_block"><span class="nb"> Force unit to unit length conversion.</span>
</div><div id="l467" class="code_block"><span class="nb"> </span>
</div><div id="l468" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l469" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{fu} </span><span class="nv">\textit</span><span class="nb">{forcevalue</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{forcevalue</span><span class="m">2</span><span class="nb">} </span><span class="nv">\ldots</span><span class="nb">  </span><span class="nv">\\</span>
</div><div id="l470" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{fu} </span><span class="nv">\textit</span><span class="nb">{forcevalue}</span>
</div><div id="l471" class="code_block"><span class="nb"> </span>
</div><div id="l472" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span>
</div><div id="l473" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{forcevalue}</span><span class="o">]</span><span class="nb">  force value measured in force unit, usually </span><span class="nv">\si</span><span class="nb">{kN}</span>
</div><div id="l474" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l475" class="code_block"><span class="nb"> </span>
</div><div id="l476" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l477" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l478" class="code_block"><span class="nb">arrowrel </span><span class="o">[</span><span class="nb">kN </span><span class="m">0</span><span class="nb"> </span><span class="m">10</span><span class="o">]</span><span class="nb">; # Draws an arrow </span><span class="m">10</span><span class="nb">kN downwards.</span>
</div><div id="l479" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l480" class="code_block"><span class="nb"> </span>
</div><div id="l481" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{X, Y}</span>
</div><div id="l482" class="code_block">
</div><div id="l483" class="code_block"><span class="nb"> Get the X </span><span class="o">(</span><span class="nb">or Y</span><span class="o">)</span><span class="nb"> coordinate of a position </span><span class="nv">\{</span><span class="nb">x y</span><span class="nv">\}</span><span class="nb">. </span><span class="nv">\\</span>
</div><div id="l484" class="code_block"><span class="nb"> X is equivalent to: </span><span class="o">[</span><span class="nb">lindex </span><span class="nv">\$</span><span class="nb">pos </span><span class="m">0</span><span class="o">]</span><span class="nb">. Y is equivalent to: </span><span class="o">[</span><span class="nb">lindex </span><span class="nv">\$</span><span class="nb">pos </span><span class="m">1</span><span class="o">]</span><span class="nb">.</span>
</div><div id="l485" class="code_block"><span class="nb"> </span>
</div><div id="l486" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l487" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{X} </span><span class="nv">\textit</span><span class="nb">{pos} </span><span class="nv">\\</span>
</div><div id="l488" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{Y} </span><span class="nv">\textit</span><span class="nb">{pos}</span>
</div><div id="l489" class="code_block"><span class="nb"> </span>
</div><div id="l490" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">pos</span><span class="o">]</span>
</div><div id="l491" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos}</span><span class="o">]</span><span class="nb">  coordinate pair</span>
</div><div id="l492" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l493" class="code_block"><span class="nb"> </span>
</div><div id="l494" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l495" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l496" class="code_block"><span class="nb">set pos {</span><span class="m">120</span><span class="nb"> </span><span class="m">300</span><span class="nb">}</span>
</div><div id="l497" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">X </span><span class="s">$</span>pos]; # Prints 120
</div><div id="l498" class="code_block">puts [Y <span class="s">$</span><span class="nb">pos</span><span class="o">]</span><span class="nb">; # Prints </span><span class="m">300</span>
</div><div id="l499" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l500" class="code_block"><span class="nb"> </span>
</div><div id="l501" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{FX, FY}</span>
</div><div id="l502" class="code_block">
</div><div id="l503" class="code_block"><span class="nb"> Get the FX </span><span class="o">(</span><span class="nb">or FY</span><span class="o">)</span><span class="nb"> component of a force </span><span class="nv">\{</span><span class="nb">x y Fx Fy</span><span class="nv">\}</span><span class="nb">. </span><span class="nv">\\</span>
</div><div id="l504" class="code_block"><span class="nb"> FX is equivalent to: </span><span class="o">[</span><span class="nb">lindex </span><span class="nv">\$</span><span class="nb">F </span><span class="m">2</span><span class="o">]</span><span class="nb">. FY is equivalent to: </span><span class="o">[</span><span class="nb">lindex </span><span class="nv">\$</span><span class="nb">F </span><span class="m">3</span><span class="o">]</span><span class="nb">.</span>
</div><div id="l505" class="code_block"><span class="nb"> </span>
</div><div id="l506" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l507" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{FX} </span><span class="nv">\textit</span><span class="nb">{F} </span><span class="nv">\\</span>
</div><div id="l508" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{FY} </span><span class="nv">\textit</span><span class="nb">{F}</span>
</div><div id="l509" class="code_block"><span class="nb"> </span>
</div><div id="l510" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">pos</span><span class="o">]</span>
</div><div id="l511" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{F}</span><span class="o">]</span><span class="nb">  force &quot;x y Fx Fy&quot;</span>
</div><div id="l512" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l513" class="code_block"><span class="nb"> </span>
</div><div id="l514" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l515" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l516" class="code_block"><span class="nb">set F {</span><span class="m">10</span><span class="nb"> </span><span class="m">0</span><span class="nb">  </span><span class="m">20</span><span class="nb"> </span><span class="m">100</span><span class="nb">}</span>
</div><div id="l517" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">FX </span><span class="s">$</span>F]; # Prints 20
</div><div id="l518" class="code_block">puts [FY <span class="s">$</span><span class="nb">F</span><span class="o">]</span><span class="nb">; # Prints </span><span class="m">100</span>
</div><div id="l519" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l520" class="code_block"><span class="nb"> </span>
</div><div id="l521" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{XY, FXY}</span>
</div><div id="l522" class="code_block">
</div><div id="l523" class="code_block"><span class="nb"> Get the application point &quot;x y&quot; or the components &quot;Fx Fy&quot; of a force </span><span class="nv">\{</span><span class="nb">x y Fx Fy</span><span class="nv">\}</span><span class="nb">.</span>
</div><div id="l524" class="code_block"><span class="nb"> </span>
</div><div id="l525" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">aboutForces}</span>
</div><div id="l526" class="code_block"><span class="nb"> </span>
</div><div id="l527" class="code_block"><span class="nb"> XY is equivalent to: &quot;</span><span class="o">[</span><span class="nb">lindex </span><span class="nv">\$</span><span class="nb">F </span><span class="m">0</span><span class="o">]</span><span class="nb"> </span><span class="o">[</span><span class="nb">lindex </span><span class="nv">\$</span><span class="nb">F </span><span class="m">1</span><span class="o">]</span><span class="nb">&quot;. </span><span class="nv">\\</span>
</div><div id="l528" class="code_block"><span class="nb"> FXY is equivalent to: &quot;</span><span class="o">[</span><span class="nb">lindex </span><span class="nv">\$</span><span class="nb">F </span><span class="m">2</span><span class="o">]</span><span class="nb"> </span><span class="o">[</span><span class="nb">lindex </span><span class="nv">\$</span><span class="nb">F </span><span class="m">3</span><span class="o">]</span><span class="nb">&quot;.</span>
</div><div id="l529" class="code_block"><span class="nb"> </span>
</div><div id="l530" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l531" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{XY} </span><span class="nv">\textit</span><span class="nb">{F} </span><span class="nv">\\</span>
</div><div id="l532" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{FXY} </span><span class="nv">\textit</span><span class="nb">{F}</span>
</div><div id="l533" class="code_block"><span class="nb"> </span>
</div><div id="l534" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">pos</span><span class="o">]</span>
</div><div id="l535" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{F}</span><span class="o">]</span><span class="nb">  force &quot;x y Fx Fy&quot;</span>
</div><div id="l536" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l537" class="code_block"><span class="nb"> </span>
</div><div id="l538" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l539" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l540" class="code_block"><span class="nb">set F {</span><span class="m">10</span><span class="nb"> </span><span class="m">0</span><span class="nb">  </span><span class="m">20</span><span class="nb"> </span><span class="m">100</span><span class="nb">}</span>
</div><div id="l541" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">XY </span><span class="s">$</span>F];  # Prints 10 0
</div><div id="l542" class="code_block">puts [FXY <span class="s">$</span><span class="nb">F</span><span class="o">]</span><span class="nb">; # Prints </span><span class="m">20</span><span class="nb"> </span><span class="m">100</span>
</div><div id="l543" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l544" class="code_block"><span class="nb"> </span>
</div><div id="l545" class="code_block">
</div><div id="l546" class="code_block"><span class="nb"> </span>
</div><div id="l547" class="code_block"><span class="nv">\subsection</span><span class="nb">{Utility commands: pen, font and mathematical expressions}</span>
</div><div id="l548" class="code_block">
</div><div id="l549" class="code_block"><span class="nb"> </span>
</div><div id="l550" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{pen}</span>
</div><div id="l551" class="code_block">
</div><div id="l552" class="code_block"><span class="nb"> The pen defines the current colour, line stroke width and line type. The command returns the previous pen settings.</span>
</div><div id="l553" class="code_block"><span class="nb"> </span>
</div><div id="l554" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l555" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{pen} </span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{color}</span><span class="o">]</span><span class="nb"> </span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{linewidth}</span><span class="o">]</span><span class="nb"> </span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{linetype}</span><span class="o">]</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l556" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{pen} </span><span class="nv">\textit</span><span class="nb">{color} </span><span class="nv">\\</span>
</div><div id="l557" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{pen} </span><span class="nv">\textit</span><span class="nb">{linewidth} </span><span class="nv">\\</span>
</div><div id="l558" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{pen} </span><span class="nv">\textit</span><span class="nb">{linetype} </span><span class="nv">\\</span>
</div><div id="l559" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{pen}</span>
</div><div id="l560" class="code_block"><span class="nb"> </span>
</div><div id="l561" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{linewidth}</span><span class="o">]</span>
</div><div id="l562" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{color}</span><span class="o">]</span><span class="nb">  </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">black</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">k</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">blue</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">b</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">cyan</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">c</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">darkgray</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">d</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">gray</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">a</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">green</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">g</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">lightgray</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">l</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">magenta</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">m</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">orange</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">o</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">pink</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">p</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">red</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">r</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">white</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">w</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">yellow</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">y</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">brown</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">darkorange</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">darkgreen</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">violet</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">purple</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">inkblue</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">inkred</span><span class="o">!</span><span class="nb"> | </span><span class="m">0</span><span class="nb">xrrggbb </span><span class="o">(</span><span class="nb">hexadecimal values for red, green, blue</span><span class="o">)</span>
</div><div id="l563" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{linewidth}</span><span class="o">]</span><span class="nb">  Line stroke width in </span><span class="nv">\si</span><span class="nb">{mm}. Default: </span><span class="nv">\SI</span><span class="nb">{</span><span class="m">0</span><span class="nb">.</span><span class="m">5</span><span class="nb">}{mm}</span>
</div><div id="l564" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{linetype}</span><span class="o">]</span><span class="nb">  </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">dashed</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">dotted</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">dashdotted</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">solid</span><span class="o">!</span>
</div><div id="l565" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{</span><span class="o">(</span><span class="nb">none</span><span class="o">)</span><span class="nb">}</span><span class="o">]</span><span class="nb">  equal to: pen black </span><span class="m">0</span><span class="nb">.</span><span class="m">5</span><span class="nb"> solid</span>
</div><div id="l566" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l567" class="code_block"><span class="nb"> </span>
</div><div id="l568" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l569" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l570" class="code_block"><span class="nb">pen red dashdotted</span>
</div><div id="l571" class="code_block"><span class="nb">line </span><span class="m">0</span><span class="nb"> </span><span class="m">0</span><span class="nb"> </span><span class="m">100</span><span class="nb"> </span><span class="m">0</span>
</div><div id="l572" class="code_block"><span class="nb">set prevpen </span><span class="o">[</span><span class="nb">pen </span><span class="m">0</span><span class="nb">x</span><span class="m">87431</span><span class="nb">D</span><span class="o">]</span><span class="nb">;      # color hex values. r:</span><span class="m">87</span><span class="nb">, g:</span><span class="m">43</span><span class="nb">, b:</span><span class="m">1</span><span class="nb">D </span><span class="o">(</span><span class="nb">brown</span><span class="o">)</span>
</div><div id="l573" class="code_block"><span class="nb">puts </span><span class="s">$</span>prevpen;                   # Prints red dashdotted 0.5
</div><div id="l574" class="code_block">pen <span class="s">$</span><span class="nb">prevpen;                    # Applies the stored attributes</span>
</div><div id="l575" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l576" class="code_block"><span class="nb"> </span>
</div><div id="l577" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{font}</span>
</div><div id="l578" class="code_block">
</div><div id="l579" class="code_block"><span class="nb"> Set the font. Choose a truetype </span><span class="o">(</span><span class="nb">outline</span><span class="o">)</span><span class="nb"> font or the line font </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">Lines</span><span class="o">!</span><span class="nb">. The line font is useful for output types </span><span class="o">(</span><span class="nb">e.g. rm</span><span class="o">)</span><span class="nb"> not supporting fill.</span>
</div><div id="l580" class="code_block"><span class="nb"> </span>
</div><div id="l581" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l582" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{font} </span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{fontname}</span><span class="o">]</span><span class="nb"> </span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{style}</span><span class="o">]</span><span class="nb"> </span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{size}</span><span class="o">]</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l583" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{font} </span><span class="nv">\textit</span><span class="nb">{fontname} </span><span class="nv">\\</span>
</div><div id="l584" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{font} </span><span class="nv">\textit</span><span class="nb">{style} </span><span class="nv">\\</span>
</div><div id="l585" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{font} </span><span class="nv">\textit</span><span class="nb">{size} </span><span class="nv">\\</span>
</div><div id="l586" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{font}</span>
</div><div id="l587" class="code_block"><span class="nb"> </span>
</div><div id="l588" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">fontname</span><span class="o">]</span>
</div><div id="l589" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{fontname}</span><span class="o">]</span><span class="nb">  </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">Serif</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">SansSerif</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">Monospaced</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">TeX</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">Lines</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">LinesMono</span><span class="o">!</span><span class="nb"> or font name</span>
</div><div id="l590" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{style}</span><span class="o">]</span><span class="nb">  </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">plain</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">up</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">bold</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">bf</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">italic</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">it</span><span class="o">!</span>
</div><div id="l591" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{size}</span><span class="o">]</span><span class="nb">  font height in </span><span class="nv">\si</span><span class="nb">{mm}. </span><span class="nv">\SI</span><span class="nb">{</span><span class="m">0</span><span class="nb">.</span><span class="m">1</span><span class="nb">}{mm} steps.</span>
</div><div id="l592" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{</span><span class="o">(</span><span class="nb">none</span><span class="o">)</span><span class="nb">}</span><span class="o">]</span><span class="nb">  equivalent to: font Serif plain </span><span class="m">4</span>
</div><div id="l593" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l594" class="code_block">
</div><div id="l595" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l596" class="code_block"><span class="nb"> </span>
</div><div id="l597" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdFont.pdf}</span>
</div><div id="l598" class="code_block"><span class="nb"> </span>
</div><div id="l599" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{hatch}</span>
</div><div id="l600" class="code_block">
</div><div id="l601" class="code_block"><span class="nb"> Set the hatch pattern.</span>
</div><div id="l602" class="code_block"><span class="nb"> </span>
</div><div id="l603" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l604" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{hatch} </span><span class="nv">\textit</span><span class="nb">{angle} </span><span class="nv">\textit</span><span class="nb">{spacing} </span><span class="nv">\\</span>
</div><div id="l605" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{hatch} </span><span class="nv">\textit</span><span class="nb">{angle} </span><span class="nv">\\</span>
</div><div id="l606" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{hatch}</span>
</div><div id="l607" class="code_block"><span class="nb"> </span>
</div><div id="l608" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">spacing</span><span class="o">]</span>
</div><div id="l609" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{angle}</span><span class="o">]</span><span class="nb">  hatch pattern angle in degrees. Default </span><span class="o">-</span><span class="m">45</span><span class="nb">°.</span>
</div><div id="l610" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{spacing}</span><span class="o">]</span><span class="nb">  hatch pattern spacing in drawing units. If omitted or set to </span><span class="m">0</span><span class="nb">, the spacing is </span><span class="nv">\SI</span><span class="nb">{</span><span class="m">5</span><span class="nb">}{mm}.</span>
</div><div id="l611" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l612" class="code_block"><span class="nb"> </span>
</div><div id="l613" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l614" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l615" class="code_block"><span class="nb">hatch </span><span class="m">75</span><span class="nb"> </span><span class="o">[</span><span class="nb">mm </span><span class="m">2</span><span class="o">]</span>
</div><div id="l616" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l617" class="code_block"><span class="nb"> </span>
</div><div id="l618" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{opacity}</span>
</div><div id="l619" class="code_block">
</div><div id="l620" class="code_block"><span class="nb"> Set the opacity. Output modes supporting transparency are </span><span class="nv">\verb</span><span class="o">!-</span><span class="nb">T screen</span><span class="o">!</span><span class="nb"> and </span><span class="nv">\verb</span><span class="o">!-</span><span class="nb">T png</span><span class="o">!</span><span class="nb"> </span><span class="o">(</span><span class="nb">and fallback modes </span><span class="nv">\verb</span><span class="o">!-</span><span class="nb">Tpdf </span><span class="o">-</span><span class="nb">f</span><span class="o">!</span><span class="nb"> and </span><span class="nv">\verb</span><span class="o">!-</span><span class="nb">Tsvg </span><span class="o">-</span><span class="nb">f</span><span class="o">!)</span><span class="nb">.</span>
</div><div id="l621" class="code_block">
</div><div id="l622" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l623" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{opacity} </span><span class="nv">\textit</span><span class="nb">{value} </span><span class="nv">\\</span>
</div><div id="l624" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{opacity}</span>
</div><div id="l625" class="code_block"><span class="nb"> </span>
</div><div id="l626" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">value</span><span class="o">]</span>
</div><div id="l627" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{value}</span><span class="o">]</span><span class="nb">  float value from </span><span class="m">0</span><span class="nb"> to </span><span class="m">1</span><span class="nb">. </span><span class="m">1</span><span class="nb">.</span><span class="m">0</span><span class="nb"> is opaque. If omitted the value is set to </span><span class="m">1</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="o">(</span><span class="nb">opaque</span><span class="o">)</span><span class="nb">.</span>
</div><div id="l628" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l629" class="code_block"><span class="nb"> </span>
</div><div id="l630" class="code_block"><span class="nb"> </span>
</div><div id="l631" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{today}</span>
</div><div id="l632" class="code_block">
</div><div id="l633" class="code_block"><span class="nb"> Returns the current date.</span>
</div><div id="l634" class="code_block"><span class="nb"> </span>
</div><div id="l635" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l636" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{today} </span><span class="nv">\textit</span><span class="nb">{style} </span><span class="nv">\textit</span><span class="nb">{locale} </span><span class="nv">\\</span>
</div><div id="l637" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{today} </span><span class="nv">\textit</span><span class="nb">{style} </span><span class="nv">\\</span>
</div><div id="l638" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{today}</span>
</div><div id="l639" class="code_block"><span class="nb"> </span>
</div><div id="l640" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">locale</span><span class="o">]</span>
</div><div id="l641" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{style}</span><span class="o">]</span><span class="nb">   </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">full</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">long</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">short</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">medium</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">default</span><span class="o">!</span>
</div><div id="l642" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{locale}</span><span class="o">]</span><span class="nb">  language or language</span><span class="o">-</span><span class="nb">country code, e.g. </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">de</span><span class="o">!</span><span class="nb"> or </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">en</span><span class="o">-</span><span class="nb">GB</span><span class="o">!</span><span class="nb">. If omitted the language is taken from the computer settings.</span>
</div><div id="l643" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l644" class="code_block"><span class="nb"> </span>
</div><div id="l645" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l646" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l647" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">today medium en</span><span class="o">-</span><span class="nb">GB</span><span class="o">]</span><span class="nb">; # Prints </span><span class="m">14</span><span class="o">-</span><span class="nb">Mar</span><span class="o">-</span><span class="m">2017</span><span class="nb">, if run that day.</span>
</div><div id="l648" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">today medium de</span><span class="o">]</span><span class="nb">;    # Prints </span><span class="m">14</span><span class="nb">.</span><span class="m">03</span><span class="nb">.</span><span class="m">2017</span>
</div><div id="l649" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">today</span><span class="o">]</span><span class="nb">;              # Prints </span><span class="m">14</span><span class="nb">.</span><span class="m">03</span><span class="nb">.</span><span class="m">2017</span><span class="nb"> in DE or </span><span class="m">14</span><span class="o">-</span><span class="nb">Mar</span><span class="o">-</span><span class="m">2017</span><span class="nb"> in GB</span>
</div><div id="l650" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l651" class="code_block"><span class="nb"> </span>
</div><div id="l652" class="code_block"><span class="nb"> </span>
</div><div id="l653" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{nf}</span>
</div><div id="l654" class="code_block">
</div><div id="l655" class="code_block"><span class="nb"> Returns a formatted number.</span>
</div><div id="l656" class="code_block"><span class="nb"> </span>
</div><div id="l657" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l658" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{nf} </span><span class="nv">\textit</span><span class="nb">{number} </span><span class="nv">\textit</span><span class="nb">{decdigits} </span><span class="nv">\\</span>
</div><div id="l659" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{nf} </span><span class="nv">\textit</span><span class="nb">{number}</span>
</div><div id="l660" class="code_block"><span class="nb"> </span>
</div><div id="l661" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">decdigits</span><span class="o">]</span>
</div><div id="l662" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{number}</span><span class="o">]</span><span class="nb">  the number to be formatted</span>
</div><div id="l663" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{decdigits}</span><span class="o">]</span><span class="nb">  Amount of digits beyond point. If omitted the value set by dimline </span><span class="o">(</span><span class="nb">default </span><span class="m">3</span><span class="o">)</span><span class="nb"> is used.</span>
</div><div id="l664" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l665" class="code_block"><span class="nb"> </span>
</div><div id="l666" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l667" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l668" class="code_block"><span class="nb">set L </span><span class="m">4</span><span class="nb">.</span><span class="m">6666667</span>
</div><div id="l669" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">nf </span><span class="s">$</span>L 2]; # Prints 4.67
</div><div id="l670" class="code_block">puts [nf <span class="s">$</span><span class="nb">L</span><span class="o">]</span><span class="nb">;   # Prints </span><span class="m">4</span><span class="nb">.</span><span class="m">667</span><span class="nb">, unless default value has been changed.</span>
</div><div id="l671" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l672" class="code_block"><span class="nb"> </span>
</div><div id="l673" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{format}</span>
</div><div id="l674" class="code_block"><span class="nb"> </span>
</div><div id="l675" class="code_block"><span class="nb"> Returns a formatted string in the style of printf. Customizes formatting of float numbers </span><span class="o">(</span><span class="nb">place</span><span class="o">-</span><span class="nb">holders </span><span class="nv">\verb</span><span class="o">!</span><span class="c">%f!, \verb!%e!, \verb!%g!) and integer numbers (\verb!%d!) or inserts a string (\verb!%s!) into a text template. </span>
</div><div id="l676" class="code_block"><span class="nb"> </span>
</div><div id="l677" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l678" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{format} </span><span class="nv">\textit</span><span class="nb">{text</span><span class="nv">\&amp;</span><span class="nb">placeholders} </span><span class="nv">\textit</span><span class="nb">{value} </span><span class="nv">\ldots</span><span class="nb">  </span><span class="nv">\textit</span><span class="nb">{locale} </span><span class="nv">\\</span>
</div><div id="l679" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{format} </span><span class="nv">\textit</span><span class="nb">{text</span><span class="nv">\&amp;</span><span class="nb">placeholders} </span><span class="nv">\textit</span><span class="nb">{value} </span><span class="nv">\ldots</span>
</div><div id="l680" class="code_block"><span class="nb"> </span>
</div><div id="l681" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">text</span><span class="nv">\&amp;</span><span class="nb">placeholders</span><span class="o">]</span>
</div><div id="l682" class="code_block"><span class="nb"> 	</span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{text</span><span class="nv">\&amp;</span><span class="nb">placeholders}</span><span class="o">]</span><span class="nb">  Text containing place</span><span class="o">-</span><span class="nb">holders </span><span class="nv">\verb</span><span class="o">!</span><span class="c">%f!, \verb!%e!, \verb!%g!, \verb!%d!, \verb!%s!, \verb!%c!. \\ \verb!%10.3f! means ten characters in width, right justified, with three places after decimal point. For details refer to the \textit{java.String.format} documentation.</span>
</div><div id="l683" class="code_block"><span class="nb"> 	</span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{value}</span><span class="o">]</span><span class="nb">  number </span><span class="o">(</span><span class="nb">integer or float</span><span class="o">)</span><span class="nb"> or string to be inserted</span>
</div><div id="l684" class="code_block"><span class="nb"> 	</span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{locale}</span><span class="o">]</span><span class="nb">  language</span><span class="o">-</span><span class="nb">country code, e.g. </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">de</span><span class="o">-</span><span class="nb">CH</span><span class="o">!</span><span class="nb">. Affects the way numbers are formatted </span><span class="o">(</span><span class="nb">decimal dot or comma</span><span class="o">)</span><span class="nb">.</span>
</div><div id="l685" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l686" class="code_block"><span class="nb"> </span>
</div><div id="l687" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l688" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l689" class="code_block"><span class="nb"> set L </span><span class="m">4</span><span class="nb">.</span><span class="m">67</span>
</div><div id="l690" class="code_block"><span class="nb"> format </span><span class="c">%.3f $L;                            # --&gt; &quot;4.670&quot;</span>
</div><div id="l691" class="code_block"><span class="nb"> format </span><span class="c">%7.3f $L;                           # --&gt; &quot;  4.670&quot;</span>
</div><div id="l692" class="code_block"><span class="nb"> set m </span><span class="m">12</span><span class="nb">; set h </span><span class="o">[*</span><span class="nb"> </span><span class="m">24</span><span class="nb"> </span><span class="m">365</span><span class="o">]</span>
</div><div id="l693" class="code_block"><span class="nb"> puts </span><span class="o">[</span><span class="nb">format &quot;</span><span class="c">%d mo = %,d h&quot; $m $h de-CH]; # Prints 12 mo = 8&#39;760 h</span>
</div><div id="l694" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l695" class="code_block"><span class="nb"> </span>
</div><div id="l696" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{expr}</span>
</div><div id="l697" class="code_block">
</div><div id="l698" class="code_block"><span class="nb"> Calculates the value of a mathematical or boolean expression.</span>
</div><div id="l699" class="code_block"><span class="nb"> Functions are case insensitive. Angles are expected in degrees </span><span class="o">(</span><span class="nb">this differs from tcl and from the hecl trigonometric functions</span><span class="o">!)</span><span class="nb"> unless the function has a trailing R. Boolean operators always result in a value of </span><span class="m">1</span><span class="nb"> or </span><span class="m">0</span><span class="nb"> </span><span class="o">(</span><span class="nb">zero</span><span class="o">)</span><span class="nb">, any non</span><span class="o">-</span><span class="nb">zero value is treated as a true value.</span>
</div><div id="l700" class="code_block"><span class="nb"> </span>
</div><div id="l701" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l702" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{expr} </span><span class="nv">\textit</span><span class="nb">{mathexpr} </span><span class="nv">\\</span>
</div><div id="l703" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{expr} </span><span class="nv">\textit</span><span class="nb">{boolexpr}</span>
</div><div id="l704" class="code_block"><span class="nb"> </span>
</div><div id="l705" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">mathexpr</span><span class="o">]</span>
</div><div id="l706" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{mathexpr}</span><span class="o">]</span><span class="nb">  Mathematical expression. </span><span class="nv">\\</span>
</div><div id="l707" class="code_block"><span class="nb">  		Supported operators: </span><span class="nv">\verb</span><span class="o">!+!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> </span><span class="o">-!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> </span><span class="o">*!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> </span><span class="o">/!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> </span><span class="c">%! (remainder) \verb! ^! (or \verb!**!) \\</span>
</div><div id="l708" class="code_block"><span class="nb"> 		Trigonometric functions : </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">SIN</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">COS</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">TAN</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">COT</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">SEC</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">CSC</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ASIN</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ACOS</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ATAN</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ACOT</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ATAN</span><span class="m">2</span><span class="o">(</span><span class="nb">y,x</span><span class="o">)!</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l709" class="code_block"><span class="nb"> 		or in radians: </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">SINR</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">COSR</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">TANR</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">COTR</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">SECR</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">CSCR</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ASINR</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ACOSR</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ATANR</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ACOTR</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ATAN</span><span class="m">2</span><span class="nb">R</span><span class="o">(</span><span class="nb">y,x</span><span class="o">)!</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l710" class="code_block"><span class="nb"> 		Hyperbolic functions: </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">SINH</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">COSH</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">TANH</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">COTH</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">SECH</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">CSCH</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ASINH</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ACOSH</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ATANH</span><span class="o">!</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l711" class="code_block"><span class="nb"> 		Functions: </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">LOG</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">LOG</span><span class="m">10</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">SQRT</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">EXP</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">RAD</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">DEG</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">FACT</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> RANDOM</span><span class="o">()!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ABS</span><span class="o">!</span><span class="nb">  </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">FLOOR</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">CEILING</span><span class="o">!</span><span class="nv">\\</span>
</div><div id="l712" class="code_block"><span class="nb"> 		</span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ROUND</span><span class="o">(</span><span class="nb">expression,precision</span><span class="o">)!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> MIN</span><span class="o">(</span><span class="nb">e</span><span class="m">1</span><span class="nb">,e</span><span class="m">2</span><span class="nb">, ...</span><span class="o">)!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> MAX</span><span class="o">(</span><span class="nb">e</span><span class="m">1</span><span class="nb">,e</span><span class="m">2</span><span class="nb">, ...</span><span class="o">)!</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l713" class="code_block"><span class="nb"> 		Constants: </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">e</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> PI</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> NULL</span><span class="o">!</span>
</div><div id="l714" class="code_block"><span class="nb"> </span>
</div><div id="l715" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{boolexpr}</span><span class="o">]</span><span class="nb">  Boolean expression. </span><span class="nv">\\</span>
</div><div id="l716" class="code_block"><span class="nb">  		Supported operators: </span><span class="nv">\verb</span><span class="o">!=!</span><span class="nb"> </span><span class="o">(</span><span class="nb">or </span><span class="nv">\verb</span><span class="o">!==!)</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> ~</span><span class="o">=!</span><span class="nb"> </span><span class="nv">\verb</span><span class="nb">&quot; </span><span class="o">!=</span><span class="nb">&quot; </span><span class="o">(</span><span class="nb">or </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">&lt;&gt;</span><span class="o">!)</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> &lt;</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> &lt;</span><span class="o">=!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> &gt;</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> &gt;</span><span class="o">=!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> &amp;&amp;</span><span class="o">!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> ||</span><span class="o">!</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l717" class="code_block"><span class="nb">  		Boolean functions: </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">NOT</span><span class="o">(</span><span class="nb">expression</span><span class="o">)!</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> IF</span><span class="o">(</span><span class="nb">condition,value_if_true,value_if_false</span><span class="o">)!</span>
</div><div id="l718" class="code_block"><span class="nb">  		Constants: </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">TRUE</span><span class="o">!</span><span class="nb"> </span><span class="o">(</span><span class="nb">value one</span><span class="o">)</span><span class="nb"> </span><span class="nv">\verb</span><span class="o">!</span><span class="nb"> FALSE</span><span class="o">!</span><span class="nb"> </span><span class="o">(</span><span class="nb">value zero</span><span class="o">)</span>
</div><div id="l719" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l720" class="code_block"><span class="nb"> </span>
</div><div id="l721" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l722" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l723" class="code_block"><span class="nb">set D </span><span class="m">4</span><span class="nb">.</span><span class="m">4</span>
</div><div id="l724" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">expr </span><span class="s">$</span>D /2 * sin(30)];       # Prints 1.1.
</div><div id="l725" class="code_block">                                   # The space after variable <span class="s">$</span><span class="nb">D is required</span><span class="o">!</span>
</div><div id="l726" class="code_block"><span class="nb"># or in radians</span>
</div><div id="l727" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">expr </span><span class="s">$</span>D /2 * sinr(PI / 6)]
</div><div id="l728" class="code_block"># Equivalent in pure hecl
</div><div id="l729" class="code_block">puts [* [/ <span class="s">$</span><span class="nb">D </span><span class="m">2</span><span class="nb">.</span><span class="o">]</span><span class="nb"> </span><span class="o">[</span><span class="nb">sin </span><span class="o">[/</span><span class="nb"> </span><span class="s">$</span>pi 6.]]]
</div><div id="l730" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l731" class="code_block"> 
</div><div id="l732" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>exprinput<span class="nb">}</span>
</div><div id="l733" class="code_block">
</div><div id="l734" class="code_block"> Returns the mathematical expression. Useful to check what the command expr would get as input.
</div><div id="l735" class="code_block"> 
</div><div id="l736" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l737" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>exprinput<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>mathexpr<span class="nb">}</span>
</div><div id="l738" class="code_block"> 
</div><div id="l739" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l740" class="code_block"> <span class="k">\item</span><span class="na">[\textit{mathexpr}]</span>  mathematical expression
</div><div id="l741" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l742" class="code_block"> 
</div><div id="l743" class="code_block"> EXAMPLE
</div><div id="l744" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l745" class="code_block">set D 4.4
</div><div id="l746" class="code_block">puts [exprinput <span class="s">$</span><span class="nb">D </span><span class="o">/</span><span class="m">2</span><span class="nb"> </span><span class="o">*</span><span class="nb"> sin</span><span class="o">(</span><span class="m">30</span><span class="o">)]</span><span class="nb">; # Prints </span><span class="m">4</span><span class="nb">.</span><span class="m">4</span><span class="nb"> </span><span class="o">/</span><span class="m">2</span><span class="nb"> </span><span class="o">*</span><span class="nb"> sin</span><span class="o">(</span><span class="m">30</span><span class="o">)</span>
</div><div id="l747" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l748" class="code_block"><span class="nb"> </span>
</div><div id="l749" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{assert}</span>
</div><div id="l750" class="code_block">
</div><div id="l751" class="code_block"><span class="nb"> Verifies that an assertion is fulfilled. Actually a mathematical expression is evaluated. If the return</span>
</div><div id="l752" class="code_block"><span class="nb"> value is other than </span><span class="m">1</span><span class="nb"> </span><span class="o">(==</span><span class="nb"> true</span><span class="o">)</span><span class="nb">, an exception is raised.</span>
</div><div id="l753" class="code_block"><span class="nb"> </span>
</div><div id="l754" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l755" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{assert} </span><span class="nv">\textit</span><span class="nb">{condition} </span><span class="nv">\textit</span><span class="nb">{message} </span><span class="nv">\\</span>
</div><div id="l756" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{assert} </span><span class="nv">\textit</span><span class="nb">{condition}</span>
</div><div id="l757" class="code_block"><span class="nb"> </span>
</div><div id="l758" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">condition</span><span class="o">]</span>
</div><div id="l759" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{condition}</span><span class="o">]</span><span class="nb">  A condition that is expected to be true. For comparisons use &lt;, &gt;, &lt;</span><span class="o">=</span><span class="nb">, &gt;</span><span class="o">=</span><span class="nb">, </span><span class="o">=</span><span class="nb"> or </span><span class="s">$</span><span class="k">\sim</span><span class="s">$</span><span class="o">=</span><span class="nb">. The operator </span><span class="s">$</span><span class="k">\sim</span><span class="s">$</span><span class="o">=</span><span class="nb"> tests whether both sides are approximately equal </span><span class="o">(</span><span class="nb">up to </span><span class="m">11</span><span class="nb"> significant digits</span><span class="o">)</span><span class="nb">. &quot;</span><span class="nv">\$</span><span class="nb">val </span><span class="s">$</span><span class="k">\sim</span><span class="s">$</span><span class="o">=</span><span class="nb"> </span><span class="m">0</span><span class="nb">&quot; is assumed to be true for </span><span class="s">$</span> |<span class="k">\$</span>val| &lt; 10<span class="nb">^{</span>-11<span class="nb">}</span><span class="s">$</span><span class="nb">.</span>
</div><div id="l760" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{message}</span><span class="o">]</span><span class="nb">  optional message that helps to identify the assertion in case of failure</span>
</div><div id="l761" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l762" class="code_block"><span class="nb"> </span>
</div><div id="l763" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l764" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l765" class="code_block"><span class="nb">set h </span><span class="m">250</span>
</div><div id="l766" class="code_block"><span class="nb"># The program will abort if an assertion turns out to be wrong</span>
</div><div id="l767" class="code_block"><span class="nb">assert &quot;</span><span class="s">$</span>h &gt; 200&quot; InputCheck
</div><div id="l768" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l769" class="code_block"> 
</div><div id="l770" class="code_block">
</div><div id="l771" class="code_block"> 
</div><div id="l772" class="code_block"> 
</div><div id="l773" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Drawing commands: points and lines<span class="nb">}</span>
</div><div id="l774" class="code_block">
</div><div id="l775" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>moveto (m)<span class="nb">}</span>
</div><div id="l776" class="code_block">
</div><div id="l777" class="code_block"> Move the cursor to a new position. The new position is given by its coordinates.
</div><div id="l778" class="code_block"> 
</div><div id="l779" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l780" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>moveto<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l781" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>moveto<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span>
</div><div id="l782" class="code_block"> 
</div><div id="l783" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[x1 y1]
</div><div id="l784" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x1 y1}]</span>  new position
</div><div id="l785" class="code_block"> <span class="k">\item</span><span class="na">[\textit{pos1}]</span>  new position  
</div><div id="l786" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l787" class="code_block"> 
</div><div id="l788" class="code_block"> EXAMPLE
</div><div id="l789" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l790" class="code_block">set pos <span class="nb">{</span>50 0<span class="nb">}</span>
</div><div id="l791" class="code_block">moveto <span class="s">$</span><span class="nb">pos</span>
</div><div id="l792" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l793" class="code_block">
</div><div id="l794" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{movetox </span><span class="o">(</span><span class="nb">mx</span><span class="o">)</span><span class="nb">, movetoy </span><span class="o">(</span><span class="nb">my</span><span class="o">)</span><span class="nb">}</span>
</div><div id="l795" class="code_block">
</div><div id="l796" class="code_block"><span class="nb"> Move the cursor to a new x</span><span class="o">-</span><span class="nb">coordinate while keeping the y</span><span class="o">-</span><span class="nb">coordinate. Or move the cursor to a new y</span><span class="o">-</span><span class="nb">coordinate while keeping the x</span><span class="o">-</span><span class="nb">coordinate.</span>
</div><div id="l797" class="code_block"><span class="nb"> </span>
</div><div id="l798" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l799" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{movetox} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l800" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{movetox} </span><span class="nv">\textit</span><span class="nb">{posP}</span>
</div><div id="l801" class="code_block"><span class="nb"> </span>
</div><div id="l802" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">posP</span><span class="o">]</span>
</div><div id="l803" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  new x</span><span class="o">-</span><span class="nb">coordinate</span>
</div><div id="l804" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posP}</span><span class="o">]</span><span class="nb"> Position &quot;x</span><span class="m">1</span><span class="nb"> yP&quot;. The x</span><span class="o">-</span><span class="nb">coordinate is used only.</span>
</div><div id="l805" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l806" class="code_block"><span class="nb"> </span>
</div><div id="l807" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l808" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l809" class="code_block"><span class="nb">moveto </span><span class="m">50</span><span class="nb"> </span><span class="m">0</span>
</div><div id="l810" class="code_block"><span class="nb">movetox {</span><span class="m">60</span><span class="nb"> </span><span class="m">45</span><span class="nb">}</span>
</div><div id="l811" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">here</span><span class="o">]</span><span class="nb">;  # Prints </span><span class="m">60</span><span class="nb"> </span><span class="m">0</span><span class="nb">.</span>
</div><div id="l812" class="code_block"><span class="nb">movetoy </span><span class="m">30</span>
</div><div id="l813" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">here</span><span class="o">]</span><span class="nb">;  # Prints </span><span class="m">60</span><span class="nb"> </span><span class="m">30</span><span class="nb">.</span>
</div><div id="l814" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l815" class="code_block"><span class="nb"> </span>
</div><div id="l816" class="code_block"><span class="nb"> </span>
</div><div id="l817" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{moverel </span><span class="o">(</span><span class="nb">mr</span><span class="o">)</span><span class="nb">}</span>
</div><div id="l818" class="code_block">
</div><div id="l819" class="code_block"><span class="nb"> Move the cursor relative to the actual position.</span>
</div><div id="l820" class="code_block"><span class="nb"> </span>
</div><div id="l821" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l822" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{moverel} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\\</span>
</div><div id="l823" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{moverel} </span><span class="nv">\textit</span><span class="nb">{vector}</span>
</div><div id="l824" class="code_block"><span class="nb"> </span>
</div><div id="l825" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">vector</span><span class="o">]</span>
</div><div id="l826" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dx dy}</span><span class="o">]</span><span class="nb">  coordinate increment</span>
</div><div id="l827" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{vector}</span><span class="o">]</span><span class="nb">  vector of movement</span>
</div><div id="l828" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l829" class="code_block"><span class="nb"> </span>
</div><div id="l830" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l831" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l832" class="code_block"><span class="nb">moveto </span><span class="m">50</span><span class="nb"> </span><span class="m">0</span>
</div><div id="l833" class="code_block"><span class="nb">moverel </span><span class="m">10</span><span class="nb"> </span><span class="m">30</span>
</div><div id="l834" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">here</span><span class="o">]</span><span class="nb">;  # Prints </span><span class="m">60</span><span class="nb"> </span><span class="m">30</span><span class="nb">.</span>
</div><div id="l835" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l836" class="code_block"><span class="nb"> </span>
</div><div id="l837" class="code_block"><span class="nb"> </span>
</div><div id="l838" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{movepolar </span><span class="o">(</span><span class="nb">mp</span><span class="o">)</span><span class="nb">}</span>
</div><div id="l839" class="code_block">
</div><div id="l840" class="code_block"><span class="nb"> Move the cursor in polar direction relative to the actual position.</span>
</div><div id="l841" class="code_block"><span class="nb"> </span>
</div><div id="l842" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l843" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{movepolar} </span><span class="nv">\textit</span><span class="nb">{dL} </span><span class="nv">\textit</span><span class="nb">{α}</span>
</div><div id="l844" class="code_block"><span class="nb"> </span>
</div><div id="l845" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">dL</span><span class="o">]</span>
</div><div id="l846" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dL}</span><span class="o">]</span><span class="nb">  distance to current position</span>
</div><div id="l847" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{α}</span><span class="o">]</span><span class="nb">  azimuth </span><span class="o">(</span><span class="nb">angle to x</span><span class="o">-</span><span class="nb">axis, in degrees, clock</span><span class="o">-</span><span class="nb">wise</span><span class="o">)</span>
</div><div id="l848" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l849" class="code_block"><span class="nb"> </span>
</div><div id="l850" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l851" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l852" class="code_block"><span class="nb">moveto </span><span class="m">5</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">0</span><span class="nb">.</span><span class="m">0</span>
</div><div id="l853" class="code_block"><span class="nb">movepolar </span><span class="m">2</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">60</span>
</div><div id="l854" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">here</span><span class="o">]</span><span class="nb">;  # Prints </span><span class="m">6</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">732</span>
</div><div id="l855" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l856" class="code_block"><span class="nb"> </span>
</div><div id="l857" class="code_block"><span class="nb"> </span>
</div><div id="l858" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{point </span><span class="o">(</span><span class="nb">pt</span><span class="o">)</span><span class="nb">, dot}</span>
</div><div id="l859" class="code_block">
</div><div id="l860" class="code_block"><span class="nb"> Mark a point at the given coordinate. Moves the cursor there.</span>
</div><div id="l861" class="code_block"><span class="nb"> The point command draws a small circle </span><span class="o">(</span><span class="nb">diameter </span><span class="o">=</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">4</span><span class="nb"> </span><span class="s">$</span><span class="k">\times</span><span class="s">$</span><span class="nb"> linewidth</span><span class="o">)</span><span class="nb">, the dot command a larger one </span><span class="o">(</span><span class="nb">diameter </span><span class="nv">\SI</span><span class="nb">{</span><span class="m">1</span><span class="nb">.</span><span class="m">5</span><span class="nb">}{mm}</span><span class="o">)</span><span class="nb">.</span>
</div><div id="l862" class="code_block"><span class="nb"> </span>
</div><div id="l863" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l864" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{point} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l865" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{point} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l866" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{point}</span>
</div><div id="l867" class="code_block"><span class="nb"> </span>
</div><div id="l868" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="o">]</span>
</div><div id="l869" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  point coordinates</span>
</div><div id="l870" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  point position</span>
</div><div id="l871" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l872" class="code_block"><span class="nb"> </span>
</div><div id="l873" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l874" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l875" class="code_block"><span class="nb">dot </span><span class="m">50</span><span class="nb"> </span><span class="m">0</span><span class="nb">;            # Draws a dot.</span>
</div><div id="l876" class="code_block"><span class="nb">point </span><span class="m">70</span><span class="nb"> </span><span class="m">0</span><span class="nb">; label P; # Marks another point and names it P.</span>
</div><div id="l877" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l878" class="code_block"><span class="nb"> </span>
</div><div id="l879" class="code_block">
</div><div id="l880" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{line </span><span class="o">(</span><span class="nb">l</span><span class="o">)</span><span class="nb">, lineto </span><span class="o">(</span><span class="nb">l</span><span class="o">)</span><span class="nb">}</span>
</div><div id="l881" class="code_block">
</div><div id="l882" class="code_block"><span class="nb"> Draw a line from the first coordinate to the second one. Or draw a line from the actual cursor position to the given coordinate. Sets the cursor to the end of the line </span><span class="o">(</span><span class="nb">second coordinate {x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">)</span><span class="nb">.</span>
</div><div id="l883" class="code_block"><span class="nb"> </span>
</div><div id="l884" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l885" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{line} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\ldots</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l886" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{line} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\ldots</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l887" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{lineto} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l888" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{lineto} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span>
</div><div id="l889" class="code_block"><span class="nb"> </span>
</div><div id="l890" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">x</span><span class="m">0</span><span class="nb"> y</span><span class="m">0</span><span class="o">]</span>
</div><div id="l891" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb"> y</span><span class="m">0</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Beginning position of the line. Current position if omitted.</span>
</div><div id="l892" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  ending position of the line</span>
</div><div id="l893" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Beginning position of the line. Current position if omitted.</span>
</div><div id="l894" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  ending position of the line</span>
</div><div id="l895" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l896" class="code_block"><span class="nb"> </span>
</div><div id="l897" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l898" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l899" class="code_block"><span class="nb">line </span><span class="m">5</span><span class="nb"> </span><span class="m">5</span><span class="nb"> </span><span class="m">5</span><span class="nb"> </span><span class="m">30</span>
</div><div id="l900" class="code_block"><span class="nb">lineto </span><span class="m">30</span><span class="nb"> </span><span class="m">30</span>
</div><div id="l901" class="code_block"><span class="nb">set TR {</span><span class="m">30</span><span class="nb"> </span><span class="m">5</span><span class="nb">}</span>
</div><div id="l902" class="code_block"><span class="nb">lineto </span><span class="s">$</span>TR
</div><div id="l903" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l904" class="code_block">
</div><div id="l905" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>linetox (lx), linetoy (ly)<span class="nb">}</span>
</div><div id="l906" class="code_block">
</div><div id="l907" class="code_block"> Draw a horizontal line to a new x-coordinate. Or draw a vertical line to a new y-coordinate.
</div><div id="l908" class="code_block"> Equivalent to commands &quot;lineto [geom.tox <span class="k">\$</span>posP]&quot;.
</div><div id="l909" class="code_block"> 
</div><div id="l910" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l911" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>linetox<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l912" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>linetox<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posP<span class="nb">}</span>
</div><div id="l913" class="code_block"> 
</div><div id="l914" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[posP]
</div><div id="l915" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x1}]</span>  new x-coordinate
</div><div id="l916" class="code_block"> <span class="k">\item</span><span class="na">[\textit{posP}]</span>  Position &quot;x1 yP&quot;. The x-coordinate is used only.  
</div><div id="l917" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l918" class="code_block"> 
</div><div id="l919" class="code_block"> 
</div><div id="l920" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>linerel (lr)<span class="nb">}</span>
</div><div id="l921" class="code_block">
</div><div id="l922" class="code_block"> Draw a line from the actual cursor position to the given relative position. Sets the cursor to the end of the line.
</div><div id="l923" class="code_block"> 
</div><div id="l924" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l925" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>linerel<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dx<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dy<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l926" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>linerel<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>vector<span class="nb">}</span>
</div><div id="l927" class="code_block"> 
</div><div id="l928" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[vector]
</div><div id="l929" class="code_block"> <span class="k">\item</span><span class="na">[\textit{dx dy}]</span>  coordinate increment
</div><div id="l930" class="code_block"> <span class="k">\item</span><span class="na">[\textit{vector}]</span>  vector of movement
</div><div id="l931" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l932" class="code_block"> 
</div><div id="l933" class="code_block"> EXAMPLE
</div><div id="l934" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l935" class="code_block">moveto 5 5
</div><div id="l936" class="code_block">linerel 0 25
</div><div id="l937" class="code_block">linerel <span class="nb">{</span>25 0<span class="nb">}</span>
</div><div id="l938" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l939" class="code_block"> 
</div><div id="l940" class="code_block"> 
</div><div id="l941" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>linepolar (lp)<span class="nb">}</span>
</div><div id="l942" class="code_block">
</div><div id="l943" class="code_block"> Draw a line given its length and direction relative to the actual position.
</div><div id="l944" class="code_block"> Sets the cursor to the end of the line.
</div><div id="l945" class="code_block"> 
</div><div id="l946" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l947" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>linepolar<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dL<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>α<span class="nb">}</span>
</div><div id="l948" class="code_block"> 
</div><div id="l949" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[dL]
</div><div id="l950" class="code_block"> <span class="k">\item</span><span class="na">[\textit{dL}]</span>  distance to current position
</div><div id="l951" class="code_block"> <span class="k">\item</span><span class="na">[\textit{α}]</span>  azimuth (angle to x-axis, in degrees, clock-wise)
</div><div id="l952" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l953" class="code_block"> 
</div><div id="l954" class="code_block"> EXAMPLE
</div><div id="l955" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l956" class="code_block">moveto 5.0 0.0
</div><div id="l957" class="code_block">linepolar 2.0 60
</div><div id="l958" class="code_block">puts [here];  # Prints 6.0 1.732
</div><div id="l959" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l960" class="code_block"> 
</div><div id="l961" class="code_block"> 
</div><div id="l962" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>linemid (lm)<span class="nb">}</span>
</div><div id="l963" class="code_block">
</div><div id="l964" class="code_block"> Draw a line given its length and direction. The middle of the line is set at the cursor position.
</div><div id="l965" class="code_block"> The cursor does not move.
</div><div id="l966" class="code_block"> 
</div><div id="l967" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l968" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>linemid<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>L<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>α<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l969" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>linemid<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>L<span class="nb">}</span>
</div><div id="l970" class="code_block"> 
</div><div id="l971" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[L]
</div><div id="l972" class="code_block"> <span class="k">\item</span><span class="na">[\textit{L}]</span>  line length
</div><div id="l973" class="code_block"> <span class="k">\item</span><span class="na">[\textit{α}]</span> Orientation of the line. Horizontal (<span class="s">$</span><span class="nv">\alpha</span><span class="nb"> </span><span class="o">=</span><span class="nb"> </span><span class="m">0</span><span class="s">$</span>) if omitted.
</div><div id="l974" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l975" class="code_block"> 
</div><div id="l976" class="code_block"> EXAMPLE
</div><div id="l977" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l978" class="code_block">moveto 17.5 5
</div><div id="l979" class="code_block">linemid 25
</div><div id="l980" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l981" class="code_block"> 
</div><div id="l982" class="code_block"> 
</div><div id="l983" class="code_block"> <span class="k">\subsubsection</span><span class="nb">{</span>doubleline<span class="nb">}</span>
</div><div id="l984" class="code_block"> 
</div><div id="l985" class="code_block"> Draw two parallel lines defined by the axis in the middle of them (starting point and orientation), length and width. Similar to the <span class="k">\textit</span><span class="nb">{</span>rod<span class="nb">}</span> command but open.
</div><div id="l986" class="code_block"> Sets the cursor to the end point on the axis, L from the starting point.
</div><div id="l987" class="code_block"> 
</div><div id="l988" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l989" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>doubleline<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>L<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>w<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>α<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l990" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>doubleline<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>L<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>w<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l991" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>doubleline<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>L<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>w<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>α<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l992" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>doubleline<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>L<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>w<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l993" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>doubleline<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>L<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>w<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>α<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l994" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>doubleline<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>L<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>w<span class="nb">}</span>
</div><div id="l995" class="code_block"> 
</div><div id="l996" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[x0 y0]
</div><div id="l997" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x0 y0}]</span>  coordinates on centre axis
</div><div id="l998" class="code_block"> <span class="k">\item</span><span class="na">[\textit{pos0}]</span>  Coordinates on centre axis. If omitted current cursor position.
</div><div id="l999" class="code_block"> <span class="k">\item</span><span class="na">[\textit{L}]</span>  length
</div><div id="l1000" class="code_block"> <span class="k">\item</span><span class="na">[\textit{w}]</span>  width
</div><div id="l1001" class="code_block"> <span class="k">\item</span><span class="na">[\textit{α}]</span>  orientation, in degrees, clock-wise
</div><div id="l1002" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l1003" class="code_block"> 
</div><div id="l1004" class="code_block"> EXAMPLE
</div><div id="l1005" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l1006" class="code_block"> moveto 15 7
</div><div id="l1007" class="code_block"> doubleline 50 10 18
</div><div id="l1008" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l1009" class="code_block"> 
</div><div id="l1010" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdDoubleline<span class="nb">}</span>
</div><div id="l1011" class="code_block">
</div><div id="l1012" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>arc<span class="nb">}</span>
</div><div id="l1013" class="code_block">
</div><div id="l1014" class="code_block"> Draw an arc. Zero angle is where the x-axis points to. Clock-wise, consistent with the coordinate system. Sets the cursor to the centre.
</div><div id="l1015" class="code_block"> 
</div><div id="l1016" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l1017" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>arc<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>radius<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>startangle<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>endangle<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l1018" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>arc<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>radius<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>startangle<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>endangle<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l1019" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>arc<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>radius<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>startangle<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>endangle<span class="nb">}</span>
</div><div id="l1020" class="code_block"> 
</div><div id="l1021" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[startangle]
</div><div id="l1022" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x1 y1}]</span>  centre
</div><div id="l1023" class="code_block"> <span class="k">\item</span><span class="na">[\textit{pos1}]</span>   Centre. Current cursor position if omitted.
</div><div id="l1024" class="code_block"> <span class="k">\item</span><span class="na">[\textit{radius}]</span>  radius
</div><div id="l1025" class="code_block"> <span class="k">\item</span><span class="na">[\textit{startangle}]</span>  in degrees, clock-wise
</div><div id="l1026" class="code_block"> <span class="k">\item</span><span class="na">[\textit{endangle}]</span>  in degrees, clock-wise
</div><div id="l1027" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l1028" class="code_block"> 
</div><div id="l1029" class="code_block"> EXAMPLE
</div><div id="l1030" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l1031" class="code_block">set hour1 -60; set hour3 0
</div><div id="l1032" class="code_block"># Draw an arc from one-o-clock to three-o-clock
</div><div id="l1033" class="code_block">arc 50 0 20 <span class="s">$</span><span class="nb">hour</span><span class="m">1</span><span class="nb"> </span><span class="s">$</span>hour3
</div><div id="l1034" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l1035" class="code_block"> 
</div><div id="l1036" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdArc<span class="nb">}</span>
</div><div id="l1037" class="code_block"> 
</div><div id="l1038" class="code_block"> <span class="k">\subsubsection</span><span class="nb">{</span>arc2<span class="nb">}</span>
</div><div id="l1039" class="code_block"> 
</div><div id="l1040" class="code_block"> Draw an arc. It is defined by the starting point, a control point and the end point. The control point is on the tangent at the starting point. Sets the cursor to the last point.
</div><div id="l1041" class="code_block"> 
</div><div id="l1042" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l1043" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>arc2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xCtrl<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yCtrl<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l1044" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>arc2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xCtrl<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yCtrl<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l1045" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>quadcurve<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posCtrl<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l1046" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>quadcurve<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posCtrl<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span>
</div><div id="l1047" class="code_block"> 
</div><div id="l1048" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[xCtrl yCtrl]
</div><div id="l1049" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{x0 y0}]</span>  starting point
</div><div id="l1050" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{pos0}]</span>   Starting point. Current cursor position if omitted.
</div><div id="l1051" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{xCtrl yCtrl}]</span>  control point
</div><div id="l1052" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{posCtrl}]</span>   Control point. On tangent at starting point.
</div><div id="l1053" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{x1 y1}]</span>  end point
</div><div id="l1054" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{pos1}]</span>   end point
</div><div id="l1055" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l1056" class="code_block"> 
</div><div id="l1057" class="code_block">
</div><div id="l1058" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>quadcurve (parabola)<span class="nb">}</span>
</div><div id="l1059" class="code_block">
</div><div id="l1060" class="code_block"> Draw a parabola. It is defined by the starting point, a control point and the end point. The control point is the intersection point of the tangents at starting and end points. Sets the cursor to the last point.
</div><div id="l1061" class="code_block"> 
</div><div id="l1062" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l1063" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>quadcurve<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xCtrl<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yCtrl<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span>  <span class="k">\\</span>
</div><div id="l1064" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>quadcurve<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xCtrl<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yCtrl<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span>  <span class="k">\\</span>
</div><div id="l1065" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>quadcurve<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posCtrl<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l1066" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>quadcurve<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posCtrl<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span>
</div><div id="l1067" class="code_block"> 
</div><div id="l1068" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[xCtrl yCtrl]
</div><div id="l1069" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x0 y0}]</span>  starting point
</div><div id="l1070" class="code_block"> <span class="k">\item</span><span class="na">[\textit{pos0}]</span>   Starting point. Current cursor position if omitted.
</div><div id="l1071" class="code_block"> <span class="k">\item</span><span class="na">[\textit{xCtrl yCtrl}]</span>  control point
</div><div id="l1072" class="code_block"> <span class="k">\item</span><span class="na">[\textit{posCtrl}]</span>   Control point. Intersection of tangents.
</div><div id="l1073" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x1 y1}]</span>  end point
</div><div id="l1074" class="code_block"> <span class="k">\item</span><span class="na">[\textit{pos1}]</span>   end point
</div><div id="l1075" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l1076" class="code_block"> 
</div><div id="l1077" class="code_block"> EXAMPLE
</div><div id="l1078" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l1079" class="code_block">set A <span class="nb">{</span>20 10<span class="nb">}</span>; point <span class="s">$</span><span class="nb">A; label A</span>
</div><div id="l1080" class="code_block"><span class="nb">set B {</span><span class="m">60</span><span class="nb"> </span><span class="m">10</span><span class="nb">}; point </span><span class="s">$</span>B; label B
</div><div id="l1081" class="code_block">set C <span class="nb">{</span>40 30<span class="nb">}</span>
</div><div id="l1082" class="code_block">pen dashed 0.35 gray
</div><div id="l1083" class="code_block">line <span class="s">$</span><span class="nb">A </span><span class="s">$</span>C <span class="s">$</span><span class="nb">B;                   # Tangents</span>
</div><div id="l1084" class="code_block"><span class="nb">pen</span>
</div><div id="l1085" class="code_block"><span class="nb">point </span><span class="s">$</span>C; label C SE
</div><div id="l1086" class="code_block">quadcurve <span class="s">$</span><span class="nb">A </span><span class="s">$</span>C <span class="s">$</span><span class="nb">B;              # Parabola</span>
</div><div id="l1087" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1088" class="code_block"><span class="nb"> </span>
</div><div id="l1089" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdQuadcurve}</span>
</div><div id="l1090" class="code_block"><span class="nb"> </span>
</div><div id="l1091" class="code_block">
</div><div id="l1092" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{cubiccurve}</span>
</div><div id="l1093" class="code_block">
</div><div id="l1094" class="code_block"><span class="nb"> Draw a cubic parabola. It is defined by the starting point, two control points and the end point. The control points are on the tangents at the starting and end points. Sets the cursor to the last point.</span>
</div><div id="l1095" class="code_block"><span class="nb"> </span>
</div><div id="l1096" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1097" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{cubiccurve} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">Ctrl} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">0</span><span class="nb">Ctrl} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">Ctrl} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">Ctrl} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">}  </span><span class="nv">\\</span>
</div><div id="l1098" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{cubiccurve}  </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">Ctrl} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">0</span><span class="nb">Ctrl} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">Ctrl} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">Ctrl} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">}  </span><span class="nv">\\</span>
</div><div id="l1099" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{cubiccurve} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">Ctrl} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">Ctrl} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l1100" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{cubiccurve}  </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">Ctrl} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">Ctrl} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span>
</div><div id="l1101" class="code_block"><span class="nb"> </span>
</div><div id="l1102" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">x</span><span class="m">0</span><span class="nb">Ctrl y</span><span class="m">0</span><span class="nb">Ctrl</span><span class="o">]</span>
</div><div id="l1103" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb"> y</span><span class="m">0</span><span class="nb">}</span><span class="o">]</span><span class="nb">  starting point</span>
</div><div id="l1104" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">}</span><span class="o">]</span><span class="nb">   Starting point. Current cursor position if omitted.</span>
</div><div id="l1105" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">Ctrl y</span><span class="m">0</span><span class="nb">Ctrl}</span><span class="o">]</span><span class="nb">  first control point</span>
</div><div id="l1106" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">Ctrl}</span><span class="o">]</span><span class="nb">   first control point</span>
</div><div id="l1107" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">Ctrl y</span><span class="m">1</span><span class="nb">Ctrl}</span><span class="o">]</span><span class="nb">  second control point</span>
</div><div id="l1108" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">Ctrl}</span><span class="o">]</span><span class="nb">   second control point</span>
</div><div id="l1109" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  end point</span>
</div><div id="l1110" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">   end point.</span>
</div><div id="l1111" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1112" class="code_block"><span class="nb"> </span>
</div><div id="l1113" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1114" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1115" class="code_block"><span class="nb">set A {</span><span class="m">20</span><span class="nb"> </span><span class="m">10</span><span class="nb">}; point </span><span class="s">$</span>A; label A
</div><div id="l1116" class="code_block">set B <span class="nb">{</span>60 10<span class="nb">}</span>; point <span class="s">$</span><span class="nb">B; label B</span>
</div><div id="l1117" class="code_block"><span class="nb">set C</span><span class="m">1</span><span class="nb"> {</span><span class="m">30</span><span class="nb"> </span><span class="m">20</span><span class="nb">}</span>
</div><div id="l1118" class="code_block"><span class="nb">set C</span><span class="m">2</span><span class="nb"> {</span><span class="m">50</span><span class="nb">  </span><span class="m">5</span><span class="nb">}</span>
</div><div id="l1119" class="code_block"><span class="nb">pen dashed </span><span class="m">0</span><span class="nb">.</span><span class="m">35</span><span class="nb"> gray</span>
</div><div id="l1120" class="code_block"><span class="nb">line </span><span class="s">$</span>A <span class="s">$</span><span class="nb">C</span><span class="m">1</span><span class="nb">;              # tangents</span>
</div><div id="l1121" class="code_block"><span class="nb">line </span><span class="s">$</span>B <span class="s">$</span><span class="nb">C</span><span class="m">2</span>
</div><div id="l1122" class="code_block"><span class="nb">pen</span>
</div><div id="l1123" class="code_block"><span class="nb">point </span><span class="s">$</span>C1; label C1 E
</div><div id="l1124" class="code_block">point <span class="s">$</span><span class="nb">C</span><span class="m">2</span><span class="nb">; label C</span><span class="m">2</span><span class="nb"> W</span>
</div><div id="l1125" class="code_block"><span class="nb">cubiccurve </span><span class="s">$</span>A <span class="s">$</span><span class="nb">C</span><span class="m">1</span><span class="nb"> </span><span class="s">$</span>C2 <span class="s">$</span><span class="nb">B; # cubic parabola</span>
</div><div id="l1126" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1127" class="code_block"><span class="nb"> </span>
</div><div id="l1128" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdCubiccurve}</span>
</div><div id="l1129" class="code_block"><span class="nb"> </span>
</div><div id="l1130" class="code_block">
</div><div id="l1131" class="code_block"><span class="nb"> </span>
</div><div id="l1132" class="code_block"><span class="nb"> </span>
</div><div id="l1133" class="code_block"><span class="nv">\subsection</span><span class="nb">{Drawing commands: shapes and fills}</span>
</div><div id="l1134" class="code_block"><span class="nb"> </span>
</div><div id="l1135" class="code_block">
</div><div id="l1136" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{circle, fillcircle, hatchcircle}</span>
</div><div id="l1137" class="code_block">
</div><div id="l1138" class="code_block"><span class="nb"> Draw or fill a circle. Sets the cursor to the centre.</span>
</div><div id="l1139" class="code_block"><span class="nb"> </span>
</div><div id="l1140" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1141" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{circle} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{radius} </span><span class="nv">\\</span>
</div><div id="l1142" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{circle} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{radius} </span><span class="nv">\\</span>
</div><div id="l1143" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{circle} </span><span class="nv">\textit</span><span class="nb">{radius}</span>
</div><div id="l1144" class="code_block"><span class="nb"> </span>
</div><div id="l1145" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">radius</span><span class="o">]</span>
</div><div id="l1146" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  centre</span>
</div><div id="l1147" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">   centre</span>
</div><div id="l1148" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{radius}</span><span class="o">]</span><span class="nb">  radius</span>
</div><div id="l1149" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1150" class="code_block"><span class="nb"> </span>
</div><div id="l1151" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1152" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1153" class="code_block"><span class="nb">unitlength </span><span class="m">10</span>
</div><div id="l1154" class="code_block"><span class="nb">circle </span><span class="m">2</span><span class="nb">.</span><span class="m">5</span><span class="nb"> </span><span class="m">2</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">5</span><span class="nb">;          # Radius </span><span class="m">1</span><span class="nb">.</span><span class="m">5</span><span class="nb"> drawing units,</span>
</div><div id="l1155" class="code_block"><span class="nb">                             # thus equivalent to </span><span class="m">15</span><span class="nb"> mm</span>
</div><div id="l1156" class="code_block"><span class="nb">fillcircle </span><span class="m">6</span><span class="nb">.</span><span class="m">5</span><span class="nb"> </span><span class="m">2</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="o">[</span><span class="nb">mm </span><span class="m">1</span><span class="nb">.</span><span class="m">5</span><span class="o">]</span><span class="nb">; # Radius </span><span class="m">1</span><span class="nb">.</span><span class="m">5</span><span class="nb"> mm</span>
</div><div id="l1157" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1158" class="code_block"><span class="nb"> </span>
</div><div id="l1159" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdFillcircle}</span>
</div><div id="l1160" class="code_block"><span class="nb"> </span>
</div><div id="l1161" class="code_block"><span class="nb"> </span>
</div><div id="l1162" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{ellipse, fillellipse, hatchellipse}</span>
</div><div id="l1163" class="code_block">
</div><div id="l1164" class="code_block"><span class="nb"> Draw or fill an ellipse. Sets the cursor to the centre.</span>
</div><div id="l1165" class="code_block"><span class="nb"> </span>
</div><div id="l1166" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1167" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{ellipse} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{radius</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{radius</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{angle</span><span class="m">1</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l1168" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{ellipse} </span><span class="nv">\textit</span><span class="nb">{radius</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{radius</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{angle</span><span class="m">1</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l1169" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{ellipse} </span><span class="nv">\textit</span><span class="nb">{radius</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{radius</span><span class="m">2</span><span class="nb">}</span>
</div><div id="l1170" class="code_block"><span class="nb"> </span>
</div><div id="l1171" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">radius</span><span class="m">2</span><span class="o">]</span>
</div><div id="l1172" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">    centre</span>
</div><div id="l1173" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{radius</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  radius in first direction</span>
</div><div id="l1174" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{radius</span><span class="m">2</span><span class="nb">}</span><span class="o">]</span><span class="nb">  radius in second direction</span>
</div><div id="l1175" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{angle</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Angle in degrees between x</span><span class="o">-</span><span class="nb">axis and first direction, clock</span><span class="o">-</span><span class="nb">wise. </span><span class="m">0</span><span class="nb">° if omitted.</span>
</div><div id="l1176" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1177" class="code_block"><span class="nb"> </span>
</div><div id="l1178" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1179" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1180" class="code_block"><span class="nb">moveto </span><span class="m">50</span><span class="nb"> </span><span class="m">15</span>
</div><div id="l1181" class="code_block"><span class="nb">ellipse </span><span class="m">30</span><span class="nb"> </span><span class="m">10</span><span class="nb">  </span><span class="m">15</span>
</div><div id="l1182" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1183" class="code_block"><span class="nb"> </span>
</div><div id="l1184" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdEllipse}</span>
</div><div id="l1185" class="code_block"><span class="nb"> </span>
</div><div id="l1186" class="code_block">
</div><div id="l1187" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{rectangle </span><span class="o">(</span><span class="nb">rect</span><span class="o">)</span><span class="nb">}</span>
</div><div id="l1188" class="code_block">
</div><div id="l1189" class="code_block"><span class="nb"> Draw a rectangle defined by its width and height. See also box and rod commands.</span>
</div><div id="l1190" class="code_block"><span class="nb"> The cursor position remains at </span><span class="o">(</span><span class="nb">or moves to</span><span class="o">)</span><span class="nb"> the starting corner pos</span><span class="m">1</span><span class="nb">.</span>
</div><div id="l1191" class="code_block"><span class="nb"> </span>
</div><div id="l1192" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1193" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rectangle} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\\</span>
</div><div id="l1194" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rectangle} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\\</span>
</div><div id="l1195" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rectangle} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy}</span>
</div><div id="l1196" class="code_block"><span class="nb"> </span>
</div><div id="l1197" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="o">]</span>
</div><div id="l1198" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Coordinates of a corner. If omitted current cursor position.</span>
</div><div id="l1199" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Corner position </span><span class="o">(</span><span class="nb">usually top left</span><span class="o">)</span><span class="nb">. If omitted current cursor position.</span>
</div><div id="l1200" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dx}</span><span class="o">]</span><span class="nb">  width</span>
</div><div id="l1201" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dy}</span><span class="o">]</span><span class="nb">  height</span>
</div><div id="l1202" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1203" class="code_block"><span class="nb"> </span>
</div><div id="l1204" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1205" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1206" class="code_block"><span class="nb">moveto </span><span class="m">10</span><span class="nb"> </span><span class="m">7</span>
</div><div id="l1207" class="code_block"><span class="nb">rectangle </span><span class="m">50</span><span class="nb"> </span><span class="m">20</span>
</div><div id="l1208" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1209" class="code_block"><span class="nb"> </span>
</div><div id="l1210" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdRectangle}</span>
</div><div id="l1211" class="code_block">
</div><div id="l1212" class="code_block">
</div><div id="l1213" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{fillrectangle </span><span class="o">(</span><span class="nb">fillrect</span><span class="o">)</span><span class="nb">, hatchrectangle </span><span class="o">(</span><span class="nb">hatchrect</span><span class="o">)</span><span class="nb">}</span>
</div><div id="l1214" class="code_block">
</div><div id="l1215" class="code_block"><span class="nb"> Fill a rectangle defined by its width and height. The current position remains at </span><span class="o">(</span><span class="nb">or moves to</span><span class="o">)</span><span class="nb"> the starting corner pos</span><span class="m">1</span><span class="nb">. Use the command to set the background colour.</span>
</div><div id="l1216" class="code_block"><span class="nb"> </span>
</div><div id="l1217" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1218" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{fillrectangle} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\\</span>
</div><div id="l1219" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{fillrectangle} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\\</span>
</div><div id="l1220" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{fillrectangle} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy}</span>
</div><div id="l1221" class="code_block"><span class="nb"> </span>
</div><div id="l1222" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="o">]</span>
</div><div id="l1223" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Coordinates of a corner. If omitted current cursor position.</span>
</div><div id="l1224" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Corner position </span><span class="o">(</span><span class="nb">usually top left</span><span class="o">)</span><span class="nb">. If omitted current cursor position.</span>
</div><div id="l1225" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dx}</span><span class="o">]</span><span class="nb">  width</span>
</div><div id="l1226" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dy}</span><span class="o">]</span><span class="nb">  height</span>
</div><div id="l1227" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1228" class="code_block"><span class="nb"> </span>
</div><div id="l1229" class="code_block"><span class="nb"> EXAMPLE: For png image output, fill the sheet background with white colour </span><span class="o">(</span><span class="nb">instead of transparent background</span><span class="o">)</span><span class="nb">.</span>
</div><div id="l1230" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1231" class="code_block"><span class="nb">pen white</span>
</div><div id="l1232" class="code_block"><span class="nb">fillrect </span><span class="m">210</span><span class="nb"> </span><span class="m">297</span><span class="nb">; # Fill A</span><span class="m">4</span><span class="nb"> sheet</span>
</div><div id="l1233" class="code_block"><span class="nb">pen;              # Reset pen to black</span>
</div><div id="l1234" class="code_block"><span class="nb">unitlength </span><span class="m">10</span><span class="nb">;    # Set the scale: length in mm of a drawing unit</span>
</div><div id="l1235" class="code_block"><span class="nb">line </span><span class="m">2</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">0</span><span class="nb"> </span><span class="m">5</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">0</span>
</div><div id="l1236" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1237" class="code_block"><span class="nb"> </span>
</div><div id="l1238" class="code_block">
</div><div id="l1239" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{box, fillbox, hatchbox}</span>
</div><div id="l1240" class="code_block">
</div><div id="l1241" class="code_block"><span class="nb"> Draw or fill a rectangle defined by two diagonal corner points. The current position remains at </span><span class="o">(</span><span class="nb">or moves to</span><span class="o">)</span><span class="nb"> the starting corner pos</span><span class="m">1</span><span class="nb">.</span>
</div><div id="l1242" class="code_block"><span class="nb"> </span>
</div><div id="l1243" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1244" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{box} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">2</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l1245" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{box} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{posC} </span><span class="nv">\\</span>
</div><div id="l1246" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{box} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">2</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l1247" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{box} </span><span class="nv">\textit</span><span class="nb">{posC}</span>
</div><div id="l1248" class="code_block"><span class="nb"> </span>
</div><div id="l1249" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">parameter</span><span class="o">]</span>
</div><div id="l1250" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  First corner of the rectangle. Cursor position moves here.</span>
</div><div id="l1251" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  First corner of the rectangle. Cursor position moves here. If omitted current cursor position.</span>
</div><div id="l1252" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">2</span><span class="nb"> y</span><span class="m">2</span><span class="nb">}</span><span class="o">]</span><span class="nb">  diagonal corner of the rectangle</span>
</div><div id="l1253" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posC}</span><span class="o">]</span><span class="nb">  diagonal corner of the rectangle</span>
</div><div id="l1254" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1255" class="code_block"><span class="nb"> </span>
</div><div id="l1256" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1257" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1258" class="code_block"><span class="nb">moveto </span><span class="m">10</span><span class="nb"> </span><span class="m">7</span><span class="nb">;   # first corner </span><span class="o">(</span><span class="nb">here top left, but not necessarily</span><span class="o">)</span>
</div><div id="l1259" class="code_block"><span class="nb">hatchbox </span><span class="m">60</span><span class="nb"> </span><span class="m">27</span>
</div><div id="l1260" class="code_block"><span class="nb">box </span><span class="m">60</span><span class="nb"> </span><span class="m">27</span><span class="nb">;     # diagonal corner</span>
</div><div id="l1261" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1262" class="code_block"><span class="nb"> </span>
</div><div id="l1263" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdBox}</span>
</div><div id="l1264" class="code_block"><span class="nb"> </span>
</div><div id="l1265" class="code_block">
</div><div id="l1266" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{rectmid, fillrectmid, hatchrectmid}</span>
</div><div id="l1267" class="code_block">
</div><div id="l1268" class="code_block"><span class="nb"> Draw or fill a rectangle defined by its centre, width and height.</span>
</div><div id="l1269" class="code_block"><span class="nb"> The current position remains at </span><span class="o">(</span><span class="nb">or moves to</span><span class="o">)</span><span class="nb"> the centre.</span>
</div><div id="l1270" class="code_block"><span class="nb"> </span>
</div><div id="l1271" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1272" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rectmid} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\textit</span><span class="nb">{α} </span><span class="nv">\\</span>
</div><div id="l1273" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rectmid} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\textit</span><span class="nb">{α} </span><span class="nv">\\</span>
</div><div id="l1274" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rectmid} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\\</span>
</div><div id="l1275" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rectmid} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\\</span>
</div><div id="l1276" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rectmid} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\textit</span><span class="nb">{α} </span><span class="nv">\\</span>
</div><div id="l1277" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rectmid} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy}</span>
</div><div id="l1278" class="code_block"><span class="nb"> </span>
</div><div id="l1279" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="o">]</span>
</div><div id="l1280" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb"> centre</span>
</div><div id="l1281" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Centre. If omitted current cursor position.</span>
</div><div id="l1282" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dx}</span><span class="o">]</span><span class="nb">  width</span>
</div><div id="l1283" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dy}</span><span class="o">]</span><span class="nb">  height</span>
</div><div id="l1284" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{α}</span><span class="o">]</span><span class="nb"> Orientation of the rectangle. </span><span class="s">$</span><span class="k">\alpha</span> = 0<span class="s">$</span><span class="nb"> if omitted.</span>
</div><div id="l1285" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1286" class="code_block"><span class="nb"> </span>
</div><div id="l1287" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1288" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1289" class="code_block"><span class="nb">moveto </span><span class="m">30</span><span class="nb"> </span><span class="m">15</span>
</div><div id="l1290" class="code_block"><span class="nb">rectmid </span><span class="m">25</span><span class="nb"> </span><span class="m">15</span>
</div><div id="l1291" class="code_block"><span class="nb">moverel </span><span class="m">40</span><span class="nb"> </span><span class="m">0</span>
</div><div id="l1292" class="code_block"><span class="nb">rectmid </span><span class="m">25</span><span class="nb"> </span><span class="m">15</span><span class="nb"> </span><span class="m">18</span>
</div><div id="l1293" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1294" class="code_block"><span class="nb"> </span>
</div><div id="l1295" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdRectmid}</span>
</div><div id="l1296" class="code_block">
</div><div id="l1297" class="code_block">
</div><div id="l1298" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{rod, fillrod, hatchrod}</span>
</div><div id="l1299" class="code_block">
</div><div id="l1300" class="code_block"><span class="nb"> Draw or fill a rectangle defined by its axis </span><span class="o">(</span><span class="nb">starting point and orientation</span><span class="o">)</span><span class="nb">, length and width.</span>
</div><div id="l1301" class="code_block"><span class="nb"> Sets the cursor to the end point on the axis, L from the starting point.</span>
</div><div id="l1302" class="code_block"><span class="nb"> </span>
</div><div id="l1303" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1304" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rod} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{L} </span><span class="nv">\textit</span><span class="nb">{w} </span><span class="nv">\textit</span><span class="nb">{α} </span><span class="nv">\\</span>
</div><div id="l1305" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rod} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{L} </span><span class="nv">\textit</span><span class="nb">{w} </span><span class="nv">\\</span>
</div><div id="l1306" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rod} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{L} </span><span class="nv">\textit</span><span class="nb">{w} </span><span class="nv">\textit</span><span class="nb">{α} </span><span class="nv">\\</span>
</div><div id="l1307" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rod} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{L} </span><span class="nv">\textit</span><span class="nb">{w} </span><span class="nv">\\</span>
</div><div id="l1308" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rod} </span><span class="nv">\textit</span><span class="nb">{L} </span><span class="nv">\textit</span><span class="nb">{w} </span><span class="nv">\textit</span><span class="nb">{α} </span><span class="nv">\\</span>
</div><div id="l1309" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{rod} </span><span class="nv">\textit</span><span class="nb">{L} </span><span class="nv">\textit</span><span class="nb">{w}</span>
</div><div id="l1310" class="code_block"><span class="nb"> </span>
</div><div id="l1311" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">x</span><span class="m">0</span><span class="nb"> y</span><span class="m">0</span><span class="o">]</span>
</div><div id="l1312" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb"> y</span><span class="m">0</span><span class="nb">}</span><span class="o">]</span><span class="nb">  coordinates on rod axis</span>
</div><div id="l1313" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Coordinates on rod axis. If omitted current cursor position.</span>
</div><div id="l1314" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{L}</span><span class="o">]</span><span class="nb">  length</span>
</div><div id="l1315" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{w}</span><span class="o">]</span><span class="nb">  width</span>
</div><div id="l1316" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{α}</span><span class="o">]</span><span class="nb">  orientation, in degrees, clock</span><span class="o">-</span><span class="nb">wise</span>
</div><div id="l1317" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1318" class="code_block"><span class="nb"> </span>
</div><div id="l1319" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1320" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1321" class="code_block"><span class="nb">moveto </span><span class="m">15</span><span class="nb"> </span><span class="m">7</span>
</div><div id="l1322" class="code_block"><span class="nb">rod </span><span class="m">50</span><span class="nb"> </span><span class="m">10</span><span class="nb"> </span><span class="m">18</span>
</div><div id="l1323" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1324" class="code_block"><span class="nb"> </span>
</div><div id="l1325" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdRod}</span>
</div><div id="l1326" class="code_block"><span class="nb"> </span>
</div><div id="l1327" class="code_block">
</div><div id="l1328" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{polygon, fillpolygon, hatchpolygon}</span>
</div><div id="l1329" class="code_block">
</div><div id="l1330" class="code_block"><span class="nb"> Draw a polygon defined by at least three vertices. The current position moves to the starting vertex A. </span>
</div><div id="l1331" class="code_block"><span class="nb"> The command polygon </span><span class="nv">\$</span><span class="nb">A </span><span class="nv">\$</span><span class="nb">B </span><span class="nv">\$</span><span class="nb">C is equivalent to &quot;line </span><span class="nv">\$</span><span class="nb">A  </span><span class="nv">\$</span><span class="nb">B; lineto </span><span class="nv">\$</span><span class="nb">C; lineto </span><span class="nv">\$</span><span class="nb">A&quot;. </span>
</div><div id="l1332" class="code_block"><span class="nb"> </span>
</div><div id="l1333" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1334" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{polygon} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">3</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">3</span><span class="nb">} </span><span class="nv">\ldots</span><span class="nb"> </span><span class="nv">\ldots</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l1335" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{polygon} </span><span class="nv">\textit</span><span class="nb">{posA} </span><span class="nv">\textit</span><span class="nb">{posB} </span><span class="nv">\textit</span><span class="nb">{posC} </span><span class="nv">\ldots</span>
</div><div id="l1336" class="code_block"><span class="nb"> </span>
</div><div id="l1337" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">x</span><span class="m">2</span><span class="nb"> y</span><span class="m">2</span><span class="nb"> x</span><span class="m">3</span><span class="nb"> y</span><span class="m">4</span><span class="o">]</span>
</div><div id="l1338" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  First vertex of the polygon. Cursor position moves here.</span>
</div><div id="l1339" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posA}</span><span class="o">]</span><span class="nb">  	First vertex of the polygon. Cursor position moves here.</span>
</div><div id="l1340" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">2</span><span class="nb"> y</span><span class="m">2</span><span class="nb"> x</span><span class="m">3</span><span class="nb"> y</span><span class="m">4</span><span class="nb">}</span><span class="o">]</span><span class="nb">  further vertices</span>
</div><div id="l1341" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posB posC}</span><span class="o">]</span><span class="nb"> further vertices</span>
</div><div id="l1342" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1343" class="code_block"><span class="nb"> </span>
</div><div id="l1344" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1345" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1346" class="code_block"><span class="nb">set A {</span><span class="m">10</span><span class="nb"> </span><span class="m">10</span><span class="nb">}</span>
</div><div id="l1347" class="code_block"><span class="nb">set B {</span><span class="m">30</span><span class="nb"> </span><span class="m">15</span><span class="nb">}</span>
</div><div id="l1348" class="code_block"><span class="nb">set C {</span><span class="m">35</span><span class="nb"> </span><span class="m">25</span><span class="nb">}</span>
</div><div id="l1349" class="code_block"><span class="nb">set D { </span><span class="m">5</span><span class="nb"> </span><span class="m">30</span><span class="nb">}</span>
</div><div id="l1350" class="code_block"><span class="nb">polygon </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D</span>
</div><div id="l1351" class="code_block"><span class="nb">offset </span><span class="m">50</span><span class="nb"> </span><span class="m">0</span>
</div><div id="l1352" class="code_block"><span class="nb">pen lightgray</span>
</div><div id="l1353" class="code_block"><span class="nb">fillpolygon </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D</span>
</div><div id="l1354" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1355" class="code_block"><span class="nb"> </span>
</div><div id="l1356" class="code_block"><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdFillpolygon}</span>
</div><div id="l1357" class="code_block"><span class="nb"> </span>
</div><div id="l1358" class="code_block">
</div><div id="l1359" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{segment, fillsegment, hatchsegment}</span>
</div><div id="l1360" class="code_block">
</div><div id="l1361" class="code_block"><span class="nb"> Draw or fill a segment of a circle. Zero angle is where the x</span><span class="o">-</span><span class="nb">axis points to. Clock</span><span class="o">-</span><span class="nb">wise, consistent with the coordinate system. Sets the cursor to the centre.</span>
</div><div id="l1362" class="code_block"><span class="nb"> </span>
</div><div id="l1363" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1364" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{segment} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{radius} </span><span class="nv">\textit</span><span class="nb">{startangle} </span><span class="nv">\textit</span><span class="nb">{endangle} </span><span class="nv">\\</span>
</div><div id="l1365" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{segment} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{radius} </span><span class="nv">\textit</span><span class="nb">{startangle} </span><span class="nv">\textit</span><span class="nb">{endangle} </span><span class="nv">\\</span>
</div><div id="l1366" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{segment} </span><span class="nv">\textit</span><span class="nb">{radius} </span><span class="nv">\textit</span><span class="nb">{startangle} </span><span class="nv">\textit</span><span class="nb">{endangle}</span>
</div><div id="l1367" class="code_block"><span class="nb"> </span>
</div><div id="l1368" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">startangle</span><span class="o">]</span>
</div><div id="l1369" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  centre</span>
</div><div id="l1370" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">   Centre. Current cursor position if omitted.</span>
</div><div id="l1371" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{radius}</span><span class="o">]</span><span class="nb">  radius</span>
</div><div id="l1372" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{startangle}</span><span class="o">]</span><span class="nb">  in degrees, clock</span><span class="o">-</span><span class="nb">wise</span>
</div><div id="l1373" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{endangle}</span><span class="o">]</span><span class="nb">  in degrees, clock</span><span class="o">-</span><span class="nb">wise</span>
</div><div id="l1374" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1375" class="code_block"><span class="nb"> </span>
</div><div id="l1376" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1377" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1378" class="code_block"><span class="nb">set C {</span><span class="m">10</span><span class="nb"> </span><span class="m">7</span><span class="nb">}</span>
</div><div id="l1379" class="code_block"><span class="nb">set r </span><span class="m">25</span>
</div><div id="l1380" class="code_block"><span class="nb">set α </span><span class="o">-</span><span class="m">15</span>
</div><div id="l1381" class="code_block"><span class="nb">set β </span><span class="m">60</span>
</div><div id="l1382" class="code_block"><span class="nb">pen lightgray</span>
</div><div id="l1383" class="code_block"><span class="nb">fillsegment </span><span class="s">$</span>C <span class="s">$</span><span class="nb">r </span><span class="s">$</span>α <span class="s">$</span><span class="nb">β</span>
</div><div id="l1384" class="code_block"><span class="nb">pen black</span>
</div><div id="l1385" class="code_block"><span class="nb">segment </span><span class="s">$</span>r <span class="s">$</span><span class="nb">α </span><span class="s">$</span>β
</div><div id="l1386" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l1387" class="code_block"> 
</div><div id="l1388" class="code_block"><span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdFillsegment<span class="nb">}</span>
</div><div id="l1389" class="code_block"> 
</div><div id="l1390" class="code_block">
</div><div id="l1391" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>sector, fillsector, hatchsector<span class="nb">}</span>
</div><div id="l1392" class="code_block">
</div><div id="l1393" class="code_block"> Draw or fill a sector. Zero angle is where the x-axis points to. Clock-wise, consistent with the coordinate system. Sets the cursor to the centre.
</div><div id="l1394" class="code_block"> 
</div><div id="l1395" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l1396" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>sector<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>radius<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>startangle<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>endangle<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l1397" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>sector<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>radius<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>startangle<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>endangle<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l1398" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>sector<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>radius<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>startangle<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>endangle<span class="nb">}</span>
</div><div id="l1399" class="code_block"> 
</div><div id="l1400" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[startangle]
</div><div id="l1401" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x1 y1}]</span>  centre
</div><div id="l1402" class="code_block"> <span class="k">\item</span><span class="na">[\textit{pos1}]</span>   Centre. Current cursor position if omitted.
</div><div id="l1403" class="code_block"> <span class="k">\item</span><span class="na">[\textit{radius}]</span>  radius
</div><div id="l1404" class="code_block"> <span class="k">\item</span><span class="na">[\textit{startangle}]</span>  in degrees, clock-wise
</div><div id="l1405" class="code_block"> <span class="k">\item</span><span class="na">[\textit{endangle}]</span>  in degrees, clock-wise
</div><div id="l1406" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l1407" class="code_block"> 
</div><div id="l1408" class="code_block"> EXAMPLE
</div><div id="l1409" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l1410" class="code_block">set C <span class="nb">{</span>10 7<span class="nb">}</span>
</div><div id="l1411" class="code_block">set r 25
</div><div id="l1412" class="code_block">set α -15
</div><div id="l1413" class="code_block">set β 60
</div><div id="l1414" class="code_block">pen lightgray
</div><div id="l1415" class="code_block">fillsector <span class="s">$</span><span class="nb">C </span><span class="s">$</span>r <span class="s">$</span><span class="nb">α </span><span class="s">$</span>β
</div><div id="l1416" class="code_block">pen black
</div><div id="l1417" class="code_block">sector <span class="s">$</span><span class="nb">r </span><span class="s">$</span>α <span class="s">$</span><span class="nb">β</span>
</div><div id="l1418" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1419" class="code_block"><span class="nb"> </span>
</div><div id="l1420" class="code_block"><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdFillsector}</span>
</div><div id="l1421" class="code_block">
</div><div id="l1422" class="code_block">
</div><div id="l1423" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{image}</span>
</div><div id="l1424" class="code_block">
</div><div id="l1425" class="code_block"><span class="nb"> Insert an image. The cursor position does not move. Pdf files are interpreted, a subset of the specification is implemented. Pdf files created by scanners or by drawj</span><span class="m">2</span><span class="nb">d usually work, complex pdf with embedded fonts often do not. </span>
</div><div id="l1426" class="code_block"><span class="nb"> </span>
</div><div id="l1427" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1428" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{image} </span><span class="nv">\textit</span><span class="nb">{filename} </span><span class="nv">\textit</span><span class="nb">{dpi} </span><span class="nv">\textit</span><span class="nb">{pxX} </span><span class="nv">\textit</span><span class="nb">{pxY} </span><span class="nv">\textit</span><span class="nb">{</span><span class="m">1</span><span class="nb"> : x} </span><span class="nv">\\</span>
</div><div id="l1429" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{image} </span><span class="nv">\textit</span><span class="nb">{filename} </span><span class="nv">\textit</span><span class="nb">{dpi} </span><span class="nv">\textit</span><span class="nb">{pxX} </span><span class="nv">\textit</span><span class="nb">{pxY} </span><span class="nv">\\</span>
</div><div id="l1430" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{image} </span><span class="nv">\textit</span><span class="nb">{filename} </span><span class="nv">\textit</span><span class="nb">{dpi} </span><span class="nv">\\</span>
</div><div id="l1431" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{image} </span><span class="nv">\textit</span><span class="nb">{filename} </span><span class="nv">\\</span>
</div><div id="l1432" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{image} </span><span class="nv">\textit</span><span class="nb">{file.pdf} </span><span class="nv">\textit</span><span class="nb">{page} </span><span class="nv">\textit</span><span class="nb">{mmX} </span><span class="nv">\textit</span><span class="nb">{mmY} </span><span class="nv">\textit</span><span class="nb">{</span><span class="m">1</span><span class="nb"> : x} </span><span class="nv">\\</span>
</div><div id="l1433" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{image} </span><span class="nv">\textit</span><span class="nb">{file.pdf} </span><span class="nv">\textit</span><span class="nb">{page} </span><span class="nv">\textit</span><span class="nb">{mmX} </span><span class="nv">\textit</span><span class="nb">{mmY} </span><span class="nv">\\</span>
</div><div id="l1434" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{image} </span><span class="nv">\textit</span><span class="nb">{file.pdf} </span><span class="nv">\textit</span><span class="nb">{page} </span><span class="nv">\\</span>
</div><div id="l1435" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{image} </span><span class="nv">\textit</span><span class="nb">{file.pdf}</span>
</div><div id="l1436" class="code_block"><span class="nb"> </span>
</div><div id="l1437" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">mmX mmY</span><span class="o">]</span>
</div><div id="l1438" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{filename}</span><span class="o">]</span><span class="nb">  image file </span><span class="o">(*</span><span class="nb">.png|jpeg|bmp|svg</span><span class="o">)</span>
</div><div id="l1439" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{file.pdf}</span><span class="o">]</span><span class="nb">  portable document file </span><span class="o">(*</span><span class="nb">.pdf</span><span class="o">)</span>
</div><div id="l1440" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dpi}</span><span class="o">]</span><span class="nb">  Image resolution </span><span class="o">[</span><span class="nb">dots per inch</span><span class="o">]</span><span class="nb">. Default: </span><span class="m">200</span><span class="nb"> </span><span class="o">/</span><span class="nb"> </span><span class="m">96</span><span class="nb"> </span><span class="o">(</span><span class="nb">svg</span><span class="o">)</span>
</div><div id="l1441" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{page}</span><span class="o">]</span><span class="nb">  Selected page. If omitted the first page.</span>
</div><div id="l1442" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pxX pxY}</span><span class="o">]</span><span class="nb">  Pixel coordinates of insertion point. If omitted top left corner of the image.</span>
</div><div id="l1443" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{mmX mmY}</span><span class="o">]</span><span class="nb">  Coordinates </span><span class="o">[</span><span class="nb">mm</span><span class="o">]</span><span class="nb"> of insertion point. If omitted top left corner of the pdf.</span>
</div><div id="l1444" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{</span><span class="m">1</span><span class="nb"> : x}</span><span class="o">]</span><span class="nb">  Scale e.g. </span><span class="nv">\verb</span><span class="o">!</span><span class="m">100</span><span class="o">!</span><span class="nb">. If omitted or </span><span class="m">0</span><span class="nb"> the image will not be scaled to natural units.</span>
</div><div id="l1445" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1446" class="code_block"><span class="nb"> </span>
</div><div id="l1447" class="code_block"><span class="nb"> EXAMPLE:</span>
</div><div id="l1448" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1449" class="code_block"><span class="nb">unitlength </span><span class="o">[</span><span class="nb">expr </span><span class="m">1</span><span class="o">/</span><span class="m">200</span><span class="o">]</span><span class="nb"> m</span>
</div><div id="l1450" class="code_block"><span class="nb">image section.png </span><span class="m">200</span><span class="nb">  </span><span class="m">0</span><span class="nb"> </span><span class="m">0</span><span class="nb">  </span><span class="m">100</span><span class="nb">; # drawing </span><span class="m">1</span><span class="nb">:</span><span class="m">100</span><span class="nb"> scanned at </span><span class="m">200</span><span class="nb">dpi</span>
</div><div id="l1451" class="code_block"><span class="nb">label {</span><span class="m">1</span><span class="nb">:</span><span class="m">200</span><span class="nb">} SE</span>
</div><div id="l1452" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1453" class="code_block"><span class="nb"> </span>
</div><div id="l1454" class="code_block"><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdImage}</span>
</div><div id="l1455" class="code_block">
</div><div id="l1456" class="code_block"><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1457" class="code_block"><span class="nb">	unitlength </span><span class="o">[</span><span class="nb">expr </span><span class="m">1</span><span class="o">/</span><span class="m">200</span><span class="o">]</span><span class="nb"> m</span>
</div><div id="l1458" class="code_block"><span class="nb">	image section.pdf </span><span class="m">1</span><span class="nb">  </span><span class="m">0</span><span class="nb"> </span><span class="m">0</span><span class="nb">  </span><span class="m">100</span><span class="nb">; # drawing </span><span class="m">1</span><span class="nb">:</span><span class="m">100</span><span class="nb"> scanned to pdf</span>
</div><div id="l1459" class="code_block"><span class="nb">	label {</span><span class="m">1</span><span class="nb">:</span><span class="m">200</span><span class="nb">} SE</span>
</div><div id="l1460" class="code_block"><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1461" class="code_block">
</div><div id="l1462" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{dxf}</span>
</div><div id="l1463" class="code_block">
</div><div id="l1464" class="code_block"><span class="nb"> Insert a vector line drawing, e.g. a CAD dxf file. The cursor position does not move.</span>
</div><div id="l1465" class="code_block"><span class="nb"> Colour, line width, line style and font are taken from the current drawj</span><span class="m">2</span><span class="nb">d context </span><span class="o">(</span><span class="nb">dxf style attributes are neglected</span><span class="o">)</span><span class="nb">. Repeat the command to apply different pen styles to different dxf layers. Many elementary dxf entities are supported, including blocks </span><span class="o">(</span><span class="nb">single inserts only</span><span class="o">)</span><span class="nb">.</span>
</div><div id="l1466" class="code_block"><span class="nb"> </span>
</div><div id="l1467" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1468" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dxf} </span><span class="nv">\textit</span><span class="nb">{filename} </span><span class="nv">\textit</span><span class="nb">{unit} </span><span class="nv">\textit</span><span class="nb">{dX} </span><span class="nv">\textit</span><span class="nb">{dY} </span><span class="nv">\textit</span><span class="nb">{options} </span><span class="nv">\\</span>
</div><div id="l1469" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dxf} </span><span class="nv">\textit</span><span class="nb">{filename} </span><span class="nv">\textit</span><span class="nb">{unit} </span><span class="nv">\textit</span><span class="nb">{dX} </span><span class="nv">\textit</span><span class="nb">{dY} </span><span class="nv">\\</span>
</div><div id="l1470" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dxf} </span><span class="nv">\textit</span><span class="nb">{filename} </span><span class="nv">\textit</span><span class="nb">{unit} </span><span class="nv">\\</span>
</div><div id="l1471" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dxf} </span><span class="nv">\textit</span><span class="nb">{filename}</span>
</div><div id="l1472" class="code_block"><span class="nb"> </span>
</div><div id="l1473" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">filename</span><span class="o">]</span>
</div><div id="l1474" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{filename}</span><span class="o">]</span><span class="nb">  vector drawing file </span><span class="o">(*</span><span class="nb">.dxf|bgd|bgd.gz|csv</span><span class="o">)</span>
</div><div id="l1475" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{unit}</span><span class="o">]</span><span class="nb">  </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">mm</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">cm</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">meter</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">m</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">km</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">µm</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">nm</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">inch</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">in</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">foot</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ft</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">yard</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">yd</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">mile</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">point</span><span class="o">!</span><span class="nb">, </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">pt</span><span class="o">!</span><span class="nb"> | number in mm. Default: mm</span>
</div><div id="l1476" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dX dY}</span><span class="o">]</span><span class="nb">  Drawing coordinates of insertion point. If omitted origin </span><span class="m">0</span><span class="o">/</span><span class="m">0</span><span class="nb">.</span>
</div><div id="l1477" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{options}</span><span class="o">]</span><span class="nb">  Layer names </span><span class="o">(</span><span class="nb">if omitted all visible layers will be drawn, use prefix </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">&lt;&gt;</span><span class="o">!</span><span class="nb"> to exclude a layer</span><span class="o">)</span><span class="nb"> </span><span class="nv">\\</span><span class="nb"> or flags </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">:doText</span><span class="o">!</span><span class="nb"> </span><span class="o">(</span><span class="nb">default</span><span class="o">)</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">:noText</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">:doInsert</span><span class="o">!</span><span class="nb"> </span><span class="o">(</span><span class="nb">default</span><span class="o">)</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">:noInsert</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">:verbose</span><span class="o">!</span><span class="nb">. </span><span class="nv">\\</span><span class="nb"> Options shall be separated by commas.</span>
</div><div id="l1478" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1479" class="code_block"><span class="nb"> </span>
</div><div id="l1480" class="code_block"><span class="nb"> EXAMPLE:</span>
</div><div id="l1481" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1482" class="code_block"><span class="nb">unitlength </span><span class="o">[</span><span class="nb">expr </span><span class="m">1</span><span class="o">/</span><span class="m">20</span><span class="o">]</span><span class="nb"> m</span>
</div><div id="l1483" class="code_block"><span class="nb">pen black  </span><span class="m">0</span><span class="nb">.</span><span class="m">2</span>
</div><div id="l1484" class="code_block"><span class="nb">dxf section.dxf m  </span><span class="m">0</span><span class="nb">.</span><span class="m">2</span><span class="nb"> </span><span class="o">-</span><span class="m">2</span><span class="nb">.</span><span class="m">0</span><span class="nb">  {Section, Elevation}</span>
</div><div id="l1485" class="code_block"><span class="nb">pen red dashdotted</span>
</div><div id="l1486" class="code_block"><span class="nb">dxf section.dxf m  </span><span class="m">0</span><span class="nb">.</span><span class="m">2</span><span class="nb"> </span><span class="o">-</span><span class="m">2</span><span class="nb">.</span><span class="m">0</span><span class="nb">  Axes</span>
</div><div id="l1487" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1488" class="code_block">
</div><div id="l1489" class="code_block"><span class="nb"> </span>
</div><div id="l1490" class="code_block"><span class="nb"> </span>
</div><div id="l1491" class="code_block"><span class="nv">\subsection</span><span class="nb">{Drawing commands: labels and arrows}</span>
</div><div id="l1492" class="code_block"><span class="nb"> </span>
</div><div id="l1493" class="code_block">
</div><div id="l1494" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{label </span><span class="o">(</span><span class="nb">lb</span><span class="o">)</span><span class="nb">}</span>
</div><div id="l1495" class="code_block">
</div><div id="l1496" class="code_block"><span class="nb"> Label the position of the cursor. Or align a label in the middle of two points.</span>
</div><div id="l1497" class="code_block"><span class="nb"> </span>
</div><div id="l1498" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1499" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{label} </span><span class="nv">\textit</span><span class="nb">{Text} </span><span class="nv">\textit</span><span class="nb">{xA} </span><span class="nv">\textit</span><span class="nb">{yA} </span><span class="nv">\textit</span><span class="nb">{xB} </span><span class="nv">\textit</span><span class="nb">{yB} </span><span class="nv">\\</span>
</div><div id="l1500" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{label} </span><span class="nv">\textit</span><span class="nb">{Text} </span><span class="nv">\textit</span><span class="nb">{posA} </span><span class="nv">\textit</span><span class="nb">{posB} </span><span class="nv">\\</span>
</div><div id="l1501" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{label} </span><span class="nv">\textit</span><span class="nb">{Text} </span><span class="nv">\textit</span><span class="nb">{lineAB} </span><span class="nv">\\</span>
</div><div id="l1502" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{label} </span><span class="nv">\textit</span><span class="nb">{Text} </span><span class="nv">\textit</span><span class="nb">{placement} </span><span class="nv">\\</span>
</div><div id="l1503" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{label} </span><span class="nv">\textit</span><span class="nb">{Text}</span>
</div><div id="l1504" class="code_block"><span class="nb"> </span>
</div><div id="l1505" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">placement</span><span class="o">]</span>
</div><div id="l1506" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xA yA}</span><span class="o">]</span><span class="nb">  first point of imaginary line</span>
</div><div id="l1507" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xB yB}</span><span class="o">]</span><span class="nb">  second point of imaginary line</span>
</div><div id="l1508" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posA}</span><span class="o">]</span><span class="nb">  first point of imaginary line</span>
</div><div id="l1509" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posB}</span><span class="o">]</span><span class="nb">  second point of imaginary line</span>
</div><div id="l1510" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{lineAB}</span><span class="o">]</span><span class="nb">  imaginary line &quot;xA yA xB yB&quot;</span>
</div><div id="l1511" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{placement}</span><span class="o">]</span><span class="nb">  The placement of the label: </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">NE</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">BL</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">E</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">SE</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">S</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">SW</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">W</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">BW</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">NW</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">N</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">BC</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">C</span><span class="o">!</span><span class="nb">. </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">BLC</span><span class="o">!</span><span class="nb"> moves the cursor forward. If omitted NE.</span>
</div><div id="l1512" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{Text}</span><span class="o">]</span><span class="nb">  Label text. Unicode chars shall be UTF</span><span class="o">-</span><span class="m">8</span><span class="nb"> formatted or escaped using </span><span class="nv">\textit</span><span class="nb">{escu} and the hexadecimal index </span><span class="o">(</span><span class="nb">e.g. </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">escu</span><span class="m">00</span><span class="nb">b</span><span class="m">7</span><span class="o">!</span><span class="nb"> for the middle dot </span><span class="s">$</span><span class="k">\cdot</span><span class="s">$</span><span class="nb"> unicode char U</span><span class="o">+</span><span class="m">00</span><span class="nb">B</span><span class="m">7</span><span class="o">)</span><span class="nb">.</span>
</div><div id="l1513" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1514" class="code_block"><span class="nb"> </span>
</div><div id="l1515" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1516" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1517" class="code_block"><span class="nb">font Lines </span><span class="m">3</span><span class="nb">;              # Set font type and size</span>
</div><div id="l1518" class="code_block"><span class="nb">label &quot;</span><span class="o">(</span><span class="m">0</span><span class="o">/</span><span class="m">0</span><span class="o">)</span><span class="nb">&quot;</span>
</div><div id="l1519" class="code_block"><span class="nb">point </span><span class="m">20</span><span class="nb"> </span><span class="m">10</span><span class="nb">; set A </span><span class="o">[</span><span class="nb">here</span><span class="o">]</span>
</div><div id="l1520" class="code_block"><span class="nb">label North N</span>
</div><div id="l1521" class="code_block"><span class="nb">label East E</span>
</div><div id="l1522" class="code_block"><span class="nb">label South S</span>
</div><div id="l1523" class="code_block"><span class="nb">label West W</span>
</div><div id="l1524" class="code_block"><span class="nb">point </span><span class="m">90</span><span class="nb"> </span><span class="m">25</span><span class="nb">; set B </span><span class="o">[</span><span class="nb">here</span><span class="o">]</span>
</div><div id="l1525" class="code_block"><span class="nb">label &quot;North East&quot; NE;  label &quot;South East&quot; SE</span>
</div><div id="l1526" class="code_block"><span class="nb">label &quot;South West&quot; SW;  label &quot;North West&quot; NW</span>
</div><div id="l1527" class="code_block"><span class="nb">set color gray</span>
</div><div id="l1528" class="code_block"><span class="nb">pen </span><span class="s">$</span>color; pen dashed
</div><div id="l1529" class="code_block">line <span class="s">$</span><span class="nb">A </span><span class="s">$</span>B
</div><div id="l1530" class="code_block"># Note the label argument below: &quot;<span class="s">$</span><span class="nb">color&quot; evaluates variable, {</span><span class="s">$</span>color<span class="nb">}</span> would not.
</div><div id="l1531" class="code_block">font Lines italic 4
</div><div id="l1532" class="code_block">label &quot;<span class="s">$</span><span class="nb">color line&quot; </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span>
</div><div id="l1533" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1534" class="code_block"><span class="nb"> </span>
</div><div id="l1535" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdLabel}</span>
</div><div id="l1536" class="code_block"><span class="nb"> </span>
</div><div id="l1537" class="code_block">
</div><div id="l1538" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{texlabel </span><span class="o">(</span><span class="nb">tlb</span><span class="o">)</span><span class="nb">}</span>
</div><div id="l1539" class="code_block">
</div><div id="l1540" class="code_block"><span class="nb"> Label the position of the cursor using </span><span class="nv">\TeX\</span><span class="nb"> math syntax. Or align a label in the middle of two points.</span>
</div><div id="l1541" class="code_block"><span class="nb"> </span>
</div><div id="l1542" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1543" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{texlabel} </span><span class="nv">\textit</span><span class="nb">{Text} </span><span class="nv">\textit</span><span class="nb">{xA} </span><span class="nv">\textit</span><span class="nb">{yA} </span><span class="nv">\textit</span><span class="nb">{xB} </span><span class="nv">\textit</span><span class="nb">{yB} </span><span class="nv">\\</span>
</div><div id="l1544" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{texlabel} </span><span class="nv">\textit</span><span class="nb">{Text} </span><span class="nv">\textit</span><span class="nb">{posA} </span><span class="nv">\textit</span><span class="nb">{posB} </span><span class="nv">\\</span>
</div><div id="l1545" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{texlabel} </span><span class="nv">\textit</span><span class="nb">{Text} </span><span class="nv">\textit</span><span class="nb">{lineAB} </span><span class="nv">\\</span>
</div><div id="l1546" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{texlabel} </span><span class="nv">\textit</span><span class="nb">{Text} </span><span class="nv">\textit</span><span class="nb">{placement} </span><span class="nv">\\</span>
</div><div id="l1547" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{texlabel} </span><span class="nv">\textit</span><span class="nb">{Text}</span>
</div><div id="l1548" class="code_block"><span class="nb"> </span>
</div><div id="l1549" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">placement</span><span class="o">]</span>
</div><div id="l1550" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xA yA}</span><span class="o">]</span><span class="nb">  first point of imaginary line</span>
</div><div id="l1551" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xB yB}</span><span class="o">]</span><span class="nb">  second point of imaginary line</span>
</div><div id="l1552" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posA}</span><span class="o">]</span><span class="nb">  first point of imaginary line</span>
</div><div id="l1553" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posB}</span><span class="o">]</span><span class="nb">  second point of imaginary line</span>
</div><div id="l1554" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{lineAB}</span><span class="o">]</span><span class="nb">  imaginary line &quot;xA yA xB yB&quot;</span>
</div><div id="l1555" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{placement}</span><span class="o">]</span><span class="nb">  The placement of the label: </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">NE</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">BL</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">E</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">SE</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">S</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">SW</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">W</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">BW</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">NW</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">N</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">BC</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">C</span><span class="o">!</span><span class="nb">. </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">BLC</span><span class="o">!</span><span class="nb"> moves the cursor forward. If omitted NE.</span>
</div><div id="l1556" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{Text}</span><span class="o">]</span><span class="nb">  Label text using TeX syntax. If there is white space, enclose the text with curly brackets. If the text contains variables, use quotation marks instead. Within quotation marks any backslash must be escaped, thus a double backslash is required. </span><span class="nv">\\</span>
</div><div id="l1557" class="code_block"><span class="nb"> For values with a unit there is </span><span class="nv">\verb</span><span class="o">!</span><span class="nv">\SI</span><span class="nb">{value}{unit}</span><span class="o">!</span><span class="nb">.</span>
</div><div id="l1558" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1559" class="code_block"><span class="nb"> </span>
</div><div id="l1560" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1561" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1562" class="code_block"><span class="nb">point </span><span class="m">20</span><span class="nb"> </span><span class="m">10</span>
</div><div id="l1563" class="code_block"><span class="nb">texlabel {</span><span class="nv">\sqrt</span><span class="nb">{a^</span><span class="m">2</span><span class="o">+</span><span class="nb">b^</span><span class="m">2</span><span class="nb">} </span><span class="o">=</span><span class="nb"> c};  # Curly brackets</span>
</div><div id="l1564" class="code_block"><span class="nb">point </span><span class="m">40</span><span class="nb"> </span><span class="m">10</span>
</div><div id="l1565" class="code_block"><span class="nb">set a </span><span class="m">3</span><span class="nb">; set b </span><span class="m">4</span>
</div><div id="l1566" class="code_block"><span class="nb">texlabel &quot;</span><span class="nv">\\</span><span class="nb">sqrt{</span><span class="s">$</span>a<span class="nb">^</span>2+<span class="s">$</span><span class="nb">b^</span><span class="m">2</span><span class="nb">}</span><span class="o">=</span><span class="m">5</span><span class="nb">&quot;; # Double backslash</span>
</div><div id="l1567" class="code_block"><span class="nb">point </span><span class="m">70</span><span class="nb"> </span><span class="m">10</span>
</div><div id="l1568" class="code_block"><span class="nb">texlabel {</span><span class="nv">\frac</span><span class="nb">{</span><span class="nv">\sqrt</span><span class="nb">{a^</span><span class="m">2</span><span class="o">+</span><span class="nb">b^</span><span class="m">2</span><span class="nb">}}{c} </span><span class="o">=</span><span class="nb"> </span><span class="m">1</span><span class="nb">}</span>
</div><div id="l1569" class="code_block"><span class="nb">point </span><span class="m">100</span><span class="nb"> </span><span class="m">10</span>
</div><div id="l1570" class="code_block"><span class="nb">texlabel {</span><span class="nv">\displaystyle</span><span class="nb"> </span><span class="nv">\frac</span><span class="nb">{</span><span class="nv">\sqrt</span><span class="nb">{a^</span><span class="m">2</span><span class="o">+</span><span class="nb">b^</span><span class="m">2</span><span class="nb">}}{c} </span><span class="o">=</span><span class="nb"> </span><span class="m">1</span><span class="nb">}</span>
</div><div id="l1571" class="code_block">
</div><div id="l1572" class="code_block"><span class="nb">point </span><span class="m">10</span><span class="nb"> </span><span class="m">18</span>
</div><div id="l1573" class="code_block"><span class="nb">texlabel {Q_d </span><span class="o">=</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">5</span><span class="nb"> </span><span class="nv">\:</span><span class="nb"> Q_k </span><span class="o">=</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">5</span><span class="nb"> </span><span class="nv">\cdot</span><span class="nb"> </span><span class="nv">\SI</span><span class="nb">{</span><span class="m">6</span><span class="nb">.</span><span class="m">0</span><span class="nb">}{kN} </span><span class="o">=</span><span class="nb"> </span><span class="nv">\SI</span><span class="nb">{</span><span class="m">9</span><span class="nb">.</span><span class="m">0</span><span class="nb">}{kN}}</span>
</div><div id="l1574" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1575" class="code_block"><span class="nb"> </span>
</div><div id="l1576" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdTexlabel}</span>
</div><div id="l1577" class="code_block"><span class="nb"> </span>
</div><div id="l1578" class="code_block">
</div><div id="l1579" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{text}</span>
</div><div id="l1580" class="code_block">
</div><div id="l1581" class="code_block"><span class="nb"> Write some text. The words are wrapped if necessary. Sets the cursor a linefeed lower.</span>
</div><div id="l1582" class="code_block"><span class="nb"> </span>
</div><div id="l1583" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1584" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{text} </span><span class="nv">\textit</span><span class="nb">{Text} </span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{width}</span><span class="o">]</span><span class="nb">  </span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{alignment}</span><span class="o">]</span><span class="nv">\\</span>
</div><div id="l1585" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{text} </span><span class="nv">\textit</span><span class="nb">{Text} </span><span class="nv">\\</span>
</div><div id="l1586" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{text} </span>
</div><div id="l1587" class="code_block"><span class="nb"> </span>
</div><div id="l1588" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">alignment</span><span class="o">]</span>
</div><div id="l1589" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{width}</span><span class="o">]</span><span class="nb">  The available width for the text in drawing units. Words are wrapped if necessary. If omitted the last used width, initially </span><span class="nv">\SI</span><span class="nb">{</span><span class="m">150</span><span class="nb">}{mm}.</span>
</div><div id="l1590" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{alignment}</span><span class="o">]</span><span class="nb">  </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">left</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">justify</span><span class="o">!</span><span class="nb">. If omitted the last used alignment, initially left.</span>
</div><div id="l1591" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{Text}</span><span class="o">]</span><span class="nb">  Text. Unicode chars shall be UTF</span><span class="o">-</span><span class="m">8</span><span class="nb"> formatted or escaped using </span><span class="nv">\textit</span><span class="nb">{escu} and the hexadecimal index </span><span class="o">(</span><span class="nb">e.g. </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">escu</span><span class="m">00</span><span class="nb">b</span><span class="m">7</span><span class="o">!</span><span class="nb"> for the middle dot </span><span class="s">$</span><span class="k">\cdot</span><span class="s">$</span><span class="nb"> unicode char U</span><span class="o">+</span><span class="m">00</span><span class="nb">B</span><span class="m">7</span><span class="o">)</span><span class="nb">.</span>
</div><div id="l1592" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1593" class="code_block"><span class="nb"> </span>
</div><div id="l1594" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1595" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1596" class="code_block"><span class="nb">font &quot;Linux Libertine O&quot;</span>
</div><div id="l1597" class="code_block"><span class="nb">font bold </span><span class="m">5</span>
</div><div id="l1598" class="code_block"><span class="nb">text {Description} </span><span class="o">[</span><span class="nb">mm </span><span class="m">120</span><span class="o">]</span>
</div><div id="l1599" class="code_block"><span class="nb">font plain </span><span class="m">4</span>
</div><div id="l1600" class="code_block"><span class="nb">text;             # Empty line</span>
</div><div id="l1601" class="code_block"><span class="nb">text {Drawj</span><span class="m">2</span><span class="nb">d creates technical line drawings using a descriptive language. It writes pdf, svg, eps and emf vector graphics or png images. It runs on all platforms that run Java. It is inspired by Asymptote but with a tcl</span><span class="o">-</span><span class="nb">like syntax and </span><span class="m">2</span><span class="nb">D only.}</span>
</div><div id="l1602" class="code_block">
</div><div id="l1603" class="code_block"><span class="nb">dimlinerel </span><span class="o">[</span><span class="nb">mm </span><span class="m">120</span><span class="nb"> </span><span class="m">0</span><span class="o">]</span>
</div><div id="l1604" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1605" class="code_block"><span class="nb"> </span>
</div><div id="l1606" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdText}</span>
</div><div id="l1607" class="code_block"><span class="nb"> </span>
</div><div id="l1608" class="code_block">
</div><div id="l1609" class="code_block"><span class="nb"> </span>
</div><div id="l1610" class="code_block">
</div><div id="l1611" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{arrow, arrowto}</span>
</div><div id="l1612" class="code_block">
</div><div id="l1613" class="code_block"><span class="nb"> Draw an arrow from the first coordinate to the second one. Or draw an arrow from the actual cursor position to the given coordinate. Sets the cursor to the arrow head.</span>
</div><div id="l1614" class="code_block"><span class="nb"> </span>
</div><div id="l1615" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1616" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{arrow} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l1617" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{arrow} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l1618" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{arrowto} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l1619" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{arrowto} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span>
</div><div id="l1620" class="code_block"><span class="nb"> </span>
</div><div id="l1621" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">x</span><span class="m">0</span><span class="nb"> y</span><span class="m">0</span><span class="o">]</span>
</div><div id="l1622" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb"> y</span><span class="m">0</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Beginning position of the arrow. Current position if omitted.</span>
</div><div id="l1623" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  ending position of the arrow </span><span class="o">(</span><span class="nb">arrow head</span><span class="o">)</span>
</div><div id="l1624" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Beginning position of the arrow. Current position if omitted.</span>
</div><div id="l1625" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  ending position of the arrow </span><span class="o">(</span><span class="nb">arrow head</span><span class="o">)</span>
</div><div id="l1626" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1627" class="code_block"><span class="nb"> </span>
</div><div id="l1628" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1629" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1630" class="code_block"><span class="nb">arrow </span><span class="m">5</span><span class="nb"> </span><span class="m">5</span><span class="nb"> </span><span class="m">5</span><span class="nb"> </span><span class="m">30</span>
</div><div id="l1631" class="code_block"><span class="nb">arrowto </span><span class="m">30</span><span class="nb"> </span><span class="m">30</span>
</div><div id="l1632" class="code_block"><span class="nb">set TR {</span><span class="m">30</span><span class="nb"> </span><span class="m">5</span><span class="nb">}</span>
</div><div id="l1633" class="code_block"><span class="nb">arrowto </span><span class="s">$</span>TR
</div><div id="l1634" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l1635" class="code_block">
</div><div id="l1636" class="code_block">
</div><div id="l1637" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>arrows, arrowsto<span class="nb">}</span>
</div><div id="l1638" class="code_block">
</div><div id="l1639" class="code_block"> Draw a double headed arrow from the first coordinate to the second one. Or draw a double headed arrow from the actual cursor position to the given coordinate.
</div><div id="l1640" class="code_block"> Sets the cursor to the new position.
</div><div id="l1641" class="code_block"> 
</div><div id="l1642" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l1643" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>arrows<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l1644" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>arrows<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l1645" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>arrowsto<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l1646" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>arrowsto<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span>
</div><div id="l1647" class="code_block"> 
</div><div id="l1648" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[x0 y0]
</div><div id="l1649" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x0 y0}]</span>  Beginning position of the double headed arrow. Current position if omitted.
</div><div id="l1650" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x1 y1}]</span>  ending position of the double headed arrow
</div><div id="l1651" class="code_block"> <span class="k">\item</span><span class="na">[\textit{pos0}]</span>  Beginning position of the double headed arrow. Current position if omitted.
</div><div id="l1652" class="code_block"> <span class="k">\item</span><span class="na">[\textit{pos1}]</span>  ending position of the double headed arrow
</div><div id="l1653" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l1654" class="code_block"> 
</div><div id="l1655" class="code_block"> EXAMPLE
</div><div id="l1656" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l1657" class="code_block">arrows 5 5 5 30
</div><div id="l1658" class="code_block">arrowsto 30 30
</div><div id="l1659" class="code_block">set TR <span class="nb">{</span>30 5<span class="nb">}</span>
</div><div id="l1660" class="code_block">arrowsto <span class="s">$</span><span class="nb">TR</span>
</div><div id="l1661" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1662" class="code_block">
</div><div id="l1663" class="code_block">
</div><div id="l1664" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{arrowrel}</span>
</div><div id="l1665" class="code_block">
</div><div id="l1666" class="code_block"><span class="nb"> Draw an arrow from the actual cursor position to the given relative position.</span>
</div><div id="l1667" class="code_block"><span class="nb"> Sets the cursor to the arrow head.</span>
</div><div id="l1668" class="code_block"><span class="nb"> </span>
</div><div id="l1669" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1670" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{arrowrel} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\\</span>
</div><div id="l1671" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{arrowrel} </span><span class="nv">\textit</span><span class="nb">{vector}</span>
</div><div id="l1672" class="code_block"><span class="nb"> </span>
</div><div id="l1673" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">vector</span><span class="o">]</span>
</div><div id="l1674" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dx dy}</span><span class="o">]</span><span class="nb">  coordinate increment</span>
</div><div id="l1675" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{vector}</span><span class="o">]</span><span class="nb">  vector of movement</span>
</div><div id="l1676" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1677" class="code_block"><span class="nb"> </span>
</div><div id="l1678" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1679" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1680" class="code_block"><span class="nb">moveto </span><span class="m">5</span><span class="nb"> </span><span class="m">5</span>
</div><div id="l1681" class="code_block"><span class="nb">arrowrel </span><span class="m">0</span><span class="nb"> </span><span class="m">25</span>
</div><div id="l1682" class="code_block"><span class="nb">arrowrel {</span><span class="m">25</span><span class="nb"> </span><span class="m">0</span><span class="nb">}</span>
</div><div id="l1683" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1684" class="code_block">
</div><div id="l1685" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{arrowsrel}</span>
</div><div id="l1686" class="code_block">
</div><div id="l1687" class="code_block"><span class="nb"> Draw a double headed arrow from the actual cursor position to the given relative position.</span>
</div><div id="l1688" class="code_block"><span class="nb"> Sets the cursor to the new position.</span>
</div><div id="l1689" class="code_block"><span class="nb"> </span>
</div><div id="l1690" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1691" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{arrowsrel} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\\</span>
</div><div id="l1692" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{arrowsrel} </span><span class="nv">\textit</span><span class="nb">{vector}</span>
</div><div id="l1693" class="code_block"><span class="nb"> </span>
</div><div id="l1694" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">vector</span><span class="o">]</span>
</div><div id="l1695" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dx dy}</span><span class="o">]</span><span class="nb">  coordinate increment</span>
</div><div id="l1696" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{vector}</span><span class="o">]</span><span class="nb">  vector of movement</span>
</div><div id="l1697" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1698" class="code_block"><span class="nb"> </span>
</div><div id="l1699" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1700" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1701" class="code_block"><span class="nb">moveto </span><span class="m">5</span><span class="nb"> </span><span class="m">5</span>
</div><div id="l1702" class="code_block"><span class="nb">arrowsrel </span><span class="m">0</span><span class="nb"> </span><span class="m">25</span>
</div><div id="l1703" class="code_block"><span class="nb">arrowsrel {</span><span class="m">25</span><span class="nb"> </span><span class="m">0</span><span class="nb">}</span>
</div><div id="l1704" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1705" class="code_block">
</div><div id="l1706" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{force}</span>
</div><div id="l1707" class="code_block"><span class="nb"> analogy:  </span><span class="nv">\textbf</span><span class="nb">{texforce}</span>
</div><div id="l1708" class="code_block"><span class="nb"> </span><span class="nv">\nopagebreak</span>
</div><div id="l1709" class="code_block">
</div><div id="l1710" class="code_block"><span class="nb"> Draw a force arrow </span><span class="o">(</span><span class="nb">pointing away from the cursor</span><span class="o">)</span><span class="nb">. The label is either its absolute force value or any text. The command sets the cursor to the arrow head. The command does not do anything if the absolute force value is zero.</span>
</div><div id="l1711" class="code_block"><span class="nb"> See forceunitlength.</span>
</div><div id="l1712" class="code_block"><span class="nb"> </span>
</div><div id="l1713" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1714" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{force} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{Fx} </span><span class="nv">\textit</span><span class="nb">{Fy}  </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1715" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{force} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{Fx} </span><span class="nv">\textit</span><span class="nb">{Fy} </span><span class="nv">\\</span>
</div><div id="l1716" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{force} </span><span class="nv">\textit</span><span class="nb">{Fx} </span><span class="nv">\textit</span><span class="nb">{Fy} </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1717" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{force} </span><span class="nv">\textit</span><span class="nb">{Fx} </span><span class="nv">\textit</span><span class="nb">{Fy}</span>
</div><div id="l1718" class="code_block"><span class="nb"> </span>
</div><div id="l1719" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">Fx Fy</span><span class="o">]</span>
</div><div id="l1720" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb"> y</span><span class="m">0</span><span class="nb">}</span><span class="o">]</span><span class="nb">  force application point</span>
</div><div id="l1721" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{Fx Fy}</span><span class="o">]</span><span class="nb">  force components</span>
</div><div id="l1722" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{Label}</span><span class="o">]</span><span class="nb">  Label. If omitted the absolute force value is written. Use </span><span class="nv">\{\}</span><span class="nb"> or &quot;&quot; to suppress any labelling. The place</span><span class="o">-</span><span class="nb">holder </span><span class="nv">\%</span><span class="nb">f inserts the absolute value, e.g. </span><span class="nv">\{\%</span><span class="nb">.</span><span class="m">1</span><span class="nb">f kN</span><span class="nv">\}</span><span class="nb">.</span>
</div><div id="l1723" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1724" class="code_block"><span class="nb"> </span>
</div><div id="l1725" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1726" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1727" class="code_block"><span class="nb">point </span><span class="m">50</span><span class="nb"> </span><span class="m">5</span><span class="nb">; label P</span><span class="m">0</span>
</div><div id="l1728" class="code_block"><span class="nb">force </span><span class="m">5</span><span class="nb"> </span><span class="m">30</span><span class="nb">;                # Writes </span><span class="m">30</span><span class="nb">.</span><span class="m">4</span><span class="nb">. The cursor moves to the tip.</span>
</div><div id="l1729" class="code_block"><span class="nb">force </span><span class="o">-</span><span class="m">20</span><span class="nb"> </span><span class="m">0</span><span class="nb"> F;             # Writes F</span>
</div><div id="l1730" class="code_block"><span class="nb">force </span><span class="o">-</span><span class="m">18</span><span class="nb"> </span><span class="o">-</span><span class="m">24</span><span class="nb"> {</span><span class="c">%.0f kN};   # Writes 30 kN</span>
</div><div id="l1731" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1732" class="code_block"><span class="nb"> </span>
</div><div id="l1733" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdForce}</span>
</div><div id="l1734" class="code_block">
</div><div id="l1735" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{force</span><span class="m">2</span><span class="nb">}</span>
</div><div id="l1736" class="code_block"><span class="nb"> analogy:  </span><span class="nv">\textbf</span><span class="nb">{texforce</span><span class="m">2</span><span class="nb">}</span>
</div><div id="l1737" class="code_block"><span class="nb"> </span><span class="nv">\nopagebreak</span>
</div><div id="l1738" class="code_block">
</div><div id="l1739" class="code_block"><span class="nb"> Draw a force arrow </span><span class="o">(</span><span class="nb">pointing to the cursor</span><span class="o">)</span><span class="nb">. The label is either its absolute force value or any text. The command sets the cursor to the arrow head. The command does not do anything if the absolute force value is zero.</span>
</div><div id="l1740" class="code_block"><span class="nb"> See forceunitlength.</span>
</div><div id="l1741" class="code_block"><span class="nb"> </span>
</div><div id="l1742" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1743" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{force</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{Fx} </span><span class="nv">\textit</span><span class="nb">{Fy}  </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1744" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{force</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{Fx} </span><span class="nv">\textit</span><span class="nb">{Fy} </span><span class="nv">\\</span>
</div><div id="l1745" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{force</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{Fx} </span><span class="nv">\textit</span><span class="nb">{Fy} </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1746" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{force</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{Fx} </span><span class="nv">\textit</span><span class="nb">{Fy}</span>
</div><div id="l1747" class="code_block"><span class="nb"> </span>
</div><div id="l1748" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">Fx Fy</span><span class="o">]</span>
</div><div id="l1749" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  force application point</span>
</div><div id="l1750" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{Fx Fy}</span><span class="o">]</span><span class="nb">  force components</span>
</div><div id="l1751" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{Label}</span><span class="o">]</span><span class="nb">  Label. If omitted the absolute force value is written. Use </span><span class="nv">\{\}</span><span class="nb"> or &quot;&quot; to suppress any labelling. The place</span><span class="o">-</span><span class="nb">holder </span><span class="nv">\%</span><span class="nb">f inserts the absolute value, e.g. </span><span class="nv">\{\%</span><span class="nb">.</span><span class="m">1</span><span class="nb">f kN</span><span class="nv">\}</span><span class="nb">.</span>
</div><div id="l1752" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1753" class="code_block"><span class="nb"> </span>
</div><div id="l1754" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1755" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1756" class="code_block"><span class="nb">point </span><span class="m">50</span><span class="nb"> </span><span class="m">5</span><span class="nb">; label P</span><span class="m">0</span><span class="nb"> SW</span>
</div><div id="l1757" class="code_block"><span class="nb">force</span><span class="m">2</span><span class="nb"> </span><span class="m">5</span><span class="nb"> </span><span class="m">30</span><span class="nb">;            # Writes </span><span class="m">30</span><span class="nb">.</span><span class="m">4</span>
</div><div id="l1758" class="code_block"><span class="nb">force</span><span class="m">2</span><span class="nb"> </span><span class="o">-</span><span class="m">20</span><span class="nb"> </span><span class="m">0</span><span class="nb"> F;         # Writes F</span>
</div><div id="l1759" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1760" class="code_block"><span class="nb"> </span>
</div><div id="l1761" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdForce</span><span class="m">2</span><span class="nb">}</span>
</div><div id="l1762" class="code_block">
</div><div id="l1763" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{dimline, dimlineto}</span>
</div><div id="l1764" class="code_block"><span class="nb"> analogy:  </span><span class="nv">\textbf</span><span class="nb">{texdimline, texdimlineto}</span>
</div><div id="l1765" class="code_block"><span class="nb"> </span><span class="nv">\nopagebreak</span>
</div><div id="l1766" class="code_block">
</div><div id="l1767" class="code_block"><span class="nb"> Draw a dimension line </span><span class="o">(</span><span class="nb">e.g. double headed arrow</span><span class="o">)</span><span class="nb">. The label is either its length </span><span class="o">(</span><span class="nb">in drawing units</span><span class="o">)</span><span class="nb"> or any text.</span>
</div><div id="l1768" class="code_block"><span class="nb"> Sets the cursor to the new position </span><span class="o">(</span><span class="nb">last coordinate x</span><span class="m">1</span><span class="o">/</span><span class="nb">y</span><span class="m">1</span><span class="o">)</span><span class="nb">. </span><span class="nv">\\</span>
</div><div id="l1769" class="code_block"><span class="nb"> The command followed by just a natural number sets the number of decimal digits </span><span class="o">(</span><span class="nb">see dimlinerel for an example</span><span class="o">)</span><span class="nb">.</span>
</div><div id="l1770" class="code_block"><span class="nb"> </span>
</div><div id="l1771" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1772" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimline} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1773" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimline} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l1774" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimline} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1775" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimline} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l1776" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimline} </span><span class="nv">\textit</span><span class="nb">{decdigits} </span><span class="nv">\\</span>
</div><div id="l1777" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimline} </span><span class="nv">\textit</span><span class="nb">{style} </span><span class="nv">\\</span>
</div><div id="l1778" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimlineto} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1779" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimlineto} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l1780" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimlineto} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1781" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimlineto} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span>
</div><div id="l1782" class="code_block"><span class="nb"> </span>
</div><div id="l1783" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">decdigits</span><span class="o">]</span>
</div><div id="l1784" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb"> y</span><span class="m">0</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Beginning position of the dimension line. Current position if omitted.</span>
</div><div id="l1785" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  ending position of the dimension line</span>
</div><div id="l1786" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Beginning position of the dimension line. Current position if omitted.</span>
</div><div id="l1787" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  ending position of the dimension line</span>
</div><div id="l1788" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{Label}</span><span class="o">]</span><span class="nb">  Text. If omitted the length measured in drawing units is written. Use quotation marks if the label contains white space. The place</span><span class="o">-</span><span class="nb">holder </span><span class="nv">\%</span><span class="nb">f inserts the length value, e.g. &quot;</span><span class="nv">\%</span><span class="nb">.</span><span class="m">2</span><span class="nb">f m&quot;.</span>
</div><div id="l1789" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{decdigits}</span><span class="o">]</span><span class="nb">  Maximal number of decimal places to be written. This setting is used by any following dimension line command.</span>
</div><div id="l1790" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{style}</span><span class="o">]</span><span class="nb">  </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">arrows</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">dots</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">ticks</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">arrow</span><span class="o">!</span><span class="nb"> | </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">none</span><span class="o">!</span>
</div><div id="l1791" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1792" class="code_block"><span class="nb"> </span>
</div><div id="l1793" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1794" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1795" class="code_block"><span class="nb">set A {</span><span class="m">20</span><span class="nb"> </span><span class="m">25</span><span class="nb">}; point </span><span class="s">$</span>A; label A
</div><div id="l1796" class="code_block">set B <span class="nb">{</span>50 25<span class="nb">}</span>; point <span class="s">$</span><span class="nb">B; label B</span>
</div><div id="l1797" class="code_block"><span class="nb">set C {</span><span class="m">80</span><span class="nb"> </span><span class="m">25</span><span class="nb">}; point </span><span class="s">$</span>C; label C
</div><div id="l1798" class="code_block">dimline <span class="nb">{</span>0 0<span class="nb">}</span> <span class="s">$</span><span class="nb">A rA;             # Writes rA</span>
</div><div id="l1799" class="code_block"><span class="nb">dimlineto </span><span class="s">$</span>B;                    # Writes 30
</div><div id="l1800" class="code_block">dimlineto <span class="s">$</span><span class="nb">C &quot;</span><span class="c">%.2f m&quot;;           # Writes 30.00 m</span>
</div><div id="l1801" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1802" class="code_block"><span class="nb"> </span>
</div><div id="l1803" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdDimline}</span>
</div><div id="l1804" class="code_block">
</div><div id="l1805" class="code_block">
</div><div id="l1806" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{dimlinerel}</span>
</div><div id="l1807" class="code_block"><span class="nb"> analogy:  </span><span class="nv">\textbf</span><span class="nb">{texdimlinerel}</span>
</div><div id="l1808" class="code_block"><span class="nb"> </span><span class="nv">\nopagebreak</span>
</div><div id="l1809" class="code_block">
</div><div id="l1810" class="code_block"><span class="nb"> Draw a dimension line </span><span class="o">(</span><span class="nb">double headed arrow</span><span class="o">)</span><span class="nb"> from the cursor position to a relative position. The label is either its length </span><span class="o">(</span><span class="nb">in drawing units</span><span class="o">)</span><span class="nb"> or any text.</span>
</div><div id="l1811" class="code_block"><span class="nb"> Sets the cursor to the new position.</span>
</div><div id="l1812" class="code_block"><span class="nb"> </span>
</div><div id="l1813" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1814" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimlinerel} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1815" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimlinerel} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\\</span>
</div><div id="l1816" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimlinerel} </span><span class="nv">\textit</span><span class="nb">{vector} </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1817" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimlinerel} </span><span class="nv">\textit</span><span class="nb">{vector}</span>
</div><div id="l1818" class="code_block"><span class="nb"> </span>
</div><div id="l1819" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">vector</span><span class="o">]</span>
</div><div id="l1820" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dx dy}</span><span class="o">]</span><span class="nb">  coordinate increment</span>
</div><div id="l1821" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{vector}</span><span class="o">]</span><span class="nb">  vector of movement</span>
</div><div id="l1822" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{Label}</span><span class="o">]</span><span class="nb">  Text. If omitted the length measured in drawing units is written. Use quotation marks if the label contains white space. The place</span><span class="o">-</span><span class="nb">holder </span><span class="nv">\%</span><span class="nb">f inserts the length value, e.g. &quot;</span><span class="nv">\%</span><span class="nb">.</span><span class="m">2</span><span class="nb">f m&quot;.</span>
</div><div id="l1823" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1824" class="code_block"><span class="nb"> </span>
</div><div id="l1825" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1826" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1827" class="code_block"><span class="nb">moveto </span><span class="m">5</span><span class="nb"> </span><span class="m">5</span>
</div><div id="l1828" class="code_block"><span class="nb">dimline ticks;            # Sets the dimension line style.</span>
</div><div id="l1829" class="code_block"><span class="nb">dimlinerel </span><span class="m">0</span><span class="nb"> </span><span class="m">25</span><span class="nb">.</span><span class="m">0</span><span class="nb">;        # Writes </span><span class="m">25</span>
</div><div id="l1830" class="code_block"><span class="nb">dimlinerel {</span><span class="m">47</span><span class="nb">.</span><span class="m">333333</span><span class="nb"> </span><span class="m">0</span><span class="nb">}; # Writes </span><span class="m">47</span><span class="nb">.</span><span class="m">333</span>
</div><div id="l1831" class="code_block">
</div><div id="l1832" class="code_block"><span class="nb">dimline </span><span class="m">2</span><span class="nb">;                # Sets the number of decimal digits to </span><span class="m">2</span><span class="nb">.</span>
</div><div id="l1833" class="code_block"><span class="nb">dimlinerel {</span><span class="m">47</span><span class="nb">.</span><span class="m">333333</span><span class="nb"> </span><span class="m">0</span><span class="nb">}; # Writes </span><span class="m">47</span><span class="nb">.</span><span class="m">33</span>
</div><div id="l1834" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1835" class="code_block"><span class="nb"> </span>
</div><div id="l1836" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdDimlinerel}</span>
</div><div id="l1837" class="code_block"><span class="nb"> </span>
</div><div id="l1838" class="code_block">
</div><div id="l1839" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{dimangle}</span>
</div><div id="l1840" class="code_block"><span class="nb"> analogy:  </span><span class="nv">\textbf</span><span class="nb">{texdimangle}</span>
</div><div id="l1841" class="code_block"><span class="nb"> </span><span class="nv">\nopagebreak</span>
</div><div id="l1842" class="code_block">
</div><div id="l1843" class="code_block"><span class="nb"> Draw a dimension arc at a vertex. The label is either its angle in degrees or any text. Clock</span><span class="o">-</span><span class="nb">wise. </span>
</div><div id="l1844" class="code_block"><span class="nb"> The texdimangle command uses </span><span class="nv">\TeX\</span><span class="nb"> typesetting is used.</span>
</div><div id="l1845" class="code_block"><span class="nb"> Sets the cursor to the vertex </span><span class="o">(</span><span class="nb">pos</span><span class="m">0</span><span class="o">)</span><span class="nb">.</span>
</div><div id="l1846" class="code_block"><span class="nb"> </span>
</div><div id="l1847" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1848" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimangle} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{xP} </span><span class="nv">\textit</span><span class="nb">{yP} </span><span class="nv">\textit</span><span class="nb">{xQ} </span><span class="nv">\textit</span><span class="nb">{yQ} </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1849" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimangle} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{posP} </span><span class="nv">\textit</span><span class="nb">{posQ} </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1850" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimangle} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{xP} </span><span class="nv">\textit</span><span class="nb">{yP} </span><span class="nv">\textit</span><span class="nb">{xQ} </span><span class="nv">\textit</span><span class="nb">{yQ} </span><span class="nv">\\</span>
</div><div id="l1851" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimangle} </span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{posP} </span><span class="nv">\textit</span><span class="nb">{posQ} </span><span class="nv">\\</span>
</div><div id="l1852" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimangle} </span><span class="nv">\textit</span><span class="nb">{xP} </span><span class="nv">\textit</span><span class="nb">{yP} </span><span class="nv">\textit</span><span class="nb">{xQ} </span><span class="nv">\textit</span><span class="nb">{yQ} </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1853" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimangle} </span><span class="nv">\textit</span><span class="nb">{posP} </span><span class="nv">\textit</span><span class="nb">{posQ} </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1854" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimangle} </span><span class="nv">\textit</span><span class="nb">{xP} </span><span class="nv">\textit</span><span class="nb">{yP} </span><span class="nv">\textit</span><span class="nb">{xQ} </span><span class="nv">\textit</span><span class="nb">{yQ} </span><span class="nv">\\</span>
</div><div id="l1855" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimangle} </span><span class="nv">\textit</span><span class="nb">{posP} </span><span class="nv">\textit</span><span class="nb">{posQ} </span><span class="nv">\\</span>
</div><div id="l1856" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimangle} </span><span class="nv">\textit</span><span class="nb">{dirP} </span><span class="nv">\textit</span><span class="nb">{dirQ} </span><span class="nv">\textit</span><span class="nb">{Label} </span><span class="nv">\\</span>
</div><div id="l1857" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimangle} </span><span class="nv">\textit</span><span class="nb">{dirP} </span><span class="nv">\textit</span><span class="nb">{dirQ} </span><span class="nv">\\</span>
</div><div id="l1858" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{dimangle} </span><span class="nv">\textit</span><span class="nb">{decdigits} </span><span class="nv">\\</span>
</div><div id="l1859" class="code_block"><span class="nb"> </span>
</div><div id="l1860" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">decdigits</span><span class="o">]</span>
</div><div id="l1861" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">0</span><span class="nb"> y</span><span class="m">0</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Vertex. If omitted the current cursor position is assumed.</span>
</div><div id="l1862" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{pos</span><span class="m">0</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Vertex. If omitted the current cursor position is assumed.</span>
</div><div id="l1863" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xP yP}</span><span class="o">]</span><span class="nb">  adjacent vertex </span>
</div><div id="l1864" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posP}</span><span class="o">]</span><span class="nb">  adjacent vertex </span>
</div><div id="l1865" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xQ yQ}</span><span class="o">]</span><span class="nb">  adjacent vertex </span>
</div><div id="l1866" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posQ}</span><span class="o">]</span><span class="nb">  adjacent vertex </span>
</div><div id="l1867" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dirP}</span><span class="o">]</span><span class="nb">  azimuth to vertex </span>
</div><div id="l1868" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dirQ}</span><span class="o">]</span><span class="nb">  azimuth to vertex </span>
</div><div id="l1869" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{decdigits}</span><span class="o">]</span><span class="nb"> Maximal number of decimal places to be written. This setting is used by any following dimension arc </span><span class="o">(</span><span class="nb">dimangle</span><span class="o">/</span><span class="nb">texdimangle</span><span class="o">)</span><span class="nb"> command.</span>
</div><div id="l1870" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{Label}</span><span class="o">]</span><span class="nb">  Text. If omitted the angle measured in degrees is written. A &quot;.&quot; will draw the right angle sign </span><span class="o">(</span><span class="nb">whether the angle is </span><span class="m">90</span><span class="nv">\textdegree</span><span class="nb"> or not</span><span class="o">)</span><span class="nb">. The place</span><span class="o">-</span><span class="nb">holder </span><span class="nv">\%</span><span class="nb">f inserts the angle value, e.g. </span><span class="nv">\%</span><span class="nb">.</span><span class="m">2</span><span class="nb">f°.</span>
</div><div id="l1871" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1872" class="code_block"><span class="nb"> </span>
</div><div id="l1873" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1874" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1875" class="code_block"><span class="nb">polygon </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D</span>
</div><div id="l1876" class="code_block"><span class="nb">pen </span><span class="m">0</span><span class="nb">.</span><span class="m">2</span><span class="nb">; font </span><span class="m">3</span>
</div><div id="l1877" class="code_block"><span class="nb">dimangle </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>D
</div><div id="l1878" class="code_block">dimangle <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">A</span>
</div><div id="l1879" class="code_block"><span class="nb">dimangle </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D </span><span class="s">$</span>B
</div><div id="l1880" class="code_block">dimangle <span class="s">$</span><span class="nb">D </span><span class="s">$</span>A <span class="s">$</span><span class="nb">C</span>
</div><div id="l1881" class="code_block"><span class="nb">offset </span><span class="m">50</span><span class="nb"> </span><span class="m">0</span><span class="nb">; pen;   # Drawing to the right</span>
</div><div id="l1882" class="code_block"><span class="nb">polygon </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D</span>
</div><div id="l1883" class="code_block"><span class="nb">pen </span><span class="m">0</span><span class="nb">.</span><span class="m">2</span>
</div><div id="l1884" class="code_block"><span class="nb">dimangle </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>D α
</div><div id="l1885" class="code_block">dimangle <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">A β</span>
</div><div id="l1886" class="code_block"><span class="nb">dimangle </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D </span><span class="s">$</span>B γ
</div><div id="l1887" class="code_block">dimangle <span class="s">$</span><span class="nb">D </span><span class="s">$</span>A <span class="s">$</span><span class="nb">C δ</span>
</div><div id="l1888" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1889" class="code_block"><span class="nb"> </span>
</div><div id="l1890" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdDimangle}</span>
</div><div id="l1891" class="code_block"><span class="nb"> </span>
</div><div id="l1892" class="code_block"><span class="nb"> EXAMPLE using </span><span class="nv">\TeX\</span><span class="nb"> typesetting</span>
</div><div id="l1893" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1894" class="code_block"><span class="nb">polygon </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D</span>
</div><div id="l1895" class="code_block"><span class="nb">pen </span><span class="m">0</span><span class="nb">.</span><span class="m">2</span><span class="nb">; font </span><span class="m">3</span>
</div><div id="l1896" class="code_block"><span class="nb">texdimangle </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>D
</div><div id="l1897" class="code_block">texdimangle <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">A</span>
</div><div id="l1898" class="code_block"><span class="nb">texdimangle </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D </span><span class="s">$</span>B
</div><div id="l1899" class="code_block">texdimangle <span class="s">$</span><span class="nb">D </span><span class="s">$</span>A <span class="s">$</span><span class="nb">C</span>
</div><div id="l1900" class="code_block"><span class="nb">offset </span><span class="m">50</span><span class="nb"> </span><span class="m">0</span><span class="nb">; pen;            # Drawing to the right</span>
</div><div id="l1901" class="code_block"><span class="nb">polygon </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D</span>
</div><div id="l1902" class="code_block"><span class="nb">pen </span><span class="m">0</span><span class="nb">.</span><span class="m">2</span>
</div><div id="l1903" class="code_block"><span class="nb">texdimangle </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>D <span class="nb">{</span><span class="k">\alpha</span><span class="nb">}</span>
</div><div id="l1904" class="code_block">texdimangle <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">A {</span><span class="nv">\beta</span><span class="nb">}</span>
</div><div id="l1905" class="code_block"><span class="nb">texdimangle </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D </span><span class="s">$</span>B γ
</div><div id="l1906" class="code_block">texdimangle <span class="s">$</span><span class="nb">D </span><span class="s">$</span>A <span class="s">$</span><span class="nb">C δ</span>
</div><div id="l1907" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1908" class="code_block"><span class="nb"> </span>
</div><div id="l1909" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdTexdimangle}</span>
</div><div id="l1910" class="code_block"><span class="nb"> </span>
</div><div id="l1911" class="code_block">
</div><div id="l1912" class="code_block"><span class="nv">\subsection</span><span class="nb">{Utility commands: blocks}</span>
</div><div id="l1913" class="code_block">
</div><div id="l1914" class="code_block"><span class="nb">A block is an invisible frame in the drawing that has its own coordinate system. It is useful to insert part drawings from a library. A block can be rotated or mirrored, without influencing the main coordinate system.</span>
</div><div id="l1915" class="code_block"><span class="nb"> </span>
</div><div id="l1916" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{block, endblock}</span>
</div><div id="l1917" class="code_block">
</div><div id="l1918" class="code_block"><span class="nb">The block command starts its own coordinate system. Its origin is at the current location. The endblock command puts back the previous coordinate system and the cursor is placed where it was when the block command was called. A block also encapsulates the commands unitlength or forceunitlength. Blocks may be nested.</span>
</div><div id="l1919" class="code_block"><span class="nb"> </span>
</div><div id="l1920" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1921" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{block} </span><span class="nv">\\</span>
</div><div id="l1922" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{endblock}</span>
</div><div id="l1923" class="code_block"><span class="nb"> </span>
</div><div id="l1924" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1925" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1926" class="code_block"><span class="nb">arrowto </span><span class="m">30</span><span class="nb"> </span><span class="m">10</span>
</div><div id="l1927" class="code_block"><span class="nb">pen dashed </span><span class="m">0</span><span class="nb">.</span><span class="m">25</span><span class="nb"> gray</span>
</div><div id="l1928" class="code_block"><span class="nb">block</span>
</div><div id="l1929" class="code_block"><span class="nb">	arrow </span><span class="m">0</span><span class="nb"> </span><span class="m">0</span><span class="nb">  </span><span class="m">20</span><span class="nb"> </span><span class="m">0</span><span class="nb">; label x S</span>
</div><div id="l1930" class="code_block"><span class="nb">	arrow </span><span class="m">0</span><span class="nb"> </span><span class="m">0</span><span class="nb">  </span><span class="m">0</span><span class="nb"> </span><span class="m">20</span><span class="nb">; label y E</span>
</div><div id="l1931" class="code_block"><span class="nb">	dot </span><span class="m">10</span><span class="nb"> </span><span class="m">10</span>
</div><div id="l1932" class="code_block"><span class="nb">	label &quot;</span><span class="o">([</span><span class="nb">here</span><span class="o">])</span><span class="nb"> within a block&quot;</span>
</div><div id="l1933" class="code_block"><span class="nb">endblock</span>
</div><div id="l1934" class="code_block"><span class="nb">pen</span>
</div><div id="l1935" class="code_block"><span class="nb">dot</span>
</div><div id="l1936" class="code_block"><span class="nb">label &quot;</span><span class="o">([</span><span class="nb">here</span><span class="o">])</span><span class="nb"> in main coordinate system&quot;</span>
</div><div id="l1937" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1938" class="code_block"><span class="nb"> </span>
</div><div id="l1939" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdBlock}</span>
</div><div id="l1940" class="code_block">
</div><div id="l1941" class="code_block"><span class="nb">The block coordinate system can be manipulated using the commands block.rotate, block.flip, block.scale or offset.</span>
</div><div id="l1942" class="code_block"><span class="nb"> </span>
</div><div id="l1943" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{block.rotate}</span>
</div><div id="l1944" class="code_block">
</div><div id="l1945" class="code_block"><span class="nb">Rotate the block&#39;s coordinate system. The cursor stays at its absolute position.</span>
</div><div id="l1946" class="code_block"><span class="nb"> </span>
</div><div id="l1947" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1948" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{block.rotate} </span><span class="nv">\textit</span><span class="nb">{α}</span>
</div><div id="l1949" class="code_block"><span class="nb"> </span>
</div><div id="l1950" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">α</span><span class="o">]</span>
</div><div id="l1951" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{α}</span><span class="o">]</span><span class="nb">  azimuth </span><span class="o">(</span><span class="nb">angle to global x</span><span class="o">-</span><span class="nb">axis, in degrees, clock</span><span class="o">-</span><span class="nb">wise</span><span class="o">)</span>
</div><div id="l1952" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l1953" class="code_block"><span class="nb"> </span>
</div><div id="l1954" class="code_block"><span class="nb">Blocks are useful for inserting drawing blocks, e.g from a separate file </span><span class="o">(</span><span class="nb">block; source externaldrawing.hcl; endblock</span><span class="o">)</span><span class="nb">. In the example below a typical part is wrapped in a procedure </span><span class="o">(</span><span class="nb">see chapter </span><span class="nv">\ref</span><span class="nb">{ProgrammingCommands}</span><span class="o">)</span><span class="nb">.</span>
</div><div id="l1955" class="code_block"><span class="nb"> </span>
</div><div id="l1956" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l1957" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l1958" class="code_block"><span class="nb"># The procedure could be put in a file library.hcl</span>
</div><div id="l1959" class="code_block"><span class="nb"># and then loaded by the command: source library.hcl</span>
</div><div id="l1960" class="code_block"><span class="nb">proc bearing {rot} {</span>
</div><div id="l1961" class="code_block"><span class="nb">	block</span>
</div><div id="l1962" class="code_block"><span class="nb">	block.rotate </span><span class="s">$</span>rot
</div><div id="l1963" class="code_block">	set bl [mm 4]; # baselength
</div><div id="l1964" class="code_block">	set ofs [+ [mm 0.25] [* 0.05 <span class="s">$</span><span class="nb">bl</span><span class="o">]]</span><span class="nb">; # offset</span>
</div><div id="l1965" class="code_block"><span class="nb">	set ofl </span><span class="o">[+</span><span class="nb"> </span><span class="o">[</span><span class="nb">mm </span><span class="m">0</span><span class="nb">.</span><span class="m">25</span><span class="o">]</span><span class="nb"> </span><span class="o">[*</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">3</span><span class="nb"> </span><span class="s">$</span>bl]]; # line offset
</div><div id="l1966" class="code_block">	moveto 0 <span class="s">$</span><span class="nb">ofs</span>
</div><div id="l1967" class="code_block"><span class="nb">	linerel </span><span class="o">[</span><span class="nb">½ </span><span class="o">-</span><span class="s">$</span>bl] <span class="s">$</span><span class="nb">bl</span>
</div><div id="l1968" class="code_block"><span class="nb">	linerel </span><span class="s">$</span>bl 0
</div><div id="l1969" class="code_block">	lineto 0 <span class="s">$</span><span class="nb">ofs</span>
</div><div id="l1970" class="code_block"><span class="nb">	moveto </span><span class="o">[</span><span class="nb">½ </span><span class="o">-</span><span class="s">$</span>bl] <span class="s">$</span><span class="nb">ofl</span>
</div><div id="l1971" class="code_block"><span class="nb">	linerel </span><span class="s">$</span>bl 0
</div><div id="l1972" class="code_block">	endblock
</div><div id="l1973" class="code_block"><span class="nb">}</span>
</div><div id="l1974" class="code_block">
</div><div id="l1975" class="code_block">set A <span class="nb">{</span>25 20<span class="nb">}</span>
</div><div id="l1976" class="code_block">set B <span class="nb">{</span>65 10<span class="nb">}</span>
</div><div id="l1977" class="code_block">set β [geom.azimuth <span class="s">$</span><span class="nb">A </span><span class="s">$</span>B]
</div><div id="l1978" class="code_block">moveto <span class="s">$</span><span class="nb">A</span>
</div><div id="l1979" class="code_block"><span class="nb">bearing </span><span class="m">0</span>
</div><div id="l1980" class="code_block"><span class="nb">bearing </span><span class="m">90</span>
</div><div id="l1981" class="code_block"><span class="nb">lineto </span><span class="s">$</span>B
</div><div id="l1982" class="code_block">bearing <span class="s">$</span><span class="nb">β</span>
</div><div id="l1983" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l1984" class="code_block"><span class="nb"> </span>
</div><div id="l1985" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdBlock</span><span class="m">2</span><span class="nb">}</span>
</div><div id="l1986" class="code_block"><span class="nb"> </span>
</div><div id="l1987" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{block.flip}</span>
</div><div id="l1988" class="code_block">
</div><div id="l1989" class="code_block"><span class="nb">Flip the block&#39;s coordinate system. Thus the local y</span><span class="o">-</span><span class="nb">axis points upwards instead of downwards. Be aware that labels will be mirrored too. The cursor stays at its absolute position.</span>
</div><div id="l1990" class="code_block"><span class="nb"> </span>
</div><div id="l1991" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1992" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{block.flip}</span>
</div><div id="l1993" class="code_block"><span class="nb"> </span>
</div><div id="l1994" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{block.scale}</span>
</div><div id="l1995" class="code_block">
</div><div id="l1996" class="code_block"><span class="nb">Scale the local axes. These scale factors are applied to the previous scale. Be aware that everything will be scaled, e.g. line widths and labels too.</span>
</div><div id="l1997" class="code_block"><span class="nb"> </span>
</div><div id="l1998" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l1999" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{block.scale} </span><span class="nv">\textit</span><span class="nb">{sx} </span><span class="nv">\textit</span><span class="nb">{sy} </span><span class="nv">\\</span>
</div><div id="l2000" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{block.scale} </span><span class="nv">\textit</span><span class="nb">{s} </span>
</div><div id="l2001" class="code_block"><span class="nb"> </span>
</div><div id="l2002" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">sx</span><span class="o">]</span>
</div><div id="l2003" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{sx}</span><span class="o">]</span><span class="nb">  scale factor for local x</span><span class="o">-</span><span class="nb">axis</span>
</div><div id="l2004" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{sy}</span><span class="o">]</span><span class="nb">  scale factor for local y</span><span class="o">-</span><span class="nb">axis</span>
</div><div id="l2005" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{s}</span><span class="o">]</span><span class="nb">  scale factor for both axes</span>
</div><div id="l2006" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2007" class="code_block"><span class="nb"> </span>
</div><div id="l2008" class="code_block"><span class="nb"> </span>
</div><div id="l2009" class="code_block"><span class="nv">\subsection</span><span class="nb">{Geometry commands}</span>
</div><div id="l2010" class="code_block">
</div><div id="l2011" class="code_block"><span class="nb">The geometry commands geom.</span><span class="o">*</span><span class="nb"> are utility commands for calculations with vectors &quot;x y&quot;. The commands do not draw.</span>
</div><div id="l2012" class="code_block">
</div><div id="l2013" class="code_block">
</div><div id="l2014" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.vector </span><span class="o">(</span><span class="nb">geom.v</span><span class="o">)</span><span class="nb">}</span>
</div><div id="l2015" class="code_block">
</div><div id="l2016" class="code_block"><span class="nb">Constructs the vector specified by two points. Equivalent to </span><span class="o">[--</span><span class="nb"> </span><span class="nv">\$</span><span class="nb">posB </span><span class="nv">\$</span><span class="nb">posA</span><span class="o">]</span><span class="nb">.</span>
</div><div id="l2017" class="code_block"><span class="nb"> </span>
</div><div id="l2018" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2019" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.vector} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">2</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l2020" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.vector} </span><span class="nv">\textit</span><span class="nb">{posA} </span><span class="nv">\textit</span><span class="nb">{posB} </span><span class="nv">\\</span>
</div><div id="l2021" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.vector} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">2</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l2022" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.vector} </span><span class="nv">\textit</span><span class="nb">{posB}</span>
</div><div id="l2023" class="code_block"><span class="nb"> </span>
</div><div id="l2024" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">x</span><span class="m">2</span><span class="nb"> y</span><span class="m">2</span><span class="o">]</span>
</div><div id="l2025" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  First point. If omitted the current cursor position is assumed.</span>
</div><div id="l2026" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">2</span><span class="nb"> y</span><span class="m">2</span><span class="nb">}</span><span class="o">]</span><span class="nb">  second point</span>
</div><div id="l2027" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posA}</span><span class="o">]</span><span class="nb">  First point. If omitted the current cursor position is assumed.</span>
</div><div id="l2028" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posB}</span><span class="o">]</span><span class="nb">  second point</span>
</div><div id="l2029" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2030" class="code_block"><span class="nb"> </span>
</div><div id="l2031" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l2032" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l2033" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">geom.vector </span><span class="m">10</span><span class="nb"> </span><span class="m">10</span><span class="nb">  </span><span class="m">37</span><span class="nb"> </span><span class="m">20</span><span class="o">]</span><span class="nb">; # Writes </span><span class="m">27</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">10</span><span class="nb">.</span><span class="m">0</span>
</div><div id="l2034" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l2035" class="code_block">
</div><div id="l2036" class="code_block">
</div><div id="l2037" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.polar </span><span class="o">(</span><span class="nb">p</span><span class="o">)</span><span class="nb">}</span>
</div><div id="l2038" class="code_block">
</div><div id="l2039" class="code_block"><span class="nb">Returns a vector that is rotated by an angle </span><span class="o">(</span><span class="nb">in degrees</span><span class="o">)</span><span class="nb"> from the x</span><span class="o">-</span><span class="nb">axis. If the length is omitted the unit vector </span><span class="nv">\{</span><span class="m">1</span><span class="nb"> </span><span class="m">0</span><span class="nv">\}</span><span class="nb"> is assumed to be rotated, otherwise </span><span class="nv">\{</span><span class="nb">dL </span><span class="m">0</span><span class="nv">\}</span><span class="nb">.</span>
</div><div id="l2040" class="code_block">
</div><div id="l2041" class="code_block"><span class="nb">SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2042" class="code_block"><span class="nv">\textbf</span><span class="nb">{geom.polar} </span><span class="nv">\textit</span><span class="nb">{dL} </span><span class="nv">\textit</span><span class="nb">{α} </span><span class="nv">\\</span>
</div><div id="l2043" class="code_block"><span class="nv">\textbf</span><span class="nb">{geom.polar} </span><span class="nv">\textit</span><span class="nb">{α}</span>
</div><div id="l2044" class="code_block">
</div><div id="l2045" class="code_block"><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">dL</span><span class="o">]</span>
</div><div id="l2046" class="code_block"><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dL}</span><span class="o">]</span><span class="nb">  length</span>
</div><div id="l2047" class="code_block"><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{α}</span><span class="o">]</span><span class="nb">  azimuth </span><span class="o">(</span><span class="nb">angle to x</span><span class="o">-</span><span class="nb">axis, in degrees, clock</span><span class="o">-</span><span class="nb">wise</span><span class="o">)</span>
</div><div id="l2048" class="code_block"><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2049" class="code_block">
</div><div id="l2050" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l2051" class="code_block"><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l2052" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">geom.polar </span><span class="m">2</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">60</span><span class="o">]</span><span class="nb">;  # Prints </span><span class="m">1</span><span class="nb">.</span><span class="m">000</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">732</span>
</div><div id="l2053" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">geom.polar </span><span class="m">60</span><span class="o">]</span><span class="nb">;      # Prints </span><span class="m">0</span><span class="nb">.</span><span class="m">500</span><span class="nb"> </span><span class="m">0</span><span class="nb">.</span><span class="m">866</span>
</div><div id="l2054" class="code_block"><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l2055" class="code_block">
</div><div id="l2056" class="code_block">
</div><div id="l2057" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.add </span><span class="o">(++)</span><span class="nb">}</span>
</div><div id="l2058" class="code_block">
</div><div id="l2059" class="code_block"><span class="nb"> Computes the vector sum.</span>
</div><div id="l2060" class="code_block"><span class="nb"> </span>
</div><div id="l2061" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2062" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.add} </span><span class="nv">\textit</span><span class="nb">{v</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{v</span><span class="m">2</span><span class="nb">} </span><span class="nv">\ldots</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l2063" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{</span><span class="o">++</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{v</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{v</span><span class="m">2</span><span class="nb">} </span><span class="nv">\ldots</span>
</div><div id="l2064" class="code_block"><span class="nb"> </span>
</div><div id="l2065" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">v</span><span class="m">2</span><span class="o">]</span>
</div><div id="l2066" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{v</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  first vector or point</span>
</div><div id="l2067" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{v</span><span class="m">2</span><span class="nb">}</span><span class="o">]</span><span class="nb">  second vector</span>
</div><div id="l2068" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2069" class="code_block"><span class="nb"> </span>
</div><div id="l2070" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l2071" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l2072" class="code_block"><span class="nb">puts </span><span class="o">[++</span><span class="nb"> {</span><span class="m">3</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">0</span><span class="nb">.</span><span class="m">5</span><span class="nb">} {</span><span class="m">2</span><span class="nb"> </span><span class="m">2</span><span class="nb">}</span><span class="o">]</span><span class="nb">; # Writes </span><span class="m">5</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">2</span><span class="nb">.</span><span class="m">5</span>
</div><div id="l2073" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l2074" class="code_block">
</div><div id="l2075" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.subtract </span><span class="o">(--)</span><span class="nb">}</span>
</div><div id="l2076" class="code_block">
</div><div id="l2077" class="code_block"><span class="nb"> Computes the vector subtraction.</span>
</div><div id="l2078" class="code_block"><span class="nb"> </span>
</div><div id="l2079" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2080" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.substract} </span><span class="nv">\textit</span><span class="nb">{v</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{v</span><span class="m">2</span><span class="nb">} </span><span class="nv">\ldots</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l2081" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{</span><span class="o">--</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{v</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{v</span><span class="m">2</span><span class="nb">} </span><span class="nv">\ldots</span>
</div><div id="l2082" class="code_block"><span class="nb"> </span>
</div><div id="l2083" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">v</span><span class="m">2</span><span class="o">]</span>
</div><div id="l2084" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{v</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  first vector or point</span>
</div><div id="l2085" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{v</span><span class="m">2</span><span class="nb">}</span><span class="o">]</span><span class="nb">  second vector</span>
</div><div id="l2086" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2087" class="code_block"><span class="nb"> </span>
</div><div id="l2088" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l2089" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l2090" class="code_block"><span class="nb">puts </span><span class="o">[--</span><span class="nb"> {</span><span class="m">3</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">0</span><span class="nb">.</span><span class="m">5</span><span class="nb">} {</span><span class="m">2</span><span class="nb"> </span><span class="m">2</span><span class="nb">}</span><span class="o">]</span><span class="nb">;      # Writes </span><span class="m">1</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="o">-</span><span class="m">1</span><span class="nb">.</span><span class="m">5</span>
</div><div id="l2091" class="code_block"><span class="nb">puts </span><span class="o">[--</span><span class="nb"> {</span><span class="m">12</span><span class="nb"> </span><span class="m">37</span><span class="nb">} {</span><span class="m">3</span><span class="nb"> </span><span class="m">12</span><span class="nb">} {</span><span class="m">2</span><span class="nb"> </span><span class="m">4</span><span class="nb">}</span><span class="o">]</span><span class="nb">; # Writes </span><span class="m">7</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">21</span><span class="nb">.</span><span class="m">0</span>
</div><div id="l2092" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l2093" class="code_block">
</div><div id="l2094" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.multiply </span><span class="o">(**)</span><span class="nb">}</span>
</div><div id="l2095" class="code_block">
</div><div id="l2096" class="code_block"><span class="nb"> Computes a vector scaled by multiplication.</span>
</div><div id="l2097" class="code_block"><span class="nb"> </span>
</div><div id="l2098" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2099" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.multiply} </span><span class="nv">\textit</span><span class="nb">{factor} </span><span class="nv">\textit</span><span class="nb">{vector} </span><span class="nv">\\</span>
</div><div id="l2100" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{</span><span class="o">**</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{factor} </span><span class="nv">\textit</span><span class="nb">{vector}</span>
</div><div id="l2101" class="code_block"><span class="nb"> </span>
</div><div id="l2102" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">vector</span><span class="o">]</span>
</div><div id="l2103" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{factor}</span><span class="o">]</span><span class="nb">  scaling factor</span>
</div><div id="l2104" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{vector}</span><span class="o">]</span><span class="nb">  vector &quot;dx dy&quot; </span>
</div><div id="l2105" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2106" class="code_block"><span class="nb"> </span>
</div><div id="l2107" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l2108" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l2109" class="code_block"><span class="nb">puts </span><span class="o">[**</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">5</span><span class="nb"> {</span><span class="m">2</span><span class="nb"> </span><span class="m">3</span><span class="nb">}</span><span class="o">]</span><span class="nb">; # Writes </span><span class="m">3</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">4</span><span class="nb">.</span><span class="m">5</span>
</div><div id="l2110" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l2111" class="code_block">
</div><div id="l2112" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.divide </span><span class="o">(//)</span><span class="nb">}</span>
</div><div id="l2113" class="code_block">
</div><div id="l2114" class="code_block"><span class="nb"> Computes a vector scaled by division.</span>
</div><div id="l2115" class="code_block"><span class="nb"> </span>
</div><div id="l2116" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2117" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.divide} </span><span class="nv">\textit</span><span class="nb">{vector} </span><span class="nv">\textit</span><span class="nb">{quotient} </span><span class="nv">\\</span>
</div><div id="l2118" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{</span><span class="o">//</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{vector} </span><span class="nv">\textit</span><span class="nb">{quotient}</span>
</div><div id="l2119" class="code_block"><span class="nb"> </span>
</div><div id="l2120" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">quotient</span><span class="o">]</span>
</div><div id="l2121" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{vector}</span><span class="o">]</span><span class="nb">  vector &quot;dx dy&quot;</span>
</div><div id="l2122" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{quotient}</span><span class="o">]</span><span class="nb">  scaling quotient</span>
</div><div id="l2123" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2124" class="code_block"><span class="nb"> </span>
</div><div id="l2125" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l2126" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l2127" class="code_block"><span class="nb">puts </span><span class="o">[//</span><span class="nb"> {</span><span class="m">3</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">4</span><span class="nb">.</span><span class="m">5</span><span class="nb">} </span><span class="m">1</span><span class="nb">.</span><span class="m">5</span><span class="o">]</span><span class="nb">; # Writes </span><span class="m">2</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">3</span><span class="nb">.</span><span class="m">0</span>
</div><div id="l2128" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l2129" class="code_block">
</div><div id="l2130" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.half </span><span class="o">(</span><span class="nb">½</span><span class="o">)</span><span class="nb">}</span>
</div><div id="l2131" class="code_block">
</div><div id="l2132" class="code_block"><span class="nb"> Computes a vector or scalar scaled by the factor </span><span class="s">$</span><span class="k">\frac</span><span class="nb">{</span>1<span class="nb">}{</span>2<span class="nb">}</span><span class="s">$</span><span class="nb">.</span>
</div><div id="l2133" class="code_block"><span class="nb"> </span>
</div><div id="l2134" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2135" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.half} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\\</span>
</div><div id="l2136" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.half} </span><span class="nv">\textit</span><span class="nb">{vector} </span><span class="nv">\\</span>
</div><div id="l2137" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.half} </span><span class="nv">\textit</span><span class="nb">{scalar}</span>
</div><div id="l2138" class="code_block"><span class="nb"> </span>
</div><div id="l2139" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">quotient</span><span class="o">]</span>
</div><div id="l2140" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{vector}</span><span class="o">]</span><span class="nb">  vector &quot;dx dy&quot;</span>
</div><div id="l2141" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dx}</span><span class="o">]</span><span class="nb">  number</span>
</div><div id="l2142" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2143" class="code_block"><span class="nb"> </span>
</div><div id="l2144" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l2145" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l2146" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">½ </span><span class="m">3</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">4</span><span class="nb">.</span><span class="m">5</span><span class="o">]</span><span class="nb">; # Writes </span><span class="m">1</span><span class="nb">.</span><span class="m">5</span><span class="nb"> </span><span class="m">2</span><span class="nb">.</span><span class="m">25</span>
</div><div id="l2147" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l2148" class="code_block">
</div><div id="l2149" class="code_block">
</div><div id="l2150" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.norm}</span>
</div><div id="l2151" class="code_block">
</div><div id="l2152" class="code_block"><span class="nb">Returns a unit length vector with the same direction as the input vector.</span>
</div><div id="l2153" class="code_block">
</div><div id="l2154" class="code_block"><span class="nb">SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2155" class="code_block"><span class="nv">\textbf</span><span class="nb">{geom.norm} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\\</span>
</div><div id="l2156" class="code_block"><span class="nv">\textbf</span><span class="nb">{geom.norm} </span><span class="nv">\textit</span><span class="nb">{v}</span>
</div><div id="l2157" class="code_block">
</div><div id="l2158" class="code_block"><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">dx dy</span><span class="o">]</span>
</div><div id="l2159" class="code_block"><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dx dy}</span><span class="o">]</span><span class="nb">  vector</span>
</div><div id="l2160" class="code_block"><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{v}</span><span class="o">]</span><span class="nb">  vector</span>
</div><div id="l2161" class="code_block"><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2162" class="code_block">
</div><div id="l2163" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l2164" class="code_block"><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l2165" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">geom.norm </span><span class="m">30</span><span class="nb"> </span><span class="m">40</span><span class="o">]</span><span class="nb">; # Writes </span><span class="m">0</span><span class="nb">.</span><span class="m">6</span><span class="nb"> </span><span class="m">0</span><span class="nb">.</span><span class="m">8</span>
</div><div id="l2166" class="code_block"><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l2167" class="code_block">
</div><div id="l2168" class="code_block">
</div><div id="l2169" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.rotate}</span>
</div><div id="l2170" class="code_block">
</div><div id="l2171" class="code_block"><span class="nb">Returns a vector that is rotated by an angle </span><span class="o">(</span><span class="nb">in degrees</span><span class="o">)</span><span class="nb"> compared to the input vector.</span>
</div><div id="l2172" class="code_block">
</div><div id="l2173" class="code_block"><span class="nb">SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2174" class="code_block"><span class="nv">\textbf</span><span class="nb">{geom.rotate} </span><span class="nv">\textit</span><span class="nb">{dx} </span><span class="nv">\textit</span><span class="nb">{dy} </span><span class="nv">\textit</span><span class="nb">{</span><span class="s">$</span><span class="k">\theta</span><span class="s">$</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l2175" class="code_block"><span class="nv">\textbf</span><span class="nb">{geom.rotate} </span><span class="nv">\textit</span><span class="nb">{v} </span><span class="nv">\textit</span><span class="nb">{</span><span class="s">$</span><span class="k">\theta</span><span class="s">$</span><span class="nb">} </span><span class="nv">\\</span>
</div><div id="l2176" class="code_block"><span class="nv">\textbf</span><span class="nb">{geom.rotate} </span><span class="nv">\textit</span><span class="nb">{v}</span>
</div><div id="l2177" class="code_block">
</div><div id="l2178" class="code_block"><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">dx dy</span><span class="o">]</span>
</div><div id="l2179" class="code_block"><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{dx dy}</span><span class="o">]</span><span class="nb">  vector</span>
</div><div id="l2180" class="code_block"><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{v}</span><span class="o">]</span><span class="nb">  vector</span>
</div><div id="l2181" class="code_block"><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{</span><span class="s">$</span><span class="k">\theta</span><span class="s">$</span><span class="nb">}</span><span class="o">]</span><span class="nb">  Angle in degrees. If omitted </span><span class="m">90</span><span class="nb">°</span>
</div><div id="l2182" class="code_block"><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2183" class="code_block">
</div><div id="l2184" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l2185" class="code_block"><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l2186" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">geom.rotate {</span><span class="m">1</span><span class="nb"> </span><span class="m">0</span><span class="nb">} </span><span class="m">30</span><span class="o">]</span><span class="nb">; # Writes </span><span class="m">0</span><span class="nb">.</span><span class="m">866</span><span class="nb"> </span><span class="m">5</span><span class="nb">.</span><span class="m">0</span>
</div><div id="l2187" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">geom.rotate </span><span class="m">1</span><span class="nb"> </span><span class="m">0</span><span class="o">]</span><span class="nb">;      # Writes </span><span class="m">0</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">0</span>
</div><div id="l2188" class="code_block"><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l2189" class="code_block">
</div><div id="l2190" class="code_block">
</div><div id="l2191" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.online}</span>
</div><div id="l2192" class="code_block">
</div><div id="l2193" class="code_block"><span class="nb">Returns the point on the line defined by &quot;x</span><span class="m">0</span><span class="nb"> y</span><span class="m">0</span><span class="nb"> x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">&quot; a given fraction from x</span><span class="m">0</span><span class="nb">,y</span><span class="m">0</span><span class="nb">. </span><span class="nv">\\</span>
</div><div id="l2194" class="code_block"><span class="nb">E.g. </span><span class="o">[</span><span class="nb">geom.online </span><span class="nv">\$</span><span class="nb">A </span><span class="nv">\$</span><span class="nb">B </span><span class="m">0</span><span class="nb">.</span><span class="m">5</span><span class="o">]</span><span class="nb"> returns the position in the middle of the two points, while </span><span class="o">[</span><span class="nb">geom.online </span><span class="nv">\$</span><span class="nb">A </span><span class="nv">\$</span><span class="nb">B </span><span class="m">0</span><span class="o">]</span><span class="nb"> returns the position of </span><span class="nv">\$</span><span class="nb">A and </span><span class="o">[</span><span class="nb">geom.online </span><span class="nv">\$</span><span class="nb">A </span><span class="nv">\$</span><span class="nb">B </span><span class="m">1</span><span class="o">]</span><span class="nb"> the position of </span><span class="nv">\$</span><span class="nb">B.</span>
</div><div id="l2195" class="code_block">
</div><div id="l2196" class="code_block"><span class="nb">SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2197" class="code_block"><span class="nv">\textbf</span><span class="nb">{geom.online} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{fraction} </span><span class="nv">\\</span>
</div><div id="l2198" class="code_block"><span class="nv">\textbf</span><span class="nb">{geom.online} </span><span class="nv">\textit</span><span class="nb">{posA} </span><span class="nv">\textit</span><span class="nb">{posB} </span><span class="nv">\textit</span><span class="nb">{fraction}</span>
</div><div id="l2199" class="code_block">
</div><div id="l2200" class="code_block"><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">fraction</span><span class="o">]</span>
</div><div id="l2201" class="code_block"><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  first point</span>
</div><div id="l2202" class="code_block"><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">2</span><span class="nb"> y</span><span class="m">2</span><span class="nb">}</span><span class="o">]</span><span class="nb">  second point</span>
</div><div id="l2203" class="code_block"><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posA}</span><span class="o">]</span><span class="nb">  first point</span>
</div><div id="l2204" class="code_block"><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posB}</span><span class="o">]</span><span class="nb">  second point</span>
</div><div id="l2205" class="code_block"><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{fraction}</span><span class="o">]</span><span class="nb">  fraction of the distance AB</span>
</div><div id="l2206" class="code_block"><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2207" class="code_block">
</div><div id="l2208" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l2209" class="code_block"><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l2210" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">geom.online </span><span class="m">10</span><span class="nb"> </span><span class="m">10</span><span class="nb">  </span><span class="m">24</span><span class="nb"> </span><span class="m">10</span><span class="nb">  </span><span class="m">0</span><span class="nb">.</span><span class="m">6</span><span class="o">]</span><span class="nb">; # Writes </span><span class="m">18</span><span class="nb">.</span><span class="m">4</span><span class="nb"> </span><span class="m">10</span><span class="nb">.</span><span class="m">0</span>
</div><div id="l2211" class="code_block"><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l2212" class="code_block">
</div><div id="l2213" class="code_block">
</div><div id="l2214" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.tox </span><span class="o">(</span><span class="nb">tx</span><span class="o">)</span><span class="nb">, geom.toy </span><span class="o">(</span><span class="nb">ty</span><span class="o">)</span><span class="nb">}</span>
</div><div id="l2215" class="code_block">
</div><div id="l2216" class="code_block"><span class="nb"> Returns the position with a given x coordinate that is horizontally aligned with the cursor position. Or returns the position with a given y coordinate that is vertically aligned with the cursor position.</span>
</div><div id="l2217" class="code_block"><span class="nb"> </span>
</div><div id="l2218" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2219" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.tox} </span><span class="nv">\textit</span><span class="nb">{posP} </span><span class="nv">\\</span>
</div><div id="l2220" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.tox} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">}</span>
</div><div id="l2221" class="code_block"><span class="nb"> </span>
</div><div id="l2222" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">posP</span><span class="o">]</span>
</div><div id="l2223" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posP}</span><span class="o">]</span><span class="nb"> position &quot;x</span><span class="m">1</span><span class="nb"> yP&quot;</span>
</div><div id="l2224" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  x</span><span class="o">-</span><span class="nb">coordinate</span>
</div><div id="l2225" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2226" class="code_block"><span class="nb"> </span>
</div><div id="l2227" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l2228" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l2229" class="code_block"><span class="nb">moveto {</span><span class="m">5</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">2</span><span class="nb">}</span>
</div><div id="l2230" class="code_block"><span class="nb">set P {</span><span class="m">9</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">3</span><span class="nb">.</span><span class="m">5</span><span class="nb">}</span>
</div><div id="l2231" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">tx </span><span class="m">8</span><span class="nb">.</span><span class="m">5</span><span class="o">]</span><span class="nb">; # Writes </span><span class="m">8</span><span class="nb">.</span><span class="m">5</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">2</span>
</div><div id="l2232" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">tx </span><span class="s">$</span>P];  # Writes 9.0 1.2
</div><div id="l2233" class="code_block">puts [ty 3.0]; # Writes 5.0 3.0
</div><div id="l2234" class="code_block">puts [ty <span class="s">$</span><span class="nb">P</span><span class="o">]</span><span class="nb">;  # Writes </span><span class="m">5</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">3</span><span class="nb">.</span><span class="m">5</span>
</div><div id="l2235" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l2236" class="code_block">
</div><div id="l2237" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.intersect}</span>
</div><div id="l2238" class="code_block">
</div><div id="l2239" class="code_block"><span class="nb"> Returns the intersection point of the extensions of two lines </span><span class="s">$</span> <span class="k">\overline</span><span class="nb">{</span>AB<span class="nb">}</span> <span class="s">$</span><span class="nb"> and  </span><span class="s">$</span> <span class="k">\overline</span><span class="nb">{</span>CD<span class="nb">}</span> <span class="s">$</span><span class="nb">.</span>
</div><div id="l2240" class="code_block"><span class="nb"> If the lines are parallel the command raises an exception.</span>
</div><div id="l2241" class="code_block"><span class="nb"> </span>
</div><div id="l2242" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2243" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.intersect} </span><span class="nv">\textit</span><span class="nb">{xA} </span><span class="nv">\textit</span><span class="nb">{yA} </span><span class="nv">\textit</span><span class="nb">{xB} </span><span class="nv">\textit</span><span class="nb">{yB} </span><span class="nv">\textit</span><span class="nb">{xC} </span><span class="nv">\textit</span><span class="nb">{yC} </span><span class="nv">\textit</span><span class="nb">{xD} </span><span class="nv">\textit</span><span class="nb">{yD} </span><span class="nv">\\</span>
</div><div id="l2244" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.intersect} </span><span class="nv">\textit</span><span class="nb">{posA} </span><span class="nv">\textit</span><span class="nb">{posB} </span><span class="nv">\textit</span><span class="nb">{posC} </span><span class="nv">\textit</span><span class="nb">{posD}</span>
</div><div id="l2245" class="code_block"><span class="nb"> </span>
</div><div id="l2246" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">vector</span><span class="o">]</span>
</div><div id="l2247" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xA yA}</span><span class="o">]</span><span class="nb">  first point of line AB</span>
</div><div id="l2248" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xB yB}</span><span class="o">]</span><span class="nb">  second point of line AB</span>
</div><div id="l2249" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xC yC}</span><span class="o">]</span><span class="nb">  first point of line CD</span>
</div><div id="l2250" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xD yD}</span><span class="o">]</span><span class="nb">  second point of line CD</span>
</div><div id="l2251" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posA}</span><span class="o">]</span><span class="nb">  first point of line AB</span>
</div><div id="l2252" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posB}</span><span class="o">]</span><span class="nb">  second point of line AB</span>
</div><div id="l2253" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posC}</span><span class="o">]</span><span class="nb">  first point of line CD</span>
</div><div id="l2254" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posD}</span><span class="o">]</span><span class="nb">  second point of line CD</span>
</div><div id="l2255" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2256" class="code_block"><span class="nb"> </span>
</div><div id="l2257" class="code_block"><span class="nb">EXAMPLE  </span><span class="nv">\\</span>
</div><div id="l2258" class="code_block"><span class="nb">see below</span>
</div><div id="l2259" class="code_block">
</div><div id="l2260" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.intersectlinepath}</span>
</div><div id="l2261" class="code_block"><span class="nb"> </span>
</div><div id="l2262" class="code_block"><span class="nb"> Returns the first intersection point of the extensions of a line </span><span class="s">$</span> <span class="k">\overline</span><span class="nb">{</span>AB<span class="nb">}</span> <span class="s">$</span><span class="nb"> with a path </span><span class="s">$</span> <span class="k">\overline</span><span class="nb">{</span>P<span class="nb">_</span>1 P<span class="nb">_</span>2 <span class="k">\ldots</span><span class="nb">}</span> <span class="s">$</span><span class="nb">.</span>
</div><div id="l2263" class="code_block"><span class="nb"> If the extension of the line does not intersect the path, an exception is raised.</span>
</div><div id="l2264" class="code_block"><span class="nb"> </span>
</div><div id="l2265" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2266" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.intersectlinepath} </span><span class="nv">\textit</span><span class="nb">{xA} </span><span class="nv">\textit</span><span class="nb">{yA} </span><span class="nv">\textit</span><span class="nb">{xB} </span><span class="nv">\textit</span><span class="nb">{yB} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">2</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{y</span><span class="m">2</span><span class="nb">} </span><span class="nv">\ldots</span><span class="nb"> </span><span class="nv">\\</span>
</div><div id="l2267" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.intersectlinepath} </span><span class="nv">\textit</span><span class="nb">{posA} </span><span class="nv">\textit</span><span class="nb">{posB} </span><span class="nv">\textit</span><span class="nb">{posP</span><span class="m">1</span><span class="nb">} </span><span class="nv">\textit</span><span class="nb">{posP</span><span class="m">2</span><span class="nb">} </span><span class="nv">\ldots</span>
</div><div id="l2268" class="code_block"><span class="nb"> </span>
</div><div id="l2269" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">vector</span><span class="o">]</span>
</div><div id="l2270" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xA yA}</span><span class="o">]</span><span class="nb">  first point of line AB</span>
</div><div id="l2271" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xB yB}</span><span class="o">]</span><span class="nb">  second point of line AB</span>
</div><div id="l2272" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">1</span><span class="nb"> y</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  first point of path</span>
</div><div id="l2273" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{x</span><span class="m">2</span><span class="nb"> y</span><span class="m">2</span><span class="nb">}</span><span class="o">]</span><span class="nb">  second point of path</span>
</div><div id="l2274" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posA}</span><span class="o">]</span><span class="nb">  first point of line AB</span>
</div><div id="l2275" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posB}</span><span class="o">]</span><span class="nb">  second point of line AB</span>
</div><div id="l2276" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posP</span><span class="m">1</span><span class="nb">}</span><span class="o">]</span><span class="nb">  first point of path</span>
</div><div id="l2277" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{posP</span><span class="m">2</span><span class="nb">}</span><span class="o">]</span><span class="nb">  second point of path</span>
</div><div id="l2278" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2279" class="code_block"><span class="nb"> </span>
</div><div id="l2280" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l2281" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l2282" class="code_block"><span class="nb">unitlength </span><span class="m">10</span>
</div><div id="l2283" class="code_block"><span class="nb">set A {</span><span class="m">1</span><span class="nb">.</span><span class="m">5</span><span class="nb"> </span><span class="m">6</span><span class="nb">.</span><span class="m">0</span><span class="nb">}; m </span><span class="s">$</span>A; tlb A SE
</div><div id="l2284" class="code_block">set B <span class="nb">{</span>3.5 4.0<span class="nb">}</span>; m <span class="s">$</span><span class="nb">B; tlb B SE</span>
</div><div id="l2285" class="code_block"><span class="nb">set P</span><span class="m">1</span><span class="nb"> {</span><span class="m">1</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">4</span><span class="nb">.</span><span class="m">0</span><span class="nb">}; m </span><span class="s">$</span>P1; tlb P<span class="nb">_</span>1 NW
</div><div id="l2286" class="code_block">set P2 <span class="nb">{</span>3.0 3.0<span class="nb">}</span>; m <span class="s">$</span><span class="nb">P</span><span class="m">2</span><span class="nb">; tlb P_</span><span class="m">2</span><span class="nb"> NW</span>
</div><div id="l2287" class="code_block"><span class="nb">set P</span><span class="m">3</span><span class="nb"> {</span><span class="m">5</span><span class="nb">.</span><span class="m">5</span><span class="nb"> </span><span class="m">3</span><span class="nb">.</span><span class="m">0</span><span class="nb">}; m </span><span class="s">$</span>P3; tlb P<span class="nb">_</span>3 SE
</div><div id="l2288" class="code_block">set P4 <span class="nb">{</span>6.5 0.5<span class="nb">}</span>; m <span class="s">$</span><span class="nb">P</span><span class="m">4</span><span class="nb">; tlb P_</span><span class="m">4</span><span class="nb"> SE</span>
</div><div id="l2289" class="code_block"><span class="nb">pen gray</span>
</div><div id="l2290" class="code_block"><span class="nb">l </span><span class="s">$</span>P1 <span class="s">$</span><span class="nb">P</span><span class="m">2</span><span class="nb"> </span><span class="s">$</span>P3 <span class="s">$</span><span class="nb">P</span><span class="m">4</span>
</div><div id="l2291" class="code_block"><span class="nb">pen black</span>
</div><div id="l2292" class="code_block"><span class="nb">l </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B</span>
</div><div id="l2293" class="code_block"><span class="nb">circle </span><span class="o">[</span><span class="nb">geom.intersectlinepath </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B  </span><span class="s">$</span>P1 <span class="s">$</span><span class="nb">P</span><span class="m">2</span><span class="nb"> </span><span class="s">$</span>P3 <span class="s">$</span><span class="nb">P</span><span class="m">4</span><span class="o">]</span><span class="nb"> </span><span class="o">[</span><span class="nb">mm </span><span class="m">1</span><span class="o">]</span>
</div><div id="l2294" class="code_block"><span class="nb">label Q</span>
</div><div id="l2295" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l2296" class="code_block">
</div><div id="l2297" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdGeomIntersectlinepath}</span>
</div><div id="l2298" class="code_block">
</div><div id="l2299" class="code_block">
</div><div id="l2300" class="code_block">
</div><div id="l2301" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{geom.intersectcircles}</span>
</div><div id="l2302" class="code_block"><span class="nb"> </span>
</div><div id="l2303" class="code_block"><span class="nb"> Returns the intersection point</span><span class="o">(</span><span class="nb">s</span><span class="o">)</span><span class="nb"> of two circles.</span>
</div><div id="l2304" class="code_block"><span class="nb"> If the circles do not intersect or if they are are coincident, an exception is raised.</span>
</div><div id="l2305" class="code_block"><span class="nb"> </span>
</div><div id="l2306" class="code_block"><span class="nb"> SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l2307" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.intersectcircles} </span><span class="nv">\textit</span><span class="nb">{xA} </span><span class="nv">\textit</span><span class="nb">{yA} </span><span class="nv">\textit</span><span class="nb">{rA} </span><span class="nv">\textit</span><span class="nb">{xB} </span><span class="nv">\textit</span><span class="nb">{yB} </span><span class="nv">\textit</span><span class="nb">{rB} </span><span class="nv">\textit</span><span class="nb">{nb} </span><span class="nv">\\</span>
</div><div id="l2308" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{geom.intersectcircles} </span><span class="nv">\textit</span><span class="nb">{xA} </span><span class="nv">\textit</span><span class="nb">{yA} </span><span class="nv">\textit</span><span class="nb">{rA} </span><span class="nv">\textit</span><span class="nb">{xB} </span><span class="nv">\textit</span><span class="nb">{yB} </span><span class="nv">\textit</span><span class="nb">{rB}</span>
</div><div id="l2309" class="code_block"><span class="nb"> </span>
</div><div id="l2310" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{xlist}</span><span class="o">[</span><span class="nb">xA yA rA</span><span class="o">]</span>
</div><div id="l2311" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xA yA rA}</span><span class="o">]</span><span class="nb">  first circle </span><span class="o">(</span><span class="nb">centre coordinates, radius</span><span class="o">)</span>
</div><div id="l2312" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{xB yB rB}</span><span class="o">]</span><span class="nb">  second circle</span>
</div><div id="l2313" class="code_block"><span class="nb"> </span><span class="nv">\item</span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{nb}</span><span class="o">]</span><span class="nb">  requested number of intersection points. </span><span class="nv">\verb</span><span class="o">!</span><span class="m">2</span><span class="o">!</span><span class="nb">: both.</span>
</div><div id="l2314" class="code_block"><span class="nb"> 					 </span><span class="nv">\verb</span><span class="o">!</span><span class="m">1</span><span class="o">!</span><span class="nb">: Right intersection point, seen from the centre of the first circle looking to the centre of the second circle </span><span class="o">(</span><span class="nb">default</span><span class="o">)</span><span class="nb">. </span><span class="nv">\\</span>
</div><div id="l2315" class="code_block"><span class="nb"> 					 </span><span class="nv">\verb</span><span class="o">!</span><span class="m">0</span><span class="o">!</span><span class="nb">: Query only if there is a valid intersection point, returns true or false.</span>
</div><div id="l2316" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{xlist}</span>
</div><div id="l2317" class="code_block"><span class="nb"> </span>
</div><div id="l2318" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l2319" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l2320" class="code_block"><span class="nb">pen gray</span>
</div><div id="l2321" class="code_block"><span class="nb">set c</span><span class="m">1</span><span class="nb"> {</span><span class="m">30</span><span class="nb"> </span><span class="m">30</span><span class="nb">  </span><span class="m">25</span><span class="nb">}; circle </span><span class="s">$</span>c1;       pt; tlb C<span class="nb">_</span>1
</div><div id="l2322" class="code_block">set c2 <span class="nb">{</span>60 40  15<span class="nb">}</span>; circle <span class="s">$</span><span class="nb">c</span><span class="m">2</span><span class="nb">;       pt; tlb C_</span><span class="m">2</span>
</div><div id="l2323" class="code_block"><span class="nb">set c</span><span class="m">3</span><span class="nb"> {</span><span class="m">80</span><span class="nb"> </span><span class="m">35</span><span class="nb">  </span><span class="m">10</span><span class="nb">}; arc </span><span class="s">$</span>c3 106 -134; pt; tlb C<span class="nb">_</span>3
</div><div id="l2324" class="code_block">pen black
</div><div id="l2325" class="code_block">dot  [geom.intersectcircles <span class="s">$</span><span class="nb">c</span><span class="m">1</span><span class="nb"> </span><span class="s">$</span>c2  ]; label I S
</div><div id="l2326" class="code_block">line [geom.intersectcircles <span class="s">$</span><span class="nb">c</span><span class="m">3</span><span class="nb"> </span><span class="s">$</span>c2 2]
</div><div id="l2327" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2328" class="code_block">
</div><div id="l2329" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdGeomIntersectcircles<span class="nb">}</span>
</div><div id="l2330" class="code_block"> 
</div><div id="l2331" class="code_block"> <span class="k">\subsubsection</span><span class="nb">{</span>geom.intersectcircleline<span class="nb">}</span>
</div><div id="l2332" class="code_block"> 
</div><div id="l2333" class="code_block"> Returns the intersection point(s) of a circle and a line <span class="s">$</span><span class="nb"> </span><span class="nv">\overline</span><span class="nb">{AB} </span><span class="s">$</span> or its extensions.
</div><div id="l2334" class="code_block"> If the line does not intersect the circle, an exception is raised.
</div><div id="l2335" class="code_block"> 
</div><div id="l2336" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2337" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.intersectcircleline<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xM<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yM<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>r<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>nb<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2338" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.intersectcircleline<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xM<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yM<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>r<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yB<span class="nb">}</span>
</div><div id="l2339" class="code_block"> 
</div><div id="l2340" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[xM yM r]
</div><div id="l2341" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{xM yM rM}]</span>  circle (centre coordinates, radius)
</div><div id="l2342" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{xA yA xB yB}]</span>  line (point A, point B)
</div><div id="l2343" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{nb}]</span>  requested number of intersection points. <span class="k">\verb</span>!2!: both.
</div><div id="l2344" class="code_block"> 	<span class="k">\verb</span>!1!: First intersection point in line direction (default). 
</div><div id="l2345" class="code_block"> 	<span class="k">\verb</span>!0!: Query only if there is a valid intersection point, returns true or false.
</div><div id="l2346" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2347" class="code_block"> 
</div><div id="l2348" class="code_block"> EXAMPLE
</div><div id="l2349" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2350" class="code_block"> pen gray 0.3
</div><div id="l2351" class="code_block"> set c <span class="nb">{</span>60 30  30<span class="nb">}</span>; arc <span class="s">$</span><span class="nb">c </span><span class="m">160</span><span class="nb"> </span><span class="m">20</span><span class="nb">; pt;     lb M</span>
</div><div id="l2352" class="code_block"><span class="nb"> set A {</span><span class="m">5</span><span class="nb"> </span><span class="m">30</span><span class="nb">};                     pt </span><span class="s">$</span>A;  lb A SW
</div><div id="l2353" class="code_block"> set B1 <span class="nb">{</span>110 35<span class="nb">}</span>;                  pt <span class="s">$</span><span class="nb">B</span><span class="m">1</span><span class="nb">; lb B₁</span>
</div><div id="l2354" class="code_block"><span class="nb"> set B</span><span class="m">2</span><span class="nb"> {</span><span class="m">100</span><span class="nb"> </span><span class="m">10</span><span class="nb">};                  pt </span><span class="s">$</span>B2; lb B₂
</div><div id="l2355" class="code_block"> line <span class="s">$</span><span class="nb">A </span><span class="s">$</span>B1
</div><div id="l2356" class="code_block"> line <span class="s">$</span><span class="nb">A </span><span class="s">$</span>B2
</div><div id="l2357" class="code_block"> pen
</div><div id="l2358" class="code_block"> dot  [geom.intersectcircleline <span class="s">$</span><span class="nb">c  </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B</span><span class="m">1</span><span class="o">]</span>
</div><div id="l2359" class="code_block"><span class="nb"> line </span><span class="o">[</span><span class="nb">geom.intersectcircleline </span><span class="s">$</span>c  <span class="s">$</span><span class="nb">A </span><span class="s">$</span>B2 2]
</div><div id="l2360" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2361" class="code_block"> 
</div><div id="l2362" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdGeomIntersectcircleline<span class="nb">}</span>
</div><div id="l2363" class="code_block"> 
</div><div id="l2364" class="code_block"> 
</div><div id="l2365" class="code_block"> <span class="k">\subsubsection</span><span class="nb">{</span>geom.centroid<span class="nb">}</span>
</div><div id="l2366" class="code_block"> 
</div><div id="l2367" class="code_block"> Returns the centre of gravity of an area (surrounded by a polygon).
</div><div id="l2368" class="code_block"> 
</div><div id="l2369" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2370" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.centroid<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xC<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yC<span class="nb">}</span> <span class="k">\ldots</span> <span class="k">\\</span>
</div><div id="l2371" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.centroid<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posC<span class="nb">}</span> <span class="k">\ldots</span>
</div><div id="l2372" class="code_block"> 
</div><div id="l2373" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[vector]
</div><div id="l2374" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{xA yA}]</span>  first point of polygon
</div><div id="l2375" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{xB yB}]</span>  second point of polygon
</div><div id="l2376" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{xC yC}]</span>  third point of polygon
</div><div id="l2377" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{posA}]</span>  first point of polygon
</div><div id="l2378" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{posB}]</span>  second point of polygon
</div><div id="l2379" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{posC}]</span>  third point of polygon
</div><div id="l2380" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2381" class="code_block"> 
</div><div id="l2382" class="code_block"> EXAMPLE
</div><div id="l2383" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2384" class="code_block"> 	unitlength 20
</div><div id="l2385" class="code_block"> 	dimline ticks
</div><div id="l2386" class="code_block"> 	set A <span class="nb">{</span>1 1<span class="nb">}</span>; m <span class="s">$</span><span class="nb">A; lb A NW</span>
</div><div id="l2387" class="code_block"><span class="nb"> 	set B {</span><span class="m">4</span><span class="nb"> </span><span class="m">1</span><span class="nb">}; m </span><span class="s">$</span>B; lb B NE
</div><div id="l2388" class="code_block"> 	set C <span class="nb">{</span>3 3<span class="nb">}</span>; m <span class="s">$</span><span class="nb">C; lb C SE</span>
</div><div id="l2389" class="code_block"><span class="nb"> 	set D {</span><span class="m">2</span><span class="nb"> </span><span class="m">3</span><span class="nb">}; m </span><span class="s">$</span>D; lb D SW
</div><div id="l2390" class="code_block"> 	polygon <span class="s">$</span><span class="nb">A </span><span class="s">$</span>B <span class="s">$</span><span class="nb">C </span><span class="s">$</span>D
</div><div id="l2391" class="code_block"> 	set area [geom.area <span class="s">$</span><span class="nb">A </span><span class="s">$</span>B <span class="s">$</span><span class="nb">C </span><span class="s">$</span>D]    
</div><div id="l2392" class="code_block"> 	pt [geom.intersect &quot;<span class="s">$</span><span class="nb">A </span><span class="s">$</span>C&quot; &quot;<span class="s">$</span><span class="nb">B </span><span class="s">$</span>D&quot;] 
</div><div id="l2393" class="code_block"> 	label &quot;[nf <span class="s">$</span><span class="nb">area </span><span class="m">2</span><span class="o">]</span><span class="nb"> m²&quot; N </span>
</div><div id="l2394" class="code_block"><span class="nb"> 	set c </span><span class="o">[</span><span class="nb">geom.centroid </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D</span><span class="o">]</span><span class="nb">; # centroid: </span><span class="m">2</span><span class="nb">.</span><span class="m">5</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">8333333333333333</span>
</div><div id="l2395" class="code_block"><span class="nb"> 	dot </span><span class="s">$</span>c; lb c
</div><div id="l2396" class="code_block"> 	pen 0.35; dimline 5 [Y <span class="s">$</span><span class="nb">A</span><span class="o">]</span><span class="nb"> </span><span class="m">5</span><span class="nb"> </span><span class="o">[</span><span class="nb">Y </span><span class="s">$</span>D] <span class="c">%.2f</span>
</div><div id="l2397" class="code_block"> 	dimline 2 [Y <span class="s">$</span><span class="nb">A</span><span class="o">]</span><span class="nb"> </span><span class="m">2</span><span class="nb"> </span><span class="o">[</span><span class="nb">Y </span><span class="s">$</span>c]
</div><div id="l2398" class="code_block"> 	dimline [X <span class="s">$</span><span class="nb">A</span><span class="o">]</span><span class="nb"> </span><span class="m">0</span><span class="nb">.</span><span class="m">4</span><span class="nb"> </span><span class="o">[</span><span class="nb">X </span><span class="s">$</span>B] 0.4 <span class="c">%.2f</span>
</div><div id="l2399" class="code_block"> 	dimline [X <span class="s">$</span><span class="nb">C</span><span class="o">]</span><span class="nb"> </span><span class="m">3</span><span class="nb">.</span><span class="m">3</span><span class="nb"> </span><span class="o">[</span><span class="nb">X </span><span class="s">$</span>D] 3.3 <span class="c">%.2f</span>
</div><div id="l2400" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2401" class="code_block"> 
</div><div id="l2402" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdGeomCentroid<span class="nb">}</span>
</div><div id="l2403" class="code_block"> 
</div><div id="l2404" class="code_block"> 
</div><div id="l2405" class="code_block"> <span class="k">\subsubsection</span><span class="nb">{</span>geom.extend<span class="nb">}</span>
</div><div id="l2406" class="code_block"> 
</div><div id="l2407" class="code_block"> Returns an extended line defined by two points.
</div><div id="l2408" class="code_block"> 
</div><div id="l2409" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2410" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.extend<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>x2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dLA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dLB<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2411" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.extend<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>pos2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dLA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dLB<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2412" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.extend<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>x2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dL<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2413" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.extend<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>pos2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dL<span class="nb">}</span>
</div><div id="l2414" class="code_block"> 
</div><div id="l2415" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[dLA dLB]
</div><div id="l2416" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{x1 y1}]</span>  first point of existing line
</div><div id="l2417" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{x2 y2}]</span>  second point of existing line
</div><div id="l2418" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{pos1}]</span>  first point of existing line
</div><div id="l2419" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{pos2}]</span>  second point of existing line
</div><div id="l2420" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{dLA dLB}]</span>  extension values
</div><div id="l2421" class="code_block"> 	<span class="k">\item</span><span class="na">[\textit{dL}]</span>  extension value at both sides
</div><div id="l2422" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2423" class="code_block"> 
</div><div id="l2424" class="code_block"> EXAMPLE
</div><div id="l2425" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2426" class="code_block"> 	set A <span class="nb">{</span>30 10<span class="nb">}</span>; dot <span class="s">$</span><span class="nb">A; label A</span>
</div><div id="l2427" class="code_block"><span class="nb"> 	set B {</span><span class="m">60</span><span class="nb"> </span><span class="m">10</span><span class="nb">}; dot </span><span class="s">$</span>B; label B
</div><div id="l2428" class="code_block"> 	line [geom.extend <span class="s">$</span><span class="nb">A </span><span class="s">$</span>B 10 30]
</div><div id="l2429" class="code_block"> 	set C <span class="nb">{</span>30 25<span class="nb">}</span>; dot <span class="s">$</span><span class="nb">C; label C</span>
</div><div id="l2430" class="code_block"><span class="nb"> 	set D {</span><span class="m">60</span><span class="nb"> </span><span class="m">25</span><span class="nb">}; dot </span><span class="s">$</span>D; label D
</div><div id="l2431" class="code_block"> 	line [geom.extend <span class="s">$</span><span class="nb">C </span><span class="s">$</span>D 10]
</div><div id="l2432" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2433" class="code_block"> 
</div><div id="l2434" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdGeomExtend<span class="nb">}</span>
</div><div id="l2435" class="code_block">
</div><div id="l2436" class="code_block">
</div><div id="l2437" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>geom.parallel<span class="nb">}</span>
</div><div id="l2438" class="code_block">
</div><div id="l2439" class="code_block">Returns a parallel line defined by two points.
</div><div id="l2440" class="code_block">
</div><div id="l2441" class="code_block">SYNOPSIS <span class="k">\\</span>
</div><div id="l2442" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.parallel<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>x2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>distance<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2443" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.parallel<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>pos2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>distance<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2444" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.parallel<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>x2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y2<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2445" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.parallel<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>pos2<span class="nb">}</span>
</div><div id="l2446" class="code_block">
</div><div id="l2447" class="code_block"><span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[distance]
</div><div id="l2448" class="code_block"><span class="k">\item</span><span class="na">[\textit{x1 y1}]</span>  first point of existing line
</div><div id="l2449" class="code_block"><span class="k">\item</span><span class="na">[\textit{x2 y2}]</span>  second point of existing line
</div><div id="l2450" class="code_block"><span class="k">\item</span><span class="na">[\textit{pos1}]</span>  first point of existing line
</div><div id="l2451" class="code_block"><span class="k">\item</span><span class="na">[\textit{pos2}]</span>  second point of existing line
</div><div id="l2452" class="code_block"><span class="k">\item</span><span class="na">[\textit{distance}]</span>  Distance. If omitted new parallel line goes through the current cursor position.
</div><div id="l2453" class="code_block"><span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2454" class="code_block">
</div><div id="l2455" class="code_block">EXAMPLE
</div><div id="l2456" class="code_block"><span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2457" class="code_block">set A <span class="nb">{</span>20 25<span class="nb">}</span>; point <span class="s">$</span><span class="nb">A; label A</span>
</div><div id="l2458" class="code_block"><span class="nb">set B {</span><span class="m">70</span><span class="nb"> </span><span class="m">45</span><span class="nb">}; point </span><span class="s">$</span>B; label B
</div><div id="l2459" class="code_block">set C <span class="nb">{</span>85 30<span class="nb">}</span>; point <span class="s">$</span><span class="nb">C; label C</span>
</div><div id="l2460" class="code_block"><span class="nb"># Draw a dimension line at </span><span class="m">12</span><span class="nb">mm distance to AB</span>
</div><div id="l2461" class="code_block"><span class="nb">dimline </span><span class="o">[</span><span class="nb">geom.parallel </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="o">[</span><span class="nb">mm </span><span class="m">12</span><span class="o">]]</span>
</div><div id="l2462" class="code_block"><span class="nb">pen dashed</span>
</div><div id="l2463" class="code_block"><span class="nb"># Draw a parallel line through C </span><span class="o">(</span><span class="nb">current cursor position</span><span class="o">)</span>
</div><div id="l2464" class="code_block"><span class="nb">moveto </span><span class="s">$</span>C
</div><div id="l2465" class="code_block">line [geom.parallel <span class="s">$</span><span class="nb">A </span><span class="s">$</span>B]
</div><div id="l2466" class="code_block"><span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2467" class="code_block">
</div><div id="l2468" class="code_block"><span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdGeomParallel<span class="nb">}</span>
</div><div id="l2469" class="code_block">
</div><div id="l2470" class="code_block">
</div><div id="l2471" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>geom.topolygon<span class="nb">}</span>
</div><div id="l2472" class="code_block">
</div><div id="l2473" class="code_block">Returns a closed polygon (approximation) for shapes.
</div><div id="l2474" class="code_block">
</div><div id="l2475" class="code_block">SYNOPSIS <span class="k">\\</span>
</div><div id="l2476" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.topolygon<span class="nb">}</span> rectangle (rect)  <span class="k">\ldots</span> <span class="k">\\</span>
</div><div id="l2477" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.topolygon<span class="nb">}</span> box  <span class="k">\ldots</span> <span class="k">\\</span>
</div><div id="l2478" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.topolygon<span class="nb">}</span> rectmid  <span class="k">\ldots</span> <span class="k">\\</span>
</div><div id="l2479" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.topolygon<span class="nb">}</span> rod  <span class="k">\ldots</span> <span class="k">\\</span>
</div><div id="l2480" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.topolygon<span class="nb">}</span> circle  <span class="k">\ldots</span> <span class="k">\\</span>
</div><div id="l2481" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.topolygon<span class="nb">}</span> ellipse  <span class="k">\ldots</span>
</div><div id="l2482" class="code_block">
</div><div id="l2483" class="code_block">EXAMPLE
</div><div id="l2484" class="code_block"><span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2485" class="code_block">set A <span class="nb">{</span>10 10<span class="nb">}</span>
</div><div id="l2486" class="code_block">set B <span class="nb">{</span>30 15<span class="nb">}</span>
</div><div id="l2487" class="code_block">set C <span class="nb">{</span>35 25<span class="nb">}</span>
</div><div id="l2488" class="code_block">set D <span class="nb">{</span> 5 30<span class="nb">}</span>
</div><div id="l2489" class="code_block">set M <span class="nb">{</span>20 20<span class="nb">}</span>
</div><div id="l2490" class="code_block">set opening [geom.topolygon circle <span class="s">$</span><span class="nb">M </span><span class="m">5</span><span class="o">]</span>
</div><div id="l2491" class="code_block"><span class="nb"># hatch</span>
</div><div id="l2492" class="code_block"><span class="nb">pen </span><span class="m">0</span><span class="nb">.</span><span class="m">2</span>
</div><div id="l2493" class="code_block"><span class="nb">hatch </span><span class="m">65</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">5</span>
</div><div id="l2494" class="code_block"><span class="nb">hatchpolygon </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D </span><span class="s">$</span>A  <span class="s">$</span><span class="nb">opening</span>
</div><div id="l2495" class="code_block"><span class="nb">hatch </span><span class="o">[+</span><span class="nb"> </span><span class="m">65</span><span class="nb"> </span><span class="m">90</span><span class="o">]</span><span class="nb"> </span><span class="m">1</span><span class="nb">.</span><span class="m">5</span>
</div><div id="l2496" class="code_block"><span class="nb">hatchpolygon </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D </span><span class="s">$</span>A  <span class="s">$</span><span class="nb">opening</span>
</div><div id="l2497" class="code_block"><span class="nb"># outline</span>
</div><div id="l2498" class="code_block"><span class="nb">pen</span>
</div><div id="l2499" class="code_block"><span class="nb">polygon </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C <span class="s">$</span><span class="nb">D</span>
</div><div id="l2500" class="code_block"><span class="nb">polygon </span><span class="s">$</span>opening
</div><div id="l2501" class="code_block"><span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2502" class="code_block">
</div><div id="l2503" class="code_block"><span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdHatchpolygon<span class="nb">}</span>
</div><div id="l2504" class="code_block">
</div><div id="l2505" class="code_block">
</div><div id="l2506" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>geom.topolyline<span class="nb">}</span>
</div><div id="l2507" class="code_block">
</div><div id="l2508" class="code_block">Returns a polyline (approximation) for curves. The subcommand <span class="k">\textit</span><span class="nb">{</span>reverse<span class="nb">}</span> changes the order of a list, starting by the last point.
</div><div id="l2509" class="code_block">
</div><div id="l2510" class="code_block">SYNOPSIS <span class="k">\\</span>
</div><div id="l2511" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.topolygon<span class="nb">}</span> quadcurve (parabola)  <span class="k">\ldots</span> <span class="k">\\</span>
</div><div id="l2512" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.topolygon<span class="nb">}</span> cubiccurve  <span class="k">\ldots</span> <span class="k">\\</span>
</div><div id="l2513" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.topolygon<span class="nb">}</span> arc  <span class="k">\ldots</span> <span class="k">\\</span>
</div><div id="l2514" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.topolygon<span class="nb">}</span> arc2  <span class="k">\ldots</span> <span class="k">\\</span>
</div><div id="l2515" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.topolygon<span class="nb">}</span> reverse  <span class="k">\ldots</span>
</div><div id="l2516" class="code_block">
</div><div id="l2517" class="code_block">EXAMPLE
</div><div id="l2518" class="code_block"><span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2519" class="code_block">offset 10 10
</div><div id="l2520" class="code_block">set A <span class="nb">{</span> 0  0<span class="nb">}</span>
</div><div id="l2521" class="code_block">set B <span class="nb">{</span>40  0<span class="nb">}</span>
</div><div id="l2522" class="code_block">set C <span class="nb">{</span>20 20<span class="nb">}</span>
</div><div id="l2523" class="code_block">set D <span class="nb">{</span>10 15<span class="nb">}</span>
</div><div id="l2524" class="code_block"># outline
</div><div id="l2525" class="code_block">quadcurve <span class="s">$</span><span class="nb">A </span><span class="s">$</span>C <span class="s">$</span><span class="nb">B</span>
</div><div id="l2526" class="code_block"><span class="nb">line </span><span class="s">$</span>A <span class="s">$</span><span class="nb">D </span><span class="s">$</span>B
</div><div id="l2527" class="code_block"># hatch
</div><div id="l2528" class="code_block">pen 0.2
</div><div id="l2529" class="code_block">hatch 90 1.5
</div><div id="l2530" class="code_block">hatchpolygon [geom.topolyline quadcurve <span class="s">$</span><span class="nb">A </span><span class="s">$</span>C <span class="s">$</span><span class="nb">B</span><span class="o">]</span><span class="nb"> </span><span class="s">$</span>D
</div><div id="l2531" class="code_block"><span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2532" class="code_block">
</div><div id="l2533" class="code_block"><span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdHatchpolylines<span class="nb">}</span>
</div><div id="l2534" class="code_block">
</div><div id="l2535" class="code_block">
</div><div id="l2536" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>geom.azimuth (geom.azi)<span class="nb">}</span>
</div><div id="l2537" class="code_block">
</div><div id="l2538" class="code_block">Computes the azimuth (in degrees) from point A to point B.
</div><div id="l2539" class="code_block">
</div><div id="l2540" class="code_block">SYNOPSIS <span class="k">\\</span>
</div><div id="l2541" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.azimuth<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y2<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2542" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.azimuth<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posB<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2543" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.azimuth<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y2<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2544" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.azimuth<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posB<span class="nb">}</span>
</div><div id="l2545" class="code_block">
</div><div id="l2546" class="code_block"><span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[x2 y2]
</div><div id="l2547" class="code_block"><span class="k">\item</span><span class="na">[\textit{x1 y1}]</span>  First point. If omitted the current cursor position is assumed.
</div><div id="l2548" class="code_block"><span class="k">\item</span><span class="na">[\textit{x2 y2}]</span>  second point
</div><div id="l2549" class="code_block"><span class="k">\item</span><span class="na">[\textit{posA}]</span>  First point. If omitted the current cursor position is assumed.
</div><div id="l2550" class="code_block"><span class="k">\item</span><span class="na">[\textit{posB}]</span>  second point
</div><div id="l2551" class="code_block"><span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2552" class="code_block">
</div><div id="l2553" class="code_block">EXAMPLE
</div><div id="l2554" class="code_block"><span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2555" class="code_block">puts [geom.azimuth 10 10  30 30]; # Writes 45.0
</div><div id="l2556" class="code_block"><span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2557" class="code_block">
</div><div id="l2558" class="code_block">
</div><div id="l2559" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>geom.length (geom.abs)<span class="nb">}</span>
</div><div id="l2560" class="code_block">
</div><div id="l2561" class="code_block">Computes the length of a vector. Thus returns the hypotenuse of two catheti in a right-angled triangle.
</div><div id="l2562" class="code_block">
</div><div id="l2563" class="code_block">SYNOPSIS <span class="k">\\</span>
</div><div id="l2564" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.length<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yA <span class="nb">}</span><span class="k">\textit</span><span class="nb">{</span>xB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yB<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2565" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.length<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posB<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2566" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.length<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dx<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dy<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2567" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.length<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>v<span class="nb">}</span>
</div><div id="l2568" class="code_block">
</div><div id="l2569" class="code_block"><span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[xA yA xB yB]
</div><div id="l2570" class="code_block"><span class="k">\item</span><span class="na">[\textit{xA yA xB yB}]</span>  vector <span class="s">$</span><span class="nb"> </span><span class="nv">\overline</span><span class="nb">{AB} </span><span class="s">$</span>
</div><div id="l2571" class="code_block"><span class="k">\item</span><span class="na">[\textit{posA posB}]</span>  vector <span class="s">$</span><span class="nb"> </span><span class="nv">\overline</span><span class="nb">{AB} </span><span class="s">$</span>
</div><div id="l2572" class="code_block"><span class="k">\item</span><span class="na">[\textit{dx dy}]</span>  vector
</div><div id="l2573" class="code_block"><span class="k">\item</span><span class="na">[\textit{v}]</span>  vector
</div><div id="l2574" class="code_block"><span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2575" class="code_block">
</div><div id="l2576" class="code_block">EXAMPLE
</div><div id="l2577" class="code_block"><span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2578" class="code_block">puts [geom.length 30 40]; # Writes 50.0
</div><div id="l2579" class="code_block"><span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2580" class="code_block">
</div><div id="l2581" class="code_block">
</div><div id="l2582" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>geom.area<span class="nb">}</span>
</div><div id="l2583" class="code_block">
</div><div id="l2584" class="code_block">Computes the area within a polygon. The command always returns a positive value.
</div><div id="l2585" class="code_block">
</div><div id="l2586" class="code_block">SYNOPSIS <span class="k">\\</span>
</div><div id="l2587" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.area<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xC<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yC<span class="nb">}</span> <span class="k">\ldots</span> <span class="k">\\</span>
</div><div id="l2588" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>geom.area<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posC<span class="nb">}</span> <span class="k">\ldots</span>
</div><div id="l2589" class="code_block">
</div><div id="l2590" class="code_block"><span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[vector]
</div><div id="l2591" class="code_block"><span class="k">\item</span><span class="na">[\textit{xA yA}]</span>  first point of polygon
</div><div id="l2592" class="code_block"><span class="k">\item</span><span class="na">[\textit{xB yB}]</span>  second point of polygon
</div><div id="l2593" class="code_block"><span class="k">\item</span><span class="na">[\textit{xC yC}]</span>  third point of polygon
</div><div id="l2594" class="code_block"><span class="k">\item</span><span class="na">[\textit{posA}]</span>  first point of polygon
</div><div id="l2595" class="code_block"><span class="k">\item</span><span class="na">[\textit{posB}]</span>  second point of polygon
</div><div id="l2596" class="code_block"><span class="k">\item</span><span class="na">[\textit{posC}]</span>  third point of polygon
</div><div id="l2597" class="code_block"><span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2598" class="code_block">
</div><div id="l2599" class="code_block">EXAMPLE  <span class="k">\\</span>
</div><div id="l2600" class="code_block">see above
</div><div id="l2601" class="code_block">
</div><div id="l2602" class="code_block">
</div><div id="l2603" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>geom.angle<span class="nb">}</span>
</div><div id="l2604" class="code_block">analogy:  <span class="k">\textbf</span><span class="nb">{</span>geom.anglerad<span class="nb">}</span>
</div><div id="l2605" class="code_block"><span class="k">\nopagebreak</span>
</div><div id="l2606" class="code_block">
</div><div id="l2607" class="code_block"> Computes the angle (in degrees) between three points. A is the centre point.
</div><div id="l2608" class="code_block"> If the argument is a vector its direction (azimuth) is computed.
</div><div id="l2609" class="code_block"> 
</div><div id="l2610" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2611" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.angle<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xP<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yP<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xQ<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yQ<span class="nb">}</span><span class="k">\\</span>
</div><div id="l2612" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.angle<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posP<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posQ<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2613" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.angle<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xP<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yP<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xQ<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yQ<span class="nb">}</span><span class="k">\\</span>
</div><div id="l2614" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.angle<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posP<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posQ<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2615" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.angle<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>vector<span class="nb">}</span>
</div><div id="l2616" class="code_block"> 
</div><div id="l2617" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[vector]
</div><div id="l2618" class="code_block"> <span class="k">\item</span><span class="na">[\textit{xA yA}]</span>  Centre point. If omitted the current cursor position is assumed.
</div><div id="l2619" class="code_block"> <span class="k">\item</span><span class="na">[\textit{xP yP}]</span>  first distant point
</div><div id="l2620" class="code_block"> <span class="k">\item</span><span class="na">[\textit{xQ yQ}]</span>  second distant point
</div><div id="l2621" class="code_block"> <span class="k">\item</span><span class="na">[\textit{posA}]</span>  Centre point. If omitted the current cursor position is assumed.
</div><div id="l2622" class="code_block"> <span class="k">\item</span><span class="na">[\textit{posP}]</span>  first distant point
</div><div id="l2623" class="code_block"> <span class="k">\item</span><span class="na">[\textit{posQ}]</span>  second distant point
</div><div id="l2624" class="code_block"> <span class="k">\item</span><span class="na">[\textit{vector}]</span>  vector
</div><div id="l2625" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2626" class="code_block">
</div><div id="l2627" class="code_block">
</div><div id="l2628" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>geom.crossproduct<span class="nb">}</span>
</div><div id="l2629" class="code_block">
</div><div id="l2630" class="code_block">Computes the cross product of two vectors. The command returns the scalar z component of the resulting vector.
</div><div id="l2631" class="code_block"> 
</div><div id="l2632" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2633" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.crossproduct<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dx1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dy1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dx2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dy2<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2634" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.crossproduct<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>v1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>v2<span class="nb">}</span>
</div><div id="l2635" class="code_block"> 
</div><div id="l2636" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[dx2 dy2]
</div><div id="l2637" class="code_block"> <span class="k">\item</span><span class="na">[\textit{dx1 dy1}]</span>  first vector
</div><div id="l2638" class="code_block"> <span class="k">\item</span><span class="na">[\textit{dx2 dy2}]</span>  second vector
</div><div id="l2639" class="code_block"> <span class="k">\item</span><span class="na">[\textit{v1}]</span>  first vector
</div><div id="l2640" class="code_block"> <span class="k">\item</span><span class="na">[\textit{v2}]</span>  second vector
</div><div id="l2641" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2642" class="code_block"> 
</div><div id="l2643" class="code_block">EXAMPLE
</div><div id="l2644" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2645" class="code_block">puts [geom.crossproduct  3 0.5  2 2]; # Writes 5.0
</div><div id="l2646" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2647" class="code_block">
</div><div id="l2648" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>geom.dotproduct<span class="nb">}</span>
</div><div id="l2649" class="code_block">
</div><div id="l2650" class="code_block">Computes the (scalar) dot product of two vectors.
</div><div id="l2651" class="code_block"> 
</div><div id="l2652" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2653" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.dotproduct<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dx1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dy1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dx2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>dy2<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2654" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.dotproduct<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>v1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>v2<span class="nb">}</span>
</div><div id="l2655" class="code_block"> 
</div><div id="l2656" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[dx2 dy2]
</div><div id="l2657" class="code_block"> <span class="k">\item</span><span class="na">[\textit{dx1 dy1}]</span>  first vector
</div><div id="l2658" class="code_block"> <span class="k">\item</span><span class="na">[\textit{dx2 dy2}]</span>  second vector
</div><div id="l2659" class="code_block"> <span class="k">\item</span><span class="na">[\textit{v1}]</span>  first vector
</div><div id="l2660" class="code_block"> <span class="k">\item</span><span class="na">[\textit{v2}]</span>  second vector
</div><div id="l2661" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2662" class="code_block"> 
</div><div id="l2663" class="code_block">EXAMPLE
</div><div id="l2664" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2665" class="code_block">puts [geom.dotproduct 3 0.5  2 2]; # Writes 7.0
</div><div id="l2666" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2667" class="code_block"> 
</div><div id="l2668" class="code_block"> 
</div><div id="l2669" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>geom.distance (geom.dist)<span class="nb">}</span>
</div><div id="l2670" class="code_block">
</div><div id="l2671" class="code_block"> Computes the distance of a line (or point) to the current position.
</div><div id="l2672" class="code_block"> 
</div><div id="l2673" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2674" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.distance<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>x2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y2<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2675" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.distance<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>pos2<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2676" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.distance<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y1<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2677" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>geom.distance<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>pos1<span class="nb">}</span>
</div><div id="l2678" class="code_block"> 
</div><div id="l2679" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[x2 y2]
</div><div id="l2680" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x1 y1}]</span>  first point of existing line or just point
</div><div id="l2681" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x2 y2}]</span>  second point of existing line
</div><div id="l2682" class="code_block"> <span class="k">\item</span><span class="na">[\textit{pos1}]</span>  first point of existing line or just point
</div><div id="l2683" class="code_block"> <span class="k">\item</span><span class="na">[\textit{pos2}]</span>  second point of existing line
</div><div id="l2684" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2685" class="code_block"> 
</div><div id="l2686" class="code_block">EXAMPLE
</div><div id="l2687" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2688" class="code_block">set s 30
</div><div id="l2689" class="code_block">set A <span class="nb">{</span>50 30<span class="nb">}</span>
</div><div id="l2690" class="code_block">set B [++ <span class="s">$</span><span class="nb">A &quot;</span><span class="s">$</span>s 0&quot;]
</div><div id="l2691" class="code_block">set C [++ <span class="s">$</span><span class="nb">A </span><span class="o">[</span><span class="nb">p </span><span class="s">$</span>s -60]]
</div><div id="l2692" class="code_block">m <span class="s">$</span><span class="nb">A; label A SW</span>
</div><div id="l2693" class="code_block"><span class="nb">m </span><span class="s">$</span>B; label B SE
</div><div id="l2694" class="code_block">m <span class="s">$</span><span class="nb">C; label C</span>
</div><div id="l2695" class="code_block"><span class="nb">label s </span><span class="s">$</span>B <span class="s">$</span><span class="nb">C</span>
</div><div id="l2696" class="code_block"><span class="nb">polygon </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="s">$</span>C; # cursor now is at <span class="s">$</span><span class="nb">A</span>
</div><div id="l2697" class="code_block"><span class="nb">moverel </span><span class="o">[</span><span class="nb">expr </span><span class="s">$</span>s /2] [expr -sqrt(3)*<span class="s">$</span><span class="nb">s </span><span class="o">/</span><span class="m">6</span><span class="o">]</span>
</div><div id="l2698" class="code_block"><span class="nb">dot; label M</span>
</div><div id="l2699" class="code_block"><span class="nb">pen </span><span class="m">0</span><span class="nb">.</span><span class="m">35</span>
</div><div id="l2700" class="code_block"><span class="nb">circle </span><span class="o">[</span><span class="nb">geom.distance </span><span class="s">$</span>A]
</div><div id="l2701" class="code_block">pen dashed
</div><div id="l2702" class="code_block">circle [geom.distance <span class="s">$</span><span class="nb">A </span><span class="s">$</span>B]
</div><div id="l2703" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2704" class="code_block"> 
</div><div id="l2705" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdGeomDistance<span class="nb">}</span>
</div><div id="l2706" class="code_block"> 
</div><div id="l2707" class="code_block"> 
</div><div id="l2708" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Statics commands<span class="nb">}</span>
</div><div id="l2709" class="code_block"><span class="k">\label</span><span class="nb">{</span>StaticsCommands<span class="nb">}</span>
</div><div id="l2710" class="code_block">
</div><div id="l2711" class="code_block">The statics commands stat.* are utility commands, that do calculations with forces &quot;x y Fx Fy&quot;. The commands do not draw.
</div><div id="l2712" class="code_block">
</div><div id="l2713" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>stat.add (+++)<span class="nb">}</span>
</div><div id="l2714" class="code_block">
</div><div id="l2715" class="code_block"> Computes the force vector sum and a valid application point.
</div><div id="l2716" class="code_block"> 
</div><div id="l2717" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2718" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.add<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F2<span class="nb">}</span> <span class="k">\ldots</span> <span class="k">\\</span>
</div><div id="l2719" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>+++<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F2<span class="nb">}</span> <span class="k">\ldots</span>
</div><div id="l2720" class="code_block"> 
</div><div id="l2721" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[F2]
</div><div id="l2722" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F1}]</span>  first force
</div><div id="l2723" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F2}]</span>  second force
</div><div id="l2724" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2725" class="code_block"> 
</div><div id="l2726" class="code_block">EXAMPLE
</div><div id="l2727" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2728" class="code_block">set F1 <span class="nb">{</span>5.0 0.0  20 100<span class="nb">}</span>
</div><div id="l2729" class="code_block">set F2 <span class="nb">{</span>15.0 0.0  -20 100<span class="nb">}</span>
</div><div id="l2730" class="code_block">force <span class="s">$</span><span class="nb">F</span><span class="m">1</span>
</div><div id="l2731" class="code_block"><span class="nb">force </span><span class="s">$</span>F2
</div><div id="l2732" class="code_block">pen 1.0
</div><div id="l2733" class="code_block">set R  [stat.add <span class="s">$</span><span class="nb">F</span><span class="m">1</span><span class="nb"> </span><span class="s">$</span>F2]
</div><div id="l2734" class="code_block">force <span class="s">$</span><span class="nb">R</span>
</div><div id="l2735" class="code_block"><span class="nb">puts </span><span class="s">$</span>R;                   # Writes 10.0 0.0 0.0 200.0
</div><div id="l2736" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2737" class="code_block"> 
</div><div id="l2738" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdStatAdd<span class="nb">}</span>
</div><div id="l2739" class="code_block"> 
</div><div id="l2740" class="code_block">
</div><div id="l2741" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>stat.subtract (---)<span class="nb">}</span>
</div><div id="l2742" class="code_block">
</div><div id="l2743" class="code_block"> Computes the force vector subtraction and a valid application point.
</div><div id="l2744" class="code_block"> 
</div><div id="l2745" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2746" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.subtract<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F2<span class="nb">}</span> <span class="k">\ldots</span> <span class="k">\\</span>
</div><div id="l2747" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>---<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F2<span class="nb">}</span> <span class="k">\ldots</span>
</div><div id="l2748" class="code_block"> 
</div><div id="l2749" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[F2]
</div><div id="l2750" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F1}]</span>  first force (sum)
</div><div id="l2751" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F2}]</span>  second force (to be subtracted from sum)
</div><div id="l2752" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2753" class="code_block"> 
</div><div id="l2754" class="code_block">EXAMPLE
</div><div id="l2755" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2756" class="code_block">set F1 <span class="nb">{</span> 5.0 0.0    0 100<span class="nb">}</span>
</div><div id="l2757" class="code_block">set F2 <span class="nb">{</span>15.0 0.0  -20 100<span class="nb">}</span>
</div><div id="l2758" class="code_block">set R  [stat.add <span class="s">$</span><span class="nb">F</span><span class="m">1</span><span class="nb"> </span><span class="s">$</span>F2]
</div><div id="l2759" class="code_block">puts [stat.subtract <span class="s">$</span><span class="nb">R </span><span class="s">$</span>F2]; # Writes 5.0 0.0 0.0 100.0
</div><div id="l2760" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2761" class="code_block"> 
</div><div id="l2762" class="code_block">
</div><div id="l2763" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>stat.multiply (***)<span class="nb">}</span>
</div><div id="l2764" class="code_block">
</div><div id="l2765" class="code_block"> Computes a force scaled by multiplication. The application point does not change.
</div><div id="l2766" class="code_block"> 
</div><div id="l2767" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2768" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.multiply<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>factor<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>force<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2769" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>***<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>factor<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>force<span class="nb">}</span>
</div><div id="l2770" class="code_block"> 
</div><div id="l2771" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[factor]
</div><div id="l2772" class="code_block"> <span class="k">\item</span><span class="na">[\textit{factor}]</span>  scaling factor
</div><div id="l2773" class="code_block"> <span class="k">\item</span><span class="na">[\textit{force}]</span>  force &quot;x0 y0 Fx Fy&quot;
</div><div id="l2774" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2775" class="code_block"> 
</div><div id="l2776" class="code_block">EXAMPLE
</div><div id="l2777" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2778" class="code_block">puts [*** 1.5 <span class="nb">{</span>5.00 0.00  20 30<span class="nb">}</span>]; # Writes 5.0 0.0 30.0 45.0
</div><div id="l2779" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2780" class="code_block"> 
</div><div id="l2781" class="code_block">
</div><div id="l2782" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>stat.move<span class="nb">}</span>
</div><div id="l2783" class="code_block">
</div><div id="l2784" class="code_block"> Returns an equivalent force to the input force. The application point is moved along the action line of the force, 
</div><div id="l2785" class="code_block"> until it intersects the extension of a line <span class="s">$</span><span class="nb"> </span><span class="nv">\overline</span><span class="nb">{AB} </span><span class="s">$</span>.
</div><div id="l2786" class="code_block"> 
</div><div id="l2787" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2788" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.move<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fx<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fy<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yB<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2789" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.move<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posB<span class="nb">}</span>
</div><div id="l2790" class="code_block"> 
</div><div id="l2791" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[vector]
</div><div id="l2792" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x0 y0}]</span>  application point of input force
</div><div id="l2793" class="code_block"> <span class="k">\item</span><span class="na">[\textit{Fx Fy}]</span>  components of input force
</div><div id="l2794" class="code_block"> <span class="k">\item</span><span class="na">[\textit{xA yA}]</span>  first point of line AB
</div><div id="l2795" class="code_block"> <span class="k">\item</span><span class="na">[\textit{xB yB}]</span>  second point of line AB
</div><div id="l2796" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F}]</span>  input force &quot;x0 y0 Fx Fy&quot;
</div><div id="l2797" class="code_block"> <span class="k">\item</span><span class="na">[\textit{posA}]</span>  first point of line AB
</div><div id="l2798" class="code_block"> <span class="k">\item</span><span class="na">[\textit{posB}]</span>  second point of line AB
</div><div id="l2799" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2800" class="code_block"> 
</div><div id="l2801" class="code_block">EXAMPLE  <span class="k">\\</span>
</div><div id="l2802" class="code_block">see below
</div><div id="l2803" class="code_block"> 
</div><div id="l2804" class="code_block">
</div><div id="l2805" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>stat.move2<span class="nb">}</span>
</div><div id="l2806" class="code_block">
</div><div id="l2807" class="code_block"> Returns an equivalent force to the input force. The application point is moved along the action line of the force, 
</div><div id="l2808" class="code_block"> until the arrow head touches the extension of a line <span class="s">$</span><span class="nb"> </span><span class="nv">\overline</span><span class="nb">{AB} </span><span class="s">$</span>.
</div><div id="l2809" class="code_block"> 
</div><div id="l2810" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2811" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.move2<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fx<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fy<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yB<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2812" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.move2<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>posB<span class="nb">}</span>
</div><div id="l2813" class="code_block"> 
</div><div id="l2814" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[vector]
</div><div id="l2815" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x0 y0}]</span>  application point of input force
</div><div id="l2816" class="code_block"> <span class="k">\item</span><span class="na">[\textit{Fx Fy}]</span>  components of input force
</div><div id="l2817" class="code_block"> <span class="k">\item</span><span class="na">[\textit{xA yA}]</span>  first point of line AB
</div><div id="l2818" class="code_block"> <span class="k">\item</span><span class="na">[\textit{xB yB}]</span>  second point of line AB
</div><div id="l2819" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F}]</span>  input force &quot;x0 y0 Fx Fy&quot;
</div><div id="l2820" class="code_block"> <span class="k">\item</span><span class="na">[\textit{posA}]</span>  first point of line AB
</div><div id="l2821" class="code_block"> <span class="k">\item</span><span class="na">[\textit{posB}]</span>  second point of line AB
</div><div id="l2822" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2823" class="code_block"> 
</div><div id="l2824" class="code_block">EXAMPLE
</div><div id="l2825" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2826" class="code_block">unitlength 10; forceunitlength 0.5
</div><div id="l2827" class="code_block">pen gray
</div><div id="l2828" class="code_block">set A <span class="nb">{</span>5.5 0.5<span class="nb">}</span>; m <span class="s">$</span><span class="nb">A; tlb A</span>
</div><div id="l2829" class="code_block"><span class="nb">set B {</span><span class="m">6</span><span class="nb">.</span><span class="m">0</span><span class="nb"> </span><span class="m">3</span><span class="nb">.</span><span class="m">5</span><span class="nb">}; m </span><span class="s">$</span>B; tlb B
</div><div id="l2830" class="code_block">l <span class="s">$</span><span class="nb">A </span><span class="s">$</span>B
</div><div id="l2831" class="code_block">pen
</div><div id="l2832" class="code_block">set P0 <span class="nb">{</span>0.5 1.0  40 5<span class="nb">}</span>; texforce <span class="s">$</span><span class="nb">P</span><span class="m">0</span><span class="nb"> P_</span><span class="m">0</span>
</div><div id="l2833" class="code_block"><span class="nb">set Q</span><span class="m">0</span><span class="nb"> {</span><span class="m">0</span><span class="nb">.</span><span class="m">5</span><span class="nb"> </span><span class="m">2</span><span class="nb">.</span><span class="m">0</span><span class="nb">  </span><span class="m">40</span><span class="nb"> </span><span class="m">5</span><span class="nb">}; texforce </span><span class="s">$</span>Q0 Q<span class="nb">_</span>0
</div><div id="l2834" class="code_block">texforce [stat.move <span class="s">$</span><span class="nb">P</span><span class="m">0</span><span class="nb"> </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B</span><span class="o">]</span><span class="nb"> P_</span><span class="m">1</span>
</div><div id="l2835" class="code_block"><span class="nb">texforce </span><span class="o">[</span><span class="nb">stat.move</span><span class="m">2</span><span class="nb"> </span><span class="s">$</span>Q0 <span class="s">$</span><span class="nb">A </span><span class="s">$</span>B] Q<span class="nb">_</span>2
</div><div id="l2836" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2837" class="code_block"> 
</div><div id="l2838" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdStatMove<span class="nb">}</span>
</div><div id="l2839" class="code_block"> 
</div><div id="l2840" class="code_block"> 
</div><div id="l2841" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>stat.actionline<span class="nb">}</span>
</div><div id="l2842" class="code_block">
</div><div id="l2843" class="code_block"> Returns two points on the action line of a force.
</div><div id="l2844" class="code_block"> 
</div><div id="l2845" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2846" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.actionline<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fx<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fy<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>fA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>fB<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2847" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.actionline<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>F<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>fA<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>fB<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2848" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.actionline<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fx<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fy<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>f<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2849" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.actionline<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>F<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>f<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2850" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.actionline<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fx<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fy<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2851" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.actionline<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F<span class="nb">}</span>
</div><div id="l2852" class="code_block"> 
</div><div id="l2853" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[vector]
</div><div id="l2854" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x0 y0}]</span>  application point of input force
</div><div id="l2855" class="code_block"> <span class="k">\item</span><span class="na">[\textit{Fx Fy}]</span>  components of input force
</div><div id="l2856" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F}]</span>  input force &quot;x0 y0 Fx Fy&quot;
</div><div id="l2857" class="code_block"> <span class="k">\item</span><span class="na">[\textit{fA fB}]</span>  extension factors (left, right), analogue to geom.online
</div><div id="l2858" class="code_block"> <span class="k">\item</span><span class="na">[\textit{f}]</span>  extension factor
</div><div id="l2859" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2860" class="code_block"> 
</div><div id="l2861" class="code_block">EXAMPLE  <span class="k">\\</span>
</div><div id="l2862" class="code_block">see below
</div><div id="l2863" class="code_block"> 
</div><div id="l2864" class="code_block"> 
</div><div id="l2865" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>stat.tip<span class="nb">}</span>
</div><div id="l2866" class="code_block">
</div><div id="l2867" class="code_block"> Returns the tip position of the force arrow.
</div><div id="l2868" class="code_block"> 
</div><div id="l2869" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2870" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.tip<span class="nb">}</span>  <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fx<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fy<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2871" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.tip<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F<span class="nb">}</span>
</div><div id="l2872" class="code_block"> 
</div><div id="l2873" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[vector]
</div><div id="l2874" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x0 y0}]</span>  application point of input force
</div><div id="l2875" class="code_block"> <span class="k">\item</span><span class="na">[\textit{Fx Fy}]</span>  components of input force
</div><div id="l2876" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F}]</span>  input force &quot;x0 y0 Fx Fy&quot;
</div><div id="l2877" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2878" class="code_block">
</div><div id="l2879" class="code_block">
</div><div id="l2880" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>stat.abs<span class="nb">}</span>
</div><div id="l2881" class="code_block">
</div><div id="l2882" class="code_block"> Computes the absolute value of a force: <span class="s">$</span><span class="nb"> </span><span class="nv">\sqrt</span><span class="nb">{F_x^</span><span class="m">2</span><span class="nb"> </span><span class="o">+</span><span class="nb"> F_y^</span><span class="m">2</span><span class="nb">} </span><span class="s">$</span>.
</div><div id="l2883" class="code_block"> 
</div><div id="l2884" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2885" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.abs<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fx<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fy<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2886" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.abs<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F<span class="nb">}</span>
</div><div id="l2887" class="code_block"> 
</div><div id="l2888" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[Fx Fy]
</div><div id="l2889" class="code_block"> <span class="k">\item</span><span class="na">[\textit{Fx Fy}]</span>  force components
</div><div id="l2890" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x0 y0}]</span>  Application point. Does not influence the result.
</div><div id="l2891" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F}]</span>  force &quot;x0 y0 Fx Fy&quot;
</div><div id="l2892" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2893" class="code_block"> 
</div><div id="l2894" class="code_block">EXAMPLE  <span class="k">\\</span>
</div><div id="l2895" class="code_block">see below
</div><div id="l2896" class="code_block"> 
</div><div id="l2897" class="code_block"> 
</div><div id="l2898" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>stat.distance (stat.dist)<span class="nb">}</span>
</div><div id="l2899" class="code_block">
</div><div id="l2900" class="code_block"> Computes the distance of a force to the current position.
</div><div id="l2901" class="code_block"> 
</div><div id="l2902" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2903" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.distance<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fx<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fy<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2904" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.distance<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F<span class="nb">}</span>
</div><div id="l2905" class="code_block"> 
</div><div id="l2906" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[x2 y2]
</div><div id="l2907" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x0 y0}]</span>  application point of force
</div><div id="l2908" class="code_block"> <span class="k">\item</span><span class="na">[\textit{Fx Fy}]</span>  components of force
</div><div id="l2909" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F}]</span>  force &quot;x0 y0 Fx Fy&quot;
</div><div id="l2910" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2911" class="code_block"> 
</div><div id="l2912" class="code_block">EXAMPLE  <span class="k">\\</span>
</div><div id="l2913" class="code_block">see below
</div><div id="l2914" class="code_block"> 
</div><div id="l2915" class="code_block"> 
</div><div id="l2916" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>stat.moment<span class="nb">}</span>
</div><div id="l2917" class="code_block">
</div><div id="l2918" class="code_block"> Computes the moment of a force relative to the current position. If several forces are given, the sum of the moments is calculated.
</div><div id="l2919" class="code_block"> 
</div><div id="l2920" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2921" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.moment<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fx<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fy<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2922" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.moment<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F<span class="nb">}</span> <span class="k">\ldots</span>
</div><div id="l2923" class="code_block"> 
</div><div id="l2924" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[x2 y2]
</div><div id="l2925" class="code_block"> <span class="k">\item</span><span class="na">[\textit{x0 y0}]</span>  application point of force
</div><div id="l2926" class="code_block"> <span class="k">\item</span><span class="na">[\textit{Fx Fy}]</span>  components of force
</div><div id="l2927" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F}]</span>  force &quot;x0 y0 Fx Fy&quot;
</div><div id="l2928" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2929" class="code_block">
</div><div id="l2930" class="code_block"> EXAMPLE
</div><div id="l2931" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2932" class="code_block">unitlength [/ 1. 200.] m
</div><div id="l2933" class="code_block">forceunitlength [/ 5. 100.]
</div><div id="l2934" class="code_block">set A <span class="nb">{</span> 5.0 0<span class="nb">}</span>
</div><div id="l2935" class="code_block">set F <span class="nb">{</span>11.0 -0.90  300 400<span class="nb">}</span>
</div><div id="l2936" class="code_block">puts [stat.abs <span class="s">$</span><span class="nb">F</span><span class="o">]</span><span class="nb">;                 # Writes </span><span class="m">500</span><span class="nb">.</span><span class="m">0</span>
</div><div id="l2937" class="code_block"><span class="nb">moveto </span><span class="s">$</span>A
</div><div id="l2938" class="code_block">set r [stat.distance <span class="s">$</span><span class="nb">F</span><span class="o">]</span><span class="nb">; puts </span><span class="s">$</span>r;  # Writes 5.34
</div><div id="l2939" class="code_block">set M [stat.moment <span class="s">$</span><span class="nb">F</span><span class="o">]</span><span class="nb">; puts </span><span class="s">$</span>M;    # Writes 2670.0
</div><div id="l2940" class="code_block">
</div><div id="l2941" class="code_block"># Draw the point A, the force F and distance A-F
</div><div id="l2942" class="code_block">dot <span class="s">$</span><span class="nb">A; tlb A SW</span>
</div><div id="l2943" class="code_block"><span class="nb">texforce </span><span class="s">$</span>F
</div><div id="l2944" class="code_block">pen 0.35 darkgray
</div><div id="l2945" class="code_block">m <span class="s">$</span><span class="nb">A; texdimlinerel </span><span class="o">[</span><span class="nb">geom.rotate </span><span class="o">[**</span><span class="nb"> </span><span class="s">$</span>r [geom.norm [FXY <span class="s">$</span><span class="nb">F</span><span class="o">]]]</span><span class="nb"> </span><span class="o">-</span><span class="m">90</span><span class="o">]</span>
</div><div id="l2946" class="code_block"><span class="nb"># Write the moment M_A of the force F</span>
</div><div id="l2947" class="code_block"><span class="nb">moveto </span><span class="m">0</span><span class="nb">.</span><span class="m">5</span><span class="nb"> </span><span class="m">3</span><span class="nb">.</span><span class="m">0</span>
</div><div id="l2948" class="code_block"><span class="nb">texlabel &quot;M_A </span><span class="o">=</span><span class="nb"> </span><span class="o">[</span><span class="nb">stat.abs </span><span class="s">$</span>F] <span class="k">\\</span>times <span class="s">$</span><span class="nb">r </span><span class="o">=</span><span class="nb"> </span><span class="s">$</span>M <span class="k">\\</span>,<span class="k">\\</span>text<span class="nb">{</span>kNm<span class="nb">}</span>&quot;
</div><div id="l2949" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2950" class="code_block"> 
</div><div id="l2951" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdStatMoment<span class="nb">}</span>
</div><div id="l2952" class="code_block"> 
</div><div id="l2953" class="code_block">
</div><div id="l2954" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>stat.mequi<span class="nb">}</span>
</div><div id="l2955" class="code_block">
</div><div id="l2956" class="code_block"> Scales an input force until moment equilibrium is fulfilled. Moment equilibrium is done around the current cursor position.
</div><div id="l2957" class="code_block"> 
</div><div id="l2958" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2959" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.mequi<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>xB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>yB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>FxB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>FyB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>x0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>y0<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fx<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>Fy<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2960" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.mequi<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>FB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l2961" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.mequi<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>FB<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>M<span class="nb">}</span>
</div><div id="l2962" class="code_block"> 
</div><div id="l2963" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[FxB FyB]
</div><div id="l2964" class="code_block"> <span class="k">\item</span><span class="na">[\textit{xB yB}]</span>  position of sliding bearing
</div><div id="l2965" class="code_block"> <span class="k">\item</span><span class="na">[\textit{FxB FyB}]</span>  force components indicating direction of support (absolute value has no influence)
</div><div id="l2966" class="code_block"> <span class="k">\item</span><span class="na">[\textit{FB}]</span>  support force, absolute value has no influence
</div><div id="l2967" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F}]</span>  force &quot;x0 y0 Fx Fy&quot; to be equilibrated
</div><div id="l2968" class="code_block"> <span class="k">\item</span><span class="na">[\textit{M}]</span>  moment to be equilibrated
</div><div id="l2969" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2970" class="code_block"> 
</div><div id="l2971" class="code_block">EXAMPLE  <span class="k">\\</span>
</div><div id="l2972" class="code_block">see below
</div><div id="l2973" class="code_block"> 
</div><div id="l2974" class="code_block">
</div><div id="l2975" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>stat.equi<span class="nb">}</span>
</div><div id="l2976" class="code_block">
</div><div id="l2977" class="code_block"> Returns the force (components and application point) that is required to complete equilibrium.
</div><div id="l2978" class="code_block"> Equivalent to [*** -1 [+++ <span class="k">\$</span>F1 <span class="k">\$</span>F2]].
</div><div id="l2979" class="code_block"> 
</div><div id="l2980" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l2981" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.equi<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F1<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F2<span class="nb">}</span> <span class="k">\ldots</span>
</div><div id="l2982" class="code_block"> 
</div><div id="l2983" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[F2]
</div><div id="l2984" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F1}]</span>  first force
</div><div id="l2985" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F2}]</span>  second force
</div><div id="l2986" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l2987" class="code_block"> 
</div><div id="l2988" class="code_block">EXAMPLE
</div><div id="l2989" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l2990" class="code_block">unitlength [/ 1. 200.] m
</div><div id="l2991" class="code_block">forceunitlength [/ 5. 100.]
</div><div id="l2992" class="code_block">set A <span class="nb">{</span>5 0<span class="nb">}</span>
</div><div id="l2993" class="code_block">set B &quot;[++ <span class="s">$</span><span class="nb">A </span><span class="o">[</span><span class="nb">geom.rotate {</span><span class="m">10</span><span class="nb"> </span><span class="m">0</span><span class="nb">} </span><span class="o">-</span><span class="m">5</span><span class="o">]]</span><span class="nb">&quot;</span>
</div><div id="l2994" class="code_block"><span class="nb">set C </span><span class="o">[</span><span class="nb">geom.online </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B </span><span class="m">0</span><span class="nb">.</span><span class="m">6</span><span class="o">]</span>
</div><div id="l2995" class="code_block"><span class="nb">set F &quot;</span><span class="s">$</span>C 100 300&quot;
</div><div id="l2996" class="code_block">force2 <span class="s">$</span><span class="nb">F</span>
</div><div id="l2997" class="code_block">
</div><div id="l2998" class="code_block"><span class="nb"># Draw beam, points, bearings </span><span class="o">(</span><span class="nb">not shown</span><span class="o">)</span><span class="nb">, dimension lines</span>
</div><div id="l2999" class="code_block"><span class="nb">pen gray; moveto </span><span class="s">$</span>A; label A NW
</div><div id="l3000" class="code_block">lineto <span class="s">$</span><span class="nb">B; label B; point </span><span class="s">$</span>C
</div><div id="l3001" class="code_block">dimline ticks
</div><div id="l3002" class="code_block">dimline [geom.parallel <span class="s">$</span><span class="nb">A </span><span class="s">$</span>C [mm 15]] <span class="c">%.2f</span>
</div><div id="l3003" class="code_block">dimlinerel [-- &quot;<span class="s">$</span><span class="nb">B&quot; &quot;</span><span class="s">$</span>C&quot;] <span class="c">%.2f</span>
</div><div id="l3004" class="code_block">dimline [geom.parallel <span class="s">$</span><span class="nb">A </span><span class="s">$</span>B [mm 25]] <span class="c">%.2f</span>
</div><div id="l3005" class="code_block"># graphical statics
</div><div id="l3006" class="code_block">pen gray dashdotted 0.2
</div><div id="l3007" class="code_block">line [stat.actionline <span class="s">$</span><span class="nb">F </span><span class="m">1</span><span class="nb"> </span><span class="m">4</span><span class="o">]</span>
</div><div id="l3008" class="code_block"><span class="nb">line </span><span class="s">$</span>B [here]
</div><div id="l3009" class="code_block">lineto <span class="s">$</span><span class="nb">A</span>
</div><div id="l3010" class="code_block">
</div><div id="l3011" class="code_block"><span class="nb"># Calculate reaction forces</span>
</div><div id="l3012" class="code_block"><span class="nb">pen solid red </span><span class="m">0</span><span class="nb">.</span><span class="m">5</span>
</div><div id="l3013" class="code_block"><span class="nb">moveto </span><span class="s">$</span>A;  # moment equilibrium at pos. A in order to get force FB
</div><div id="l3014" class="code_block">set fB &quot;<span class="s">$</span><span class="nb">B </span><span class="m">0</span><span class="nb"> </span><span class="m">1</span><span class="nb">&quot;</span>
</div><div id="l3015" class="code_block"><span class="nb">set FB </span><span class="o">[</span><span class="nb">stat.mequi </span><span class="s">$</span>fB <span class="s">$</span><span class="nb">F</span><span class="o">]</span>
</div><div id="l3016" class="code_block"><span class="nb">force</span><span class="m">2</span><span class="nb"> </span><span class="s">$</span>FB
</div><div id="l3017" class="code_block">set FA [stat.equi <span class="s">$</span><span class="nb">F </span><span class="s">$</span>FB];  # equilibrium to get force FA
</div><div id="l3018" class="code_block">set FA [stat.move <span class="s">$</span><span class="nb">FA </span><span class="s">$</span>A <span class="s">$</span><span class="nb">B</span><span class="o">]</span>
</div><div id="l3019" class="code_block"><span class="nb">force</span><span class="m">2</span><span class="nb"> </span><span class="s">$</span>FA
</div><div id="l3020" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3021" class="code_block">
</div><div id="l3022" class="code_block"> 
</div><div id="l3023" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdStatMequi<span class="nb">}</span>
</div><div id="l3024" class="code_block"> 
</div><div id="l3025" class="code_block">
</div><div id="l3026" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>stat.fequi<span class="nb">}</span>
</div><div id="l3027" class="code_block">
</div><div id="l3028" class="code_block"> Equilibrates a known force F by two other forces A and B, of which the azimuths are known.
</div><div id="l3029" class="code_block"> The command returns the force A. Equilibrium is defined F + A + B = 0.
</div><div id="l3030" class="code_block"> Then B is [stat.equi <span class="k">\$</span>F <span class="k">\$</span>A].
</div><div id="l3031" class="code_block"> 
</div><div id="l3032" class="code_block"> SYNOPSIS <span class="k">\\</span>
</div><div id="l3033" class="code_block"> <span class="k">\textbf</span><span class="nb">{</span>stat.fequi<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>F<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span><span class="s">$</span><span class="nv">\alpha</span><span class="s">$</span><span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span><span class="s">$</span><span class="nv">\beta</span><span class="s">$</span><span class="nb">}</span>
</div><div id="l3034" class="code_block"> 
</div><div id="l3035" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>xlist<span class="nb">}</span>[FA]
</div><div id="l3036" class="code_block"> <span class="k">\item</span><span class="na">[\textit{F1}]</span>  known force
</div><div id="l3037" class="code_block"> <span class="k">\item</span><span class="na">[\textit{$\alpha$}]</span>  azimuth (in degrees) of searched force A
</div><div id="l3038" class="code_block"> <span class="k">\item</span><span class="na">[\textit{$\beta$}]</span>  azimuth (in degrees) of force B
</div><div id="l3039" class="code_block"> <span class="k">\end</span><span class="nb">{</span>xlist<span class="nb">}</span>
</div><div id="l3040" class="code_block"> 
</div><div id="l3041" class="code_block">EXAMPLE
</div><div id="l3042" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3043" class="code_block">forceunitlength [/ 1. 10.]
</div><div id="l3044" class="code_block">set F <span class="nb">{</span>40 35  -50 350<span class="nb">}</span>
</div><div id="l3045" class="code_block">force <span class="s">$</span><span class="nb">F F</span>
</div><div id="l3046" class="code_block"><span class="nb">set A </span><span class="o">[</span><span class="nb">stat.fequi </span><span class="s">$</span>F 65 -5]
</div><div id="l3047" class="code_block">set B [stat.equi <span class="s">$</span><span class="nb">F </span><span class="s">$</span>A]
</div><div id="l3048" class="code_block">pen gray
</div><div id="l3049" class="code_block">force <span class="s">$</span><span class="nb">A A</span>
</div><div id="l3050" class="code_block"><span class="nb">force </span><span class="s">$</span>B B
</div><div id="l3051" class="code_block">pen black;  # Draw the force polygon
</div><div id="l3052" class="code_block">m 100 25; lb <span class="nb">{</span>force polygon:<span class="nb">}</span> NW
</div><div id="l3053" class="code_block">moveto 100 35
</div><div id="l3054" class="code_block">force [FXY <span class="s">$</span><span class="nb">F</span><span class="o">]</span><span class="nb"> F</span>
</div><div id="l3055" class="code_block"><span class="nb">pen gray</span>
</div><div id="l3056" class="code_block"><span class="nb">force </span><span class="o">[</span><span class="nb">FXY </span><span class="s">$</span>A] A
</div><div id="l3057" class="code_block">force [FXY <span class="s">$</span><span class="nb">B</span><span class="o">]</span><span class="nb"> B</span>
</div><div id="l3058" class="code_block"><span class="nb">assert &quot;</span><span class="o">[</span><span class="nb">X </span><span class="o">[</span><span class="nb">here</span><span class="o">]]</span><span class="nb"> </span><span class="o">==</span><span class="nb"> </span><span class="m">100</span><span class="nb"> &amp;&amp; </span><span class="o">[</span><span class="nb">Y </span><span class="o">[</span><span class="nb">here</span><span class="o">]]</span><span class="nb"> </span><span class="o">==</span><span class="nb"> </span><span class="m">35</span><span class="nb">&quot; &quot;Force polygon not closed&quot;</span>
</div><div id="l3059" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l3060" class="code_block"><span class="nb"> </span>
</div><div id="l3061" class="code_block"><span class="nb"> </span><span class="nv">\includegraphics</span><span class="nb">{img</span><span class="o">/</span><span class="nb">out</span><span class="o">-</span><span class="nb">cmdStatFequi}</span>
</div><div id="l3062" class="code_block"><span class="nb"> </span>
</div><div id="l3063" class="code_block"><span class="nb"> </span>
</div><div id="l3064" class="code_block"><span class="nv">\subsection</span><span class="nb">{Programming commands}</span>
</div><div id="l3065" class="code_block"><span class="nv">\label</span><span class="nb">{ProgrammingCommands}</span>
</div><div id="l3066" class="code_block">
</div><div id="l3067" class="code_block"><span class="nb">For a programming introduction check the hecl tutorial </span><span class="nv">\htmladdnormallink</span><span class="nb">{http:</span><span class="o">//</span><span class="nb">hecl.org</span><span class="o">/</span><span class="nb">docs</span><span class="o">/</span><span class="nb">tutorial.html}{http:</span><span class="o">//</span><span class="nb">hecl.org</span><span class="o">/</span><span class="nb">docs</span><span class="o">/</span><span class="nb">tutorial.html}.</span>
</div><div id="l3068" class="code_block">
</div><div id="l3069" class="code_block"><span class="nb">For a complete reference, check the hecl command reference </span><span class="nv">\htmladdnormallink</span><span class="nb">{http:</span><span class="o">//</span><span class="nb">hecl.org</span><span class="o">/</span><span class="nb">docs</span><span class="o">/</span><span class="nb">commands.html}{http:</span><span class="o">//</span><span class="nb">hecl.org</span><span class="o">/</span><span class="nb">docs</span><span class="o">/</span><span class="nb">commands.html}.</span>
</div><div id="l3070" class="code_block">
</div><div id="l3071" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{Variables: set, </span><span class="nv">\$</span><span class="nb">}</span>
</div><div id="l3072" class="code_block"><span class="nb">set — Set a variable.</span>
</div><div id="l3073" class="code_block"><span class="nb">  </span>
</div><div id="l3074" class="code_block"><span class="nb">SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l3075" class="code_block"><span class="nv">\textbf</span><span class="nb">{set} </span><span class="nv">\textit</span><span class="nb">{varname} </span><span class="o">[</span><span class="nv">\textit</span><span class="nb">{value}</span><span class="o">]</span>
</div><div id="l3076" class="code_block">
</div><div id="l3077" class="code_block"><span class="nb">Description </span><span class="nv">\\</span>
</div><div id="l3078" class="code_block"><span class="nb">The set command sets the </span><span class="nv">\textit</span><span class="nb">{value} of a variable </span><span class="nv">\textit</span><span class="nb">{varname} to value </span><span class="nv">\textit</span><span class="nb">{value}. If </span><span class="nv">\textit</span><span class="nb">{value} is not provided, returns the value of </span><span class="nv">\textit</span><span class="nb">{varname}.</span>
</div><div id="l3079" class="code_block">
</div><div id="l3080" class="code_block"><span class="nb"> EXAMPLE</span>
</div><div id="l3081" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l3082" class="code_block"><span class="nb">set foo &quot;bar&quot;</span>
</div><div id="l3083" class="code_block"><span class="nb">set bee bop</span>
</div><div id="l3084" class="code_block"><span class="nb">puts &quot;foo is </span><span class="s">$</span>foo and bee is <span class="s">$</span><span class="nb">bee&quot;</span>
</div><div id="l3085" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l3086" class="code_block">
</div><div id="l3087" class="code_block"><span class="nb">Produces: </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">foo is bar and bee is bop</span><span class="o">!</span>
</div><div id="l3088" class="code_block">
</div><div id="l3089" class="code_block"><span class="nb">The variable </span><span class="nv">\textit</span><span class="nb">{</span><span class="nv">\$</span><span class="nb">argv} contains the list of eventual command line arguments, </span><span class="nv">\textit</span><span class="nb">{</span><span class="nv">\$</span><span class="nb">argc} the number of arguments passed to the drawing script. </span>
</div><div id="l3090" class="code_block">
</div><div id="l3091" class="code_block"><span class="nb">EXAMPLE </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">drawj</span><span class="m">2</span><span class="nb">d mydrawing.hcl Arg</span><span class="m">1</span><span class="nb"> Arg</span><span class="m">2</span><span class="nb"> Arg</span><span class="m">3</span><span class="o">!</span>
</div><div id="l3092" class="code_block"><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l3093" class="code_block"><span class="nb">puts &quot;The first of </span><span class="s">$</span>argc arguments is: [lindex <span class="s">$</span><span class="nb">argv </span><span class="m">0</span><span class="o">]</span><span class="nb">&quot;</span>
</div><div id="l3094" class="code_block"><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l3095" class="code_block">
</div><div id="l3096" class="code_block"><span class="nb">Produces: </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">The first of </span><span class="m">3</span><span class="nb"> arguments is: Arg</span><span class="m">1</span><span class="o">!</span>
</div><div id="l3097" class="code_block">
</div><div id="l3098" class="code_block">
</div><div id="l3099" class="code_block"><span class="nv">\subsubsection</span><span class="nb">{External script: source }</span>
</div><div id="l3100" class="code_block">
</div><div id="l3101" class="code_block"><span class="nb">The source command evaluates the Hecl script located in file </span><span class="nv">\textit</span><span class="nb">{filename}. Calling the source command from within a procedure prevents unintended overwriting of global variables.</span>
</div><div id="l3102" class="code_block">
</div><div id="l3103" class="code_block"><span class="nb">SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l3104" class="code_block"><span class="nb"> </span><span class="nv">\textbf</span><span class="nb">{source} </span><span class="nv">\textit</span><span class="nb">{filename.hcl} </span>
</div><div id="l3105" class="code_block"><span class="nb"> </span>
</div><div id="l3106" class="code_block">
</div><div id="l3107" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l3108" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l3109" class="code_block"><span class="nb"># Variable foo is defined as &quot;Hello world&quot; in foo.hcl</span>
</div><div id="l3110" class="code_block"><span class="nb">source foo.hcl</span>
</div><div id="l3111" class="code_block"><span class="nb">puts </span><span class="s">$</span>foo
</div><div id="l3112" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3113" class="code_block">
</div><div id="l3114" class="code_block">Produces: <span class="k">\verb</span>!Hello world!
</div><div id="l3115" class="code_block">
</div><div id="l3116" class="code_block">
</div><div id="l3117" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>Math commands<span class="nb">}</span>
</div><div id="l3118" class="code_block">
</div><div id="l3119" class="code_block">Floating point math commands. See also <span class="k">\textbf</span><span class="nb">{</span>expr<span class="nb">}</span>. Angles are expected in radians (this differs from the expr command!).
</div><div id="l3120" class="code_block">
</div><div id="l3121" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>abs acos asin asin atan atan2 cbrt ceil cos cosh cosh exp expm1 floor hypot log log10 log1p pow random round signum sin sinh sqrt tan tanh tanh toDegrees toRadians<span class="nb">}</span>
</div><div id="l3122" class="code_block">
</div><div id="l3123" class="code_block">SYNOPSIS <span class="k">\\</span>
</div><div id="l3124" class="code_block"><span class="k">\textit</span><span class="nb">{</span>command<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>number<span class="nb">}</span> [<span class="k">\textit</span><span class="nb">{</span>number<span class="nb">}</span>]
</div><div id="l3125" class="code_block">
</div><div id="l3126" class="code_block"> 
</div><div id="l3127" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>Conditions: if<span class="nb">}</span>
</div><div id="l3128" class="code_block">
</div><div id="l3129" class="code_block">if — Conditionally execute code.
</div><div id="l3130" class="code_block">
</div><div id="l3131" class="code_block">SYNOPSIS <span class="k">\\</span>
</div><div id="l3132" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>if<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>test<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>code<span class="nb">}</span> [ elseif | <span class="k">\textit</span><span class="nb">{</span>test<span class="nb">}</span> | <span class="k">\textit</span><span class="nb">{</span>code<span class="nb">}</span> ...] [ else | <span class="k">\textit</span><span class="nb">{</span>code<span class="nb">}</span> ]
</div><div id="l3133" class="code_block">
</div><div id="l3134" class="code_block">Description <span class="k">\\</span>
</div><div id="l3135" class="code_block">The if command executes Hecl code conditionally. In its most basic form, it executes a test. If the results are not 0, then it executes code. If not, no further actions take place. if may take any number of elseif clauses, which have their own test and code. Finally, if none of the conditions has matched, it is also possible to supply an else clause that will be executed if the results of the if and elseif tests were all false.
</div><div id="l3136" class="code_block">
</div><div id="l3137" class="code_block">EXAMPLE
</div><div id="l3138" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3139" class="code_block">if <span class="nb">{</span> &gt; 0 1 <span class="nb">}</span> <span class="nb">{</span>
</div><div id="l3140" class="code_block">    puts &quot;true&quot;
</div><div id="l3141" class="code_block"><span class="nb">}</span> else <span class="nb">{</span>
</div><div id="l3142" class="code_block">    puts &quot;false&quot;
</div><div id="l3143" class="code_block"><span class="nb">}</span>
</div><div id="l3144" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3145" class="code_block">
</div><div id="l3146" class="code_block">Produces: <span class="k">\verb</span>!false!
</div><div id="l3147" class="code_block">
</div><div id="l3148" class="code_block">EXAMPLE
</div><div id="l3149" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3150" class="code_block">set numberOne 7; set numberTwo 8
</div><div id="l3151" class="code_block">if <span class="nb">{</span>expr <span class="s">$</span><span class="nb">numberOne &gt; </span><span class="m">5</span><span class="nb"> || </span><span class="s">$</span>numberTwo &gt; 10<span class="nb">}</span> <span class="nb">{</span>
</div><div id="l3152" class="code_block">	puts <span class="nb">{</span>numberOne &gt; 5 OR numberTwo &gt; 10<span class="nb">}</span>
</div><div id="l3153" class="code_block"><span class="nb">}</span>
</div><div id="l3154" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3155" class="code_block">
</div><div id="l3156" class="code_block">
</div><div id="l3157" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>Loops: for, foreach, while<span class="nb">}</span>
</div><div id="l3158" class="code_block">
</div><div id="l3159" class="code_block"> for — For loop.
</div><div id="l3160" class="code_block"> 
</div><div id="l3161" class="code_block">SYNOPSIS <span class="k">\\</span>
</div><div id="l3162" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>for<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>initialization test step body<span class="nb">}</span>
</div><div id="l3163" class="code_block">
</div><div id="l3164" class="code_block">Description <span class="k">\\</span>
</div><div id="l3165" class="code_block">The <span class="k">\textbf</span><span class="nb">{</span>for<span class="nb">}</span> command is like in many other languages like C and Java. As arguments, it takes an <span class="k">\textit</span><span class="nb">{</span>initialization<span class="nb">}</span> option, which is often used to set a variable to some initial value, a <span class="k">\textit</span><span class="nb">{</span>test<span class="nb">}</span> to determine whether to continue running, a <span class="k">\textit</span><span class="nb">{</span>step<span class="nb">}</span> script option which is run at each iteration of the body (to increment a variable, for example), and the body itself.
</div><div id="l3166" class="code_block">
</div><div id="l3167" class="code_block">EXAMPLE
</div><div id="l3168" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3169" class="code_block">set out <span class="nb">{}</span>
</div><div id="l3170" class="code_block">for <span class="nb">{</span>set i 0<span class="nb">}</span> <span class="nb">{</span>&lt; <span class="s">$</span><span class="nb">i </span><span class="m">10</span><span class="nb">} {incr </span><span class="s">$</span>i<span class="nb">}</span> <span class="nb">{</span>
</div><div id="l3171" class="code_block">    append <span class="s">$</span><span class="nb">out </span><span class="s">$</span>i
</div><div id="l3172" class="code_block"><span class="nb">}</span>
</div><div id="l3173" class="code_block">puts <span class="s">$</span><span class="nb">out</span>
</div><div id="l3174" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l3175" class="code_block">
</div><div id="l3176" class="code_block"><span class="nb">Produces: </span><span class="nv">\verb</span><span class="o">!</span><span class="m">0123456789</span><span class="o">!</span>
</div><div id="l3177" class="code_block">
</div><div id="l3178" class="code_block">
</div><div id="l3179" class="code_block"><span class="nb">foreach — Iterate over elements in a list.</span>
</div><div id="l3180" class="code_block">
</div><div id="l3181" class="code_block"><span class="nb">SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l3182" class="code_block"><span class="nv">\textbf</span><span class="nb">{foreach} </span><span class="nv">\textit</span><span class="nb">{varname} </span><span class="nv">\textit</span><span class="nb">{list} </span><span class="nv">\textit</span><span class="nb">{body} </span><span class="nv">\\</span>
</div><div id="l3183" class="code_block"><span class="nv">\textbf</span><span class="nb">{foreach} </span><span class="nv">\textit</span><span class="nb">{varlist} </span><span class="nv">\textit</span><span class="nb">{list} </span><span class="nv">\textit</span><span class="nb">{body}</span>
</div><div id="l3184" class="code_block">
</div><div id="l3185" class="code_block"><span class="nb">Description </span><span class="nv">\\</span>
</div><div id="l3186" class="code_block"><span class="nb">The </span><span class="nv">\textbf</span><span class="nb">{foreach} command iterates over a list. For each element of the </span><span class="nv">\textit</span><span class="nb">{list}, </span><span class="nv">\textit</span><span class="nb">{varname} is set to a new element of the </span><span class="nv">\textit</span><span class="nb">{list}, and then </span><span class="nv">\textit</span><span class="nb">{body} is run.</span>
</div><div id="l3187" class="code_block">
</div><div id="l3188" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l3189" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l3190" class="code_block"><span class="nb">set lst {a b c d e}</span>
</div><div id="l3191" class="code_block"><span class="nb">set res {}</span>
</div><div id="l3192" class="code_block"><span class="nb">foreach el </span><span class="s">$</span>lst <span class="nb">{</span>
</div><div id="l3193" class="code_block">    append <span class="s">$</span><span class="nb">res </span><span class="s">$</span>el
</div><div id="l3194" class="code_block"><span class="nb">}</span>
</div><div id="l3195" class="code_block">puts <span class="s">$</span><span class="nb">res</span>
</div><div id="l3196" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l3197" class="code_block">
</div><div id="l3198" class="code_block"><span class="nb">Produces: </span><span class="nv">\verb</span><span class="o">!</span><span class="nb">abcde</span><span class="o">!</span>
</div><div id="l3199" class="code_block">
</div><div id="l3200" class="code_block">
</div><div id="l3201" class="code_block"><span class="nb">while — While loop.</span>
</div><div id="l3202" class="code_block">
</div><div id="l3203" class="code_block"><span class="nb">SYNOPSIS </span><span class="nv">\\</span>
</div><div id="l3204" class="code_block"><span class="nv">\textbf</span><span class="nb">{while} </span><span class="nv">\textit</span><span class="nb">{condition} </span><span class="nv">\textit</span><span class="nb">{body}</span>
</div><div id="l3205" class="code_block">
</div><div id="l3206" class="code_block"><span class="nb">Description </span><span class="nv">\\</span>
</div><div id="l3207" class="code_block"><span class="nb">The </span><span class="nv">\textbf</span><span class="nb">{while} command continues to evaluate </span><span class="nv">\textit</span><span class="nb">{body} while </span><span class="nv">\textit</span><span class="nb">{condition} is true.</span>
</div><div id="l3208" class="code_block">
</div><div id="l3209" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l3210" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l3211" class="code_block">
</div><div id="l3212" class="code_block"><span class="nb">set i </span><span class="m">0</span>
</div><div id="l3213" class="code_block"><span class="nb">while { &lt; </span><span class="s">$</span>i 3 <span class="nb">}</span> <span class="nb">{</span>
</div><div id="l3214" class="code_block">	puts &quot;i is <span class="s">$</span><span class="nb">i&quot;</span>
</div><div id="l3215" class="code_block"><span class="nb">	incr </span><span class="s">$</span>i
</div><div id="l3216" class="code_block"><span class="nb">}</span>
</div><div id="l3217" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3218" class="code_block">
</div><div id="l3219" class="code_block">Produces: <span class="k">\verb</span>!i is 0| i is 1| i is 2!
</div><div id="l3220" class="code_block">
</div><div id="l3221" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>Procedures: proc, rename<span class="nb">}</span>
</div><div id="l3222" class="code_block">
</div><div id="l3223" class="code_block">The <span class="k">\textbf</span><span class="nb">{</span>proc<span class="nb">}</span> command creates new procedures, which are virtually indistinguishable from built-in Hecl commands. By default, Hecl variables are always local. Global variables are not visible from within procedures. The <span class="k">\textbf</span><span class="nb">{</span>global<span class="nb">}</span> command makes global variable <span class="k">\textit</span><span class="nb">{</span>varname<span class="nb">}</span> visible within a procedure. 
</div><div id="l3224" class="code_block"> 
</div><div id="l3225" class="code_block">SYNOPSIS <span class="k">\\</span>
</div><div id="l3226" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>proc<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>[name]<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>arglist<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>body<span class="nb">}</span>  <span class="k">\\</span>
</div><div id="l3227" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>global<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>varname [varname...]<span class="nb">}</span>
</div><div id="l3228" class="code_block">
</div><div id="l3229" class="code_block">EXAMPLE
</div><div id="l3230" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3231" class="code_block">set debug false
</div><div id="l3232" class="code_block">proc ignore <span class="nb">{</span>command<span class="nb">}</span> <span class="nb">{</span>
</div><div id="l3233" class="code_block">	global debug
</div><div id="l3234" class="code_block">	foreach cmd <span class="s">$</span><span class="nb">command {</span>
</div><div id="l3235" class="code_block"><span class="nb">		proc </span><span class="s">$</span>cmd <span class="nb">{</span>args<span class="nb">}</span> <span class="nb">{</span>global debug; if <span class="nb">{</span><span class="s">$</span><span class="nb">debug} {puts &quot;command ignored&quot;}}</span>
</div><div id="l3236" class="code_block"><span class="nb">		if {</span><span class="s">$</span>debug<span class="nb">}</span> <span class="nb">{</span>puts &quot;Ignore command: <span class="s">$</span><span class="nb">cmd&quot;}</span>
</div><div id="l3237" class="code_block"><span class="nb">	}</span>
</div><div id="l3238" class="code_block"><span class="nb">}</span>
</div><div id="l3239" class="code_block"><span class="nb"># ignore list</span>
</div><div id="l3240" class="code_block"><span class="nb">ignore {model geomTransf uniaxialMaterial}</span>
</div><div id="l3241" class="code_block"><span class="nb">ignore {eigen timeSeries pattern load loadConst rayleigh}</span>
</div><div id="l3242" class="code_block"><span class="nb">ignore {constraints numberer system test}</span>
</div><div id="l3243" class="code_block"><span class="nb">ignore {algorithm integrator analysis analyze}</span>
</div><div id="l3244" class="code_block"><span class="nb">ignore {open close recorder wipeAnalysis wipe}</span>
</div><div id="l3245" class="code_block"><span class="nb"> </span><span class="nv">\end</span><span class="nb">{lstlisting}</span>
</div><div id="l3246" class="code_block">
</div><div id="l3247" class="code_block">
</div><div id="l3248" class="code_block"><span class="nb">rename — Rename a command </span>
</div><div id="l3249" class="code_block">
</div><div id="l3250" class="code_block"><span class="nv">\textbf</span><span class="nb">{rename} </span><span class="nv">\textit</span><span class="nb">{cmdname}  </span><span class="nv">\textit</span><span class="nb">{newcmdname}</span>
</div><div id="l3251" class="code_block">
</div><div id="l3252" class="code_block"><span class="nb">EXAMPLE</span>
</div><div id="l3253" class="code_block"><span class="nb"> </span><span class="nv">\begin</span><span class="nb">{lstlisting}</span>
</div><div id="l3254" class="code_block"><span class="nb">rename expr exprhecl</span>
</div><div id="l3255" class="code_block"><span class="nb">proc expr {args} {return </span><span class="s">$</span>args<span class="nb">}</span>
</div><div id="l3256" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3257" class="code_block">
</div><div id="l3258" class="code_block">
</div><div id="l3259" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>Hash tables<span class="nb">}</span>
</div><div id="l3260" class="code_block">hash — Create and manipulate hash tables.
</div><div id="l3261" class="code_block">
</div><div id="l3262" class="code_block">SYNOPSIS <span class="k">\\</span>
</div><div id="l3263" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>hash<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>list<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l3264" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>hget<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>hash<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>key<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l3265" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>hset<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>hash<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>key<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>value<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l3266" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>hcontains<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>hash<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>key<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l3267" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>hclear<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>hash<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l3268" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>hkeys<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>hash<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l3269" class="code_block"><span class="k">\textbf</span><span class="nb">{</span>hremove<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>hash<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>key<span class="nb">}</span>
</div><div id="l3270" class="code_block">
</div><div id="l3271" class="code_block">Description <span class="k">\\</span>
</div><div id="l3272" class="code_block">The <span class="k">\textbf</span><span class="nb">{</span>hash<span class="nb">}</span> command takes an even-numbered list and creates a hash table from it, using the even elements as keys, and odd elements as values. A new hash table is returned. The <span class="k">\textbf</span><span class="nb">{</span>hget<span class="nb">}</span> and <span class="k">\textbf</span><span class="nb">{</span>hset<span class="nb">}</span> commands operate on hash tables. Both take a hash table as their first argument. hget also takes a key, and returns the corresponding value, or an error if no key by that name exists. To determine whether a given key exists, use the <span class="k">\textbf</span><span class="nb">{</span>hcontains<span class="nb">}</span> command, which returns true or false depending on whether the key exists in the hash table.
</div><div id="l3273" class="code_block">
</div><div id="l3274" class="code_block">The <span class="k">\textbf</span><span class="nb">{</span>hkeys<span class="nb">}</span> command returns the keys of the hash table, as a list.
</div><div id="l3275" class="code_block">
</div><div id="l3276" class="code_block">The <span class="k">\textbf</span><span class="nb">{</span>hclear<span class="nb">}</span> command clears an entire hash table, whereas <span class="k">\textbf</span><span class="nb">{</span>hremove<span class="nb">}</span> removes the value associated with a given key.
</div><div id="l3277" class="code_block">
</div><div id="l3278" class="code_block">EXAMPLE 
</div><div id="l3279" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3280" class="code_block">set foo [hash <span class="nb">{</span>a b c d<span class="nb">}</span>]
</div><div id="l3281" class="code_block">hset <span class="s">$</span><span class="nb">foo a </span><span class="m">42</span>
</div><div id="l3282" class="code_block"><span class="nb">puts </span><span class="o">[</span><span class="nb">hget </span><span class="s">$</span>foo a]
</div><div id="l3283" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3284" class="code_block">
</div><div id="l3285" class="code_block">Produces: <span class="k">\verb</span>!42!
</div><div id="l3286" class="code_block">
</div><div id="l3287" class="code_block">EXAMPLE
</div><div id="l3288" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3289" class="code_block">set nd [hash <span class="nb">{}</span>]; # Hash list nd saves node coordinates.
</div><div id="l3290" class="code_block">proc node <span class="nb">{</span>number x y<span class="nb">}</span> <span class="nb">{</span>
</div><div id="l3291" class="code_block">	global nd
</div><div id="l3292" class="code_block">	set Y [* -1 <span class="s">$</span><span class="nb">y</span><span class="o">]</span><span class="nb">; # Opensees y coordinate points upwards, drawj</span><span class="m">2</span><span class="nb">d downwards.</span>
</div><div id="l3293" class="code_block"><span class="nb">	hset </span><span class="s">$</span>nd <span class="s">$</span><span class="nb">number &quot;</span><span class="s">$</span>x <span class="s">$</span><span class="nb">Y&quot;</span>
</div><div id="l3294" class="code_block"><span class="nb">	circle </span><span class="s">$</span>x <span class="s">$</span><span class="nb">Y </span><span class="o">[</span><span class="nb">mm </span><span class="m">0</span><span class="nb">.</span><span class="m">4</span><span class="o">]</span>
</div><div id="l3295" class="code_block"><span class="nb">	if {&gt;</span><span class="o">=</span><span class="nb"> </span><span class="s">$</span>x 0<span class="nb">}</span> <span class="nb">{</span>label <span class="s">$</span><span class="nb">number NE} else {label </span><span class="s">$</span>number NW<span class="nb">}</span>
</div><div id="l3296" class="code_block"><span class="nb">}</span>
</div><div id="l3297" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3298" class="code_block">
</div><div id="l3299" class="code_block">
</div><div id="l3300" class="code_block">
</div><div id="l3301" class="code_block"><span class="k">\subsubsection</span><span class="nb">{</span>Read data from file: open<span class="nb">}</span>
</div><div id="l3302" class="code_block">The open command gives read access to external files.
</div><div id="l3303" class="code_block"> 
</div><div id="l3304" class="code_block">SYNOPSIS <span class="k">\\</span>
</div><div id="l3305" class="code_block"> set f [<span class="k">\textbf</span><span class="nb">{</span>open<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>filename.txt<span class="nb">}</span>] <span class="k">\\</span>
</div><div id="l3306" class="code_block"> <span class="k">\textit</span><span class="nb">{</span><span class="k">\$</span>f<span class="nb">}</span> <span class="k">\textbf</span><span class="nb">{</span>hasnext<span class="nb">}</span> <span class="k">\\</span>
</div><div id="l3307" class="code_block"> set s [<span class="k">\textit</span><span class="nb">{</span><span class="k">\$</span>f<span class="nb">}</span> <span class="k">\textbf</span><span class="nb">{</span>readln<span class="nb">}</span>] <span class="k">\\</span>
</div><div id="l3308" class="code_block"> set s [<span class="k">\textit</span><span class="nb">{</span><span class="k">\$</span>f<span class="nb">}</span> <span class="k">\textbf</span><span class="nb">{</span>read<span class="nb">}</span> <span class="k">\textit</span><span class="nb">{</span>bytes<span class="nb">}</span> ] <span class="k">\\</span>
</div><div id="l3309" class="code_block"> set s [<span class="k">\textit</span><span class="nb">{</span><span class="k">\$</span>f<span class="nb">}</span> <span class="k">\textbf</span><span class="nb">{</span>read<span class="nb">}</span>] <span class="k">\\</span>
</div><div id="l3310" class="code_block"> <span class="k">\textit</span><span class="nb">{</span><span class="k">\$</span>f<span class="nb">}</span> <span class="k">\textbf</span><span class="nb">{</span>close<span class="nb">}</span>
</div><div id="l3311" class="code_block"> 
</div><div id="l3312" class="code_block">
</div><div id="l3313" class="code_block">EXAMPLE
</div><div id="l3314" class="code_block"><span class="k">\lstinputlisting</span>[<span class="c">%backgroundcolor=\color{lightgray},</span>
</div><div id="l3315" class="code_block"> 				title=data.csv]<span class="nb">{</span>img/data.csv<span class="nb">}</span>
</div><div id="l3316" class="code_block"> 				
</div><div id="l3317" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3318" class="code_block">moveto 10 5
</div><div id="l3319" class="code_block">set f [open data.csv]
</div><div id="l3320" class="code_block">while <span class="nb">{</span><span class="s">$</span><span class="nb">f hasnext} {</span>
</div><div id="l3321" class="code_block"><span class="nb">	text </span><span class="o">[</span><span class="s">$</span>f readln]
</div><div id="l3322" class="code_block"><span class="nb">}</span>
</div><div id="l3323" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3324" class="code_block"> 
</div><div id="l3325" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdReadline<span class="nb">}</span>	
</div><div id="l3326" class="code_block"> 				
</div><div id="l3327" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3328" class="code_block"># Read the data of a csv file into a list
</div><div id="l3329" class="code_block">proc readcsv <span class="nb">{</span>file<span class="nb">}</span> <span class="nb">{</span>
</div><div id="l3330" class="code_block">	set f [open <span class="s">$</span><span class="nb">file</span><span class="o">]</span>
</div><div id="l3331" class="code_block"><span class="nb">	set s </span><span class="o">[</span><span class="s">$</span>f read]
</div><div id="l3332" class="code_block">	<span class="s">$</span><span class="nb">f close</span>
</div><div id="l3333" class="code_block"><span class="nb">	set s </span><span class="o">[</span><span class="nb">strtrim </span><span class="s">$</span>s]
</div><div id="l3334" class="code_block">	set s [strreplace <span class="nb">{</span>, &quot; &quot;<span class="nb">}</span> <span class="s">$</span><span class="nb">s</span><span class="o">]</span>
</div><div id="l3335" class="code_block"><span class="nb">	return </span><span class="o">[</span><span class="nb">split </span><span class="s">$</span>s &quot;<span class="k">\n</span>&quot;]
</div><div id="l3336" class="code_block"><span class="nb">}</span>
</div><div id="l3337" class="code_block">
</div><div id="l3338" class="code_block">set DATA [readcsv data.csv]
</div><div id="l3339" class="code_block">
</div><div id="l3340" class="code_block">set i 0
</div><div id="l3341" class="code_block">foreach DP <span class="s">$</span><span class="nb">DATA {</span>
</div><div id="l3342" class="code_block"><span class="nb">	incr </span><span class="s">$</span>i
</div><div id="l3343" class="code_block">	if <span class="nb">{</span>&lt; <span class="s">$</span><span class="nb">i </span><span class="m">2</span><span class="nb">} {moveto </span><span class="s">$</span>DP<span class="nb">}</span> else <span class="nb">{</span>lineto <span class="s">$</span><span class="nb">DP}</span>
</div><div id="l3344" class="code_block"><span class="nb">	label </span><span class="s">$</span>DP S
</div><div id="l3345" class="code_block"><span class="nb">}</span>
</div><div id="l3346" class="code_block"> <span class="k">\end</span><span class="nb">{</span>lstlisting<span class="nb">}</span>
</div><div id="l3347" class="code_block"> 
</div><div id="l3348" class="code_block"> <span class="k">\includegraphics</span><span class="nb">{</span>img/out-cmdReadcsv<span class="nb">}</span>
</div><div id="l3349" class="code_block">
</div><div id="l3350" class="code_block">
</div><div id="l3351" class="code_block"><span class="k">\clearpage</span>
</div><div id="l3352" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Complete command list<span class="nb">}</span>
</div><div id="l3353" class="code_block"><span class="k">\label</span><span class="nb">{</span>CommandList<span class="nb">}</span>
</div><div id="l3354" class="code_block">
</div><div id="l3355" class="code_block">To get the list of all available commands type: <span class="k">\\</span>
</div><div id="l3356" class="code_block"><span class="k">\verb</span>!puts [sort [intro commands]]!
</div><div id="l3357" class="code_block">
</div><div id="l3358" class="code_block"><span class="c">%\includegraphics[width=\textwidth]{img/out-commandlist.pdf}</span>
</div><div id="l3359" class="code_block"><span class="c">%\lstinputlisting[breakindent=0pt]{img/out-commandlist.csv}</span>
</div><div id="l3360" class="code_block"><span class="k">\saferead</span><span class="nb">{</span>img/out-commandlist.csv<span class="nb">}</span>
</div><div id="l3361" class="code_block">
</div><div id="l3362" class="code_block">
</div><div id="l3363" class="code_block"><span class="k">\clearpage</span>
</div><div id="l3364" class="code_block"><span class="k">\section</span><span class="nb">{</span>Additional functionality<span class="nb">}</span>
</div><div id="l3365" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Support for spread sheet csv data and Fachwerk background drawings bgd<span class="nb">}</span>
</div><div id="l3366" class="code_block">
</div><div id="l3367" class="code_block">Use the Drawj2d command line parameter <span class="k">\textit</span><span class="nb">{</span>--frontend bgd<span class="nb">}</span> or <span class="k">\textit</span><span class="nb">{</span>-F bgd<span class="nb">}</span>.
</div><div id="l3368" class="code_block">
</div><div id="l3369" class="code_block"><span class="k">\subsubsection*</span><span class="nb">{</span>csv (spread sheet)<span class="nb">}</span>
</div><div id="l3370" class="code_block"> A list of point coordinates can be created in a spread sheet application. The list has to be saved as comma separated file with the ending <span class="k">\textit</span><span class="nb">{</span>csv<span class="nb">}</span>. Drawj2d displays the points. The scale is automatically chosen (1:5, 1:10, 1:20, 1:50, <span class="k">\ldots</span>).
</div><div id="l3371" class="code_block"> 
</div><div id="l3372" class="code_block"> <span class="k">\verb</span>!drawj2d -T pdf -F bgd --width 150 --height 100 points.csv !
</div><div id="l3373" class="code_block">
</div><div id="l3374" class="code_block"><span class="k">\subsubsection*</span><span class="nb">{</span>bgd (text file)<span class="nb">}</span>
</div><div id="l3375" class="code_block"><span class="k">\label</span><span class="nb">{</span>bgd<span class="nb">}</span>
</div><div id="l3376" class="code_block">
</div><div id="l3377" class="code_block">The program Fachwerk for structural engineers (fachwerk.sourceforge.net) supports a simple text based drawing format called bgd for background drawings. These can be exported by Drawj2d to pdf, svg or other vector formats.
</div><div id="l3378" class="code_block">
</div><div id="l3379" class="code_block"> <span class="k">\verb</span>!drawj2d -T pdf -F bgd --width 150 --height 80 doku.bgd !
</div><div id="l3380" class="code_block">
</div><div id="l3381" class="code_block"> Bgd drawings are created using a text editor, similar to the Drawj2d native <span class="k">\textit</span><span class="nb">{</span>hcl<span class="nb">}</span> format. The file has to be saved with the suffix <span class="k">\textit</span><span class="nb">{</span>bgd<span class="nb">}</span>. Figure <span class="k">\ref</span><span class="nb">{</span>fig-Textdatei bgd<span class="nb">}</span> shows an example of such a text file and the drawing as it would be displayed by Fachwerk.
</div><div id="l3382" class="code_block">
</div><div id="l3383" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>figure<span class="nb">}</span>[ht]
</div><div id="l3384" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>flushleft<span class="nb">}</span>
</div><div id="l3385" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>small<span class="nb">}</span>
</div><div id="l3386" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>quote<span class="nb">}</span>
</div><div id="l3387" class="code_block"><span class="k">\verb</span>=Points = <span class="k">\\</span>
</div><div id="l3388" class="code_block"><span class="k">\verb</span>=0.2   0.2        = <span class="s">$</span><span class="nv">\leftarrow</span><span class="s">$</span> x, z - coordinates 1. point <span class="k">\\</span>
</div><div id="l3389" class="code_block"><span class="k">\verb</span>=0.2   1.9        = <span class="s">$</span><span class="nv">\leftarrow</span><span class="s">$</span> x, z - coordinates 2. point <span class="k">\\</span>
</div><div id="l3390" class="code_block"><span class="k">\verb</span>=1.8   1.2 = <span class="k">\\</span>
</div><div id="l3391" class="code_block"><span class="k">\verb</span>=1.8   1.9 = <span class="k">\\</span>
</div><div id="l3392" class="code_block"><span class="k">\verb</span>=3.0   0.2 = <span class="k">\\</span>
</div><div id="l3393" class="code_block"><span class="k">\verb</span>= = <span class="k">\\</span>
</div><div id="l3394" class="code_block"><span class="k">\verb</span>=Line  = <span class="k">\\</span>
</div><div id="l3395" class="code_block"><span class="k">\verb</span>=3.5   0          = <span class="s">$</span><span class="nv">\leftarrow</span><span class="s">$</span> start <span class="k">\\</span>
</div><div id="l3396" class="code_block"><span class="k">\verb</span>=3.5   0.8        = <span class="s">$</span><span class="nv">\leftarrow</span><span class="s">$</span> end <span class="k">\\</span>
</div><div id="l3397" class="code_block"><span class="k">\verb</span>= = <span class="k">\\</span>
</div><div id="l3398" class="code_block"><span class="k">\verb</span>=Line  = <span class="k">\\</span>
</div><div id="l3399" class="code_block"><span class="k">\verb</span>=2.3   2.0        = <span class="s">$</span><span class="nv">\leftarrow</span><span class="s">$</span> start <span class="k">\\</span>
</div><div id="l3400" class="code_block"><span class="k">\verb</span>=0     2.0 = <span class="k">\\</span>
</div><div id="l3401" class="code_block"><span class="k">\verb</span>=0     0 = <span class="k">\\</span>
</div><div id="l3402" class="code_block"><span class="k">\verb</span>=3.5   0          = <span class="s">$</span><span class="nv">\leftarrow</span><span class="s">$</span> end <span class="k">\\</span>
</div><div id="l3403" class="code_block"><span class="k">\verb</span>= = <span class="k">\\</span>
</div><div id="l3404" class="code_block"><span class="k">\verb</span>=Circle  = <span class="k">\\</span>
</div><div id="l3405" class="code_block"><span class="k">\verb</span>=0.6   1.6        = <span class="s">$</span><span class="nv">\leftarrow</span><span class="s">$</span> centre <span class="k">\\</span>
</div><div id="l3406" class="code_block"><span class="k">\verb</span>=0.25             = <span class="s">$</span><span class="nv">\leftarrow</span><span class="s">$</span> radius <span class="k">\\</span>
</div><div id="l3407" class="code_block"><span class="k">\verb</span>= = <span class="k">\\</span>
</div><div id="l3408" class="code_block"><span class="k">\verb</span>=Arc  = <span class="k">\\</span>
</div><div id="l3409" class="code_block"><span class="k">\verb</span>=3.5   2.0        = <span class="s">$</span><span class="nv">\leftarrow</span><span class="s">$</span> centre <span class="k">\\</span>
</div><div id="l3410" class="code_block"><span class="k">\verb</span>=1.2, 90, 180     = <span class="s">$</span><span class="nv">\leftarrow</span><span class="s">$</span> radius, start angle, end angle (anti-clockwise)<span class="k">\\</span>
</div><div id="l3411" class="code_block"><span class="k">\verb</span>= = <span class="k">\\</span>
</div><div id="l3412" class="code_block"> <span class="k">\end</span><span class="nb">{</span>quote<span class="nb">}</span>
</div><div id="l3413" class="code_block"> <span class="k">\end</span><span class="nb">{</span>small<span class="nb">}</span>
</div><div id="l3414" class="code_block"> <span class="k">\end</span><span class="nb">{</span>flushleft<span class="nb">}</span>
</div><div id="l3415" class="code_block"> 
</div><div id="l3416" class="code_block"> <span class="k">\begin</span><span class="nb">{</span>center<span class="nb">}</span>
</div><div id="l3417" class="code_block"> <span class="k">\includegraphics</span><span class="na">[scale=1]</span><span class="nb">{</span>img/dokubgd<span class="nb">}</span>
</div><div id="l3418" class="code_block"> <span class="k">\end</span><span class="nb">{</span>center<span class="nb">}</span>
</div><div id="l3419" class="code_block"> <span class="k">\caption</span><span class="nb">{</span>Input text file <span class="k">\textit</span><span class="nb">{</span>.bgd<span class="nb">}</span> and resulting drawing<span class="nb">}</span>
</div><div id="l3420" class="code_block"> <span class="k">\label</span><span class="nb">{</span>fig-Textdatei bgd<span class="nb">}</span>
</div><div id="l3421" class="code_block"> <span class="k">\end</span><span class="nb">{</span>figure<span class="nb">}</span>
</div><div id="l3422" class="code_block">
</div><div id="l3423" class="code_block"> The numbers in a row can be separated by space, tabulator or comma. The order of the commands (Point, Line, Circle, Arc) does not matter. For example the file may start with commands for lines, continue with points and then list a line command again. Only the first character of a command is required (Circle: <span class="k">\textit</span><span class="nb">{</span>C<span class="nb">}</span> or <span class="k">\textit</span><span class="nb">{</span>K<span class="nb">}</span> for Kreis (German), Arc: <span class="k">\textit</span><span class="nb">{</span>A<span class="nb">}</span> or <span class="k">\textit</span><span class="nb">{</span>B<span class="nb">}</span> for Bogen).
</div><div id="l3424" class="code_block"> Rows starting with <span class="k">\#</span> or // or with the word <span class="k">\textit</span><span class="nb">{</span>rem<span class="nb">}</span> indicate comments. Fachwerk accepts coordinates in both <span class="k">\textit</span><span class="nb">{</span>x,z<span class="nb">}</span> and <span class="k">\textit</span><span class="nb">{</span>x,y,z<span class="nb">}</span> formats. In Fachwerk2D mode and Drawj2D the y-value is not used.
</div><div id="l3425" class="code_block"> 
</div><div id="l3426" class="code_block"> The bgd extension is an example for programmers how to access the Drawj2d java API.
</div><div id="l3427" class="code_block">
</div><div id="l3428" class="code_block">
</div><div id="l3429" class="code_block"><span class="k">\clearpage</span>
</div><div id="l3430" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Support for Yacas plot data<span class="nb">}</span>
</div><div id="l3431" class="code_block"><span class="k">\label</span><span class="nb">{</span>yacas<span class="nb">}</span>
</div><div id="l3432" class="code_block">
</div><div id="l3433" class="code_block">The computer algebra system Yacas (yacas.org) uses Gnuplot for plotting. If gnuplot is not available, yacas can prepare plot data using the Plot2D option <span class="k">\textit</span><span class="nb">{</span>output=java<span class="nb">}</span>. Drawj2d can read the plot data and draw rudimentary plots.
</div><div id="l3434" class="code_block">
</div><div id="l3435" class="code_block">Use the Drawj2d command line parameter <span class="k">\textit</span><span class="nb">{</span>--frontend ypd<span class="nb">}</span> or <span class="k">\textit</span><span class="nb">{</span>-F ypd<span class="nb">}</span>.
</div><div id="l3436" class="code_block">
</div><div id="l3437" class="code_block">
</div><div id="l3438" class="code_block">Start Yacas (yacas-gui, yacas, java -jar yacas.jar or alternatively mavscript-yacas) and type:
</div><div id="l3439" class="code_block">
</div><div id="l3440" class="code_block"><span class="k">\verb</span>!f(x) := x<span class="nb">^</span>2-x-2     !<span class="s">$</span><span class="nv">\leftarrow</span><span class="s">$</span> The function to plot <span class="k">\\</span>
</div><div id="l3441" class="code_block"><span class="k">\verb</span>!g(x) := x<span class="nb">^</span>2         !<span class="s">$</span><span class="nv">\leftarrow</span><span class="s">$</span> A second function to plot
</div><div id="l3442" class="code_block">
</div><div id="l3443" class="code_block">Write a yacas plot data (ypd) file. <span class="k">\\</span>
</div><div id="l3444" class="code_block"><span class="k">\verb</span>!ToFile(&quot;plot-f.ypd&quot;) Plot2D(f(x),x=-5:5,output=java) !
</div><div id="l3445" class="code_block">
</div><div id="l3446" class="code_block">Multiple functions can be written in one plot data file: <span class="k">\\</span>
</div><div id="l3447" class="code_block"><span class="k">\verb</span>!ToFile(&quot;plot-fg.ypd&quot;) Plot2D(<span class="nb">{</span>f(x),g(x)<span class="nb">}</span>,x=-5:5,output=java) !
</div><div id="l3448" class="code_block">
</div><div id="l3449" class="code_block">Call Drawj2d directly out of Yacas to produce a plot (see Figure <span class="k">\ref</span><span class="nb">{</span>fig-img/yacasplot<span class="nb">}</span>): <span class="k">\\</span>
</div><div id="l3450" class="code_block"><span class="k">\verb</span>!SystemCall(&quot;drawj2d -F ypd -W150 -H100 plot-f.ypd&quot;) !
</div><div id="l3451" class="code_block">
</div><div id="l3452" class="code_block">Drawj2d can also be called from the command line. <span class="k">\\</span>
</div><div id="l3453" class="code_block"><span class="k">\verb</span>!drawj2d -T pdf -F ypd --width 150 --height 100 plot-fg.ypd !
</div><div id="l3454" class="code_block">
</div><div id="l3455" class="code_block"><span class="k">\bild</span><span class="nb">{</span>Draw yacas plot data: <span class="s">$</span><span class="nb">f</span><span class="o">(</span><span class="nb">x</span><span class="o">)</span><span class="s">$</span><span class="nb">}{</span>img/yacasplot<span class="nb">}</span>
</div><div id="l3456" class="code_block">
</div><div id="l3457" class="code_block">
</div><div id="l3458" class="code_block">
</div><div id="l3459" class="code_block"><span class="k">\clearpage</span>
</div><div id="l3460" class="code_block"><span class="k">\section</span><span class="nb">{</span>Drawj2d Input Examples<span class="nb">}</span>
</div><div id="l3461" class="code_block"><span class="k">\label</span><span class="nb">{</span>InputExample<span class="nb">}</span>
</div><div id="l3462" class="code_block">
</div><div id="l3463" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Drawings<span class="nb">}</span>
</div><div id="l3464" class="code_block">
</div><div id="l3465" class="code_block"><span class="k">\subsubsection*</span><span class="nb">{</span>Anchor plate<span class="nb">}</span>
</div><div id="l3466" class="code_block">
</div><div id="l3467" class="code_block">Input of the drawing Figure <span class="k">\ref</span><span class="nb">{</span>fig-img/out-drawing<span class="nb">}</span>.
</div><div id="l3468" class="code_block"> 
</div><div id="l3469" class="code_block"> <span class="k">\lstinputlisting</span>[<span class="c">%backgroundcolor=\color{lightgray},</span>
</div><div id="l3470" class="code_block"> 				<span class="c">%language=tcl, </span>
</div><div id="l3471" class="code_block"> 				<span class="c">%breaklines=true, </span>
</div><div id="l3472" class="code_block"> 				<span class="c">%basicstyle=\footnotesize, </span>
</div><div id="l3473" class="code_block"> 				<span class="c">%keepspaces=false, </span>
</div><div id="l3474" class="code_block"> 				<span class="c">%showstringspaces=false, </span>
</div><div id="l3475" class="code_block"> 				title=drawing.hcl]<span class="nb">{</span>img/drawing.hcl<span class="nb">}</span>
</div><div id="l3476" class="code_block"> 
</div><div id="l3477" class="code_block"><span class="k">\subsubsection*</span><span class="nb">{</span>Pythagoras<span class="nb">}</span>
</div><div id="l3478" class="code_block">
</div><div id="l3479" class="code_block">Pythagoras <span class="s">$</span><span class="nb"> a^</span><span class="m">2</span><span class="nb"> </span><span class="o">+</span><span class="nb"> b^</span><span class="m">2</span><span class="nb"> </span><span class="o">=</span><span class="nb"> c^</span><span class="m">2</span><span class="nb"> </span><span class="s">$</span> (Figure <span class="k">\ref</span><span class="nb">{</span>fig-img/out-pythagoras<span class="nb">}</span>).
</div><div id="l3480" class="code_block"> 
</div><div id="l3481" class="code_block">  <span class="k">\bild</span><span class="nb">{</span>Pythagoras<span class="nb">}{</span>img/out-pythagoras<span class="nb">}</span>
</div><div id="l3482" class="code_block"> 
</div><div id="l3483" class="code_block"> <span class="k">\lstinputlisting</span>[<span class="c">%backgroundcolor=\color{lightgray},</span>
</div><div id="l3484" class="code_block"> 				title=pythagoras.hcl]<span class="nb">{</span>img/pythagoras.hcl<span class="nb">}</span>
</div><div id="l3485" class="code_block">
</div><div id="l3486" class="code_block">
</div><div id="l3487" class="code_block"><span class="k">\subsection</span><span class="nb">{</span>Statics<span class="nb">}</span>
</div><div id="l3488" class="code_block">
</div><div id="l3489" class="code_block">Drawj2d has built in support for basic statics, see <span class="k">\ref</span><span class="nb">{</span>StaticsCommands<span class="nb">}</span>. It is useful for geotechnical tasks, e.g. earth pressure and retaining walls. The examples below are about cable equilibrium.
</div><div id="l3490" class="code_block">
</div><div id="l3491" class="code_block"><span class="k">\subsubsection*</span><span class="nb">{</span>Cable equilibrium<span class="nb">}</span>
</div><div id="l3492" class="code_block">
</div><div id="l3493" class="code_block">For a given geometry the cable forces are calculated (Figure <span class="k">\ref</span><span class="nb">{</span>fig-img/out-cable<span class="nb">}</span>).
</div><div id="l3494" class="code_block"> 
</div><div id="l3495" class="code_block">  <span class="k">\bild</span><span class="nb">{</span>Cable equilibrium<span class="nb">}{</span>img/out-cable<span class="nb">}</span>
</div><div id="l3496" class="code_block"> 
</div><div id="l3497" class="code_block"> <span class="k">\lstinputlisting</span>[<span class="c">%backgroundcolor=\color{lightgray},</span>
</div><div id="l3498" class="code_block"> 				title=cable.hcl]<span class="nb">{</span>img/cable.hcl<span class="nb">}</span>
</div><div id="l3499" class="code_block">
</div><div id="l3500" class="code_block"><span class="k">\subsubsection*</span><span class="nb">{</span>Cable shape<span class="nb">}</span>
</div><div id="l3501" class="code_block">
</div><div id="l3502" class="code_block">In this example the cable shape is calculated for multiple external forces (Figure <span class="k">\ref</span><span class="nb">{</span>fig-img/out-cable2<span class="nb">}</span>). The bearing points and the initial cable angle (at point A) are given.
</div><div id="l3503" class="code_block"> 
</div><div id="l3504" class="code_block">  <span class="k">\bild</span><span class="nb">{</span>Cable shape<span class="nb">}{</span>img/out-cable2<span class="nb">}</span>
</div><div id="l3505" class="code_block"> 
</div><div id="l3506" class="code_block"> <span class="k">\lstinputlisting</span>[<span class="c">%backgroundcolor=\color{lightgray},</span>
</div><div id="l3507" class="code_block"> 				title=cable2.hcl]<span class="nb">{</span>img/cable2.hcl<span class="nb">}</span>
</div><div id="l3508" class="code_block">
</div><div id="l3509" class="code_block"><span class="k">\end</span><span class="nb">{</span>document<span class="nb">}</span>
</div></pre></div></td></tr></table></div>

      
    </div>
  

                    </div>
                    
                    
                </div>
            



        </div>
    </section>
      

    <footer class="sandiego">
    <div class="as-row">
        <div class="footer-wrapper">
            <nav aria-label="Site Links" role="navigation">
                <section>
                    <div class="as-h2">SourceForge</div>
                    <ul>
                    
                        <li><a href="/create/" title="Create a Project">Create a Project</a></li>
                    
                        <li><a href="/directory/" title="Open Source Software Directory">Open Source Software</a></li>
                        <li><a href="/software/" title="Business Software Directory">Business Software</a></li>
                        
                            
                            <li><a href="/top" title="Top Open Source Projects">Top Downloaded Projects</a></li>
                        

                    </ul>
                </section>
            </nav>
            <nav aria-label="Company Links" role="navigation">
                <section>
                    <div class="as-h2">Company</div>
                    <ul>
                        <li><a href="/about">About</a></li>
                        <li><a href="/about/leadership" title="Open Source Software Directory">Team</a></li>
                        <li class="h-card">
                            <address>
                                <span class="p-name p-org">SourceForge Headquarters</span><br>
                                <span class="p-street-address">225 Broadway Suite 1600</span><br>
                                <span class="p-locality">San Diego, CA <span class="p-postal-code">92101</span></span><br>
                                <span class="p-tel">+1 (858) 422-6466</span><br>
                            </address>
                        </li>
                        <li id="social">
                            
<span></span>
<a href="https://twitter.com/sourceforge" class="twitter" rel="nofollow" target="_blank" title="SourceForge on X">


<svg  class="vertical-icon-fix" data-name="twitter" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5t-115.5 248.5-184.5 210.5-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5t-114-159.5q33 5 61 5 43 0 85-11-112-23-185.5-111.5t-73.5-205.5v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5t371.5 99.5q-8-38-8-74 0-134 94.5-228.5t228.5-94.5q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"/></svg></a>
<a href="https://fosstodon.org/@sourceforge" rel="me nofollow" target="_blank" title="SourceForge on Mastodon">


<svg  class="vertical-icon-fix" data-name="mastodon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M433 179.11c0-97.2-63.71-125.7-63.71-125.7-62.52-28.7-228.56-28.4-290.48 0 0 0-63.72 28.5-63.72 125.7 0 115.7-6.6 259.4 105.63 289.1 40.51 10.7 75.32 13 103.33 11.4 50.81-2.8 79.32-18.1 79.32-18.1l-1.7-36.9s-36.31 11.4-77.12 10.1c-40.41-1.4-83-4.4-89.63-54a102.54 102.54 0 0 1-.9-13.9c85.63 20.9 158.65 9.1 178.75 6.7 56.12-6.7 105-41.3 111.23-72.9 9.8-49.8 9-121.5 9-121.5zm-75.12 125.2h-46.63v-114.2c0-49.7-64-51.6-64 6.9v62.5h-46.33V197c0-58.5-64-56.6-64-6.9v114.2H90.19c0-122.1-5.2-147.9 18.41-175 25.9-28.9 79.82-30.8 103.83 6.1l11.6 19.5 11.6-19.5c24.11-37.1 78.12-34.8 103.83-6.1 23.71 27.3 18.4 53 18.4 175z"/></svg></a>
<a href="https://www.facebook.com/sourceforgenet/" class="facebook" rel="nofollow" target="_blank" title="SourceForge on Facebook">


<svg  data-name="facebook" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759h-306v-759h-255v-296h255v-218q0-186 104-288.5t277-102.5q147 0 228 12z"/></svg></a>
<a href="https://www.linkedin.com/company/sourceforge.net" class="linkedin" rel="nofollow" target="_blank" title="SourceForge on LinkedIn">


<svg  data-name="linkedin" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M477 625v991h-330v-991h330zm21-306q1 73-50.5 122t-135.5 49h-2q-82 0-132-49t-50-122q0-74 51.5-122.5t134.5-48.5 133 48.5 51 122.5zm1166 729v568h-329v-530q0-105-40.5-164.5t-126.5-59.5q-63 0-105.5 34.5t-63.5 85.5q-11 30-11 81v553h-329q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5 114.5-15.5q171 0 275 113.5t104 332.5z"/></svg></a>

<a href="/user/newsletters" rel=nofollow class="newsletter" title="Subscribe to our newsletter">


<svg  class="vertical-icon-fix" data-name="mmSF_11mail" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 42 42" enable-background="new 0 0 42 42" xml:space="preserve"><path fill="#FFFFFF" d="M0,6v30h42V6H0z M24.2,21.2c-0.8,0.8-2.3,2-3.2,2c-0.9,0-2.4-1.2-3.2-2L5.8,9.7h30.3L24.2,21.2z M13.7,21l-9.9,9.4V11.6L13.7,21z M15.7,23L15.7,23c0.5,0.5,2.9,2.9,5.3,2.9c2.4,0,4.8-2.4,5.2-2.8l0.1-0.1l9.8,9.4H5.8L15.7,23z M28.3,21l9.9-9.5v18.9L28.3,21z"/></svg></a>

<span></span>
                        </li>
                    </ul>
                </section>
            </nav>
             <nav aria-label="Resources Links" role="navigation">
                <section>
                    <div class="as-h2">Resources</div>
                    <ul>
                        
                            <li><a href="/support" title="Support Section">Support</a></li>
                            <li><a href="/p/forge/documentation/Docs%20Home/" title="Site Documentation">Site Documentation</a></li>
                        
                        <li><a href="https://fosstodon.org/@sourceforgestatus" title="Site Status" rel="me nofollow">Site Status</a></li>
                        <li><a href="/reviews" title="Reviews" rel="me nofollow">SourceForge Reviews</a></li>

                    </ul>
                </section>
            </nav>
            <section class="footer-logo">
                <a href="/" title="Home" class="sf-logo">
                    
    
    <img src="https://a.fsdn.com/con/images/sandiego/sf-logo-full.svg"  alt="SourceForge logo" class="sf-logo-full"/>
                </a>
            </section>
        </div>
    </div>
    <section class="l-nav-bottom">
        <nav class="row">
            
                
            
        
    <div class="columns small-12 large-6 copyright-notice">
        &copy; 2025 Slashdot Media. All Rights Reserved.
    </div>
    <div class="columns large-6 links links-right">
        

    
    

    <a href="https://slashdotmedia.com/terms-of-use" target="_blank" title="Terms" rel="nofollow">Terms</a>
    <a href="https://slashdotmedia.com/privacy-statement/" target="_blank" title="Privacy" rel="nofollow">Privacy</a>

    
    
    

    
        <a href="https://slashdotmedia.com/opt-out-choices/" target="_blank" title="Opt Out" rel="nofollow">Opt Out</a>
    

    
        <a href="https://slashdotmedia.com/contact/" target="_blank" title="Advertise" rel="nofollow">Advertise</a>
    
    </div>
        </nav>
    </section>

    </footer>
    





    
    
    <div id="newsletter-floating" class="sandiego newsletter-floating-new">
        <a class="close-button btn-closer" data-close aria-label="Close modal">
            <span aria-hidden="true">&times;</span>
        </a>
        <div class="as-h2">Want the latest updates on software, tech news, and AI?</div>
        <div class="row">
            <div class="column small-2 medium-2 large-2" style="padding-left: 0px; padding-right: 0px;"><img src="/images/sandiego/sf_email_icon.svg"  alt="" /></div>
            <div class="as-h3 column small-10 medium-10 large-10">Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.</div>
        </div>
        <form action="/user/newsletters/" method="post">
            <div class="row">
              <input class="newsletter-input" type="email" placeholder="Enter your email address" autocomplete="off" name="newsletter_email"
                     value="">
              <input type="hidden" name="source" value="floating">
              <button type="submit" class="button blue newsletter-button">Submit</button>
            </div>
        </form>
    </div>
    






</div>


<div id="messages">
    
</div>


    <!-- ew:body_js -->


    <script type="text/javascript" src="https://a.fsdn.com/allura/nf/1752257864/_ew_/_slim/js?href=allura%2Fjs%2Fjquery.notify.js%3Ballura%2Fjs%2Fjquery.tooltipster.js%3Ballura%2Fjs%2Fallura-base.js%3Ballura%2Fjs%2Fchecklist.js%3Ballura%2Fjs%2Fadmin_modal.js%3Bjs%2Fjquery.lightbox_me.js%3Ballura%2Fjs%2Fmemorable.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fshared.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fsticky.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fsandiego%2Fchrome.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fsandiego%2Futilities.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.core.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.util.mediaQuery.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.util.keyboard.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.util.box.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.util.nest.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.dropdownMenu.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.offcanvas.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.toggler.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fsandiego%2Fproject.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Fjquery.typeahead.min.js%3Ballura%2Fjs%2Fmaximize-content.js"></script>

    
<!-- /ew:body_js -->



    <!-- ew:body_js_tail -->


    <script type="text/javascript" src="https://a.fsdn.com/allura/nf/1752257864/_ew_/_slim/js?href=theme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.util.triggers.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.reveal.min.js"></script>

    
<!-- /ew:body_js_tail -->




<script type="text/javascript">(function() {
  $('#access_urls .btn').click(function(evt){
    evt.preventDefault();
    var parent = $(this).parents('.btn-bar');
    var checkout_cmd = $(this).attr('data-url');
    $(parent).find('input').val(checkout_cmd);
    $(parent).find('span').text($(this).attr('title')+' access');
    $(this).parent().children('.btn').removeClass('active');
    $(this).addClass('active');
    if (checkout_cmd.indexOf(' http://') !== -1 || checkout_cmd.indexOf(' https://') !== -1 ) {
      $('#http-2fa-msg').show();
    } else {
      $('#http-2fa-msg').hide();
    }
  });
  $('#access_urls .btn').first().click();

  
  var repo_status = document.getElementById('repo_status');
  // The repo_status div will only be present if repo.status != 'ready'
  if (repo_status) {
    $('.spinner').show()
    var delay = 500;
    function check_status() {
        $.get('/p/drawj2d/code/status', function(data) {
            if (data.status === 'ready') {
                $('.spinner').hide()
                $('#repo_status h2').html('Repo status: ready. <a href="." rel="nofollow">Click here to refresh this page.</a>');
            }
            else {
                $('#repo_status h2 span').html(data.status);
                if (delay < 60000){
                    delay = delay * 2;
                }
                window.setTimeout(check_status, delay);
            }
        });
    }
    var status_checker = window.setTimeout(check_status, delay);
    
  }
}());
</script>

<script type="text/javascript">(function() {
  $(window).on('hashchange', function(e) {
    var hash = window.location.hash.substring(1);
    if ('originalEvent' in e && 'oldURL' in e.originalEvent) {
      $('#' + e.originalEvent.oldURL.split('#')[1]).css('background-color', 'transparent');
    }
    if (hash !== '' && hash.substring(0, 1) === 'l' && !isNaN(hash.substring(1))) {
      $('#' + hash).css('background-color', '#ffff99');
    }
  }).trigger('hashchange');

  var clicks = 0;
  $('.code_block').each(function(index, element) {
    $(element).on('click', function() {
      // Trick to ignore double and triple clicks
      clicks++;
      if (clicks === 1) {
        setTimeout(function() {
          if (clicks === 1) {
            var hash = window.location.hash.substring(1);
            if (hash !== '' && hash.substring(0, 1) === 'l' && !isNaN(hash.substring(1))) {
              $('#' + hash).css('background-color', 'transparent');
            }
            $(element).css('background-color', '#ffff99');
            window.history.pushState({}, document.title, window.location.pathname + window.location.search + '#' + $(element).attr('id'));
          }
          clicks = 0;
        }, 500);
      }
    });
  });
}());
</script>


    


    
    
    <noscript><p><img src="https://analytics.slashdotmedia.com/index.php?idsite=39" style="border:0;position:absolute;top:0;" alt="" /></p></noscript>
    
    <script>
        $(document).foundation();
    </script>
    








    

<script>
    (function () {
        function load_bombora() {
            /*global _ml:true, window */
            _ml = window._ml || {};
            
            _ml.eid = '771';
            _ml.fp = 'dc9b500e-2ab4-4639-b50c-306e71a9998e';  
            var s = document.getElementsByTagName('script')[0], cd = new Date(), mltag = document.createElement('script');
            mltag.type = 'text/javascript';
            mltag.async = true;
            mltag.defer = true;
            mltag.src = '//ml314.com/tag.aspx?' + cd.getDate() + cd.getMonth() + cd.getFullYear();
            s.parentNode.insertBefore(mltag, s);
        }
        bizx.cmp.ifConsent({ purposes: 'all', vendors: 'bombora'},function() {
                    if (document.hidden) {
                        document.addEventListener('visibilitychange', function () {
                            if (!document.hidden) {
                                load_bombora();
                            }
                        }, {once: true});
                    } else {
                        load_bombora();
                    }
                });
    })();
</script>




<script>
    $(document).ready(function () {
        $(".tooltip, .m-tooltip").each(function(){
            let $el = $(this);
            $el.tooltipster({
                animation: 'fade',
                delay: 200,
                theme: 'tooltipster-light',
                trigger: 'hover',
                position: $el.data('position') || 'right',
                iconCloning: false,
                maxWidth: 300,
                contentAsHTML: true,
                interactive: true
            }).focus(function () {
                $(this).tooltipster('show');
            }).blur(function () {
                $(this).tooltipster('hide');
            });
        });
    });
</script>

    



<script type="text/javascript">
    bizx.cmp.ifConsent({ purposes: ['storage', 'measurement'], vendors: 'google-analytics'}, function () {
        /* jshint ignore:start */
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
        /* jshint ignore:end */

        window.dataLayer = window.dataLayer || [];
        function gtag(){ window.dataLayer.push(arguments); }
        window.gtag = window.gtag || gtag;
        bizx.cmp.embedScript("https://www.googletagmanager.com/gtag/js");
        gtag('js', new Date());
        gtag('set', {
            'page_location': 'https://sourceforge.net/p/drawj2d/code/368/tree/trunk/doc/drawj2d_en.tex',
        });
    });
</script>










<script>
        function gam(id){
            bizx.cmp.ifConsent({ purposes: 'all' }, function () {
                bizx.cmp.embedScript(`https://pagead2.googlesyndication.com/pagead/js/pcd.js?${id}`,
                    true,  // async
                    'head', // location
                    null, // callback
                    false, // defer
                    {id: `google-pcd-tag-${id}`, 'data-audience-pixel': 'dc_iu=/41014381/DFPAudiencePixel;dc_seg=' + id});
            });
        }

        
            gam("8901705213");gam("8901712041");</script>

<script type="text/javascript">
    /*global ga, gtag */

    
        
        bizx.cmp.ifConsent({ purposes: ['storage', 'measurement'], vendors: 'google-analytics'}, function () {
            gtag('config', 'G-1H226E4E4L', {
                
                send_page_view: false,
                'SF_Page_Type': '', 
                user_properties: {
                    'SF_Logged_in': 'Logged Out', 
                },
                'devicePixelRatio': SF.devicePixelRatio, 
            });
            gtag('event', 'page_view', { send_to: 'G-1H226E4E4L' });
        });
    
    
    
        
</script>

</body>
</html>