mirror of https://github.com/mpastell/Weave.jl
337 lines
9.5 KiB
HTML
337 lines
9.5 KiB
HTML
<!DOCTYPE html>
|
|
<!--[if lt IE 7 ]><html class="no-js ie6"><![endif]-->
|
|
<!--[if IE 7 ]><html class="no-js ie7"><![endif]-->
|
|
<!--[if IE 8 ]><html class="no-js ie8"><![endif]-->
|
|
<!--[if IE 9 ]><html class="no-js ie9"><![endif]-->
|
|
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
|
|
|
|
|
<title>Getting started - Weave.jl - Scientific Reports Using Julia</title>
|
|
|
|
|
|
|
|
|
|
<meta name="author" content="Matti Pastell">
|
|
|
|
|
|
<meta property="og:url" content="None">
|
|
<meta property="og:title" content="Weave.jl - Scientific Reports Using Julia">
|
|
<meta property="og:image" content="None/../">
|
|
<meta name="apple-mobile-web-app-title" content="Weave.jl - Scientific Reports Using Julia">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
|
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="../None">
|
|
<link rel="icon" type="image/x-icon" href="../None">
|
|
<style>
|
|
@font-face {
|
|
font-family: 'Icon';
|
|
src: url('../assets/fonts/icon.eot?52m981');
|
|
src: url('../assets/fonts/icon.eot?#iefix52m981')
|
|
format('embedded-opentype'),
|
|
url('../assets/fonts/icon.woff?52m981')
|
|
format('woff'),
|
|
url('../assets/fonts/icon.ttf?52m981')
|
|
format('truetype'),
|
|
url('../assets/fonts/icon.svg?52m981#icon')
|
|
format('svg');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
</style>
|
|
<link rel="stylesheet" href="../assets/stylesheets/application-54f87043f3.css">
|
|
|
|
<link rel="stylesheet" href="../assets/stylesheets/palettes-05ab2406df.css">
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ubuntu:400,700|Ubuntu+Mono">
|
|
<style>
|
|
body, input {
|
|
font-family: 'Ubuntu', Helvetica, Arial, sans-serif;
|
|
}
|
|
pre, code {
|
|
font-family: 'Ubuntu Mono', 'Courier New', 'Courier', monospace;
|
|
}
|
|
</style>
|
|
|
|
|
|
<link rel="stylesheet" href="../assets/Documenter.css">
|
|
|
|
<script src="../assets/javascripts/modernizr-4ab42b99fd.js"></script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body class="palette-primary-indigo palette-accent-blue">
|
|
|
|
|
|
|
|
|
|
<div class="backdrop">
|
|
<div class="backdrop-paper"></div>
|
|
</div>
|
|
<input class="toggle" type="checkbox" id="toggle-drawer">
|
|
<input class="toggle" type="checkbox" id="toggle-search">
|
|
<label class="toggle-button overlay" for="toggle-drawer"></label>
|
|
<header class="header">
|
|
<nav aria-label="Header">
|
|
<div class="bar default">
|
|
<div class="button button-menu" role="button" aria-label="Menu">
|
|
<label class="toggle-button icon icon-menu" for="toggle-drawer">
|
|
<span></span>
|
|
</label>
|
|
</div>
|
|
<div class="stretch">
|
|
<div class="title">
|
|
|
|
<span class="path">
|
|
|
|
</span>
|
|
|
|
Getting started
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="button button-search" role="button" aria-label="Search">
|
|
<label class="toggle-button icon icon-search" title="Search" for="toggle-search"></label>
|
|
</div>
|
|
</div>
|
|
<div class="bar search">
|
|
<div class="button button-close" role="button" aria-label="Close">
|
|
<label class="toggle-button icon icon-back" for="toggle-search"></label>
|
|
</div>
|
|
<div class="stretch">
|
|
<div class="field">
|
|
<input class="query" type="text" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck>
|
|
</div>
|
|
</div>
|
|
<div class="button button-reset" role="button" aria-label="Search">
|
|
<button class="toggle-button icon icon-close" id="reset-search"></button>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
<main class="main">
|
|
|
|
<div class="drawer">
|
|
<nav aria-label="Navigation">
|
|
|
|
<a href="https://github.com/mpastell/Weave.jl" class="project">
|
|
<div class="banner">
|
|
|
|
<div class="name">
|
|
<strong>
|
|
Weave.jl - Scientific Reports Using Julia
|
|
<span class="version">
|
|
|
|
</span>
|
|
</strong>
|
|
|
|
<br>
|
|
mpastell/Weave.jl
|
|
|
|
</div>
|
|
</div>
|
|
</a>
|
|
<div class="scrollable">
|
|
<div class="wrapper">
|
|
|
|
<ul class="repo">
|
|
<li class="repo-download">
|
|
|
|
<a href="https://github.com/mpastell/Weave.jl/archive/master.zip" target="_blank" title="Download" data-action="download">
|
|
<i class="icon icon-download"></i> Download
|
|
</a>
|
|
</li>
|
|
<li class="repo-stars">
|
|
<a href="https://github.com/mpastell/Weave.jl/stargazers" target="_blank" title="Stargazers" data-action="star">
|
|
<i class="icon icon-star"></i> Stars
|
|
<span class="count">–</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<hr>
|
|
|
|
<div class="toc">
|
|
<ul>
|
|
|
|
|
|
<li>
|
|
<a class="" title="Home" href="..">
|
|
Home
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
<a class="current" title="Getting started" href="./">
|
|
Getting started
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
<a class="" title="Using Weave" href="../usage/">
|
|
Using Weave
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
<a class="" title="Publishing scripts" href="../publish/">
|
|
Publishing scripts
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
<a class="" title="Chunk options" href="../chunk_options/">
|
|
Chunk options
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
<a class="" title="Function index" href="../function_index/">
|
|
Function index
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
<article class="article">
|
|
<div class="wrapper">
|
|
|
|
<p><a id='Getting-started-1'></a></p>
|
|
<h1 id="getting-started">Getting started</h1>
|
|
<p>The best way to get started using Weave.jl is to look at the example input and output documents. Examples for different formats are included in the packages <code>examples</code> directory.</p>
|
|
<p>First have a look at source document using markdown code chunks and Gadfly for figures: <a href="../examples/gadfly_md_sample.jmd">gadfly_md_sample.jmd</a> and then see the output in different formats:</p>
|
|
<ul>
|
|
<li>Pandoc markdown: <a href="../examples/gadfly_md_sample.txt">gadfly_md_sample.md</a></li>
|
|
<li>HTML: <a href="../examples/gadfly_md_sample.html">gadfly_md_sample.html</a></li>
|
|
<li>pdf: <a href="../examples/gadfly_md_sample.pdf">gadfly_md_sample.pdf</a></li>
|
|
</ul>
|
|
<p><em>Producing HTML and pdf output requires that you have Pandoc and XeLatex (for pdf) installed.</em></p>
|
|
<p>You can Weave the files to your working directory using:</p>
|
|
<pre><code>using Weave
|
|
#Markdown
|
|
weave(Pkg.dir("Weave","examples","gadfly_md_sample.jmd"), out_path = :pwd,
|
|
doctype = "pandoc")
|
|
#HTML
|
|
weave(Pkg.dir("Weave","examples","gadfly_md_sample.jmd"), out_path = :pwd,
|
|
doctype = "md2html")
|
|
#pdf
|
|
weave(Pkg.dir("Weave","examples","gadfly_md_sample.jmd"), out_path = :pwd,
|
|
doctype = "md2pdf")
|
|
</code></pre>
|
|
<aside class="copyright" role="note">
|
|
|
|
Matti Pastell 2016 –
|
|
|
|
Documentation built with
|
|
<a href="http://www.mkdocs.org" target="_blank">MkDocs</a>
|
|
using the
|
|
<a href="http://squidfunk.github.io/mkdocs-material/" target="_blank">
|
|
Material
|
|
</a>
|
|
theme.
|
|
</aside>
|
|
|
|
<footer class="footer">
|
|
|
|
<nav class="pagination" aria-label="Footer">
|
|
<div class="previous">
|
|
|
|
<a href=".." title="Home">
|
|
<span class="direction">
|
|
Previous
|
|
</span>
|
|
<div class="page">
|
|
<div class="button button-previous" role="button" aria-label="Previous">
|
|
<i class="icon icon-back"></i>
|
|
</div>
|
|
<div class="stretch">
|
|
<div class="title">
|
|
Home
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
|
|
</div>
|
|
<div class="next">
|
|
|
|
<a href="../usage/" title="Using Weave">
|
|
<span class="direction">
|
|
Next
|
|
</span>
|
|
<div class="page">
|
|
<div class="stretch">
|
|
<div class="title">
|
|
Using Weave
|
|
</div>
|
|
</div>
|
|
<div class="button button-next" role="button" aria-label="Next">
|
|
<i class="icon icon-forward"></i>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
|
|
</div>
|
|
</nav>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
</article>
|
|
<div class="results" role="status" aria-live="polite">
|
|
<div class="scrollable">
|
|
<div class="wrapper">
|
|
<div class="meta"></div>
|
|
<div class="list"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<script>
|
|
var base_url = '..';
|
|
var repo_id = 'mpastell/Weave.jl';
|
|
</script>
|
|
<script src="../assets/javascripts/application-997097ee0c.js"></script>
|
|
|
|
<script src="../assets/mathjaxhelper.js"></script>
|
|
|
|
|
|
</body>
|
|
</html> |