Correct "copy" src block function

This commit is contained in:
Thomas Dehaeze 2021-01-01 18:02:41 +01:00
parent d89f8538c3
commit b59cc4841f
6 changed files with 321 additions and 270 deletions

147
dist/script.js vendored
View File

@ -1,4 +1,12 @@
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
// Blocks // Blocks
docReady(function () { docReady(function () {
var boxesNames = { var boxesNames = {
@ -15,35 +23,45 @@ docReady(function() {
"caution": "Caution", "caution": "Caution",
"warning": "Warning" "warning": "Warning"
}; };
for (var className in boxesNames) {
let boxes = document.querySelectorAll('div.' + className);
for (let box of boxes) { for (var className in boxesNames) {
let boxTitle = document.createElement('p'); var boxes = document.querySelectorAll('div.' + className);
var _iterator = _createForOfIteratorHelper(boxes),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var box = _step.value;
var boxTitle = document.createElement('p');
boxTitle.className = "admonition-title " + className; boxTitle.className = "admonition-title " + className;
boxTitle.textContent = boxesNames[className]; boxTitle.textContent = boxesNames[className];
box.parentNode.insertBefore(boxTitle, box); box.parentNode.insertBefore(boxTitle, box);
} }
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
} }
}); }
}); // Copy Source Block
// Copy Source Block
docReady(function () { docReady(function () {
let srcContainers = document.querySelectorAll('pre.src'); var srcContainers = document.querySelectorAll('pre.src');
function copyClickFunction() { function copyClickFunction() {
// Create a clone the node to not affect the original one var boxCopy = this; // Create a clone the node to not affect the original one
let nodeClone = this.parentNode.cloneNode(true);
var nodeClone = boxCopy.parentNode.cloneNode(true); // Remove Line Numbers and Copy Button
var linenumNodes = nodeClone.querySelectorAll('.linenr,.src-copy');
// Remove Line Numbers and Copy Button
let linenumNodes = nodeClone.querySelectorAll('.linenr,.src-copy');
for (var i = linenumNodes.length - 1; i >= 0; --i) { for (var i = linenumNodes.length - 1; i >= 0; --i) {
nodeClone.removeChild(linenumNodes[i]); nodeClone.removeChild(linenumNodes[i]);
} } // Copy the filetered content to the clipboard
// Copy the filetered content to the clipboard
let srcText = nodeClone.textContent; var srcText = nodeClone.textContent;
navigator.clipboard.writeText(srcText).then(function () { navigator.clipboard.writeText(srcText).then(function () {
boxCopy.textContent = "Copied"; boxCopy.textContent = "Copied";
boxCopy.classList.add("src-copied"); boxCopy.classList.add("src-copied");
@ -54,31 +72,60 @@ docReady(function() {
}); });
} }
for (let srcContrainer of srcContainers) { var _iterator2 = _createForOfIteratorHelper(srcContainers),
let boxCopy = document.createElement('div'); _step2;
try {
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
var srcContrainer = _step2.value;
var boxCopy = document.createElement('div');
boxCopy.className = "src-copy"; boxCopy.className = "src-copy";
boxCopy.textContent = "Copy"; boxCopy.textContent = "Copy";
boxCopy.onclick = copyClickFunction; boxCopy.onclick = copyClickFunction;
srcContrainer.prepend(boxCopy); srcContrainer.prepend(boxCopy);
} }
}); } catch (err) {
_iterator2.e(err);
} finally {
_iterator2.f();
}
}); // Wrap Images and Tables
// Wrap Images and Tables
docReady(function () { docReady(function () {
let wrap_elements = document.querySelectorAll('[float=wrap-right]'); var wrap_elements = document.querySelectorAll('[float=wrap-right]');
for (let wrap_el of wrap_elements) {
var _iterator3 = _createForOfIteratorHelper(wrap_elements),
_step3;
try {
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
var wrap_el = _step3.value;
wrap_el.closest('.figure').classList.add('wrap-right'); wrap_el.closest('.figure').classList.add('wrap-right');
} }
} catch (err) {
_iterator3.e(err);
} finally {
_iterator3.f();
}
wrap_elements = document.querySelectorAll('[float=wrap-left]'); wrap_elements = document.querySelectorAll('[float=wrap-left]');
for (let wrap_el of wrap_elements) {
wrap_el.closest('.figure').classList.add('wrap-left');
}
});
// Equivalent of Jquery $.ready var _iterator4 = _createForOfIteratorHelper(wrap_elements),
_step4;
try {
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
var _wrap_el = _step4.value;
_wrap_el.closest('.figure').classList.add('wrap-left');
}
} catch (err) {
_iterator4.e(err);
} finally {
_iterator4.f();
}
}); // Equivalent of Jquery $.ready
function docReady(fn) { function docReady(fn) {
// see if DOM is already available // see if DOM is already available
if (document.readyState === "complete" || document.readyState === "interactive") { if (document.readyState === "complete" || document.readyState === "interactive") {
@ -87,54 +134,46 @@ function docReady(fn) {
} else { } else {
document.addEventListener("DOMContentLoaded", fn); document.addEventListener("DOMContentLoaded", fn);
} }
} } // Load Jquery
// Load Jquery
var scr = document.createElement('script'), var scr = document.createElement('script'),
head = document.head || document.getElementsByTagName('head')[0]; head = document.head || document.getElementsByTagName('head')[0];
scr.src = 'https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js'; scr.src = 'https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js';
scr.async = false; // optionally scr.async = false; // optionally
head.insertBefore(scr, head.firstChild); head.insertBefore(scr, head.firstChild); // Load Bootstrap.js
// Load Bootstrap.js
var scr = document.createElement('script'), var scr = document.createElement('script'),
head = document.head || document.getElementsByTagName('head')[0]; head = document.head || document.getElementsByTagName('head')[0];
scr.src = 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'; scr.src = 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js';
scr.async = false; // optionally scr.async = false; // optionally
head.insertBefore(scr, head.firstChild); head.insertBefore(scr, head.firstChild); // After it is loaded
// After it is loaded scr.addEventListener('load', function () {
scr.addEventListener('load', () => {
$(document).ready(function () { $(document).ready(function () {
$('#text-table-of-contents ul').first().addClass('nav'); $('#text-table-of-contents ul').first().addClass('nav'); // ScrollSpy also requires that we use
// ScrollSpy also requires that we use
// a Bootstrap nav component. // a Bootstrap nav component.
$('body').scrollspy({target: '#text-table-of-contents'});
// set the height of tableOfContents $('body').scrollspy({
target: '#text-table-of-contents'
}); // set the height of tableOfContents
var $postamble = $('#postamble'); var $postamble = $('#postamble');
var $tableOfContents = $('#table-of-contents'); var $tableOfContents = $('#table-of-contents');
$tableOfContents.css({paddingBottom: $postamble.outerHeight()}); $tableOfContents.css({
paddingBottom: $postamble.outerHeight()
}); // add TOC button
// add TOC button
var toggleSidebar = $('<div id="toggle-sidebar"><a href="#table-of-contents"><h2>Table of Contents</h2></a></div>'); var toggleSidebar = $('<div id="toggle-sidebar"><a href="#table-of-contents"><h2>Table of Contents</h2></a></div>');
$('#content').prepend(toggleSidebar); $('#content').prepend(toggleSidebar); // add close button when sidebar showed in mobile screen
// add close button when sidebar showed in mobile screen
var closeBtn = $('<a class="close-sidebar" href="#">Close</a>'); var closeBtn = $('<a class="close-sidebar" href="#">Close</a>');
var tocTitle = $('#table-of-contents').find('h2'); var tocTitle = $('#table-of-contents').find('h2');
tocTitle.append(closeBtn); tocTitle.append(closeBtn);
}); });
}); }); // function collapse_toc_elements_on_click (nav_li_a){
// function collapse_toc_elements_on_click (nav_li_a){
// /* // /*
// When an `a' element in the TOC is clicked, its parent // When an `a' element in the TOC is clicked, its parent
// `li' element's active attribute is toggled. This causes // `li' element's active attribute is toggled. This causes
@ -144,7 +183,6 @@ scr.addEventListener('load', () => {
// */ // */
// $(nav_li_a).parent().toggleClass("active"); // $(nav_li_a).parent().toggleClass("active");
// } // }
// $( document ).ready(function() { // $( document ).ready(function() {
// // When the document is loaded and ready, bind the // // When the document is loaded and ready, bind the
// // function `collapse_toc_elements_on_click' to the // // function `collapse_toc_elements_on_click' to the
@ -153,9 +191,7 @@ scr.addEventListener('load', () => {
// collapse_toc_elements_on_click(this); // collapse_toc_elements_on_click(this);
// }); // });
// }); // });
// $( document ).ready(function() { // $( document ).ready(function() {
// // Shift nav in mobile when clicking the menu. // // Shift nav in mobile when clicking the menu.
// $(document).on('click', "[data-toggle='wy-nav-top']", function() { // $(document).on('click', "[data-toggle='wy-nav-top']", function() {
// $("[data-toggle='wy-nav-shift']").toggleClass("shift"); // $("[data-toggle='wy-nav-shift']").toggleClass("shift");
@ -172,28 +208,23 @@ scr.addEventListener('load', () => {
// // Make tables responsive // // Make tables responsive
// $("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>"); // $("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");
// }); // });
// $( document ).ready(function() { // $( document ).ready(function() {
// $('#text-table-of-contents ul').first().addClass('nav'); // $('#text-table-of-contents ul').first().addClass('nav');
// // ScrollSpy also requires that we use // // ScrollSpy also requires that we use
// // a Bootstrap nav component. // // a Bootstrap nav component.
// $('body').scrollspy({target: '#text-table-of-contents'}); // $('body').scrollspy({target: '#text-table-of-contents'});
// // set the height of tableOfContents // // set the height of tableOfContents
// var $postamble = $('#postamble'); // var $postamble = $('#postamble');
// var $tableOfContents = $('#table-of-contents'); // var $tableOfContents = $('#table-of-contents');
// $tableOfContents.css({paddingBottom: $postamble.outerHeight()}); // $tableOfContents.css({paddingBottom: $postamble.outerHeight()});
// // add TOC button // // add TOC button
// var toggleSidebar = $('<div id="toggle-sidebar"><a href="#table-of-contents"><h2>Table of Contents</h2></a></div>'); // var toggleSidebar = $('<div id="toggle-sidebar"><a href="#table-of-contents"><h2>Table of Contents</h2></a></div>');
// $('#content').prepend(toggleSidebar); // $('#content').prepend(toggleSidebar);
// // add close button when sidebar showed in mobile screen // // add close button when sidebar showed in mobile screen
// var closeBtn = $('<a class="close-sidebar" href="#">Close</a>'); // var closeBtn = $('<a class="close-sidebar" href="#">Close</a>');
// var tocTitle = $('#table-of-contents').find('h2'); // var tocTitle = $('#table-of-contents').find('h2');
// tocTitle.append(closeBtn); // tocTitle.append(closeBtn);
// }); // });
// window.SphinxRtdTheme = (function (jquery) { // window.SphinxRtdTheme = (function (jquery) {
// var stickyNav = (function () { // var stickyNav = (function () {
// var navBar, // var navBar,

2
dist/style.css vendored

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2020-12-11 ven. 00:15 --> <!-- 2021-01-01 ven. 18:02 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Test File for the Org Mode Theme</title> <title>Test File for the Org Mode Theme</title>
<meta name="generator" content="Org mode" /> <meta name="generator" content="Org mode" />
@ -33,74 +33,74 @@
<h2>Table of Contents</h2> <h2>Table of Contents</h2>
<div id="text-table-of-contents"> <div id="text-table-of-contents">
<ul> <ul>
<li><a href="#org99a834e">1. Basics</a> <li><a href="#org7014271">1. Basics</a>
<ul> <ul>
<li><a href="#orgdf67f83">1.1. Normal Markup</a></li> <li><a href="#org97b4c42">1.1. Normal Markup</a></li>
<li><a href="#org3d827bc">1.2. Links to Footnotes</a></li> <li><a href="#org9c439bb">1.2. Links to Footnotes</a></li>
<li><a href="#org318d84d">1.3. Lists</a></li> <li><a href="#org5c6f78b">1.3. Lists</a></li>
<li><a href="#org2387baf">1.4. Links</a></li> <li><a href="#orgc246141">1.4. Links</a></li>
<li><a href="#orgfc40b11">1.5. Maths</a></li> <li><a href="#org825bee1">1.5. Maths</a></li>
<li><a href="#org24034c7">1.6. Verse, Quote</a></li> <li><a href="#org3dc7d62">1.6. Verse, Quote</a></li>
<li><a href="#org5d2578d">1.7. Aside</a></li> <li><a href="#org92b59d7">1.7. Aside</a></li>
<li><a href="#org4740fde">1.8. Inline Task</a></li> <li><a href="#org5fbc0cc">1.8. Inline Task</a></li>
</ul> </ul>
</li> </li>
<li><a href="#orgd3bd7f8">2. Headlines</a> <li><a href="#org61247ae">2. Headlines</a>
<ul> <ul>
<li><a href="#org616fc9e">2.1. Second level Headline with tags&#xa0;&#xa0;&#xa0;<span class="tag"><span class="_home">@home</span>&#xa0;<span class="_work">@work</span></span></a> <li><a href="#org2800f57">2.1. Second level Headline with tags&#xa0;&#xa0;&#xa0;<span class="tag"><span class="_home">@home</span>&#xa0;<span class="_work">@work</span></span></a>
<ul> <ul>
<li><a href="#org933dfce">2.1.1. Third level Headline</a> <li><a href="#org59616e6">2.1.1. Third level Headline</a>
<ul> <ul>
<li><a href="#org392448f">2.1.1.1. Fourth level Headline</a></li> <li><a href="#orgcf25cd5">2.1.1.1. Fourth level Headline</a></li>
</ul> </ul>
</li> </li>
<li><a href="#orgfea8240">2.1.2. Third level Headline</a> <li><a href="#org4fe724d">2.1.2. Third level Headline</a>
<ul> <ul>
<li><a href="#org9df83bb">2.1.2.1. Fourth level Headline</a></li> <li><a href="#org3da2744">2.1.2.1. Fourth level Headline</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>
</li> </li>
<li><a href="#org6a9ebdc">2.2. <span class="todo TODO">TODO</span> Second level Headline with Schedule</a></li> <li><a href="#orgdbf1be0">2.2. <span class="todo TODO">TODO</span> Second level Headline with Schedule</a></li>
<li><a href="#org014378f">2.3. <span class="priority">[B]</span> Second level Headline with a priority</a></li> <li><a href="#org81aed22">2.3. <span class="priority">[B]</span> Second level Headline with a priority</a></li>
<li><a href="#org7696dea">2.4. <span class="todo TODO">TODO</span> <span class="priority">[C]</span> Second level Headline with TODO State</a></li> <li><a href="#orgcaff5be">2.4. <span class="todo TODO">TODO</span> <span class="priority">[C]</span> Second level Headline with TODO State</a></li>
<li><a href="#org1a84c46">2.5. <span class="done DONE">DONE</span> <span class="priority">[A]</span> Second level Headline with DONE State</a> <li><a href="#orge771128">2.5. <span class="done DONE">DONE</span> <span class="priority">[A]</span> Second level Headline with DONE State</a>
<ul> <ul>
<li><a href="#orgc75a6cf">2.5.1. <span class="todo WAIT">WAIT</span> Third level Headline with DONE State</a></li> <li><a href="#org1d2ac98">2.5.1. <span class="todo WAIT">WAIT</span> Third level Headline with DONE State</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>
</li> </li>
<li><a href="#org955adba">3. Blocks</a></li> <li><a href="#org0700f2c">3. Blocks</a></li>
<li><a href="#org4084d7e">4. Source Blocks</a> <li><a href="#org52bc0f1">4. Source Blocks</a>
<ul> <ul>
<li><a href="#orge78cec5">4.1. Figures</a></li> <li><a href="#org1433439">4.1. Figures</a></li>
<li><a href="#orgbce6803">4.2. Table Result</a></li> <li><a href="#org30f94fc">4.2. Table Result</a></li>
<li><a href="#orge80301f">4.3. Inline Results</a></li> <li><a href="#orgcf6c4a6">4.3. Inline Results</a></li>
<li><a href="#org21f41e0">4.4. Caption and Reference</a></li> <li><a href="#org7d4d88d">4.4. Caption and Reference</a></li>
<li><a href="#org847ba5d">4.5. Source Blocks with Line Numbers</a></li> <li><a href="#orge2781b6">4.5. Source Blocks with Line Numbers</a></li>
</ul> </ul>
</li> </li>
<li><a href="#orgb804248">5. Images</a> <li><a href="#org8a3ead7">5. Images</a>
<ul> <ul>
<li><a href="#org419d74f">5.1. Normal Image</a></li> <li><a href="#org8835bb6">5.1. Normal Image</a></li>
<li><a href="#orgf1c51ef">5.2. Wrap Image</a></li> <li><a href="#org5086e4d">5.2. Wrap Image</a></li>
<li><a href="#org00b39ef">5.3. Sub Images</a></li> <li><a href="#org85b8338">5.3. Sub Images</a></li>
</ul> </ul>
</li> </li>
<li><a href="#org57b95a4">6. Tables</a></li> <li><a href="#orga6ee689">6. Tables</a></li>
<li><a href="#org7ad70ee">7. Details</a></li> <li><a href="#orgd557e64">7. Details</a></li>
<li><a href="#org6f61827">8. Videos</a></li> <li><a href="#orga01f957">8. Videos</a></li>
</ul> </ul>
</div> </div>
</div> </div>
<div id="outline-container-org99a834e" class="outline-2"> <div id="outline-container-org7014271" class="outline-2">
<h2 id="org99a834e"><span class="section-number-2">1</span> Basics</h2> <h2 id="org7014271"><span class="section-number-2">1</span> Basics</h2>
<div class="outline-text-2" id="text-1"> <div class="outline-text-2" id="text-1">
</div> </div>
<div id="outline-container-orgdf67f83" class="outline-3"> <div id="outline-container-org97b4c42" class="outline-3">
<h3 id="orgdf67f83"><span class="section-number-3">1.1</span> Normal Markup</h3> <h3 id="org97b4c42"><span class="section-number-3">1.1</span> Normal Markup</h3>
<div class="outline-text-3" id="text-1-1"> <div class="outline-text-3" id="text-1-1">
<p> <p>
You can make words <b>bold</b>, <i>italic</i>, <span class="underline">underlined</span>, <code>verbatim</code> and <code>code</code>, and, if you must, <del>strike-through</del>. You can make words <b>bold</b>, <i>italic</i>, <span class="underline">underlined</span>, <code>verbatim</code> and <code>code</code>, and, if you must, <del>strike-through</del>.
@ -112,8 +112,8 @@ Here is some inline code Matlab code: <code class="src src-matlab">[K,CL,gamma]
</div> </div>
</div> </div>
<div id="outline-container-org3d827bc" class="outline-3"> <div id="outline-container-org9c439bb" class="outline-3">
<h3 id="org3d827bc"><span class="section-number-3">1.2</span> Links to Footnotes</h3> <h3 id="org9c439bb"><span class="section-number-3">1.2</span> Links to Footnotes</h3>
<div class="outline-text-3" id="text-1-2"> <div class="outline-text-3" id="text-1-2">
<p> <p>
A link to a footnote<sup><a id="fnr.1" class="footref" href="#fn.1">1</a></sup> and to another footnote<sup><a id="fnr.2" class="footref" href="#fn.2">2</a></sup>. A link to a footnote<sup><a id="fnr.1" class="footref" href="#fn.1">1</a></sup> and to another footnote<sup><a id="fnr.2" class="footref" href="#fn.2">2</a></sup>.
@ -121,8 +121,8 @@ A link to a footnote<sup><a id="fnr.1" class="footref" href="#fn.1">1</a></sup>
</div> </div>
</div> </div>
<div id="outline-container-org318d84d" class="outline-3"> <div id="outline-container-org5c6f78b" class="outline-3">
<h3 id="org318d84d"><span class="section-number-3">1.3</span> Lists</h3> <h3 id="org5c6f78b"><span class="section-number-3">1.3</span> Lists</h3>
<div class="outline-text-3" id="text-1-3"> <div class="outline-text-3" id="text-1-3">
<p> <p>
<b>Unordered List</b>: <b>Unordered List</b>:
@ -199,26 +199,26 @@ maximus lorem quis accumsan vehicula.</dd>
</div> </div>
</div> </div>
<div id="outline-container-org2387baf" class="outline-3"> <div id="outline-container-orgc246141" class="outline-3">
<h3 id="org2387baf"><span class="section-number-3">1.4</span> Links</h3> <h3 id="orgc246141"><span class="section-number-3">1.4</span> Links</h3>
<div class="outline-text-3" id="text-1-4"> <div class="outline-text-3" id="text-1-4">
<p> <p>
Here is a list of links to: Here is a list of links to:
</p> </p>
<ul class="org-ul"> <ul class="org-ul">
<li>Figure <a href="#orgfccba0c">3</a></li> <li>Figure <a href="#org3abb6bf">3</a></li>
<li>Table <a href="#org927e01f">3</a></li> <li>Table <a href="#org9305eb4">3</a></li>
<li>Listing <a href="#orgd607573">1</a></li> <li>Listing <a href="#orgbe446ed">1</a></li>
<li>Specific <a href="#coderef-test" class="coderef" onmouseover="CodeHighlightOn(this, 'coderef-test');" onmouseout="CodeHighlightOff(this, 'coderef-test');">line of code</a></li> <li>Specific <a href="#coderef-test" class="coderef" onmouseover="CodeHighlightOn(this, 'coderef-test');" onmouseout="CodeHighlightOff(this, 'coderef-test');">line of code</a></li>
<li>Equation \eqref{eq:numbered}</li> <li>Equation \eqref{eq:numbered}</li>
<li>Section <a href="#orgd18b00b">2</a></li> <li>Section <a href="#orgd3bff47">2</a></li>
<li>Bibliographic Reference <a href="#citeproc_bib_item_1">[1]</a>, and <a href="#citeproc_bib_item_1">[1]</a><a href="#citeproc_bib_item_3">[3]</a></li> <li>Bibliographic Reference <a href="#citeproc_bib_item_1">[1]</a>, and <a href="#citeproc_bib_item_1">[1]</a><a href="#citeproc_bib_item_3">[3]</a></li>
</ul> </ul>
</div> </div>
</div> </div>
<div id="outline-container-orgfc40b11" class="outline-3"> <div id="outline-container-org825bee1" class="outline-3">
<h3 id="orgfc40b11"><span class="section-number-3">1.5</span> Maths</h3> <h3 id="org825bee1"><span class="section-number-3">1.5</span> Maths</h3>
<div class="outline-text-3" id="text-1-5"> <div class="outline-text-3" id="text-1-5">
<p> <p>
Here is some inline mathematics: \(z = 2\). Here is some inline mathematics: \(z = 2\).
@ -246,8 +246,8 @@ Using the <code>align</code> environment Equations \eqref{eq:align_1} and \eqref
</div> </div>
</div> </div>
<div id="outline-container-org24034c7" class="outline-3"> <div id="outline-container-org3dc7d62" class="outline-3">
<h3 id="org24034c7"><span class="section-number-3">1.6</span> Verse, Quote</h3> <h3 id="org3dc7d62"><span class="section-number-3">1.6</span> Verse, Quote</h3>
<div class="outline-text-3" id="text-1-6"> <div class="outline-text-3" id="text-1-6">
<p> <p>
Below is a verse. Below is a verse.
@ -279,14 +279,14 @@ Nearly everything is really interesting if you go into it deeply enough.
</div> </div>
</div> </div>
<div id="outline-container-org5d2578d" class="outline-3"> <div id="outline-container-org92b59d7" class="outline-3">
<h3 id="org5d2578d"><span class="section-number-3">1.7</span> Aside</h3> <h3 id="org92b59d7"><span class="section-number-3">1.7</span> Aside</h3>
<div class="outline-text-3" id="text-1-7"> <div class="outline-text-3" id="text-1-7">
<p> <p>
An aside block can be used as shown below. An aside block can be used as shown below.
</p> </p>
<div class="aside" id="org1a530ce"> <div class="aside" id="org80ae6e0">
<p> <p>
This is a note about the text using the <code>aside</code> environment. This is a note about the text using the <code>aside</code> environment.
This can be as long as wanted This can be as long as wanted
@ -300,8 +300,8 @@ Cras elementum ex vel orci congue porttitor. Vestibulum scelerisque gravida matt
</div> </div>
</div> </div>
<div id="outline-container-org4740fde" class="outline-3"> <div id="outline-container-org5fbc0cc" class="outline-3">
<h3 id="org4740fde"><span class="section-number-3">1.8</span> Inline Task</h3> <h3 id="org5fbc0cc"><span class="section-number-3">1.8</span> Inline Task</h3>
<div class="outline-text-3" id="text-1-8"> <div class="outline-text-3" id="text-1-8">
<p> <p>
Some text. Some text.
@ -319,24 +319,24 @@ Some text.
</div> </div>
</div> </div>
<div id="outline-container-orgd3bd7f8" class="outline-2"> <div id="outline-container-org61247ae" class="outline-2">
<h2 id="orgd3bd7f8"><span class="section-number-2">2</span> Headlines</h2> <h2 id="org61247ae"><span class="section-number-2">2</span> Headlines</h2>
<div class="outline-text-2" id="text-2"> <div class="outline-text-2" id="text-2">
<p> <p>
<a id="orgd18b00b"></a> <a id="orgd3bff47"></a>
</p> </p>
</div> </div>
<div id="outline-container-org616fc9e" class="outline-3"> <div id="outline-container-org2800f57" class="outline-3">
<h3 id="org616fc9e"><span class="section-number-3">2.1</span> Second level Headline with tags&#xa0;&#xa0;&#xa0;<span class="tag"><span class="_home">@home</span>&#xa0;<span class="_work">@work</span></span></h3> <h3 id="org2800f57"><span class="section-number-3">2.1</span> Second level Headline with tags&#xa0;&#xa0;&#xa0;<span class="tag"><span class="_home">@home</span>&#xa0;<span class="_work">@work</span></span></h3>
<div class="outline-text-3" id="text-2-1"> <div class="outline-text-3" id="text-2-1">
</div> </div>
<div id="outline-container-org933dfce" class="outline-4"> <div id="outline-container-org59616e6" class="outline-4">
<h4 id="org933dfce"><span class="section-number-4">2.1.1</span> Third level Headline</h4> <h4 id="org59616e6"><span class="section-number-4">2.1.1</span> Third level Headline</h4>
<div class="outline-text-4" id="text-2-1-1"> <div class="outline-text-4" id="text-2-1-1">
</div> </div>
<div id="outline-container-org392448f" class="outline-5"> <div id="outline-container-orgcf25cd5" class="outline-5">
<h5 id="org392448f"><span class="section-number-5">2.1.1.1</span> Fourth level Headline</h5> <h5 id="orgcf25cd5"><span class="section-number-5">2.1.1.1</span> Fourth level Headline</h5>
<div class="outline-text-5" id="text-2-1-1-1"> <div class="outline-text-5" id="text-2-1-1-1">
<p> <p>
Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placerat felis malesuada elementum. Donec tincidunt pharetra tincidunt. Praesent id lectus eget erat porttitor placerat non a magna. Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean sollicitudin nibh enim, sed pulvinar massa iaculis sit amet. Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra sapien fermentum. Donec dictum eleifend velit, vel elementum ex ultrices non. Vivamus mauris ex, ultrices quis sem vel, dapibus lacinia est. Praesent a sapien id diam venenatis finibus non vel justo. Cras sagittis tortor ac rutrum elementum. Maecenas luctus tempor enim, vitae suscipit quam consequat a. Phasellus feugiat congue sapien commodo cursus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placerat felis malesuada elementum. Donec tincidunt pharetra tincidunt. Praesent id lectus eget erat porttitor placerat non a magna. Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean sollicitudin nibh enim, sed pulvinar massa iaculis sit amet. Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra sapien fermentum. Donec dictum eleifend velit, vel elementum ex ultrices non. Vivamus mauris ex, ultrices quis sem vel, dapibus lacinia est. Praesent a sapien id diam venenatis finibus non vel justo. Cras sagittis tortor ac rutrum elementum. Maecenas luctus tempor enim, vitae suscipit quam consequat a. Phasellus feugiat congue sapien commodo cursus. Interdum et malesuada fames ac ante ipsum primis in faucibus.
@ -345,12 +345,12 @@ Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placera
</div> </div>
</div> </div>
<div id="outline-container-orgfea8240" class="outline-4"> <div id="outline-container-org4fe724d" class="outline-4">
<h4 id="orgfea8240"><span class="section-number-4">2.1.2</span> Third level Headline</h4> <h4 id="org4fe724d"><span class="section-number-4">2.1.2</span> Third level Headline</h4>
<div class="outline-text-4" id="text-2-1-2"> <div class="outline-text-4" id="text-2-1-2">
</div> </div>
<div id="outline-container-org9df83bb" class="outline-5"> <div id="outline-container-org3da2744" class="outline-5">
<h5 id="org9df83bb"><span class="section-number-5">2.1.2.1</span> Fourth level Headline</h5> <h5 id="org3da2744"><span class="section-number-5">2.1.2.1</span> Fourth level Headline</h5>
<div class="outline-text-5" id="text-2-1-2-1"> <div class="outline-text-5" id="text-2-1-2-1">
<p> <p>
Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placerat felis malesuada elementum. Donec tincidunt pharetra tincidunt. Praesent id lectus eget erat porttitor placerat non a magna. Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean sollicitudin nibh enim, sed pulvinar massa iaculis sit amet. Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra sapien fermentum. Donec dictum eleifend velit, vel elementum ex ultrices non. Vivamus mauris ex, ultrices quis sem vel, dapibus lacinia est. Praesent a sapien id diam venenatis finibus non vel justo. Cras sagittis tortor ac rutrum elementum. Maecenas luctus tempor enim, vitae suscipit quam consequat a. Phasellus feugiat congue sapien commodo cursus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placerat felis malesuada elementum. Donec tincidunt pharetra tincidunt. Praesent id lectus eget erat porttitor placerat non a magna. Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean sollicitudin nibh enim, sed pulvinar massa iaculis sit amet. Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra sapien fermentum. Donec dictum eleifend velit, vel elementum ex ultrices non. Vivamus mauris ex, ultrices quis sem vel, dapibus lacinia est. Praesent a sapien id diam venenatis finibus non vel justo. Cras sagittis tortor ac rutrum elementum. Maecenas luctus tempor enim, vitae suscipit quam consequat a. Phasellus feugiat congue sapien commodo cursus. Interdum et malesuada fames ac ante ipsum primis in faucibus.
@ -360,8 +360,8 @@ Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placera
</div> </div>
</div> </div>
<div id="outline-container-org6a9ebdc" class="outline-3"> <div id="outline-container-orgdbf1be0" class="outline-3">
<h3 id="org6a9ebdc"><span class="section-number-3">2.2</span> <span class="todo TODO">TODO</span> Second level Headline with Schedule</h3> <h3 id="orgdbf1be0"><span class="section-number-3">2.2</span> <span class="todo TODO">TODO</span> Second level Headline with Schedule</h3>
<div class="outline-text-3" id="text-2-2"> <div class="outline-text-3" id="text-2-2">
<p><span class="timestamp-wrapper"><span class="timestamp-kwd">SCHEDULED:</span> <span class="timestamp">&lt;2020-11-26 jeu.&gt;</span></span></p> <p><span class="timestamp-wrapper"><span class="timestamp-kwd">SCHEDULED:</span> <span class="timestamp">&lt;2020-11-26 jeu.&gt;</span></span></p>
@ -371,8 +371,8 @@ Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placera
</div> </div>
</div> </div>
<div id="outline-container-org014378f" class="outline-3"> <div id="outline-container-org81aed22" class="outline-3">
<h3 id="org014378f"><span class="section-number-3">2.3</span> <span class="priority">[B]</span> Second level Headline with a priority</h3> <h3 id="org81aed22"><span class="section-number-3">2.3</span> <span class="priority">[B]</span> Second level Headline with a priority</h3>
<div class="outline-text-3" id="text-2-3"> <div class="outline-text-3" id="text-2-3">
<p> <p>
Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placerat felis malesuada elementum. Donec tincidunt pharetra tincidunt. Praesent id lectus eget erat porttitor placerat non a magna. Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placerat felis malesuada elementum. Donec tincidunt pharetra tincidunt. Praesent id lectus eget erat porttitor placerat non a magna.
@ -380,8 +380,8 @@ Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placera
</div> </div>
</div> </div>
<div id="outline-container-org7696dea" class="outline-3"> <div id="outline-container-orgcaff5be" class="outline-3">
<h3 id="org7696dea"><span class="section-number-3">2.4</span> <span class="todo TODO">TODO</span> <span class="priority">[C]</span> Second level Headline with TODO State</h3> <h3 id="orgcaff5be"><span class="section-number-3">2.4</span> <span class="todo TODO">TODO</span> <span class="priority">[C]</span> Second level Headline with TODO State</h3>
<div class="outline-text-3" id="text-2-4"> <div class="outline-text-3" id="text-2-4">
<p> <p>
Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra sapien fermentum. Donec dictum eleifend velit, vel elementum ex ultrices non. Vivamus mauris ex, ultrices quis sem vel, dapibus lacinia est. Praesent a sapien id diam venenatis finibus non vel justo. Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra sapien fermentum. Donec dictum eleifend velit, vel elementum ex ultrices non. Vivamus mauris ex, ultrices quis sem vel, dapibus lacinia est. Praesent a sapien id diam venenatis finibus non vel justo.
@ -389,8 +389,8 @@ Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra
</div> </div>
</div> </div>
<div id="outline-container-org1a84c46" class="outline-3"> <div id="outline-container-orge771128" class="outline-3">
<h3 id="org1a84c46"><span class="section-number-3">2.5</span> <span class="done DONE">DONE</span> <span class="priority">[A]</span> Second level Headline with DONE State</h3> <h3 id="orge771128"><span class="section-number-3">2.5</span> <span class="done DONE">DONE</span> <span class="priority">[A]</span> Second level Headline with DONE State</h3>
<div class="outline-text-3" id="text-2-5"> <div class="outline-text-3" id="text-2-5">
<p><span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED:</span> <span class="timestamp">[2020-11-26 jeu. 18:53]</span></span></p> <p><span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED:</span> <span class="timestamp">[2020-11-26 jeu. 18:53]</span></span></p>
<p> <p>
@ -398,8 +398,8 @@ Cras sagittis tortor ac rutrum elementum. Maecenas luctus tempor enim, vitae sus
</p> </p>
</div> </div>
<div id="outline-container-orgc75a6cf" class="outline-4"> <div id="outline-container-org1d2ac98" class="outline-4">
<h4 id="orgc75a6cf"><span class="section-number-4">2.5.1</span> <span class="todo WAIT">WAIT</span> Third level Headline with DONE State</h4> <h4 id="org1d2ac98"><span class="section-number-4">2.5.1</span> <span class="todo WAIT">WAIT</span> Third level Headline with DONE State</h4>
<div class="outline-text-4" id="text-2-5-1"> <div class="outline-text-4" id="text-2-5-1">
<p><span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED:</span> <span class="timestamp">[2020-11-26 jeu. 18:53]</span></span></p> <p><span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED:</span> <span class="timestamp">[2020-11-26 jeu. 18:53]</span></span></p>
<p> <p>
@ -410,87 +410,87 @@ Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean so
</div> </div>
</div> </div>
<div id="outline-container-org955adba" class="outline-2"> <div id="outline-container-org0700f2c" class="outline-2">
<h2 id="org955adba"><span class="section-number-2">3</span> Blocks</h2> <h2 id="org0700f2c"><span class="section-number-2">3</span> Blocks</h2>
<div class="outline-text-2" id="text-3"> <div class="outline-text-2" id="text-3">
<div class="seealso" id="org46505e8"> <div class="seealso" id="org798b518">
<p> <p>
<code>seealso</code> block. <code>seealso</code> block.
</p> </p>
</div> </div>
<div class="hint" id="org6a4c085"> <div class="hint" id="org5863890">
<p> <p>
<code>hint</code> block. <code>hint</code> block.
</p> </p>
</div> </div>
<div class="definition" id="orgda37c6f"> <div class="definition" id="org84e56ec">
<p> <p>
<code>definition</code> block. <code>definition</code> block.
</p> </p>
</div> </div>
<div class="important" id="org72a1e8d"> <div class="important" id="org1b29ba3">
<p> <p>
<code>important</code> block. <code>important</code> block.
</p> </p>
</div> </div>
<div class="exampl" id="orga0f13ab"> <div class="exampl" id="orgdd4d3a3">
<p> <p>
<code>exampl</code> block. <code>exampl</code> block.
</p> </p>
</div> </div>
<div class="exercice" id="orgb8f9cc7"> <div class="exercice" id="orgbfcd181">
<p> <p>
<code>exercice</code> block. <code>exercice</code> block.
</p> </p>
</div> </div>
<div class="question" id="org16d8005"> <div class="question" id="org12c558a">
<p> <p>
<code>question</code> block. <code>question</code> block.
</p> </p>
</div> </div>
<div class="answer" id="org63f8cb4"> <div class="answer" id="orga95ba73">
<p> <p>
<code>answer</code> block. <code>answer</code> block.
</p> </p>
</div> </div>
<div class="summary" id="org20132b3"> <div class="summary" id="orgdce4082">
<p> <p>
<code>summary</code> block. <code>summary</code> block.
</p> </p>
</div> </div>
<div class="note" id="orge251289"> <div class="note" id="orgb487591">
<p> <p>
<code>note</code> block. <code>note</code> block.
</p> </p>
</div> </div>
<div class="caution" id="org7367d6a"> <div class="caution" id="org3effa05">
<p> <p>
<code>caution</code> block. <code>caution</code> block.
</p> </p>
</div> </div>
<div class="warning" id="org8b5157e"> <div class="warning" id="orgd88a9f9">
<p> <p>
<code>warning</code> block. <code>warning</code> block.
</p> </p>
@ -499,12 +499,12 @@ Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean so
</div> </div>
</div> </div>
<div id="outline-container-org4084d7e" class="outline-2"> <div id="outline-container-org52bc0f1" class="outline-2">
<h2 id="org4084d7e"><span class="section-number-2">4</span> Source Blocks</h2> <h2 id="org52bc0f1"><span class="section-number-2">4</span> Source Blocks</h2>
<div class="outline-text-2" id="text-4"> <div class="outline-text-2" id="text-4">
</div> </div>
<div id="outline-container-orge78cec5" class="outline-3"> <div id="outline-container-org1433439" class="outline-3">
<h3 id="orge78cec5"><span class="section-number-3">4.1</span> Figures</h3> <h3 id="org1433439"><span class="section-number-3">4.1</span> Figures</h3>
<div class="outline-text-3" id="text-4-1"> <div class="outline-text-3" id="text-4-1">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-matlab">t = 0<span class="org-type">:</span>0.01<span class="org-type">:</span>5; <span class="org-comment">% Time [s]</span> <pre class="src src-matlab">t = 0<span class="org-type">:</span>0.01<span class="org-type">:</span>5; <span class="org-comment">% Time [s]</span>
@ -520,7 +520,7 @@ xlabel(<span class="org-string">'Time [s]'</span>); ylabel(<span class="org-stri
</div> </div>
<div id="org5b0ddb1" class="figure"> <div id="org1745269" class="figure">
<p><img src="figs/matlab_fig_example.png" alt="matlab_fig_example.png" /> <p><img src="figs/matlab_fig_example.png" alt="matlab_fig_example.png" />
</p> </p>
<p><span class="figure-number">Figure 1: </span>Matlab Figure</p> <p><span class="figure-number">Figure 1: </span>Matlab Figure</p>
@ -528,8 +528,8 @@ xlabel(<span class="org-string">'Time [s]'</span>); ylabel(<span class="org-stri
</div> </div>
</div> </div>
<div id="outline-container-orgbce6803" class="outline-3"> <div id="outline-container-org30f94fc" class="outline-3">
<h3 id="orgbce6803"><span class="section-number-3">4.2</span> Table Result</h3> <h3 id="org30f94fc"><span class="section-number-3">4.2</span> Table Result</h3>
<div class="outline-text-3" id="text-4-2"> <div class="outline-text-3" id="text-4-2">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-matlab">x = 1<span class="org-type">:</span>10; <pre class="src src-matlab">x = 1<span class="org-type">:</span>10;
@ -537,7 +537,7 @@ y = x<span class="org-type">.^</span>2;
</pre> </pre>
</div> </div>
<table id="orge6f3167" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides"> <table id="orgd67f5c3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 1:</span> Table caption</caption> <caption class="t-above"><span class="table-number">Table 1:</span> Table caption</caption>
<colgroup> <colgroup>
@ -606,8 +606,8 @@ y = x<span class="org-type">.^</span>2;
</div> </div>
</div> </div>
<div id="outline-container-orge80301f" class="outline-3"> <div id="outline-container-orgcf6c4a6" class="outline-3">
<h3 id="orge80301f"><span class="section-number-3">4.3</span> Inline Results</h3> <h3 id="orgcf6c4a6"><span class="section-number-3">4.3</span> Inline Results</h3>
<div class="outline-text-3" id="text-4-3"> <div class="outline-text-3" id="text-4-3">
<p> <p>
Results can be automatically outputed as shown below. Results can be automatically outputed as shown below.
@ -636,35 +636,35 @@ y =
</div> </div>
</div> </div>
<div id="outline-container-org21f41e0" class="outline-3"> <div id="outline-container-org7d4d88d" class="outline-3">
<h3 id="org21f41e0"><span class="section-number-3">4.4</span> Caption and Reference</h3> <h3 id="org7d4d88d"><span class="section-number-3">4.4</span> Caption and Reference</h3>
<div class="outline-text-3" id="text-4-4"> <div class="outline-text-3" id="text-4-4">
<p> <p>
Captions can be added to code blocks. Captions can be added to code blocks.
Moreover, we can link to specific bode blocks (Listing <a href="#orgd607573">1</a> or <a href="#org6ca92b8">2</a>). Moreover, we can link to specific bode blocks (Listing <a href="#orgbe446ed">1</a> or <a href="#orga6e057f">2</a>).
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 1: </span>Code to produce a nice contour plot</label><pre class="src src-matlab" id="orgd607573"><span class="org-type">figure</span>; <label class="org-src-name"><span class="listing-number">Listing 1: </span>Code to produce a nice contour plot</label><pre class="src src-matlab" id="orgbe446ed"><span class="org-type">figure</span>;
[X,Y,Z] = peaks; [X,Y,Z] = peaks;
contour(X,Y,Z,20) contour(X,Y,Z,20)
</pre> </pre>
</div> </div>
<div id="orga22ceb9" class="figure"> <div id="orgeb9b28c" class="figure">
<p><img src="figs/matlab_logo.png" alt="matlab_logo.png" /> <p><img src="figs/matlab_logo.png" alt="matlab_logo.png" />
</p> </p>
<p><span class="figure-number">Figure 2: </span>Obtained Contour Plot</p> <p><span class="figure-number">Figure 2: </span>Obtained Contour Plot</p>
</div> </div>
<div class="org-src-container"> <div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 2: </span>Code to compute the Singular Value Decomposition</label><pre class="src src-matlab" id="org6ca92b8">A = [1 2; 3 4; 5 6; 7 8] <label class="org-src-name"><span class="listing-number">Listing 2: </span>Code to compute the Singular Value Decomposition</label><pre class="src src-matlab" id="orga6e057f">A = [1 2; 3 4; 5 6; 7 8]
[U,S,V] = svd(A) [U,S,V] = svd(A)
</pre> </pre>
</div> </div>
<pre class="example" id="org526e894"> <pre class="example" id="org06e18f5">
A = [1 2; 3 4; 5 6; 7 8] A = [1 2; 3 4; 5 6; 7 8]
A = A =
1 2 1 2
@ -689,11 +689,11 @@ V =
</div> </div>
</div> </div>
<div id="outline-container-org847ba5d" class="outline-3"> <div id="outline-container-orge2781b6" class="outline-3">
<h3 id="org847ba5d"><span class="section-number-3">4.5</span> Source Blocks with Line Numbers</h3> <h3 id="orge2781b6"><span class="section-number-3">4.5</span> Source Blocks with Line Numbers</h3>
<div class="outline-text-3" id="text-4-5"> <div class="outline-text-3" id="text-4-5">
<p> <p>
The Listing <a href="#orgc5cd4fb">3</a> has line numbers as the <code>-n</code> option was used. The Listing <a href="#orga9a125b">3</a> has line numbers as the <code>-n</code> option was used.
</p> </p>
<p> <p>
@ -702,7 +702,7 @@ For instance, the code used to specify the wanted the vertical label is on line
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 3: </span>Specify Labels</label><pre class="src src-matlab" id="orgc5cd4fb"><span class="linenr">1: </span><span class="org-type">figure</span>; <label class="org-src-name"><span class="listing-number">Listing 3: </span>Specify Labels</label><pre class="src src-matlab" id="orga9a125b"><span class="linenr">1: </span><span class="org-type">figure</span>;
<span class="linenr">2: </span>plot(t, x) <span class="linenr">2: </span>plot(t, x)
<span class="linenr">3: </span>xlabel(<span class="org-string">'Time [s]'</span>); <span class="linenr">3: </span>xlabel(<span class="org-string">'Time [s]'</span>);
<span id="coderef-test" class="coderef-off"><span class="linenr">4: </span>ylabel(<span class="org-string">'Output [V]'</span>);</span> <span id="coderef-test" class="coderef-off"><span class="linenr">4: </span>ylabel(<span class="org-string">'Output [V]'</span>);</span>
@ -723,19 +723,19 @@ Numbering can be continued by using <code>+n</code> option as shown below.
</div> </div>
</div> </div>
<div id="outline-container-orgb804248" class="outline-2"> <div id="outline-container-org8a3ead7" class="outline-2">
<h2 id="orgb804248"><span class="section-number-2">5</span> Images</h2> <h2 id="org8a3ead7"><span class="section-number-2">5</span> Images</h2>
<div class="outline-text-2" id="text-5"> <div class="outline-text-2" id="text-5">
</div> </div>
<div id="outline-container-org419d74f" class="outline-3"> <div id="outline-container-org8835bb6" class="outline-3">
<h3 id="org419d74f"><span class="section-number-3">5.1</span> Normal Image</h3> <h3 id="org8835bb6"><span class="section-number-3">5.1</span> Normal Image</h3>
<div class="outline-text-3" id="text-5-1"> <div class="outline-text-3" id="text-5-1">
<p> <p>
Figure <a href="#orgfccba0c">3</a> shows the results of the Tikz code of listing <a href="#orgee38208">4</a>. Figure <a href="#org3abb6bf">3</a> shows the results of the Tikz code of listing <a href="#orgafafc64">4</a>.
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 4: </span>Tikz code that is used to generate Figure <a href="#orgfccba0c">3</a></label><pre class="src src-latex" id="orgee38208"><span class="org-font-latex-sedate"><span class="org-keyword">\begin</span></span>{<span class="org-function-name">tikzpicture</span>} <label class="org-src-name"><span class="listing-number">Listing 4: </span>Tikz code that is used to generate Figure <a href="#org3abb6bf">3</a></label><pre class="src src-latex" id="orgafafc64"><span class="org-font-latex-sedate"><span class="org-keyword">\begin</span></span>{<span class="org-function-name">tikzpicture</span>}
<span class="org-comment">% Blocs</span> <span class="org-comment">% Blocs</span>
<span class="org-font-latex-sedate">\node</span>[block={2.0cm}{2.0cm}] (P) {<span class="org-font-latex-math">$P$</span>}; <span class="org-font-latex-sedate">\node</span>[block={2.0cm}{2.0cm}] (P) {<span class="org-font-latex-math">$P$</span>};
@ -758,20 +758,26 @@ Figure <a href="#orgfccba0c">3</a> shows the results of the Tikz code of listing
</div> </div>
<div id="orgfccba0c" class="figure"> <div id="org3abb6bf" class="figure">
<p><img src="figs/general_control_names.png" alt="general_control_names.png" /> <p><img src="figs/general_control_names.png" alt="general_control_names.png" />
</p> </p>
<p><span class="figure-number">Figure 3: </span>General Control Configuration</p> <p><span class="figure-number">Figure 3: </span>General Control Configuration</p>
</div> </div>
<div class="org-src-container">
<pre class="src src-md">#+name: fig:general_control_names
#+caption: General Control Configuration
[[file:figs/general_control_names.png]]
</pre>
</div>
</div> </div>
</div> </div>
<div id="outline-container-org5086e4d" class="outline-3">
<div id="outline-container-orgf1c51ef" class="outline-3"> <h3 id="org5086e4d"><span class="section-number-3">5.2</span> Wrap Image</h3>
<h3 id="orgf1c51ef"><span class="section-number-3">5.2</span> Wrap Image</h3>
<div class="outline-text-3" id="text-5-2"> <div class="outline-text-3" id="text-5-2">
<div id="orgf940042" class="figure"> <div id="orge1b2b7f" class="figure">
<p><img src="figs/general_control_names.png" alt="general_control_names.png" float="wrap-right" /> <p><img src="figs/general_control_names.png" alt="general_control_names.png" float="wrap-right" />
</p> </p>
<p><span class="figure-number">Figure 4: </span>General Control Configuration</p> <p><span class="figure-number">Figure 4: </span>General Control Configuration</p>
@ -786,16 +792,16 @@ Fusce blandit mauris dui, sed lobortis sapien tincidunt ac. Maecenas vitae moles
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-org"><span class="org-org-meta-line">#+name: fig:general_control_names</span> <pre class="src src-md">#+name: fig:general_control_names
<span class="org-org-meta-line">#+caption:</span> <span class="org-org-block">General Control Configuration</span> #+caption: General Control Configuration
<span class="org-org-meta-line">#+attr_html: :float wrap-left</span> #+attr_html: :float wrap-left
<span class="org-org-meta-line">#+attr_latex: :float wrap</span> #+attr_latex: :float wrap
<span class="org-org-link"><a href="file:figs/general_control_names.png">file:figs/general_control_names.png</a></span> [[file:figs/general_control_names.png]]
</pre> </pre>
</div> </div>
<div id="orga16fe9a" class="figure"> <div id="org114f7f4" class="figure">
<p><img src="figs/general_control_names.png" alt="general_control_names.png" float="wrap-left" /> <p><img src="figs/general_control_names.png" alt="general_control_names.png" float="wrap-left" />
</p> </p>
<p><span class="figure-number">Figure 5: </span>General Control Configuration</p> <p><span class="figure-number">Figure 5: </span>General Control Configuration</p>
@ -807,23 +813,23 @@ Fusce blandit mauris dui, sed lobortis sapien tincidunt ac. Maecenas vitae moles
</div> </div>
</div> </div>
<div id="outline-container-org00b39ef" class="outline-3"> <div id="outline-container-org85b8338" class="outline-3">
<h3 id="org00b39ef"><span class="section-number-3">5.3</span> Sub Images</h3> <h3 id="org85b8338"><span class="section-number-3">5.3</span> Sub Images</h3>
<div class="outline-text-3" id="text-5-3"> <div class="outline-text-3" id="text-5-3">
<p> <p>
Link to subfigure <a href="#org561eb07">2</a>. Link to subfigure <a href="#org6234953">2</a>.
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-org"><span class="org-org-meta-line">#+name: fig:subfigure</span> <pre class="src src-md">#+name: fig:subfigure
<span class="org-org-meta-line">#+caption:</span> <span class="org-org-block">Subfigure Caption</span> #+caption: Subfigure Caption
<span class="org-org-meta-line">#+attr_latex: :environment subfigure :width 0.49\linewidth :align c</span> #+attr_latex: :environment subfigure :width 0.49\linewidth :align c
<span class="org-org-table">| </span><span class="org-org-table"><span class="org-org-link"><a href="file:figs/general_control_names.png">file:figs/general_control_names.pn</a><a href="file:figs/general_control_names.png">g</a></span></span><span class="org-org-table"> | </span><span class="org-org-table"><span class="org-org-link"><a href="file:figs/general_control_names.png">file:figs/general_control_names.pn</a><a href="file:figs/general_control_names.png">g</a></span></span><span class="org-org-table"> |</span> | file:figs/general_control_names.png | file:figs/general_control_names.png |
<span class="org-org-table">| </span><span class="org-org-target">&lt;&lt;fig:general_control_names_1&gt;&gt;</span><span class="org-org-table"> sub figure caption | </span><span class="org-org-target">&lt;&lt;fig:general_control_names_2&gt;&gt;</span><span class="org-org-table"> sub figure caption |</span> | &lt;&lt;fig:general_control_names_1&gt;&gt; sub figure caption | &lt;&lt;fig:general_control_names_2&gt;&gt; sub figure caption |
</pre> </pre>
</div> </div>
<table id="org71a1e24" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides"> <table id="org1772772" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 2:</span> Subfigure Caption</caption> <caption class="t-above"><span class="table-number">Table 2:</span> Subfigure Caption</caption>
<colgroup> <colgroup>
@ -838,8 +844,8 @@ Link to subfigure <a href="#org561eb07">2</a>.
</tr> </tr>
<tr> <tr>
<td class="org-left"><a id="org561eb07"></a> sub figure caption</td> <td class="org-left"><a id="org6234953"></a> sub figure caption</td>
<td class="org-left"><a id="org1abd179"></a> sub figure caption</td> <td class="org-left"><a id="org3026a33"></a> sub figure caption</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -847,14 +853,14 @@ Link to subfigure <a href="#org561eb07">2</a>.
</div> </div>
</div> </div>
<div id="outline-container-org57b95a4" class="outline-2"> <div id="outline-container-orga6ee689" class="outline-2">
<h2 id="org57b95a4"><span class="section-number-2">6</span> Tables</h2> <h2 id="orga6ee689"><span class="section-number-2">6</span> Tables</h2>
<div class="outline-text-2" id="text-6"> <div class="outline-text-2" id="text-6">
<p> <p>
Table <a href="#org927e01f">3</a> shows a table with some mathematics inside. Table <a href="#org9305eb4">3</a> shows a table with some mathematics inside.
</p> </p>
<table id="org927e01f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides"> <table id="org9305eb4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 3:</span> A Simple table with included math</caption> <caption class="t-above"><span class="table-number">Table 3:</span> A Simple table with included math</caption>
<colgroup> <colgroup>
@ -910,7 +916,7 @@ Table <a href="#org927e01f">3</a> shows a table with some mathematics inside.
</tbody> </tbody>
</table> </table>
<table id="org09e22c8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides"> <table id="orgf729723" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 4:</span> Table without Head</caption> <caption class="t-above"><span class="table-number">Table 4:</span> Table without Head</caption>
<colgroup> <colgroup>
@ -983,7 +989,7 @@ Table <a href="#org927e01f">3</a> shows a table with some mathematics inside.
</tbody> </tbody>
</table> </table>
<table id="org5ca0081" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides"> <table id="org88492a0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 5:</span> Table with multiples groups</caption> <caption class="t-above"><span class="table-number">Table 5:</span> Table with multiples groups</caption>
<colgroup> <colgroup>
@ -1117,8 +1123,8 @@ Table <a href="#org927e01f">3</a> shows a table with some mathematics inside.
</div> </div>
</div> </div>
<div id="outline-container-org7ad70ee" class="outline-2"> <div id="outline-container-orgd557e64" class="outline-2">
<h2 id="org7ad70ee"><span class="section-number-2">7</span> Details</h2> <h2 id="orgd557e64"><span class="section-number-2">7</span> Details</h2>
<div class="outline-text-2" id="text-7"> <div class="outline-text-2" id="text-7">
<p> <p>
Below is some content hidden until you click the bar. Below is some content hidden until you click the bar.
@ -1129,7 +1135,7 @@ Below is some content hidden until you click the bar.
Almost anything can be put here for instance this table below. Almost anything can be put here for instance this table below.
</p> </p>
<table id="org29d75a4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides"> <table id="orgae9702c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 6:</span> A Simple table with included math</caption> <caption class="t-above"><span class="table-number">Table 6:</span> A Simple table with included math</caption>
<colgroup> <colgroup>
@ -1197,7 +1203,7 @@ It is approximately <b>12,742 km</b>
</p> </p>
</details> </details>
<div class="question" id="orgec4f803"> <div class="question" id="org0df6eb1">
<p> <p>
What is the approximate diameter of the earth? What is the approximate diameter of the earth?
</p> </p>
@ -1212,8 +1218,8 @@ It is approximately <b>12,742 km</b>
</div> </div>
</div> </div>
<div id="outline-container-org6f61827" class="outline-2"> <div id="outline-container-orga01f957" class="outline-2">
<h2 id="org6f61827"><span class="section-number-2">8</span> Videos</h2> <h2 id="orga01f957"><span class="section-number-2">8</span> Videos</h2>
<div class="outline-text-2" id="text-8"> <div class="outline-text-2" id="text-8">
<p> <p>
<div class="yt"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/SzA2YODtgK4" frameborder="0" allowfullscreen></iframe></div> <div class="yt"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/SzA2YODtgK4" frameborder="0" allowfullscreen></iframe></div>
@ -1239,7 +1245,7 @@ It is approximately <b>12,742 km</b>
<div id="text-footnotes"> <div id="text-footnotes">
<div class="footdef"><sup><a id="fn.1" class="footnum" href="#fnr.1">1</a></sup> <div class="footpara"><p class="footpara"> <div class="footdef"><sup><a id="fn.1" class="footnum" href="#fnr.1">1</a></sup> <div class="footpara"><p class="footpara">
A long foot note. Lorem ipsum dolor sit amet, consectetur adipiscing elit. With a reference to Figure <a href="#orgfccba0c">3</a>. A long foot note. Lorem ipsum dolor sit amet, consectetur adipiscing elit. With a reference to Figure <a href="#org3abb6bf">3</a>.
</p></div></div> </p></div></div>
<div class="footdef"><sup><a id="fn.2" class="footnum" href="#fnr.2">2</a></sup> <div class="footpara"><p class="footpara"> <div class="footdef"><sup><a id="fn.2" class="footnum" href="#fnr.2">2</a></sup> <div class="footpara"><p class="footpara">
@ -1251,7 +1257,7 @@ An other footnote.
</div></div> </div></div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-12-11 ven. 00:15</p> <p class="date">Created: 2021-01-01 ven. 18:02</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -32,8 +32,10 @@ docReady(function() {
let srcContainers = document.querySelectorAll('pre.src'); let srcContainers = document.querySelectorAll('pre.src');
function copyClickFunction() { function copyClickFunction() {
let boxCopy = this;
// Create a clone the node to not affect the original one // Create a clone the node to not affect the original one
let nodeClone = this.parentNode.cloneNode(true); let nodeClone = boxCopy.parentNode.cloneNode(true);
// Remove Line Numbers and Copy Button // Remove Line Numbers and Copy Button
let linenumNodes = nodeClone.querySelectorAll('.linenr,.src-copy'); let linenumNodes = nodeClone.querySelectorAll('.linenr,.src-copy');

View File

@ -26,7 +26,7 @@
#+end_src #+end_src
#+begin_src latex #+begin_src latex
\usepackage{caption,tabularx,booktabs} \usepackage{tabularx,booktabs}
#+end_src #+end_src
#+begin_src latex #+begin_src latex
@ -80,6 +80,7 @@
\setminted[bash]{label=Bash} \setminted[bash]{label=Bash}
\setminted[python]{label=Python} \setminted[python]{label=Python}
\setminted[text]{label=Results} \setminted[text]{label=Results}
\setminted[md]{label=Org Mode}
\setmintedinline{fontsize=\normalsize,bgcolor=my-pale-grey} \setmintedinline{fontsize=\normalsize,bgcolor=my-pale-grey}
#+end_src #+end_src

View File

@ -325,3 +325,14 @@ span[id*='MathJax-Span']{
clear: both; clear: both;
} }
} }
// TODO Highlight links/etc.
@-webkit-keyframes target {
from { background:#ffffff; }
50% { background:#ffffd3; }
to { background:#ffffff; }
}
:target {
-webkit-animation: target .5s linear;
}