literate-dotfiles/docs/emacs-snippets.html

912 lines
47 KiB
HTML
Raw Normal View History

2020-05-26 08:40:15 +02:00
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
2021-10-25 14:37:10 +02:00
<!-- 2021-10-25 lun. 14:33 -->
2020-05-26 08:40:15 +02:00
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Doom Emacs Configuration</title>
<meta name="author" content="Dehaeze Thomas" />
2021-10-25 14:37:10 +02:00
<meta name="generator" content="Org Mode" />
2021-01-01 20:12:34 +01:00
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
2020-05-26 08:40:15 +02:00
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
2021-10-25 14:37:10 +02:00
</div><div id="content" class="content">
2020-05-26 08:40:15 +02:00
<h1 class="title">Doom Emacs Configuration</h1>
2021-10-25 14:37:10 +02:00
<div id="table-of-contents" role="doc-toc">
2020-05-26 08:40:15 +02:00
<h2>Table of Contents</h2>
2021-10-25 14:37:10 +02:00
<div id="text-table-of-contents" role="doc-toc">
2020-05-26 08:40:15 +02:00
<ul>
2021-01-01 20:12:34 +01:00
<li><a href="#orga3bc01e">LaTeX</a>
2020-05-26 08:40:15 +02:00
<ul>
2021-01-01 20:12:34 +01:00
<li><a href="#org50ac3ef">Coordinate</a></li>
<li><a href="#org8ca867b">Draw</a></li>
<li><a href="#orgd5ec64e">Node</a></li>
<li><a href="#orgd2a36e9">Path</a></li>
2020-05-26 08:40:15 +02:00
</ul>
</li>
2021-01-01 20:12:34 +01:00
<li><a href="#org5abed78">Matlab</a>
2020-05-26 08:40:15 +02:00
<ul>
2021-01-01 20:12:34 +01:00
<li><a href="#org6bd1003">Clear</a></li>
<li><a href="#orgc90b35e">Function</a></li>
2020-05-26 08:40:15 +02:00
</ul>
</li>
2021-01-01 20:12:34 +01:00
<li><a href="#org4a9de72">Org Mode</a>
2020-05-26 08:40:15 +02:00
<ul>
2021-01-01 20:12:34 +01:00
<li><a href="#org7220f49">Begin</a></li>
<li><a href="#orgde0f79b">Caption</a></li>
<li><a href="#org7942249">Block</a></li>
<li><a href="#org0dd9c10">Custom Box</a></li>
<li><a href="#org3c7a0a0">Latex Class</a></li>
<li><a href="#orgf59b249">Bibliography with completion</a></li>
<li><a href="#orgd88407c">Cite</a></li>
<li><a href="#orgb1f5cdc">Ref</a></li>
<li><a href="#org8b9dce1">Beamer - CBOX</a></li>
<li><a href="#org68eb2b6">HTML Details</a></li>
<li><a href="#orgc76873e">Code</a></li>
<li><a href="#orgf39e79c">Equation</a></li>
<li><a href="#orge17a1a2">Figure</a></li>
<li><a href="#org1ddfd44">Frac</a></li>
<li><a href="#org400ff8e">Left</a></li>
<li><a href="#org234e84f">Minipage</a></li>
<li><a href="#orgb7becfc">Minipage Figures</a></li>
<li><a href="#org630b3de">Wrap Figure</a></li>
<li><a href="#org8aa2d33">Multicolumn</a></li>
<li><a href="#orgb5c8c67">Subfigure</a></li>
<li><a href="#orga9aa801">Table</a></li>
<li><a href="#org2604457">Tikz</a></li>
<li><a href="#orgf6eeddb">Tikzfig</a></li>
<li><a href="#orgba1d993">Tikzheader</a></li>
<li><a href="#org040faef">User-config</a></li>
<li><a href="#org349c757">User-init</a></li>
<li><a href="#org951f3c0">Wrap</a></li>
<li><a href="#orgbd116e3">Matlab Specific</a>
2020-05-26 08:40:15 +02:00
<ul>
2021-01-01 20:12:34 +01:00
<li><a href="#orge0eecad">Mconfig</a></li>
<li><a href="#org494be3f">Mdescription</a></li>
<li><a href="#org2c8a3d2">Mfigure</a></li>
<li><a href="#org21ef93d">Mfunction</a></li>
<li><a href="#org8920992">Mheader</a></li>
<li><a href="#orgec784e2">Minit</a></li>
<li><a href="#org27df014">Mtable</a></li>
<li><a href="#org31ef31f">Mvalue</a></li>
2020-05-26 08:40:15 +02:00
</ul>
</li>
2021-01-01 20:12:34 +01:00
<li><a href="#org143de42">Binary</a></li>
2020-05-26 08:40:15 +02:00
</ul>
</li>
</ul>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orga3bc01e" class="outline-2">
<h2 id="orga3bc01e">LaTeX</h2>
<div class="outline-text-2" id="text-orga3bc01e">
2020-05-26 08:40:15 +02:00
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org50ac3ef" class="outline-3">
<h3 id="org50ac3ef">Coordinate</h3>
<div class="outline-text-3" id="text-org50ac3ef">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :coordinate</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
\coordinate[${<span class="org-highlight-numbers-number">1</span>:-&gt;}] (${<span class="org-highlight-numbers-number">2</span>:name}) at (${<span class="org-highlight-numbers-number">3</span>:pointcoordinate});
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org8ca867b" class="outline-3">
<h3 id="org8ca867b">Draw</h3>
<div class="outline-text-3" id="text-org8ca867b">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :draw</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
\draw[${<span class="org-highlight-numbers-number">1</span>:-&gt;}] (${<span class="org-highlight-numbers-number">2</span>:point1}) -- (${<span class="org-highlight-numbers-number">3</span>:point2});
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgd5ec64e" class="outline-3">
<h3 id="orgd5ec64e">Node</h3>
<div class="outline-text-3" id="text-orgd5ec64e">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :node</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
node[${<span class="org-highlight-numbers-number">1</span>:below right}] (${<span class="org-highlight-numbers-number">2</span>:name}) {${<span class="org-highlight-numbers-number">3</span>:label}};
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgd2a36e9" class="outline-3">
<h3 id="orgd2a36e9">Path</h3>
<div class="outline-text-3" id="text-orgd2a36e9">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :path</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
\path[${<span class="org-highlight-numbers-number">1</span>}] (${<span class="org-highlight-numbers-number">2</span>:point1}) -- (${<span class="org-highlight-numbers-number">3</span>:point2});
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org5abed78" class="outline-2">
<h2 id="org5abed78">Matlab</h2>
<div class="outline-text-2" id="text-org5abed78">
2020-05-26 08:40:15 +02:00
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org6bd1003" class="outline-3">
<h3 id="org6bd1003">Clear</h3>
<div class="outline-text-3" id="text-org6bd1003">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :clear and close all</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
2020-05-26 08:40:15 +02:00
clear; close all; clc;
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgc90b35e" class="outline-3">
<h3 id="orgc90b35e">Function</h3>
<div class="outline-text-3" id="text-orgc90b35e">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :function</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-variable-name">function </span>[${<span class="org-highlight-numbers-number">4</span>:outputs}] = ${<span class="org-highlight-numbers-number">1</span>:functionName}(${<span class="org-highlight-numbers-number">2</span>:inputs}, ${<span class="org-highlight-numbers-number">3</span>:opts_param})
2020-05-26 08:40:15 +02:00
% $1 - Description
%
% Syntax: $1($2, $3)
%
% Inputs:
% - $2 -
% - $3 - Optionals parameters: structure with the following fields:
% -
%
% Outputs:
% - $4 -
%% Default value for opts
2020-11-03 16:27:09 +01:00
<span class="org-variable-name">opts</span> = struct(...
<span class="org-string">'${5:outputs}'</span>, ${<span class="org-highlight-numbers-number">6</span>:default_value} ...
2020-05-26 08:40:15 +02:00
);
2020-11-03 16:27:09 +01:00
if exist(<span class="org-string">'opts_param'</span>,<span class="org-string">'var'</span>)
<span class="org-variable-name">for opt</span> = fieldnames($3)<span class="org-string">'</span>
<span class="org-string"> if sum(strcmp(fieldnames(opts), opt{1})) == 1</span>
<span class="org-string"> opts.(opt{1}) = $3.(opt{1});</span>
<span class="org-string"> else</span>
<span class="org-string"> warning(sprintf('</span>%s is not a valid option.<span class="org-string">', opt{1}));</span>
<span class="org-string"> end</span>
<span class="org-string"> end</span>
<span class="org-string">end</span>
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
<span class="org-string">$0</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org4a9de72" class="outline-2">
<h2 id="org4a9de72">Org Mode</h2>
<div class="outline-text-2" id="text-org4a9de72">
2020-05-26 08:40:15 +02:00
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org7220f49" class="outline-3">
<h3 id="org7220f49">Begin</h3>
<div class="outline-text-3" id="text-org7220f49">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :LaTeX Environment</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
\begin{${<span class="org-highlight-numbers-number">1</span>:equation}}
2021-02-10 18:02:02 +01:00
$0
2020-05-26 08:40:15 +02:00
\end{$1}
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgde0f79b" class="outline-3">
<h3 id="orgde0f79b">Caption</h3>
<div class="outline-text-3" id="text-orgde0f79b">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Caption</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: $0</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org7942249" class="outline-3">
<h3 id="org7942249">Block</h3>
<div class="outline-text-3" id="text-org7942249">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Org-Mode Block</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">key: block</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_${1:$$(let ((type (yas-choose-value '("src" "example" "quote" "verse" "center" "latex" "html" "ascii"))))</span>
(if type (concat type (if (equal type <span class="org-string">"src"</span>)
(concat <span class="org-string">" "</span> (yas-choose-value <span class="org-string">'("emacs-lisp" "latex" "python" "sh" "matlab")))))))}</span>
<span class="org-string">$0</span>
<span class="org-string">#+end_${1:$(car (split-string yas-text))}</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org0dd9c10" class="outline-3">
<h3 id="org0dd9c10">Custom Box</h3>
<div class="outline-text-3" id="text-org0dd9c10">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Custom Box</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :options [$1]{${2:blue}}{${3:ams nodisplayskip}}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_cbox</span>
2020-05-26 08:40:15 +02:00
$0
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_cbox</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org3c7a0a0" class="outline-3">
<h3 id="org3c7a0a0">Latex Class</h3>
<div class="outline-text-3" id="text-org3c7a0a0">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">name: latex-class</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">key: lc</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">expand-env: ((classes (mapcar 'car org-latex-classes)))</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+latex_class: ${1:$$(yas-choose-value classes)}</span>
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgf59b249" class="outline-3">
<h3 id="orgf59b249">Bibliography with completion</h3>
<div class="outline-text-3" id="text-orgf59b249">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">name: bibliography with completion</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">key: bib</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
bibliography:${<span class="org-highlight-numbers-number">1</span>:$$(yas-choose-value (org-ref-find-bibliography))}
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgd88407c" class="outline-3">
<h3 id="orgd88407c">Cite</h3>
<div class="outline-text-3" id="text-orgd88407c">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">name: org-ref cite link</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">key: cite</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
cite:${<span class="org-highlight-numbers-number">1</span>:$$(completing-read
<span class="org-string">"bibtex key: "</span>
2020-05-26 08:40:15 +02:00
(let ((bibtex-files (org-ref-find-bibliography)))(bibtex-global-key-alist)))}
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgb1f5cdc" class="outline-3">
<h3 id="orgb1f5cdc">Ref</h3>
<div class="outline-text-3" id="text-orgb1f5cdc">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">name: org-ref ref link with completion</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">key: ref</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
ref:${<span class="org-highlight-numbers-number">1</span>:$$(completing-read <span class="org-string">"label: "</span> (org-ref-get-labels))}
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org8b9dce1" class="outline-3">
<h3 id="org8b9dce1">Beamer - CBOX</h3>
<div class="outline-text-3" id="text-org8b9dce1">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Beamer Custom Box</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
*** ${<span class="org-highlight-numbers-number">1</span>:@@latex:@@} :B_cbox:
2020-05-26 08:40:15 +02:00
,:PROPERTIES:
:BEAMER_env: cbox
2020-11-03 16:27:09 +01:00
:BEAMER_opt: {${<span class="org-highlight-numbers-number">2</span>:blue}}{${<span class="org-highlight-numbers-number">3</span>:ams nodisplayskip}}
2020-05-26 08:40:15 +02:00
:END:
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org68eb2b6" class="outline-3">
<h3 id="org68eb2b6">HTML Details</h3>
<div class="outline-text-3" id="text-org68eb2b6">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :details</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+HTML: &lt;details&gt;&lt;summary&gt;${1:Figure}&lt;/summary&gt;</span>
$0
<span class="org-comment-delimiter">#</span><span class="org-comment">+HTML: &lt;/details&gt;</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc76873e" class="outline-3">
<h3 id="orgc76873e">Code</h3>
<div class="outline-text-3" id="text-orgc76873e">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Code</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: ${1:Listing Caption}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+label: lst:${2:listing_name}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src ${3:listing_language}</span>
2020-05-26 08:40:15 +02:00
$0
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgf39e79c" class="outline-3">
<h3 id="orgf39e79c">Equation</h3>
<div class="outline-text-3" id="text-orgf39e79c">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Equation</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: eq:${1:equation_name}</span>
2020-05-26 08:40:15 +02:00
\begin{equation}
$0
\end{equation}
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orge17a1a2" class="outline-3">
<h3 id="orge17a1a2">Figure</h3>
<div class="outline-text-3" id="text-orge17a1a2">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Figure</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: fig:${1:figure_name}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: ${2:Figure caption}</span>
[[file:${<span class="org-highlight-numbers-number">3</span>:figs/}$1.${<span class="org-highlight-numbers-number">4</span>:pdf}]]
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org1ddfd44" class="outline-3">
<h3 id="org1ddfd44">Frac</h3>
<div class="outline-text-3" id="text-org1ddfd44">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :LaTeX Fraction</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
2020-05-26 08:40:15 +02:00
\frac{$1}{$2} $0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org400ff8e" class="outline-3">
<h3 id="org400ff8e">Left</h3>
<div class="outline-text-3" id="text-org400ff8e">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Left Right mathematical delimitations</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
2020-05-26 08:40:15 +02:00
\left$1 $0 \right$2
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org234e84f" class="outline-3">
<h3 id="org234e84f">Minipage</h3>
<div class="outline-text-3" id="text-org234e84f">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :minipage</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+BEGIN_EXPORT latex</span>
2020-05-26 08:40:15 +02:00
\begin{figure}[htbp]
\centering
2020-11-03 16:27:09 +01:00
\begin{minipage}[t]{<span class="org-highlight-numbers-number">0.49</span>\linewidth}
<span class="org-comment-delimiter">#</span><span class="org-comment">+END_EXPORT</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :float nil :width 0.95\linewidth</span>
2020-05-26 08:40:15 +02:00
$0
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+BEGIN_EXPORT latex</span>
2020-05-26 08:40:15 +02:00
\end{minipage}%
\hfill%
2020-11-03 16:27:09 +01:00
\begin{minipage}[t]{<span class="org-highlight-numbers-number">0.49</span>\linewidth}
<span class="org-comment-delimiter">#</span><span class="org-comment">+END_EXPORT</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :float nil :width 0.95\linewidth</span>
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+BEGIN_EXPORT latex</span>
2020-05-26 08:40:15 +02:00
\end{minipage}
\end{figure}
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+END_EXPORT</span>
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgb7becfc" class="outline-3">
<h3 id="orgb7becfc">Minipage Figures</h3>
<div class="outline-text-3" id="text-orgb7becfc">
2020-11-03 16:27:09 +01:00
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Minipage with Figures</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :options [t]{${3:0.5\linewidth}}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_minipage</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: fig:$1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: ${2:Caption}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: ${4::width \linewidth} :float nil</span>
[[file:figs/${<span class="org-highlight-numbers-number">1</span>:figure_name}.pdf]]
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_minipage</span>
\hfill
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :options [t]{${7:0.5\linewidth}}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_minipage</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: fig:$5</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: ${6:Caption}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: ${8::width \linewidth} :float nil</span>
[[file:figs/${<span class="org-highlight-numbers-number">5</span>:figure_name}.pdf]]
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_minipage</span>
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org630b3de" class="outline-3">
<h3 id="org630b3de">Wrap Figure</h3>
<div class="outline-text-3" id="text-org630b3de">
2020-11-03 16:27:09 +01:00
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Wrap Figure</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :options {${1:rl}}{${2:0.45\textwidth}}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_wrapfigure</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :${3:width \linewidth}</span>
[[file:figs/${<span class="org-highlight-numbers-number">4</span>:figure_name.pdf}]]
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_wrapfigure</span>
$0
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org8aa2d33" class="outline-3">
<h3 id="org8aa2d33">Multicolumn</h3>
<div class="outline-text-3" id="text-org8aa2d33">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Multcolumn</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :float multicolumn</span>
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgb5c8c67" class="outline-3">
<h3 id="orgb5c8c67">Subfigure</h3>
<div class="outline-text-3" id="text-orgb5c8c67">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Subfigure</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: fig:${1:figure_name}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: ${2:figure caption}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :environment subfigure :width 0.49\linewidth :align c</span>
| file:${<span class="org-highlight-numbers-number">3</span>:sub_fig_name}.${<span class="org-highlight-numbers-number">4</span>:pdf} | file:${<span class="org-highlight-numbers-number">5</span>:sub_fig_name}.${<span class="org-highlight-numbers-number">6</span>:pdf} |
| &lt;&lt;fig:$3&gt;&gt; ${<span class="org-highlight-numbers-number">7</span>:sub figure caption} | &lt;&lt;fig:$5&gt;&gt; ${<span class="org-highlight-numbers-number">8</span>:sub figure caption} |
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orga9aa801" class="outline-3">
<h3 id="orga9aa801">Table</h3>
<div class="outline-text-3" id="text-orga9aa801">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Table</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: tab:${1:table_name}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: ${2:Table caption}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :environment tabularx :width ${3:\linewidth} :align ${4:lXX}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :center t :booktabs t :float t</span>
2020-05-26 08:40:15 +02:00
| $0 | | |
|---+---+---|
| | | |
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org2604457" class="outline-3">
<h3 id="org2604457">Tikz</h3>
<div class="outline-text-3" id="text-org2604457">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Tikz figure</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src latex :file ${1:figure_name}.pdf :post pdf2svg(file=*this*, ext="png") :exports both</span>
2021-02-10 18:02:02 +01:00
\begin{tikzpicture}
$0
\end{tikzpicture}
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgf6eeddb" class="outline-3">
<h3 id="orgf6eeddb">Tikzfig</h3>
<div class="outline-text-3" id="text-orgf6eeddb">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Tikz Figure</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+NAME: fig:${1:figure_name}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+HEADER: :headers '("\\\\usepackage{tikz}" "\\\\usepackage{import}" "\\\\import{$HOME/Cloud/thesis/LaTeX/}{config.tex}")</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+HEADER: :imagemagick t :fit yes :iminoptions -scale 100% -density 150 :imoutoptions -quality 100</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+HEADER: :results raw replace :buffer no :eval no-export :exports both :mkdirp yes</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+HEADER: :output-dir ${2:figs}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src latex :file $1.pdf :post pdf2svg(file=*this*, ext="png") :exports both</span>
2021-02-10 18:02:02 +01:00
\begin{tikzpicture}
$0
\end{tikzpicture}
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+NAME: fig:$1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+CAPTION: ${3:Caption}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+RESULTS: fig:$1</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgba1d993" class="outline-3">
<h3 id="orgba1d993">Tikzheader</h3>
<div class="outline-text-3" id="text-orgba1d993">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Tikz Header</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
* ${<span class="org-highlight-numbers-number">1</span>:Title/Description of the figure}
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src latex :file ${2:figure_name}.pdf :tangle figs/$2.tex :exports ${3:both}</span>
2021-02-10 18:02:02 +01:00
\begin{tikzpicture}
$0
\end{tikzpicture}
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: fig:$2</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: $1 ([[./figs/$2.png][png]], [[./figs/$2.pdf][pdf]], [[./figs/$2.tex][tex]]).</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+RESULTS:</span>
[<span class="org-type">[file:./figs/$2.png]</span>]
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org040faef" class="outline-3">
<h3 id="org040faef">User-config</h3>
<div class="outline-text-3" id="text-org040faef">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">-*- mode: snippet -*-</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">name: user-config</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">key: uc</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src emacs-lisp :tangle user-config.el</span>
2020-05-26 08:40:15 +02:00
$1
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org349c757" class="outline-3">
<h3 id="org349c757">User-init</h3>
<div class="outline-text-3" id="text-org349c757">
2020-05-26 08:40:15 +02:00
<p>
#+begin_src conf :tangle ~/.config/doom/snippets/org-mode/user-init
</p>
<p>
,#+begin_src emacs-lisp :tangle user-init.el
$1
,#+end_src
#+end_Sec
</p>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org951f3c0" class="outline-3">
<h3 id="org951f3c0">Wrap</h3>
<div class="outline-text-3" id="text-org951f3c0">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Wrap</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :float wrap</span>
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgbd116e3" class="outline-3">
<h3 id="orgbd116e3">Matlab Specific</h3>
<div class="outline-text-3" id="text-orgbd116e3">
2020-05-26 08:40:15 +02:00
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orge0eecad" class="outline-4">
<h4 id="orge0eecad">Mconfig</h4>
<div class="outline-text-4" id="text-orge0eecad">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Configuration-Header</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab :session *MATLAB*</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :tangle ${1:filename}.m</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :comments org</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :exports both</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :results none</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :eval no-export</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :noweb yes</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :mkdirp yes</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :output-dir ${2:figs}</span>
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org494be3f" class="outline-4">
<h4 id="org494be3f">Mdescription</h4>
<div class="outline-text-4" id="text-org494be3f">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Measurement-Description</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
2020-05-26 08:40:15 +02:00
* Measurement description
** Setup :ignore:
*Setup*:
** Goal :ignore:
*Goal*:
** Measurements :ignore:
*Measurements*:
Three measurements are done:
| Measurement File | Description |
|-------------------------+------------------------------|
2020-11-03 16:27:09 +01:00
<span class="org-variable-name">|</span> =mat/data_${<span class="org-highlight-numbers-number">1</span>:<span class="org-highlight-numbers-number">001</span>}.mat= | $2 |
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
<span class="org-variable-name">Each of the measurement</span> =mat= file contains one =data= array with <span class="org-highlight-numbers-number">3</span> columns:
2020-05-26 08:40:15 +02:00
| Column number | Description |
|---------------+-------------------|
2020-11-03 16:27:09 +01:00
| <span class="org-highlight-numbers-number">1</span> | $3 |
| <span class="org-highlight-numbers-number">2</span> | $4 |
| <span class="org-highlight-numbers-number">3</span> | Time |
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org2c8a3d2" class="outline-4">
<h4 id="org2c8a3d2">Mfigure</h4>
<div class="outline-text-4" id="text-org2c8a3d2">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Figure</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab :tangle no :exports results :results file replace</span>
exportFig(<span class="org-string">'figs/${1:filename}.pdf'</span>, <span class="org-string">'width'</span>, <span class="org-string">'${2:full}'</span>, <span class="org-string">'height'</span>, <span class="org-string">'${3:full}'</span>);
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: fig:$1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: $0</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+RESULTS:</span>
[<span class="org-type">[file:figs/$1.png]</span>]
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org21ef93d" class="outline-4">
<h4 id="org21ef93d">Mfunction</h4>
<div class="outline-text-4" id="text-org21ef93d">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Function</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
* ${<span class="org-highlight-numbers-number">1</span>:Function Name}
2020-05-26 08:40:15 +02:00
:PROPERTIES:
2020-11-03 16:27:09 +01:00
:header-args:matlab+: :tangle src/${<span class="org-highlight-numbers-number">2</span>:matlab_file_name}.m
2020-05-26 08:40:15 +02:00
:header-args:matlab+: :comments none :mkdirp yes :eval no
:END:
&lt;&lt;sec:$2&gt;&gt;
This Matlab function is accessible [[file:src/$2.m][here]].
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab</span>
2021-02-10 18:02:02 +01:00
<span class="org-variable-name">function </span>[${<span class="org-highlight-numbers-number">4</span>:in_data}] = $2(${<span class="org-highlight-numbers-number">3</span>:in_data})
% $2 - $0
%
<span class="org-variable-name">% Syntax: </span>[<span class="org-constant">$4</span>] = $2($3)
%
% Inputs:
% - $3 -
%
% Outputs:
% - $4 -
end
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org8920992" class="outline-4">
<h4 id="org8920992">Mheader</h4>
<div class="outline-text-4" id="text-org8920992">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Header</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
* ${<span class="org-highlight-numbers-number">1</span>:Heading Name}
2020-05-26 08:40:15 +02:00
:PROPERTIES:
2020-11-03 16:27:09 +01:00
:header-args:matlab+: :tangle matlab/${<span class="org-highlight-numbers-number">2</span>:matlab_file_name}.m
2020-05-26 08:40:15 +02:00
:header-args:matlab+: :comments org :mkdirp yes
:END:
&lt;&lt;sec:$2&gt;&gt;
** ZIP file containing the data and matlab files :ignore:
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src bash :exports none :results none</span>
2021-02-10 18:02:02 +01:00
if [ matlab/$2.m -nt data/$2.zip ]; then
cp matlab/$2.m $2.m;
zip data/$2 \
mat/data.mat \
$2.m
rm $2.m;
fi
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_note</span>
2021-02-10 18:02:02 +01:00
All the files (data and Matlab scripts) are accessible [[file:data/$2.zip][here]].
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_note</span>
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgec784e2" class="outline-4">
<h4 id="orgec784e2">Minit</h4>
<div class="outline-text-4" id="text-orgec784e2">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Init</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
2020-05-26 08:40:15 +02:00
** Matlab Init :noexport:ignore:
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)</span>
2021-02-10 18:02:02 +01:00
&lt;&lt;matlab-dir&gt;&gt;
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
2020-05-26 08:40:15 +02:00
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab :exports none :results silent :noweb yes</span>
2021-02-10 18:02:02 +01:00
&lt;&lt;matlab-init&gt;&gt;
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org27df014" class="outline-4">
<h4 id="org27df014">Mtable</h4>
<div class="outline-text-4" id="text-org27df014">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2020-11-03 16:27:09 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Table</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab :exports results :results value table replace :tangle no :post addhdr(*this*)</span>
2021-02-10 18:02:02 +01:00
data2orgtable(${<span class="org-highlight-numbers-number">1</span>:data}, {${<span class="org-highlight-numbers-number">2</span>:<span class="org-string">'rowlabel'</span>}}, {${<span class="org-highlight-numbers-number">3</span>:<span class="org-string">'collabel'</span>}}, <span class="org-string">' %.1f '</span>);
2020-11-03 16:27:09 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
2020-05-26 08:40:15 +02:00
$0
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org31ef31f" class="outline-4">
<h4 id="org31ef31f">Mvalue</h4>
<div class="outline-text-4" id="text-org31ef31f">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Value</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab :results value replace :exports results :tangle no</span>
2021-02-10 18:02:02 +01:00
sprintf(<span class="org-string">'x = %.2g'</span>, x);
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
$0
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org143de42" class="outline-3">
<h3 id="org143de42">Binary</h3>
<div class="outline-text-3" id="text-org143de42">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Binary</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-variable-name">*</span> =${<span class="org-highlight-numbers-number">1</span>:binary-name}= - ${<span class="org-highlight-numbers-number">2</span>:Description}
:PROPERTIES:
:CUSTOM_ID: $1
:END:
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src bash :tangle ~/.local/bin/$1</span>
2021-02-10 18:02:02 +01:00
$0
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
</pre>
</div>
</div>
2020-05-26 08:40:15 +02:00
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
2021-10-25 14:37:10 +02:00
<p class="date">Created: 2021-10-25 lun. 14:33</p>
2020-05-26 08:40:15 +02:00
</div>
</body>
</html>