App-Basis-ConvertText2

 view release on metacpan or  search on metacpan

docs/README.html  view on Meta::CPAN

</ul>
<p><strong>Example</strong></p>
<pre><code>~~~~{.gnuplot}
# $Id: surface1.dem,v 1.11 2004/09/17 05:01:12 sfeam Exp $
#
set samples 21
set isosample 11
set xlabel &quot;X axis&quot; offset -3,-2
set ylabel &quot;Y axis&quot; offset 3,-2
set zlabel &quot;Z axis&quot; offset -5
set title &quot;3D gnuplot demo&quot;
set label 1 &quot;This is the surface boundary&quot; at -10,-5,150 center
set arrow 1 from -10,-5,120 to -10,0,0 nohead
set arrow 2 from -10,-5,120 to 10,0,0 nohead
set arrow 3 from -10,-5,120 to 0,10,0 nohead
set arrow 4 from -10,-5,120 to 0,-10,0 nohead
set xrange [-10:10]
set yrange [-10:10]
splot x*y
~~~~</code></pre>
<p><strong>Output</strong></p>
<p><img src='/tmp/kmulholland/cache/ct2/4363ae9c4a5380986dcf88637132dc55.png' height='512' width='720' /></p>
<h2 id="gotchas-about-variables"><a name='20_gotchas_about_variables'>20 Gotchas about variables</a></h2>
<ul>
<li>Variables used within the content area of a code-block will be evaluated before processing that block, if a variable has not yet been defined or saved to a buffer then it will only be evaluated at the end of document processing, so output may not...
<li>Variables used in markdown tables may not do what you expect if the variable is multi-line.</li>
</ul>
<h2 id="using-ct2-script-to-process-files"><a name='21_using_ct2_script_to_process_files'>21 Using ct2 script to process files</a></h2>
<p>Included in the distribution is a script to make use of all of the above code-blocks to alter <a href="http://daringfireball.net/projects/markdown">markdown</a> into nicely formatted documents.</p>
<p>Here is the help</p>
<pre><code>$ ct2 --help

Syntax: ct2 [options] filename

About:  Convert my modified markdown text files into other formats, by
default will create HTML in same directory as the input file, will only
process .md files.
If there is no output option used the output will be to file of same name
as the input filename but  with an extension (if provided) from the
document, use format: keyword (pdf html doc).

[options]
    -h, -?, --help        Show help
    -c, --clean           Clean up the cache before use
    -e, --embed           Embed images into HTML, do not use this if
        converting to doc/odt
    -o, --output          Filename to store the output as, extension will
        control conversion
    -p, --prince          Convert to PDF using princexml, can handle
        embedded images
    -s, --template        name of template to use
    -v, --verbose         verbose mode
    -w, --wkhtmltopdf     Convert to PDF using wkhtmltopdf, can handle
        embedded images</code></pre>
<p>If you are creating HTML documents to send out in emails or share in other ways, and use locally referenced images, then it is best to make use of the <strong>–embed</strong> option to pack these images into the HTML file.</p>
<p>If you are using <a href="http://www.princexml.com">PrinceXML</a> remember that it is only free for non-commercial use, it also adds a purple <strong>P</strong> to the top right of the first page of your document.</p>

      </div>
      <div class='footer'>
          <table class='footer' width='100%'>
              <tr><td colspan='2' class='commercial' align='center'>27escape</td></tr>
              <tr><td>Kevin Mulholland (c) 2014</td><td align='right'>2014-05-12</td></tr>
          </table>
      </div>
    </body>
</html>



( run in 1.504 second using v1.01-cache-2.11-cpan-39bf76dae61 )