Browse Source

build based on fa64dcd

gh-pages
zeptodoctor 7 years ago
parent
commit
d7fd048984
  1. 4
      dev/assets/search.js
  2. 2
      dev/fileformat/index.html
  3. 183
      dev/generated/example.ipynb
  4. 100
      dev/generated/example/index.html
  5. 4
      dev/outputformats/index.html
  6. 326
      dev/search_index.js

4
dev/assets/search.js

@ -39,8 +39,8 @@ parseUri.options = {
requirejs.config({ requirejs.config({
paths: { paths: {
'jquery': 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min', 'jquery': 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min',
'lunr': 'https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.1/lunr.min', 'lunr': 'https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.5/lunr.min',
'lodash': 'https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min', 'lodash': 'https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.min',
} }
}); });

2
dev/fileformat/index.html

@ -14,4 +14,4 @@ z = x + y</code></pre><p>In the lines starting with <code>#</code> we can use re
#md # Literate.notebook #md # Literate.notebook
#md # Literate.markdown #md # Literate.markdown
#md # ```</code></pre><p>The lines in the example above would be filtered out in the preprocessing step, unless we are generating a markdown file. When generating a markdown file we would simple remove the leading <code>#md</code> from the lines. Beware that the space after the tag is also removed.</p><p>The <code>#src</code> token can also be placed at the <em>end</em> of a line. This is to make it possible to have code lines exclusive to the source code, and not just comment lines. For example, if the source file is included in the test suite we might want to add a <code>@test</code> at the end without this showing up in the outputs:</p><pre><code class="language-julia">using Test #src #md # ```</code></pre><p>The lines in the example above would be filtered out in the preprocessing step, unless we are generating a markdown file. When generating a markdown file we would simple remove the leading <code>#md</code> from the lines. Beware that the space after the tag is also removed.</p><p>The <code>#src</code> token can also be placed at the <em>end</em> of a line. This is to make it possible to have code lines exclusive to the source code, and not just comment lines. For example, if the source file is included in the test suite we might want to add a <code>@test</code> at the end without this showing up in the outputs:</p><pre><code class="language-julia">using Test #src
@test result == expected_result #src</code></pre><h2><a class="nav-anchor" id="Default-Replacements-1" href="#Default-Replacements-1"><strong>2.3.</strong> Default Replacements</a></h2><p>The following convenience &quot;macros&quot; are always expanded:</p><ul><li><p><code>@__NAME__</code></p><p>expands to the <code>name</code> keyword argument to <a href="../outputformats/#Literate.markdown"><code>Literate.markdown</code></a>, <a href="../outputformats/#Literate.notebook"><code>Literate.notebook</code></a> and <a href="../outputformats/#Literate.script"><code>Literate.script</code></a> (defaults to the filename of the input file).</p></li><li><p><code>@__REPO__ROOT_URL__</code></p><p>expands to <code>https://github.com/$(ENV[&quot;TRAVIS_REPO_SLUG&quot;])/blob/master/</code> and is a convenient way to use when you want to link to files outside the doc-build directory. For example <code>@__REPO__ROOT_URL__src/Literate.jl</code> would link to the source of the Literate module.</p></li><li><p><code>@__NBVIEWER_ROOT_URL__</code></p><p>expands to <code>https://nbviewer.jupyter.org/github/$(ENV[&quot;TRAVIS_REPO_SLUG&quot;])/blob/gh-pages/$(folder)/</code> where <code>folder</code> is the folder that <code>Documenter.deploydocs</code> deploys too. This can be used if you want a link that opens the generated notebook in <a href="http://nbviewer.jupyter.org/">http://nbviewer.jupyter.org/</a>.</p></li></ul><footer><hr/><a class="previous" href="../"><span class="direction">Previous</span><span class="title"><strong>1.</strong> Introduction</span></a><a class="next" href="../pipeline/"><span class="direction">Next</span><span class="title"><strong>3.</strong> Processing pipeline</span></a></footer></article></body></html> @test result == expected_result #src</code></pre><h2><a class="nav-anchor" id="Default-Replacements-1" href="#Default-Replacements-1"><strong>2.3.</strong> Default Replacements</a></h2><p>The following convenience &quot;macros&quot; are always expanded:</p><ul><li><p><code>@__NAME__</code></p><p>expands to the <code>name</code> keyword argument to <a href="../outputformats/#Literate.markdown"><code>Literate.markdown</code></a>, <a href="../outputformats/#Literate.notebook"><code>Literate.notebook</code></a> and <a href="../outputformats/#Literate.script"><code>Literate.script</code></a> (defaults to the filename of the input file).</p></li><li><p><code>@__REPO__ROOT_URL__</code></p><p>expands to <code>https://github.com/$(ENV[&quot;TRAVIS_REPO_SLUG&quot;])/blob/master/</code> and is a convenient way to use when you want to link to files outside the doc-build directory. For example <code>@__REPO__ROOT_URL__src/Literate.jl</code> would link to the source of the Literate module.</p></li><li><p><code>@__NBVIEWER_ROOT_URL__</code></p><p>expands to <code>https://nbviewer.jupyter.org/github/$(ENV[&quot;TRAVIS_REPO_SLUG&quot;])/blob/gh-pages/$(folder)/</code> where <code>folder</code> is the folder that <code>Documenter.deploydocs</code> deploys too. This can be used if you want a link that opens the generated notebook in <a href="http://nbviewer.jupyter.org/">http://nbviewer.jupyter.org/</a>.</p></li><li><p><code>@__BINDER_ROOT_URL__</code></p><p>expands to <code>https://mybinder.org/v2/gh/$(ENV[&quot;TRAVIS_REPO_SLUG&quot;])/$(branch)?filepath=$(folder)/</code> where <code>branch</code>/<code>folder</code> is the branch and folder where <code>Documenter.deploydocs</code> deploys too. This can be used if you want a link that opens the generated notebook in <a href="https://mybinder.org/">https://mybinder.org/</a>. To add a binder-badge in e.g. the HTML output you can use:</p><pre><code class="language-none">[![Binder](https://mybinder.org/badge_logo.svg)](@__BINDER_ROOT_URL__path/to/notebook.inpynb)</code></pre></li></ul><footer><hr/><a class="previous" href="../"><span class="direction">Previous</span><span class="title"><strong>1.</strong> Introduction</span></a><a class="next" href="../pipeline/"><span class="direction">Next</span><span class="title"><strong>3.</strong> Processing pipeline</span></a></footer></article></body></html>

183
dev/generated/example.ipynb

@ -6,11 +6,12 @@
"source": [ "source": [
"# **7.** Example\n", "# **7.** Example\n",
"\n", "\n",
"\n",
"This is an example generated with Literate based on this\n", "This is an example generated with Literate based on this\n",
"source file: [`example.jl`](https://github.com/fredrikekre/Literate.jl/blob/master/examples/example.jl).\n", "source file: [`example.jl`](https://github.com/fredrikekre/Literate.jl/blob/master/examples/example.jl).\n",
"You are seeing the\n", "You are seeing the\n",
"generated notebook output. The corresponding markdown (html) output\n", "generated notebook output. The corresponding markdown (HTML) output\n",
"can be found here: [`example.html`](https://fredrikekre.github.io/Literate.jl/latest/generated/example.html),\n", "can be found here: [`example.html`](https://fredrikekre.github.io/Literate.jl/dev/generated/example.html),\n",
"and the plain script output can be found here: [`example.jl`](./example.jl)." "and the plain script output can be found here: [`example.jl`](./example.jl)."
], ],
"metadata": {} "metadata": {}
@ -187,119 +188,114 @@
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n", "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n", "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n",
"<defs>\n", "<defs>\n",
" <clipPath id=\"clip3800\">\n", " <clipPath id=\"clip9900\">\n",
" <rect x=\"0\" y=\"0\" width=\"2000\" height=\"2000\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<defs>\n",
" <clipPath id=\"clip3801\">\n",
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n", " <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n", " </clipPath>\n",
"</defs>\n", "</defs>\n",
"<polygon clip-path=\"url(#clip3801)\" points=\"\n", "<polygon clip-path=\"url(#clip9900)\" points=\"\n",
"0,1600 2400,1600 2400,0 0,0 \n", "0,1600 2400,1600 2400,0 0,0 \n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n", " \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n", "<defs>\n",
" <clipPath id=\"clip3802\">\n", " <clipPath id=\"clip9901\">\n",
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n", " <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n", " </clipPath>\n",
"</defs>\n", "</defs>\n",
"<polygon clip-path=\"url(#clip3801)\" points=\"\n", "<polygon clip-path=\"url(#clip9900)\" points=\"\n",
"94.4882,1537.01 2321.26,1537.01 2321.26,47.2441 94.4882,47.2441 \n", "94.4882,1537.01 2321.26,1537.01 2321.26,47.2441 94.4882,47.2441 \n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n", " \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n", "<defs>\n",
" <clipPath id=\"clip3803\">\n", " <clipPath id=\"clip9902\">\n",
" <rect x=\"94\" y=\"47\" width=\"2228\" height=\"1491\"/>\n", " <rect x=\"94\" y=\"47\" width=\"2228\" height=\"1491\"/>\n",
" </clipPath>\n", " </clipPath>\n",
"</defs>\n", "</defs>\n",
"<polyline clip-path=\"url(#clip3803)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 157.51,1537.01 157.51,47.2441 \n", " 157.51,1537.01 157.51,47.2441 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3803)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 714.745,1537.01 714.745,47.2441 \n", " 714.745,1537.01 714.745,47.2441 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3803)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1271.98,1537.01 1271.98,47.2441 \n", " 1271.98,1537.01 1271.98,47.2441 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3803)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1829.22,1537.01 1829.22,47.2441 \n", " 1829.22,1537.01 1829.22,47.2441 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3803)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 94.4882,1494.85 2321.26,1494.85 \n", " 94.4882,1494.85 2321.26,1494.85 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3803)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 94.4882,1143.49 2321.26,1143.49 \n", " 94.4882,1143.49 2321.26,1143.49 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3803)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 94.4882,792.13 2321.26,792.13 \n", " 94.4882,792.13 2321.26,792.13 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3803)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 94.4882,440.769 2321.26,440.769 \n", " 94.4882,440.769 2321.26,440.769 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3803)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 94.4882,89.4072 2321.26,89.4072 \n", " 94.4882,89.4072 2321.26,89.4072 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,1537.01 2321.26,1537.01 \n", " 94.4882,1537.01 2321.26,1537.01 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,1537.01 94.4882,47.2441 \n", " 94.4882,1537.01 94.4882,47.2441 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 157.51,1537.01 157.51,1514.66 \n", " 157.51,1537.01 157.51,1514.66 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 714.745,1537.01 714.745,1514.66 \n", " 714.745,1537.01 714.745,1514.66 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1271.98,1537.01 1271.98,1514.66 \n", " 1271.98,1537.01 1271.98,1514.66 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1829.22,1537.01 1829.22,1514.66 \n", " 1829.22,1537.01 1829.22,1514.66 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,1494.85 127.89,1494.85 \n", " 94.4882,1494.85 127.89,1494.85 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,1143.49 127.89,1143.49 \n", " 94.4882,1143.49 127.89,1143.49 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,792.13 127.89,792.13 \n", " 94.4882,792.13 127.89,792.13 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,440.769 127.89,440.769 \n", " 94.4882,440.769 127.89,440.769 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,89.4072 127.89,89.4072 \n", " 94.4882,89.4072 127.89,89.4072 \n",
" \"/>\n", " \"/>\n",
"<g clip-path=\"url(#clip3801)\">\n", "<g clip-path=\"url(#clip9900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 157.51, 1591.01)\" x=\"157.51\" y=\"1591.01\">0</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 157.51, 1591.01)\" x=\"157.51\" y=\"1591.01\">0</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3801)\">\n", "<g clip-path=\"url(#clip9900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 714.745, 1591.01)\" x=\"714.745\" y=\"1591.01\">5</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 714.745, 1591.01)\" x=\"714.745\" y=\"1591.01\">5</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3801)\">\n", "<g clip-path=\"url(#clip9900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1271.98, 1591.01)\" x=\"1271.98\" y=\"1591.01\">10</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1271.98, 1591.01)\" x=\"1271.98\" y=\"1591.01\">10</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3801)\">\n", "<g clip-path=\"url(#clip9900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1829.22, 1591.01)\" x=\"1829.22\" y=\"1591.01\">15</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1829.22, 1591.01)\" x=\"1829.22\" y=\"1591.01\">15</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3801)\">\n", "<g clip-path=\"url(#clip9900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 1512.35)\" x=\"70.4882\" y=\"1512.35\">-1.0</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 1512.35)\" x=\"70.4882\" y=\"1512.35\">-1.0</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3801)\">\n", "<g clip-path=\"url(#clip9900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 1160.99)\" x=\"70.4882\" y=\"1160.99\">-0.5</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 1160.99)\" x=\"70.4882\" y=\"1160.99\">-0.5</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3801)\">\n", "<g clip-path=\"url(#clip9900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 809.63)\" x=\"70.4882\" y=\"809.63\">0.0</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 809.63)\" x=\"70.4882\" y=\"809.63\">0.0</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3801)\">\n", "<g clip-path=\"url(#clip9900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 458.269)\" x=\"70.4882\" y=\"458.269\">0.5</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 458.269)\" x=\"70.4882\" y=\"458.269\">0.5</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3801)\">\n", "<g clip-path=\"url(#clip9900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 106.907)\" x=\"70.4882\" y=\"106.907\">1.0</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 106.907)\" x=\"70.4882\" y=\"106.907\">1.0</text>\n",
"</g>\n", "</g>\n",
"<polyline clip-path=\"url(#clip3803)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9902)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 157.51,792.13 159.613,778.871 161.716,765.618 163.819,752.373 165.921,739.143 168.024,725.932 170.127,712.744 172.23,699.585 174.333,686.458 176.436,673.369 \n", " 157.51,792.13 159.613,778.871 161.716,765.618 163.819,752.373 165.921,739.143 168.024,725.932 170.127,712.744 172.23,699.585 174.333,686.458 176.436,673.369 \n",
" 178.538,660.323 180.641,647.323 182.744,634.375 184.847,621.483 186.95,608.651 189.052,595.886 191.155,583.189 193.258,570.568 195.361,558.025 197.464,545.566 \n", " 178.538,660.323 180.641,647.323 182.744,634.375 184.847,621.483 186.95,608.651 189.052,595.886 191.155,583.189 193.258,570.568 195.361,558.025 197.464,545.566 \n",
" 199.567,533.194 201.669,520.914 203.772,508.731 205.875,496.649 207.978,484.673 210.081,472.805 212.184,461.051 214.286,449.416 216.389,437.902 218.492,426.514 \n", " 199.567,533.194 201.669,520.914 203.772,508.731 205.875,496.649 207.978,484.673 210.081,472.805 212.184,461.051 214.286,449.416 216.389,437.902 218.492,426.514 \n",
@ -402,7 +398,7 @@
" 2239.31,910.891 2241.42,897.802 2243.52,884.675 2245.62,871.516 2247.72,858.328 2249.83,845.117 2251.93,831.886 2254.03,818.642 2256.14,805.388 2258.24,792.13 \n", " 2239.31,910.891 2241.42,897.802 2243.52,884.675 2245.62,871.516 2247.72,858.328 2249.83,845.117 2251.93,831.886 2254.03,818.642 2256.14,805.388 2258.24,792.13 \n",
" \n", " \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3803)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9902)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 157.51,89.4072 159.613,89.5323 161.716,89.9075 163.819,90.5327 165.921,91.4077 168.024,92.5322 170.127,93.9057 172.23,95.5278 174.333,97.3978 176.436,99.5152 \n", " 157.51,89.4072 159.613,89.5323 161.716,89.9075 163.819,90.5327 165.921,91.4077 168.024,92.5322 170.127,93.9057 172.23,95.5278 174.333,97.3978 176.436,99.5152 \n",
" 178.538,101.879 180.641,104.489 182.744,107.343 184.847,110.442 186.95,113.783 189.052,117.365 191.155,121.188 193.258,125.25 195.361,129.549 197.464,134.083 \n", " 178.538,101.879 180.641,104.489 182.744,107.343 184.847,110.442 186.95,113.783 189.052,117.365 191.155,121.188 193.258,125.25 195.361,129.549 197.464,134.083 \n",
" 199.567,138.853 201.669,143.854 203.772,149.087 205.875,154.548 207.978,160.237 210.081,166.15 212.184,172.286 214.286,178.643 216.389,185.218 218.492,192.01 \n", " 199.567,138.853 201.669,143.854 203.772,149.087 205.875,154.548 207.978,160.237 210.081,166.15 212.184,172.286 214.286,178.643 216.389,185.218 218.492,192.01 \n",
@ -505,22 +501,22 @@
" 2239.31,99.5152 2241.42,97.3978 2243.52,95.5278 2245.62,93.9057 2247.72,92.5322 2249.83,91.4077 2251.93,90.5327 2254.03,89.9075 2256.14,89.5323 2258.24,89.4072 \n", " 2239.31,99.5152 2241.42,97.3978 2243.52,95.5278 2245.62,93.9057 2247.72,92.5322 2249.83,91.4077 2251.93,90.5327 2254.03,89.9075 2256.14,89.5323 2258.24,89.4072 \n",
" \n", " \n",
" \"/>\n", " \"/>\n",
"<polygon clip-path=\"url(#clip3801)\" points=\"\n", "<polygon clip-path=\"url(#clip9900)\" points=\"\n",
"1958.43,312.204 2249.26,312.204 2249.26,130.764 1958.43,130.764 \n", "1958.43,312.204 2249.26,312.204 2249.26,130.764 1958.43,130.764 \n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n", " \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1958.43,312.204 2249.26,312.204 2249.26,130.764 1958.43,130.764 1958.43,312.204 \n", " 1958.43,312.204 2249.26,312.204 2249.26,130.764 1958.43,130.764 1958.43,312.204 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1982.43,191.244 2126.43,191.244 \n", " 1982.43,191.244 2126.43,191.244 \n",
" \"/>\n", " \"/>\n",
"<g clip-path=\"url(#clip3801)\">\n", "<g clip-path=\"url(#clip9900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2150.43, 208.744)\" x=\"2150.43\" y=\"208.744\">y1</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2150.43, 208.744)\" x=\"2150.43\" y=\"208.744\">y1</text>\n",
"</g>\n", "</g>\n",
"<polyline clip-path=\"url(#clip3801)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9900)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1982.43,251.724 2126.43,251.724 \n", " 1982.43,251.724 2126.43,251.724 \n",
" \"/>\n", " \"/>\n",
"<g clip-path=\"url(#clip3801)\">\n", "<g clip-path=\"url(#clip9900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2150.43, 269.224)\" x=\"2150.43\" y=\"269.224\">y2</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2150.43, 269.224)\" x=\"2150.43\" y=\"269.224\">y2</text>\n",
"</g>\n", "</g>\n",
"</svg>\n" "</svg>\n"
@ -529,119 +525,114 @@
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n", "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n", "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n",
"<defs>\n", "<defs>\n",
" <clipPath id=\"clip3700\">\n", " <clipPath id=\"clip9600\">\n",
" <rect x=\"0\" y=\"0\" width=\"2000\" height=\"2000\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<defs>\n",
" <clipPath id=\"clip3701\">\n",
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n", " <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n", " </clipPath>\n",
"</defs>\n", "</defs>\n",
"<polygon clip-path=\"url(#clip3701)\" points=\"\n", "<polygon clip-path=\"url(#clip9600)\" points=\"\n",
"0,1600 2400,1600 2400,0 0,0 \n", "0,1600 2400,1600 2400,0 0,0 \n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n", " \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n", "<defs>\n",
" <clipPath id=\"clip3702\">\n", " <clipPath id=\"clip9601\">\n",
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n", " <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n", " </clipPath>\n",
"</defs>\n", "</defs>\n",
"<polygon clip-path=\"url(#clip3701)\" points=\"\n", "<polygon clip-path=\"url(#clip9600)\" points=\"\n",
"94.4882,1537.01 2321.26,1537.01 2321.26,47.2441 94.4882,47.2441 \n", "94.4882,1537.01 2321.26,1537.01 2321.26,47.2441 94.4882,47.2441 \n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n", " \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n", "<defs>\n",
" <clipPath id=\"clip3703\">\n", " <clipPath id=\"clip9602\">\n",
" <rect x=\"94\" y=\"47\" width=\"2228\" height=\"1491\"/>\n", " <rect x=\"94\" y=\"47\" width=\"2228\" height=\"1491\"/>\n",
" </clipPath>\n", " </clipPath>\n",
"</defs>\n", "</defs>\n",
"<polyline clip-path=\"url(#clip3703)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9602)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 157.51,1537.01 157.51,47.2441 \n", " 157.51,1537.01 157.51,47.2441 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3703)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9602)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 714.745,1537.01 714.745,47.2441 \n", " 714.745,1537.01 714.745,47.2441 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3703)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9602)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1271.98,1537.01 1271.98,47.2441 \n", " 1271.98,1537.01 1271.98,47.2441 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3703)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9602)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1829.22,1537.01 1829.22,47.2441 \n", " 1829.22,1537.01 1829.22,47.2441 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3703)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9602)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 94.4882,1494.85 2321.26,1494.85 \n", " 94.4882,1494.85 2321.26,1494.85 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3703)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9602)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 94.4882,1143.49 2321.26,1143.49 \n", " 94.4882,1143.49 2321.26,1143.49 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3703)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9602)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 94.4882,792.13 2321.26,792.13 \n", " 94.4882,792.13 2321.26,792.13 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3703)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9602)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 94.4882,440.769 2321.26,440.769 \n", " 94.4882,440.769 2321.26,440.769 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3703)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9602)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 94.4882,89.4072 2321.26,89.4072 \n", " 94.4882,89.4072 2321.26,89.4072 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,1537.01 2321.26,1537.01 \n", " 94.4882,1537.01 2321.26,1537.01 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,1537.01 94.4882,47.2441 \n", " 94.4882,1537.01 94.4882,47.2441 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 157.51,1537.01 157.51,1514.66 \n", " 157.51,1537.01 157.51,1514.66 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 714.745,1537.01 714.745,1514.66 \n", " 714.745,1537.01 714.745,1514.66 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1271.98,1537.01 1271.98,1514.66 \n", " 1271.98,1537.01 1271.98,1514.66 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1829.22,1537.01 1829.22,1514.66 \n", " 1829.22,1537.01 1829.22,1514.66 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,1494.85 127.89,1494.85 \n", " 94.4882,1494.85 127.89,1494.85 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,1143.49 127.89,1143.49 \n", " 94.4882,1143.49 127.89,1143.49 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,792.13 127.89,792.13 \n", " 94.4882,792.13 127.89,792.13 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,440.769 127.89,440.769 \n", " 94.4882,440.769 127.89,440.769 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 94.4882,89.4072 127.89,89.4072 \n", " 94.4882,89.4072 127.89,89.4072 \n",
" \"/>\n", " \"/>\n",
"<g clip-path=\"url(#clip3701)\">\n", "<g clip-path=\"url(#clip9600)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 157.51, 1591.01)\" x=\"157.51\" y=\"1591.01\">0</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 157.51, 1591.01)\" x=\"157.51\" y=\"1591.01\">0</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3701)\">\n", "<g clip-path=\"url(#clip9600)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 714.745, 1591.01)\" x=\"714.745\" y=\"1591.01\">5</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 714.745, 1591.01)\" x=\"714.745\" y=\"1591.01\">5</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3701)\">\n", "<g clip-path=\"url(#clip9600)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1271.98, 1591.01)\" x=\"1271.98\" y=\"1591.01\">10</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1271.98, 1591.01)\" x=\"1271.98\" y=\"1591.01\">10</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3701)\">\n", "<g clip-path=\"url(#clip9600)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1829.22, 1591.01)\" x=\"1829.22\" y=\"1591.01\">15</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1829.22, 1591.01)\" x=\"1829.22\" y=\"1591.01\">15</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3701)\">\n", "<g clip-path=\"url(#clip9600)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 1512.35)\" x=\"70.4882\" y=\"1512.35\">-1.0</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 1512.35)\" x=\"70.4882\" y=\"1512.35\">-1.0</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3701)\">\n", "<g clip-path=\"url(#clip9600)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 1160.99)\" x=\"70.4882\" y=\"1160.99\">-0.5</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 1160.99)\" x=\"70.4882\" y=\"1160.99\">-0.5</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3701)\">\n", "<g clip-path=\"url(#clip9600)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 809.63)\" x=\"70.4882\" y=\"809.63\">0.0</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 809.63)\" x=\"70.4882\" y=\"809.63\">0.0</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3701)\">\n", "<g clip-path=\"url(#clip9600)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 458.269)\" x=\"70.4882\" y=\"458.269\">0.5</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 458.269)\" x=\"70.4882\" y=\"458.269\">0.5</text>\n",
"</g>\n", "</g>\n",
"<g clip-path=\"url(#clip3701)\">\n", "<g clip-path=\"url(#clip9600)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 106.907)\" x=\"70.4882\" y=\"106.907\">1.0</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 70.4882, 106.907)\" x=\"70.4882\" y=\"106.907\">1.0</text>\n",
"</g>\n", "</g>\n",
"<polyline clip-path=\"url(#clip3703)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9602)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 157.51,792.13 159.613,778.871 161.716,765.618 163.819,752.373 165.921,739.143 168.024,725.932 170.127,712.744 172.23,699.585 174.333,686.458 176.436,673.369 \n", " 157.51,792.13 159.613,778.871 161.716,765.618 163.819,752.373 165.921,739.143 168.024,725.932 170.127,712.744 172.23,699.585 174.333,686.458 176.436,673.369 \n",
" 178.538,660.323 180.641,647.323 182.744,634.375 184.847,621.483 186.95,608.651 189.052,595.886 191.155,583.189 193.258,570.568 195.361,558.025 197.464,545.566 \n", " 178.538,660.323 180.641,647.323 182.744,634.375 184.847,621.483 186.95,608.651 189.052,595.886 191.155,583.189 193.258,570.568 195.361,558.025 197.464,545.566 \n",
" 199.567,533.194 201.669,520.914 203.772,508.731 205.875,496.649 207.978,484.673 210.081,472.805 212.184,461.051 214.286,449.416 216.389,437.902 218.492,426.514 \n", " 199.567,533.194 201.669,520.914 203.772,508.731 205.875,496.649 207.978,484.673 210.081,472.805 212.184,461.051 214.286,449.416 216.389,437.902 218.492,426.514 \n",
@ -744,7 +735,7 @@
" 2239.31,910.891 2241.42,897.802 2243.52,884.675 2245.62,871.516 2247.72,858.328 2249.83,845.117 2251.93,831.886 2254.03,818.642 2256.14,805.388 2258.24,792.13 \n", " 2239.31,910.891 2241.42,897.802 2243.52,884.675 2245.62,871.516 2247.72,858.328 2249.83,845.117 2251.93,831.886 2254.03,818.642 2256.14,805.388 2258.24,792.13 \n",
" \n", " \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3703)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9602)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 157.51,89.4072 159.613,89.5323 161.716,89.9075 163.819,90.5327 165.921,91.4077 168.024,92.5322 170.127,93.9057 172.23,95.5278 174.333,97.3978 176.436,99.5152 \n", " 157.51,89.4072 159.613,89.5323 161.716,89.9075 163.819,90.5327 165.921,91.4077 168.024,92.5322 170.127,93.9057 172.23,95.5278 174.333,97.3978 176.436,99.5152 \n",
" 178.538,101.879 180.641,104.489 182.744,107.343 184.847,110.442 186.95,113.783 189.052,117.365 191.155,121.188 193.258,125.25 195.361,129.549 197.464,134.083 \n", " 178.538,101.879 180.641,104.489 182.744,107.343 184.847,110.442 186.95,113.783 189.052,117.365 191.155,121.188 193.258,125.25 195.361,129.549 197.464,134.083 \n",
" 199.567,138.853 201.669,143.854 203.772,149.087 205.875,154.548 207.978,160.237 210.081,166.15 212.184,172.286 214.286,178.643 216.389,185.218 218.492,192.01 \n", " 199.567,138.853 201.669,143.854 203.772,149.087 205.875,154.548 207.978,160.237 210.081,166.15 212.184,172.286 214.286,178.643 216.389,185.218 218.492,192.01 \n",
@ -847,22 +838,22 @@
" 2239.31,99.5152 2241.42,97.3978 2243.52,95.5278 2245.62,93.9057 2247.72,92.5322 2249.83,91.4077 2251.93,90.5327 2254.03,89.9075 2256.14,89.5323 2258.24,89.4072 \n", " 2239.31,99.5152 2241.42,97.3978 2243.52,95.5278 2245.62,93.9057 2247.72,92.5322 2249.83,91.4077 2251.93,90.5327 2254.03,89.9075 2256.14,89.5323 2258.24,89.4072 \n",
" \n", " \n",
" \"/>\n", " \"/>\n",
"<polygon clip-path=\"url(#clip3701)\" points=\"\n", "<polygon clip-path=\"url(#clip9600)\" points=\"\n",
"1958.43,312.204 2249.26,312.204 2249.26,130.764 1958.43,130.764 \n", "1958.43,312.204 2249.26,312.204 2249.26,130.764 1958.43,130.764 \n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n", " \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1958.43,312.204 2249.26,312.204 2249.26,130.764 1958.43,130.764 1958.43,312.204 \n", " 1958.43,312.204 2249.26,312.204 2249.26,130.764 1958.43,130.764 1958.43,312.204 \n",
" \"/>\n", " \"/>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1982.43,191.244 2126.43,191.244 \n", " 1982.43,191.244 2126.43,191.244 \n",
" \"/>\n", " \"/>\n",
"<g clip-path=\"url(#clip3701)\">\n", "<g clip-path=\"url(#clip9600)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2150.43, 208.744)\" x=\"2150.43\" y=\"208.744\">y1</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2150.43, 208.744)\" x=\"2150.43\" y=\"208.744\">y1</text>\n",
"</g>\n", "</g>\n",
"<polyline clip-path=\"url(#clip3701)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n", "<polyline clip-path=\"url(#clip9600)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1982.43,251.724 2126.43,251.724 \n", " 1982.43,251.724 2126.43,251.724 \n",
" \"/>\n", " \"/>\n",
"<g clip-path=\"url(#clip3701)\">\n", "<g clip-path=\"url(#clip9600)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2150.43, 269.224)\" x=\"2150.43\" y=\"269.224\">y2</text>\n", "<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2150.43, 269.224)\" x=\"2150.43\" y=\"269.224\">y2</text>\n",
"</g>\n", "</g>\n",
"</svg>\n" "</svg>\n"

100
dev/generated/example/index.html

@ -1,135 +1,129 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>7. Example · Literate.jl</title><link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css" rel="stylesheet" type="text/css"/><link href="https://fonts.googleapis.com/css?family=Lato|Roboto+Mono" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL="../.."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.2.0/require.min.js" data-main="../../assets/documenter.js"></script><script src="../../siteinfo.js"></script><script src="../../../versions.js"></script><link href="../../assets/documenter.css" rel="stylesheet" type="text/css"/></head><body><nav class="toc"><a href="../../index.html"><img class="logo" src="../../assets/logo.png" alt="Literate.jl logo"/></a><h1>Literate.jl</h1><select id="version-selector" onChange="window.location.href=this.value" style="visibility: hidden"></select><form class="search" id="search-form" action="../../search/"><input id="search-query" name="q" type="text" placeholder="Search docs"/></form><ul><li><a class="toctext" href="../../"><strong>1.</strong> Introduction</a></li><li><a class="toctext" href="../../fileformat/"><strong>2.</strong> File Format</a></li><li><a class="toctext" href="../../pipeline/"><strong>3.</strong> Processing pipeline</a></li><li><a class="toctext" href="../../outputformats/"><strong>4.</strong> Output Formats</a></li><li><a class="toctext" href="../../customprocessing/"><strong>5.</strong> Custom pre- and post-processing</a></li><li><a class="toctext" href="../../documenter/"><strong>6.</strong> Interaction with Documenter.jl</a></li><li class="current"><a class="toctext" href><strong>7.</strong> Example</a><ul class="internal"></ul></li></ul></nav><article id="docs"><header><nav><ul><li><a href><strong>7.</strong> Example</a></li></ul><a class="edit-page" href="https://github.com/fredrikekre/Literate.jl/blob/master/examples/example.jl"><span class="fa"></span> Edit on GitHub</a></nav><hr/><div id="topbar"><span>7. Example</span><a class="fa fa-bars" href="#"></a></div></header><h1><a class="nav-anchor" id="**7.**-Example-1" href="#**7.**-Example-1"><strong>7.</strong> Example</a></h1><p>This is an example generated with Literate based on this source file: <a href="https://github.com/fredrikekre/Literate.jl/blob/master/examples/example.jl"><code>example.jl</code></a>. You are seeing the html-output which Documenter have generated based on a markdown file generated with Literate. The corresponding notebook can be found here: <a href="https://nbviewer.jupyter.org/github/fredrikekre/Literate.jl/blob/gh-pages/dev/generated/example.ipynb"><code>example.ipynb</code></a>, and the plain script output can be found here: <a href="../example.jl"><code>example.jl</code></a>.</p><p>It is recommended to have the <a href="https://github.com/fredrikekre/Literate.jl/blob/master/examples/example.jl">source file</a> available when reading this, to better understand how the syntax in the source file corresponds to the output you are seeing.</p><h3><a class="nav-anchor" id="Basic-syntax-1" href="#Basic-syntax-1">Basic syntax</a></h3><p>The basic syntax for Literate is simple, lines starting with <code>#</code> is interpreted as markdown, and all the other lines are interpreted as code. Here is some code:</p><div><pre><code class="language-julia">x = 1//3 <html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>7. Example · Literate.jl</title><link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css" rel="stylesheet" type="text/css"/><link href="https://fonts.googleapis.com/css?family=Lato|Roboto+Mono" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL="../.."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.2.0/require.min.js" data-main="../../assets/documenter.js"></script><script src="../../siteinfo.js"></script><script src="../../../versions.js"></script><link href="../../assets/documenter.css" rel="stylesheet" type="text/css"/></head><body><nav class="toc"><a href="../../index.html"><img class="logo" src="../../assets/logo.png" alt="Literate.jl logo"/></a><h1>Literate.jl</h1><select id="version-selector" onChange="window.location.href=this.value" style="visibility: hidden"></select><form class="search" id="search-form" action="../../search/"><input id="search-query" name="q" type="text" placeholder="Search docs"/></form><ul><li><a class="toctext" href="../../"><strong>1.</strong> Introduction</a></li><li><a class="toctext" href="../../fileformat/"><strong>2.</strong> File Format</a></li><li><a class="toctext" href="../../pipeline/"><strong>3.</strong> Processing pipeline</a></li><li><a class="toctext" href="../../outputformats/"><strong>4.</strong> Output Formats</a></li><li><a class="toctext" href="../../customprocessing/"><strong>5.</strong> Custom pre- and post-processing</a></li><li><a class="toctext" href="../../documenter/"><strong>6.</strong> Interaction with Documenter.jl</a></li><li class="current"><a class="toctext" href><strong>7.</strong> Example</a><ul class="internal"></ul></li></ul></nav><article id="docs"><header><nav><ul><li><a href><strong>7.</strong> Example</a></li></ul><a class="edit-page" href="https://github.com/fredrikekre/Literate.jl/blob/master/examples/example.jl"><span class="fa"></span> Edit on GitHub</a></nav><hr/><div id="topbar"><span>7. Example</span><a class="fa fa-bars" href="#"></a></div></header><h1><a class="nav-anchor" id="**7.**-Example-1" href="#**7.**-Example-1"><strong>7.</strong> Example</a></h1><p><a href="https://mybinder.org/v2/gh/fredrikekre/Literate.jl/gh-pages?filepath=dev/generated/example.inpynb"><img src="https://mybinder.org/badge_logo.svg" alt/></a> <a href="https://nbviewer.jupyter.org/github/fredrikekre/Literate.jl/blob/gh-pages/dev/generated/example.ipynb"><img src="https://img.shields.io/badge/show-nbviewer-579ACA.svg" alt/></a></p><p>This is an example generated with Literate based on this source file: <a href="https://github.com/fredrikekre/Literate.jl/blob/master/examples/example.jl"><code>example.jl</code></a>. You are seeing the HTML-output which Documenter have generated based on a markdown file generated with Literate. The corresponding notebook can be viewed in <a href="http://nbviewer.jupyter.org/">nbviewer</a> here: <a href="https://nbviewer.jupyter.org/github/fredrikekre/Literate.jl/blob/gh-pages/dev/generated/example.ipynb"><code>example.ipynb</code></a>, and opened in <a href="https://mybinder.org/">binder</a> here: <a href="https://mybinder.org/v2/gh/fredrikekre/Literate.jl/gh-pages?filepath=dev/generated/example.ipynb"><code>example.ipynb</code></a>, and the plain script output can be found here: <a href="../example.jl"><code>example.jl</code></a>.</p><p>It is recommended to have the <a href="https://github.com/fredrikekre/Literate.jl/blob/master/examples/example.jl">source file</a> available when reading this, to better understand how the syntax in the source file corresponds to the output you are seeing.</p><h3><a class="nav-anchor" id="Basic-syntax-1" href="#Basic-syntax-1">Basic syntax</a></h3><p>The basic syntax for Literate is simple, lines starting with <code>#</code> is interpreted as markdown, and all the other lines are interpreted as code. Here is some code:</p><pre><code class="language-julia">x = 1//3
y = 2//5</code></pre><pre><code class="language-none">2//5</code></pre></div><p>In markdown sections we can use markdown syntax. For example, we can write <em>text in italic font</em>, <strong>text in bold font</strong> and use <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ">links</a>.</p><p>It is possible to filter out lines depending on the output using the <code>#md</code>, <code>#nb</code>, <code>#jl</code> and <code>#src</code> tags (see <a href="../../fileformat/#Filtering-Lines-1">Filtering Lines</a>):</p><ul><li>This line starts with <code>#md</code> and is thus only visible in the markdown output.</li></ul><p>The source file is parsed in chunks of markdown and code. Starting a line with <code>#-</code> manually inserts a chunk break. For example, if we want to display the output of the following operations we may insert <code>#-</code> in between. These two code blocks will now end up in different <code>@example</code>-blocks in the markdown output, and two different notebook cells in the notebook output.</p><div><pre><code class="language-julia">x + y</code></pre><pre><code class="language-none">11//15</code></pre></div><div><pre><code class="language-julia">x * y</code></pre><pre><code class="language-none">2//15</code></pre></div><h3><a class="nav-anchor" id="Output-Capturing-1" href="#Output-Capturing-1">Output Capturing</a></h3><p>Code chunks are by default placed in Documenter <code>@example</code> blocks in the generated markdown. This means that the output will be captured in a block when Documenter is building the docs. In notebooks the output is captured in output cells, if the <code>execute</code> keyword argument is set to true. Output to <code>stdout</code>/<code>stderr</code> is also captured.</p><div><pre><code class="language-julia">function foo() y = 2//5</code></pre><pre><code class="language-none">2//5</code></pre><p>In markdown sections we can use markdown syntax. For example, we can write <em>text in italic font</em>, <strong>text in bold font</strong> and use <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ">links</a>.</p><p>It is possible to filter out lines depending on the output using the <code>#md</code>, <code>#nb</code>, <code>#jl</code> and <code>#src</code> tags (see <a href="../../fileformat/#Filtering-Lines-1">Filtering Lines</a>):</p><ul><li>This line starts with <code>#md</code> and is thus only visible in the markdown output.</li></ul><p>The source file is parsed in chunks of markdown and code. Starting a line with <code>#-</code> manually inserts a chunk break. For example, if we want to display the output of the following operations we may insert <code>#-</code> in between. These two code blocks will now end up in different <code>@example</code>-blocks in the markdown output, and two different notebook cells in the notebook output.</p><pre><code class="language-julia">x + y</code></pre><pre><code class="language-none">11//15</code></pre><pre><code class="language-julia">x * y</code></pre><pre><code class="language-none">2//15</code></pre><h3><a class="nav-anchor" id="Output-Capturing-1" href="#Output-Capturing-1">Output Capturing</a></h3><p>Code chunks are by default placed in Documenter <code>@example</code> blocks in the generated markdown. This means that the output will be captured in a block when Documenter is building the docs. In notebooks the output is captured in output cells, if the <code>execute</code> keyword argument is set to true. Output to <code>stdout</code>/<code>stderr</code> is also captured.</p><pre><code class="language-julia">function foo()
println(&quot;This string is printed to stdout.&quot;) println(&quot;This string is printed to stdout.&quot;)
return [1, 2, 3, 4] return [1, 2, 3, 4]
end end
foo()</code></pre><pre><code class="language-none">This string is printed to stdout. foo()</code></pre><pre><code class="language-none">4-element Array{Int64,1}:
4-element Array{Int64,1}:
1 1
2 2
3 3
4</code></pre></div><p>Both Documenter&#39;s <code>@example</code> block and notebooks can display images. Here is an example where we generate a simple plot using the <a href="https://github.com/JuliaPlots/Plots.jl">Plots.jl</a> package</p><div><pre><code class="language-julia">using Plots 4</code></pre><p>Both Documenter&#39;s <code>@example</code> block and notebooks can display images. Here is an example where we generate a simple plot using the <a href="https://github.com/JuliaPlots/Plots.jl">Plots.jl</a> package</p><pre><code class="language-julia">using Plots
x = range(0, stop=6π, length=1000) x = range(0, stop=6π, length=1000)
y1 = sin.(x) y1 = sin.(x)
y2 = cos.(x) y2 = cos.(x)
plot(x, [y1, y2])</code></pre><?xml version="1.0" encoding="utf-8"?> plot(x, [y1, y2])</code></pre><?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600" height="400" viewBox="0 0 2400 1600"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600" height="400" viewBox="0 0 2400 1600">
<defs> <defs>
<clipPath id="clip3900"> <clipPath id="clip0200">
<rect x="0" y="0" width="2000" height="2000"/>
</clipPath>
</defs>
<defs>
<clipPath id="clip3901">
<rect x="0" y="0" width="2400" height="1600"/> <rect x="0" y="0" width="2400" height="1600"/>
</clipPath> </clipPath>
</defs> </defs>
<polygon clip-path="url(#clip3901)" points=" <polygon clip-path="url(#clip0200)" points="
0,1600 2400,1600 2400,0 0,0 0,1600 2400,1600 2400,0 0,0
" fill="#ffffff" fill-rule="evenodd" fill-opacity="1"/> " fill="#ffffff" fill-rule="evenodd" fill-opacity="1"/>
<defs> <defs>
<clipPath id="clip3902"> <clipPath id="clip0201">
<rect x="480" y="0" width="1681" height="1600"/> <rect x="480" y="0" width="1681" height="1600"/>
</clipPath> </clipPath>
</defs> </defs>
<polygon clip-path="url(#clip3901)" points=" <polygon clip-path="url(#clip0200)" points="
94.4882,1537.01 2321.26,1537.01 2321.26,47.2441 94.4882,47.2441 94.4882,1537.01 2321.26,1537.01 2321.26,47.2441 94.4882,47.2441
" fill="#ffffff" fill-rule="evenodd" fill-opacity="1"/> " fill="#ffffff" fill-rule="evenodd" fill-opacity="1"/>
<defs> <defs>
<clipPath id="clip3903"> <clipPath id="clip0202">
<rect x="94" y="47" width="2228" height="1491"/> <rect x="94" y="47" width="2228" height="1491"/>
</clipPath> </clipPath>
</defs> </defs>
<polyline clip-path="url(#clip3903)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points=" <polyline clip-path="url(#clip0202)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points="
157.51,1537.01 157.51,47.2441 157.51,1537.01 157.51,47.2441
"/> "/>
<polyline clip-path="url(#clip3903)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points=" <polyline clip-path="url(#clip0202)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points="
714.745,1537.01 714.745,47.2441 714.745,1537.01 714.745,47.2441
"/> "/>
<polyline clip-path="url(#clip3903)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points=" <polyline clip-path="url(#clip0202)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points="
1271.98,1537.01 1271.98,47.2441 1271.98,1537.01 1271.98,47.2441
"/> "/>
<polyline clip-path="url(#clip3903)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points=" <polyline clip-path="url(#clip0202)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points="
1829.22,1537.01 1829.22,47.2441 1829.22,1537.01 1829.22,47.2441
"/> "/>
<polyline clip-path="url(#clip3903)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points=" <polyline clip-path="url(#clip0202)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points="
94.4882,1494.85 2321.26,1494.85 94.4882,1494.85 2321.26,1494.85
"/> "/>
<polyline clip-path="url(#clip3903)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points=" <polyline clip-path="url(#clip0202)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points="
94.4882,1143.49 2321.26,1143.49 94.4882,1143.49 2321.26,1143.49
"/> "/>
<polyline clip-path="url(#clip3903)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points=" <polyline clip-path="url(#clip0202)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points="
94.4882,792.13 2321.26,792.13 94.4882,792.13 2321.26,792.13
"/> "/>
<polyline clip-path="url(#clip3903)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points=" <polyline clip-path="url(#clip0202)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points="
94.4882,440.769 2321.26,440.769 94.4882,440.769 2321.26,440.769
"/> "/>
<polyline clip-path="url(#clip3903)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points=" <polyline clip-path="url(#clip0202)" style="stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none" points="
94.4882,89.4072 2321.26,89.4072 94.4882,89.4072 2321.26,89.4072
"/> "/>
<polyline clip-path="url(#clip3901)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points="
94.4882,1537.01 2321.26,1537.01 94.4882,1537.01 2321.26,1537.01
"/> "/>
<polyline clip-path="url(#clip3901)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points="
94.4882,1537.01 94.4882,47.2441 94.4882,1537.01 94.4882,47.2441
"/> "/>
<polyline clip-path="url(#clip3901)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points="
157.51,1537.01 157.51,1514.66 157.51,1537.01 157.51,1514.66
"/> "/>
<polyline clip-path="url(#clip3901)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points="
714.745,1537.01 714.745,1514.66 714.745,1537.01 714.745,1514.66
"/> "/>
<polyline clip-path="url(#clip3901)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points="
1271.98,1537.01 1271.98,1514.66 1271.98,1537.01 1271.98,1514.66
"/> "/>
<polyline clip-path="url(#clip3901)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points="
1829.22,1537.01 1829.22,1514.66 1829.22,1537.01 1829.22,1514.66
"/> "/>
<polyline clip-path="url(#clip3901)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points="
94.4882,1494.85 127.89,1494.85 94.4882,1494.85 127.89,1494.85
"/> "/>
<polyline clip-path="url(#clip3901)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points="
94.4882,1143.49 127.89,1143.49 94.4882,1143.49 127.89,1143.49
"/> "/>
<polyline clip-path="url(#clip3901)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points="
94.4882,792.13 127.89,792.13 94.4882,792.13 127.89,792.13
"/> "/>
<polyline clip-path="url(#clip3901)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points="
94.4882,440.769 127.89,440.769 94.4882,440.769 127.89,440.769
"/> "/>
<polyline clip-path="url(#clip3901)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points="
94.4882,89.4072 127.89,89.4072 94.4882,89.4072 127.89,89.4072
"/> "/>
<g clip-path="url(#clip3901)"> <g clip-path="url(#clip0200)">
<text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;" transform="rotate(0, 157.51, 1591.01)" x="157.51" y="1591.01">0</text> <text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;" transform="rotate(0, 157.51, 1591.01)" x="157.51" y="1591.01">0</text>
</g> </g>
<g clip-path="url(#clip3901)"> <g clip-path="url(#clip0200)">
<text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;" transform="rotate(0, 714.745, 1591.01)" x="714.745" y="1591.01">5</text> <text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;" transform="rotate(0, 714.745, 1591.01)" x="714.745" y="1591.01">5</text>
</g> </g>
<g clip-path="url(#clip3901)"> <g clip-path="url(#clip0200)">
<text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;" transform="rotate(0, 1271.98, 1591.01)" x="1271.98" y="1591.01">10</text> <text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;" transform="rotate(0, 1271.98, 1591.01)" x="1271.98" y="1591.01">10</text>
</g> </g>
<g clip-path="url(#clip3901)"> <g clip-path="url(#clip0200)">
<text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;" transform="rotate(0, 1829.22, 1591.01)" x="1829.22" y="1591.01">15</text> <text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;" transform="rotate(0, 1829.22, 1591.01)" x="1829.22" y="1591.01">15</text>
</g> </g>
<g clip-path="url(#clip3901)"> <g clip-path="url(#clip0200)">
<text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;" transform="rotate(0, 70.4882, 1512.35)" x="70.4882" y="1512.35">-1.0</text> <text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;" transform="rotate(0, 70.4882, 1512.35)" x="70.4882" y="1512.35">-1.0</text>
</g> </g>
<g clip-path="url(#clip3901)"> <g clip-path="url(#clip0200)">
<text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;" transform="rotate(0, 70.4882, 1160.99)" x="70.4882" y="1160.99">-0.5</text> <text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;" transform="rotate(0, 70.4882, 1160.99)" x="70.4882" y="1160.99">-0.5</text>
</g> </g>
<g clip-path="url(#clip3901)"> <g clip-path="url(#clip0200)">
<text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;" transform="rotate(0, 70.4882, 809.63)" x="70.4882" y="809.63">0.0</text> <text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;" transform="rotate(0, 70.4882, 809.63)" x="70.4882" y="809.63">0.0</text>
</g> </g>
<g clip-path="url(#clip3901)"> <g clip-path="url(#clip0200)">
<text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;" transform="rotate(0, 70.4882, 458.269)" x="70.4882" y="458.269">0.5</text> <text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;" transform="rotate(0, 70.4882, 458.269)" x="70.4882" y="458.269">0.5</text>
</g> </g>
<g clip-path="url(#clip3901)"> <g clip-path="url(#clip0200)">
<text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;" transform="rotate(0, 70.4882, 106.907)" x="70.4882" y="106.907">1.0</text> <text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;" transform="rotate(0, 70.4882, 106.907)" x="70.4882" y="106.907">1.0</text>
</g> </g>
<polyline clip-path="url(#clip3903)" style="stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0202)" style="stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none" points="
157.51,792.13 159.613,778.871 161.716,765.618 163.819,752.373 165.921,739.143 168.024,725.932 170.127,712.744 172.23,699.585 174.333,686.458 176.436,673.369 157.51,792.13 159.613,778.871 161.716,765.618 163.819,752.373 165.921,739.143 168.024,725.932 170.127,712.744 172.23,699.585 174.333,686.458 176.436,673.369
178.538,660.323 180.641,647.323 182.744,634.375 184.847,621.483 186.95,608.651 189.052,595.886 191.155,583.189 193.258,570.568 195.361,558.025 197.464,545.566 178.538,660.323 180.641,647.323 182.744,634.375 184.847,621.483 186.95,608.651 189.052,595.886 191.155,583.189 193.258,570.568 195.361,558.025 197.464,545.566
199.567,533.194 201.669,520.914 203.772,508.731 205.875,496.649 207.978,484.673 210.081,472.805 212.184,461.051 214.286,449.416 216.389,437.902 218.492,426.514 199.567,533.194 201.669,520.914 203.772,508.731 205.875,496.649 207.978,484.673 210.081,472.805 212.184,461.051 214.286,449.416 216.389,437.902 218.492,426.514
@ -232,7 +226,7 @@ plot(x, [y1, y2])</code></pre><?xml version="1.0" encoding="utf-8"?>
2239.31,910.891 2241.42,897.802 2243.52,884.675 2245.62,871.516 2247.72,858.328 2249.83,845.117 2251.93,831.886 2254.03,818.642 2256.14,805.388 2258.24,792.13 2239.31,910.891 2241.42,897.802 2243.52,884.675 2245.62,871.516 2247.72,858.328 2249.83,845.117 2251.93,831.886 2254.03,818.642 2256.14,805.388 2258.24,792.13
"/> "/>
<polyline clip-path="url(#clip3903)" style="stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0202)" style="stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none" points="
157.51,89.4072 159.613,89.5323 161.716,89.9075 163.819,90.5327 165.921,91.4077 168.024,92.5322 170.127,93.9057 172.23,95.5278 174.333,97.3978 176.436,99.5152 157.51,89.4072 159.613,89.5323 161.716,89.9075 163.819,90.5327 165.921,91.4077 168.024,92.5322 170.127,93.9057 172.23,95.5278 174.333,97.3978 176.436,99.5152
178.538,101.879 180.641,104.489 182.744,107.343 184.847,110.442 186.95,113.783 189.052,117.365 191.155,121.188 193.258,125.25 195.361,129.549 197.464,134.083 178.538,101.879 180.641,104.489 182.744,107.343 184.847,110.442 186.95,113.783 189.052,117.365 191.155,121.188 193.258,125.25 195.361,129.549 197.464,134.083
199.567,138.853 201.669,143.854 203.772,149.087 205.875,154.548 207.978,160.237 210.081,166.15 212.184,172.286 214.286,178.643 216.389,185.218 218.492,192.01 199.567,138.853 201.669,143.854 203.772,149.087 205.875,154.548 207.978,160.237 210.081,166.15 212.184,172.286 214.286,178.643 216.389,185.218 218.492,192.01
@ -335,23 +329,23 @@ plot(x, [y1, y2])</code></pre><?xml version="1.0" encoding="utf-8"?>
2239.31,99.5152 2241.42,97.3978 2243.52,95.5278 2245.62,93.9057 2247.72,92.5322 2249.83,91.4077 2251.93,90.5327 2254.03,89.9075 2256.14,89.5323 2258.24,89.4072 2239.31,99.5152 2241.42,97.3978 2243.52,95.5278 2245.62,93.9057 2247.72,92.5322 2249.83,91.4077 2251.93,90.5327 2254.03,89.9075 2256.14,89.5323 2258.24,89.4072
"/> "/>
<polygon clip-path="url(#clip3901)" points=" <polygon clip-path="url(#clip0200)" points="
1958.43,312.204 2249.26,312.204 2249.26,130.764 1958.43,130.764 1958.43,312.204 2249.26,312.204 2249.26,130.764 1958.43,130.764
" fill="#ffffff" fill-rule="evenodd" fill-opacity="1"/> " fill="#ffffff" fill-rule="evenodd" fill-opacity="1"/>
<polyline clip-path="url(#clip3901)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none" points="
1958.43,312.204 2249.26,312.204 2249.26,130.764 1958.43,130.764 1958.43,312.204 1958.43,312.204 2249.26,312.204 2249.26,130.764 1958.43,130.764 1958.43,312.204
"/> "/>
<polyline clip-path="url(#clip3901)" style="stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none" points="
1982.43,191.244 2126.43,191.244 1982.43,191.244 2126.43,191.244
"/> "/>
<g clip-path="url(#clip3901)"> <g clip-path="url(#clip0200)">
<text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;" transform="rotate(0, 2150.43, 208.744)" x="2150.43" y="208.744">y1</text> <text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;" transform="rotate(0, 2150.43, 208.744)" x="2150.43" y="208.744">y1</text>
</g> </g>
<polyline clip-path="url(#clip3901)" style="stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none" points=" <polyline clip-path="url(#clip0200)" style="stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none" points="
1982.43,251.724 2126.43,251.724 1982.43,251.724 2126.43,251.724
"/> "/>
<g clip-path="url(#clip3901)"> <g clip-path="url(#clip0200)">
<text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;" transform="rotate(0, 2150.43, 269.224)" x="2150.43" y="269.224">y2</text> <text style="fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;" transform="rotate(0, 2150.43, 269.224)" x="2150.43" y="269.224">y2</text>
</g> </g>
</svg> </svg>
</div><h3><a class="nav-anchor" id="Custom-processing-1" href="#Custom-processing-1">Custom processing</a></h3><p>It is possible to give Literate custom pre- and post-processing functions. For example, here we insert two placeholders, which we will replace with something else at time of generation. We have here replaced our placeholders with <code>z</code> and <code>1.0 + 2.0im</code>:</p><div><pre><code class="language-julia">z = 1.0 + 2.0im</code></pre><pre><code class="language-none">1.0 + 2.0im</code></pre></div><h3><a class="nav-anchor" id="documenter-interaction-1" href="#documenter-interaction-1">Documenter.jl interaction</a></h3><p>In the source file it is possible to use Documenter.jl style references, such as <code>@ref</code> and <code>@id</code>. These will be filtered out in the notebook output. For example, <a href="#documenter-interaction-1">here is a link</a>, but it is only visible as a link if you are reading the markdown output. We can also use equations:</p><div>\[\int_\Omega \nabla v \cdot \nabla u\ \mathrm{d}\Omega = \int_\Omega v f\ \mathrm{d}\Omega\]</div><p>using Documenters math syntax. Documenters syntax is automatically changed to <code>\begin{equation} ... \end{equation}</code> in the notebook output to display correctly.</p><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p><footer><hr/><a class="previous" href="../../documenter/"><span class="direction">Previous</span><span class="title"><strong>6.</strong> Interaction with Documenter.jl</span></a></footer></article></body></html> <h3><a class="nav-anchor" id="Custom-processing-1" href="#Custom-processing-1">Custom processing</a></h3><p>It is possible to give Literate custom pre- and post-processing functions. For example, here we insert two placeholders, which we will replace with something else at time of generation. We have here replaced our placeholders with <code>z</code> and <code>1.0 + 2.0im</code>:</p><pre><code class="language-julia">z = 1.0 + 2.0im</code></pre><pre><code class="language-none">1.0 + 2.0im</code></pre><h3><a class="nav-anchor" id="documenter-interaction-1" href="#documenter-interaction-1">Documenter.jl interaction</a></h3><p>In the source file it is possible to use Documenter.jl style references, such as <code>@ref</code> and <code>@id</code>. These will be filtered out in the notebook output. For example, <a href="#documenter-interaction-1">here is a link</a>, but it is only visible as a link if you are reading the markdown output. We can also use equations:</p><div>\[\int_\Omega \nabla v \cdot \nabla u\ \mathrm{d}\Omega = \int_\Omega v f\ \mathrm{d}\Omega\]</div><p>using Documenters math syntax. Documenters syntax is automatically changed to <code>\begin{equation} ... \end{equation}</code> in the notebook output to display correctly.</p><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p><footer><hr/><a class="previous" href="../../documenter/"><span class="direction">Previous</span><span class="title"><strong>6.</strong> Interaction with Documenter.jl</span></a></footer></article></body></html>

4
dev/outputformats/index.html

File diff suppressed because one or more lines are too long

326
dev/search_index.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save