912 lines
47 KiB
HTML
912 lines
47 KiB
HTML
<?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 lun. 14:33 -->
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
<title>Doom Emacs Configuration</title>
|
|
<meta name="author" content="Dehaeze Thomas" />
|
|
<meta name="generator" content="Org Mode" />
|
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
|
<script type="text/javascript" src="./dist/script.js"></script>
|
|
</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>
|
|
</div><div id="content" class="content">
|
|
<h1 class="title">Doom Emacs Configuration</h1>
|
|
<div id="table-of-contents" role="doc-toc">
|
|
<h2>Table of Contents</h2>
|
|
<div id="text-table-of-contents" role="doc-toc">
|
|
<ul>
|
|
<li><a href="#orga3bc01e">LaTeX</a>
|
|
<ul>
|
|
<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>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#org5abed78">Matlab</a>
|
|
<ul>
|
|
<li><a href="#org6bd1003">Clear</a></li>
|
|
<li><a href="#orgc90b35e">Function</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#org4a9de72">Org Mode</a>
|
|
<ul>
|
|
<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>
|
|
<ul>
|
|
<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>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#org143de42">Binary</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orga3bc01e" class="outline-2">
|
|
<h2 id="orga3bc01e">LaTeX</h2>
|
|
<div class="outline-text-2" id="text-orga3bc01e">
|
|
</div>
|
|
<div id="outline-container-org50ac3ef" class="outline-3">
|
|
<h3 id="org50ac3ef">Coordinate</h3>
|
|
<div class="outline-text-3" id="text-org50ac3ef">
|
|
<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"><dehaeze.thomas@gmail.com></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>:->}] (${<span class="org-highlight-numbers-number">2</span>:name}) at (${<span class="org-highlight-numbers-number">3</span>:pointcoordinate});
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org8ca867b" class="outline-3">
|
|
<h3 id="org8ca867b">Draw</h3>
|
|
<div class="outline-text-3" id="text-org8ca867b">
|
|
<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"><dehaeze.thomas@gmail.com></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>:->}] (${<span class="org-highlight-numbers-number">2</span>:point1}) -- (${<span class="org-highlight-numbers-number">3</span>:point2});
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgd5ec64e" class="outline-3">
|
|
<h3 id="orgd5ec64e">Node</h3>
|
|
<div class="outline-text-3" id="text-orgd5ec64e">
|
|
<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"><dehaeze.thomas@gmail.com></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}};
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgd2a36e9" class="outline-3">
|
|
<h3 id="orgd2a36e9">Path</h3>
|
|
<div class="outline-text-3" id="text-orgd2a36e9">
|
|
<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"><dehaeze.thomas@gmail.com></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});
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org5abed78" class="outline-2">
|
|
<h2 id="org5abed78">Matlab</h2>
|
|
<div class="outline-text-2" id="text-org5abed78">
|
|
</div>
|
|
<div id="outline-container-org6bd1003" class="outline-3">
|
|
<h3 id="org6bd1003">Clear</h3>
|
|
<div class="outline-text-3" id="text-org6bd1003">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
clear; close all; clc;
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgc90b35e" class="outline-3">
|
|
<h3 id="orgc90b35e">Function</h3>
|
|
<div class="outline-text-3" id="text-orgc90b35e">
|
|
<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"><dehaeze.thomas@gmail.com></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})
|
|
% $1 - Description
|
|
%
|
|
% Syntax: $1($2, $3)
|
|
%
|
|
% Inputs:
|
|
% - $2 -
|
|
% - $3 - Optionals parameters: structure with the following fields:
|
|
% -
|
|
%
|
|
% Outputs:
|
|
% - $4 -
|
|
|
|
%% Default value for opts
|
|
<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} ...
|
|
);
|
|
|
|
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>
|
|
|
|
<span class="org-string">$0</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org4a9de72" class="outline-2">
|
|
<h2 id="org4a9de72">Org Mode</h2>
|
|
<div class="outline-text-2" id="text-org4a9de72">
|
|
</div>
|
|
<div id="outline-container-org7220f49" class="outline-3">
|
|
<h3 id="org7220f49">Begin</h3>
|
|
<div class="outline-text-3" id="text-org7220f49">
|
|
<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"><dehaeze.thomas@gmail.com></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}}
|
|
$0
|
|
\end{$1}
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgde0f79b" class="outline-3">
|
|
<h3 id="orgde0f79b">Caption</h3>
|
|
<div class="outline-text-3" id="text-orgde0f79b">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org7942249" class="outline-3">
|
|
<h3 id="org7942249">Block</h3>
|
|
<div class="outline-text-3" id="text-org7942249">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org0dd9c10" class="outline-3">
|
|
<h3 id="org0dd9c10">Custom Box</h3>
|
|
<div class="outline-text-3" id="text-org0dd9c10">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
$0
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_cbox</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org3c7a0a0" class="outline-3">
|
|
<h3 id="org3c7a0a0">Latex Class</h3>
|
|
<div class="outline-text-3" id="text-org3c7a0a0">
|
|
<div class="org-src-container">
|
|
<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>
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgf59b249" class="outline-3">
|
|
<h3 id="orgf59b249">Bibliography with completion</h3>
|
|
<div class="outline-text-3" id="text-orgf59b249">
|
|
<div class="org-src-container">
|
|
<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))}
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgd88407c" class="outline-3">
|
|
<h3 id="orgd88407c">Cite</h3>
|
|
<div class="outline-text-3" id="text-orgd88407c">
|
|
<div class="org-src-container">
|
|
<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>
|
|
(let ((bibtex-files (org-ref-find-bibliography)))(bibtex-global-key-alist)))}
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgb1f5cdc" class="outline-3">
|
|
<h3 id="orgb1f5cdc">Ref</h3>
|
|
<div class="outline-text-3" id="text-orgb1f5cdc">
|
|
<div class="org-src-container">
|
|
<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))}
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org8b9dce1" class="outline-3">
|
|
<h3 id="org8b9dce1">Beamer - CBOX</h3>
|
|
<div class="outline-text-3" id="text-org8b9dce1">
|
|
<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"><dehaeze.thomas@gmail.com></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:
|
|
,:PROPERTIES:
|
|
:BEAMER_env: cbox
|
|
:BEAMER_opt: {${<span class="org-highlight-numbers-number">2</span>:blue}}{${<span class="org-highlight-numbers-number">3</span>:ams nodisplayskip}}
|
|
:END:
|
|
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<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"><dehaeze.thomas@gmail.com></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: <details><summary>${1:Figure}</summary></span>
|
|
$0
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+HTML: </details></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">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
$0
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgf39e79c" class="outline-3">
|
|
<h3 id="orgf39e79c">Equation</h3>
|
|
<div class="outline-text-3" id="text-orgf39e79c">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
\begin{equation}
|
|
$0
|
|
\end{equation}
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orge17a1a2" class="outline-3">
|
|
<h3 id="orge17a1a2">Figure</h3>
|
|
<div class="outline-text-3" id="text-orge17a1a2">
|
|
<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"><dehaeze.thomas@gmail.com></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}]]
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org1ddfd44" class="outline-3">
|
|
<h3 id="org1ddfd44">Frac</h3>
|
|
<div class="outline-text-3" id="text-org1ddfd44">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
\frac{$1}{$2} $0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org400ff8e" class="outline-3">
|
|
<h3 id="org400ff8e">Left</h3>
|
|
<div class="outline-text-3" id="text-org400ff8e">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
\left$1 $0 \right$2
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org234e84f" class="outline-3">
|
|
<h3 id="org234e84f">Minipage</h3>
|
|
<div class="outline-text-3" id="text-org234e84f">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
\begin{figure}[htbp]
|
|
\centering
|
|
\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>
|
|
$0
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+BEGIN_EXPORT latex</span>
|
|
\end{minipage}%
|
|
\hfill%
|
|
\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>
|
|
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+BEGIN_EXPORT latex</span>
|
|
\end{minipage}
|
|
\end{figure}
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+END_EXPORT</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgb7becfc" class="outline-3">
|
|
<h3 id="orgb7becfc">Minipage Figures</h3>
|
|
<div class="outline-text-3" id="text-orgb7becfc">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
|
|
<div id="outline-container-org630b3de" class="outline-3">
|
|
<h3 id="org630b3de">Wrap Figure</h3>
|
|
<div class="outline-text-3" id="text-org630b3de">
|
|
<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"><dehaeze.thomas@gmail.com></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
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org8aa2d33" class="outline-3">
|
|
<h3 id="org8aa2d33">Multicolumn</h3>
|
|
<div class="outline-text-3" id="text-org8aa2d33">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgb5c8c67" class="outline-3">
|
|
<h3 id="orgb5c8c67">Subfigure</h3>
|
|
<div class="outline-text-3" id="text-orgb5c8c67">
|
|
<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"><dehaeze.thomas@gmail.com></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} |
|
|
| <<fig:$3>> ${<span class="org-highlight-numbers-number">7</span>:sub figure caption} | <<fig:$5>> ${<span class="org-highlight-numbers-number">8</span>:sub figure caption} |
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orga9aa801" class="outline-3">
|
|
<h3 id="orga9aa801">Table</h3>
|
|
<div class="outline-text-3" id="text-orga9aa801">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
| $0 | | |
|
|
|---+---+---|
|
|
| | | |
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org2604457" class="outline-3">
|
|
<h3 id="org2604457">Tikz</h3>
|
|
<div class="outline-text-3" id="text-org2604457">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
\begin{tikzpicture}
|
|
$0
|
|
\end{tikzpicture}
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgf6eeddb" class="outline-3">
|
|
<h3 id="orgf6eeddb">Tikzfig</h3>
|
|
<div class="outline-text-3" id="text-orgf6eeddb">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
\begin{tikzpicture}
|
|
$0
|
|
\end{tikzpicture}
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</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: ${3:Caption}</span>
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+RESULTS: fig:$1</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgba1d993" class="outline-3">
|
|
<h3 id="orgba1d993">Tikzheader</h3>
|
|
<div class="outline-text-3" id="text-orgba1d993">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
\begin{tikzpicture}
|
|
$0
|
|
\end{tikzpicture}
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
|
|
|
|
<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>]
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org040faef" class="outline-3">
|
|
<h3 id="org040faef">User-config</h3>
|
|
<div class="outline-text-3" id="text-org040faef">
|
|
<div class="org-src-container">
|
|
<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>
|
|
$1
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org349c757" class="outline-3">
|
|
<h3 id="org349c757">User-init</h3>
|
|
<div class="outline-text-3" id="text-org349c757">
|
|
<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>
|
|
|
|
<div id="outline-container-org951f3c0" class="outline-3">
|
|
<h3 id="org951f3c0">Wrap</h3>
|
|
<div class="outline-text-3" id="text-org951f3c0">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgbd116e3" class="outline-3">
|
|
<h3 id="orgbd116e3">Matlab Specific</h3>
|
|
<div class="outline-text-3" id="text-orgbd116e3">
|
|
</div>
|
|
<div id="outline-container-orge0eecad" class="outline-4">
|
|
<h4 id="orge0eecad">Mconfig</h4>
|
|
<div class="outline-text-4" id="text-orge0eecad">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org494be3f" class="outline-4">
|
|
<h4 id="org494be3f">Mdescription</h4>
|
|
<div class="outline-text-4" id="text-org494be3f">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
* Measurement description
|
|
** Setup :ignore:
|
|
*Setup*:
|
|
|
|
** Goal :ignore:
|
|
*Goal*:
|
|
|
|
** Measurements :ignore:
|
|
*Measurements*:
|
|
|
|
Three measurements are done:
|
|
| Measurement File | Description |
|
|
|-------------------------+------------------------------|
|
|
<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 |
|
|
|
|
<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:
|
|
| Column number | Description |
|
|
|---------------+-------------------|
|
|
| <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 |
|
|
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org2c8a3d2" class="outline-4">
|
|
<h4 id="org2c8a3d2">Mfigure</h4>
|
|
<div class="outline-text-4" id="text-org2c8a3d2">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
|
|
<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>]
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org21ef93d" class="outline-4">
|
|
<h4 id="org21ef93d">Mfunction</h4>
|
|
<div class="outline-text-4" id="text-org21ef93d">
|
|
<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"><dehaeze.thomas@gmail.com></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}
|
|
:PROPERTIES:
|
|
:header-args:matlab+: :tangle src/${<span class="org-highlight-numbers-number">2</span>:matlab_file_name}.m
|
|
:header-args:matlab+: :comments none :mkdirp yes :eval no
|
|
:END:
|
|
<<sec:$2>>
|
|
|
|
This Matlab function is accessible [[file:src/$2.m][here]].
|
|
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab</span>
|
|
<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
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org8920992" class="outline-4">
|
|
<h4 id="org8920992">Mheader</h4>
|
|
<div class="outline-text-4" id="text-org8920992">
|
|
<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"><dehaeze.thomas@gmail.com></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}
|
|
:PROPERTIES:
|
|
:header-args:matlab+: :tangle matlab/${<span class="org-highlight-numbers-number">2</span>:matlab_file_name}.m
|
|
:header-args:matlab+: :comments org :mkdirp yes
|
|
:END:
|
|
<<sec:$2>>
|
|
|
|
** ZIP file containing the data and matlab files :ignore:
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src bash :exports none :results none</span>
|
|
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
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
|
|
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_note</span>
|
|
All the files (data and Matlab scripts) are accessible [[file:data/$2.zip][here]].
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_note</span>
|
|
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgec784e2" class="outline-4">
|
|
<h4 id="orgec784e2">Minit</h4>
|
|
<div class="outline-text-4" id="text-orgec784e2">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
** Matlab Init :noexport:ignore:
|
|
<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>
|
|
<<matlab-dir>>
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
|
|
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab :exports none :results silent :noweb yes</span>
|
|
<<matlab-init>>
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
|
|
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org27df014" class="outline-4">
|
|
<h4 id="org27df014">Mtable</h4>
|
|
<div class="outline-text-4" id="text-org27df014">
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
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>);
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
sprintf(<span class="org-string">'x = %.2g'</span>, x);
|
|
<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"><dehaeze.thomas@gmail.com></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>
|
|
$0
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="postamble" class="status">
|
|
<p class="author">Author: Dehaeze Thomas</p>
|
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
|
</div>
|
|
</body>
|
|
</html>
|