813 lines
22 KiB
HTML
813 lines
22 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>
|
|
<!-- 2020-05-26 mar. 08:39 -->
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
<title>Doom Emacs Configuration</title>
|
|
<meta name="generator" content="Org mode" />
|
|
<meta name="author" content="Dehaeze Thomas" />
|
|
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
|
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
|
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
|
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
|
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
|
<script type="text/javascript" src="./js/readtheorg.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">
|
|
<h1 class="title">Doom Emacs Configuration</h1>
|
|
<div id="table-of-contents">
|
|
<h2>Table of Contents</h2>
|
|
<div id="text-table-of-contents">
|
|
<ul>
|
|
<li><a href="#org2d95028">LaTeX</a>
|
|
<ul>
|
|
<li><a href="#org8474362">Coordinate</a></li>
|
|
<li><a href="#org59ecb26">Draw</a></li>
|
|
<li><a href="#org7d9566f">Node</a></li>
|
|
<li><a href="#org2bf4fa9">Path</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#org184a71b">Matlab</a>
|
|
<ul>
|
|
<li><a href="#org57b4acd">Clear</a></li>
|
|
<li><a href="#org2e18b5b">Function</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#org1d5c56b">Org Mode</a>
|
|
<ul>
|
|
<li><a href="#orge6f2295">Begin</a></li>
|
|
<li><a href="#orge3638b9">Caption</a></li>
|
|
<li><a href="#org5baebfd">Block</a></li>
|
|
<li><a href="#org5af680d">Custom Box</a></li>
|
|
<li><a href="#orgbc9e91e">Latex Class</a></li>
|
|
<li><a href="#org44e3f97">Bibliography with completion</a></li>
|
|
<li><a href="#orgff33361">Cite</a></li>
|
|
<li><a href="#org2596a7d">Ref</a></li>
|
|
<li><a href="#orgad4ea52">Beamer - CBOX</a></li>
|
|
<li><a href="#orgeceea05">Code</a></li>
|
|
<li><a href="#org07c50c9">Equation</a></li>
|
|
<li><a href="#orgc8d9a5f">Figure</a></li>
|
|
<li><a href="#org110ed8f">Frac</a></li>
|
|
<li><a href="#orgd3f3c7d">Left</a></li>
|
|
<li><a href="#org7443b06">Minipage</a></li>
|
|
<li><a href="#orgeb4af43">Multicolumn</a></li>
|
|
<li><a href="#org88c6f73">Subfigure</a></li>
|
|
<li><a href="#orgc411771">Table</a></li>
|
|
<li><a href="#org9f4cd61">Tikz</a></li>
|
|
<li><a href="#org354eeb6">Tikzfig</a></li>
|
|
<li><a href="#org82996fc">Tikzheader</a></li>
|
|
<li><a href="#orge0d83c7">User-config</a></li>
|
|
<li><a href="#orgdd8424a">User-init</a></li>
|
|
<li><a href="#orgfd7122c">Wrap</a></li>
|
|
<li><a href="#orgca596d4">Matlab Specific</a>
|
|
<ul>
|
|
<li><a href="#org8ec12f3">Mconfig</a></li>
|
|
<li><a href="#orge7bcf86">Mdescription</a></li>
|
|
<li><a href="#orgbc46c85">Mfigure</a></li>
|
|
<li><a href="#orgab32029">Mfunction</a></li>
|
|
<li><a href="#orgc44afd5">Mheader</a></li>
|
|
<li><a href="#orga9eb6ca">Minit</a></li>
|
|
<li><a href="#org3ccf909">Mtable</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org2d95028" class="outline-2">
|
|
<h2 id="org2d95028">LaTeX</h2>
|
|
<div class="outline-text-2" id="text-org2d95028">
|
|
</div>
|
|
<div id="outline-container-org8474362" class="outline-3">
|
|
<h3 id="org8474362">Coordinate</h3>
|
|
<div class="outline-text-3" id="text-org8474362">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :coordinate
|
|
# --
|
|
\coordinate[${1:->}] (${2:name}) at (${3:pointcoordinate});
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org59ecb26" class="outline-3">
|
|
<h3 id="org59ecb26">Draw</h3>
|
|
<div class="outline-text-3" id="text-org59ecb26">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :draw
|
|
# --
|
|
\draw[${1:->}] (${2:point1}) -- (${3:point2});
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org7d9566f" class="outline-3">
|
|
<h3 id="org7d9566f">Node</h3>
|
|
<div class="outline-text-3" id="text-org7d9566f">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :node
|
|
# --
|
|
node[${1:below right}] (${2:name}) {${3:label}};
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org2bf4fa9" class="outline-3">
|
|
<h3 id="org2bf4fa9">Path</h3>
|
|
<div class="outline-text-3" id="text-org2bf4fa9">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :path
|
|
# --
|
|
\path[${1}] (${2:point1}) -- (${3:point2});
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org184a71b" class="outline-2">
|
|
<h2 id="org184a71b">Matlab</h2>
|
|
<div class="outline-text-2" id="text-org184a71b">
|
|
</div>
|
|
<div id="outline-container-org57b4acd" class="outline-3">
|
|
<h3 id="org57b4acd">Clear</h3>
|
|
<div class="outline-text-3" id="text-org57b4acd">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :clear and close all
|
|
# --
|
|
clear; close all; clc;
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org2e18b5b" class="outline-3">
|
|
<h3 id="org2e18b5b">Function</h3>
|
|
<div class="outline-text-3" id="text-org2e18b5b">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :function
|
|
# --
|
|
function [${4:outputs}] = ${1:functionName}(${2:inputs}, ${3:opts_param})
|
|
% $1 - Description
|
|
%
|
|
% Syntax: $1($2, $3)
|
|
%
|
|
% Inputs:
|
|
% - $2 -
|
|
% - $3 - Optionals parameters: structure with the following fields:
|
|
% -
|
|
%
|
|
% Outputs:
|
|
% - $4 -
|
|
|
|
%% Default value for opts
|
|
opts = struct(...
|
|
'${5:outputs}', ${6:default_value} ...
|
|
);
|
|
|
|
if exist('opts_param','var')
|
|
for opt = fieldnames($3)'
|
|
if sum(strcmp(fieldnames(opts), opt{1})) == 1
|
|
opts.(opt{1}) = $3.(opt{1});
|
|
else
|
|
warning(sprintf('%s is not a valid option.', opt{1}));
|
|
end
|
|
end
|
|
end
|
|
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org1d5c56b" class="outline-2">
|
|
<h2 id="org1d5c56b">Org Mode</h2>
|
|
<div class="outline-text-2" id="text-org1d5c56b">
|
|
</div>
|
|
<div id="outline-container-orge6f2295" class="outline-3">
|
|
<h3 id="orge6f2295">Begin</h3>
|
|
<div class="outline-text-3" id="text-orge6f2295">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :LaTeX Environment
|
|
# --
|
|
\begin{${1:equation}}
|
|
$0
|
|
\end{$1}
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orge3638b9" class="outline-3">
|
|
<h3 id="orge3638b9">Caption</h3>
|
|
<div class="outline-text-3" id="text-orge3638b9">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Caption
|
|
# --
|
|
#+caption: $0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org5baebfd" class="outline-3">
|
|
<h3 id="org5baebfd">Block</h3>
|
|
<div class="outline-text-3" id="text-org5baebfd">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Org-Mode Block
|
|
#key: block
|
|
# --
|
|
#+begin_${1:$$(let ((type (yas-choose-value '("src" "example" "quote" "verse" "center" "latex" "html" "ascii"))))
|
|
(if type (concat type (if (equal type "src")
|
|
(concat " " (yas-choose-value '("emacs-lisp" "latex" "python" "sh" "matlab")))))))}
|
|
$0
|
|
#+end_${1:$(car (split-string yas-text))}
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org5af680d" class="outline-3">
|
|
<h3 id="org5af680d">Custom Box</h3>
|
|
<div class="outline-text-3" id="text-org5af680d">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Custom Box
|
|
# --
|
|
#+attr_latex: :options [$1]{${2:blue}}{${3:ams nodisplayskip}}
|
|
#+begin_cbox
|
|
$0
|
|
#+end_cbox
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgbc9e91e" class="outline-3">
|
|
<h3 id="orgbc9e91e">Latex Class</h3>
|
|
<div class="outline-text-3" id="text-orgbc9e91e">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#name: latex-class
|
|
#key: lc
|
|
#expand-env: ((classes (mapcar 'car org-latex-classes)))
|
|
# --
|
|
#+latex_class: ${1:$$(yas-choose-value classes)}
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org44e3f97" class="outline-3">
|
|
<h3 id="org44e3f97">Bibliography with completion</h3>
|
|
<div class="outline-text-3" id="text-org44e3f97">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#name: bibliography with completion
|
|
#key: bib
|
|
# --
|
|
bibliography:${1:$$(yas-choose-value (org-ref-find-bibliography))}
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgff33361" class="outline-3">
|
|
<h3 id="orgff33361">Cite</h3>
|
|
<div class="outline-text-3" id="text-orgff33361">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#name: org-ref cite link
|
|
#key: cite
|
|
# --
|
|
cite:${1:$$(completing-read
|
|
"bibtex key: "
|
|
(let ((bibtex-files (org-ref-find-bibliography)))(bibtex-global-key-alist)))}
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org2596a7d" class="outline-3">
|
|
<h3 id="org2596a7d">Ref</h3>
|
|
<div class="outline-text-3" id="text-org2596a7d">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#name: org-ref ref link with completion
|
|
#key: ref
|
|
# --
|
|
ref:${1:$$(completing-read "label: " (org-ref-get-labels))}
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgad4ea52" class="outline-3">
|
|
<h3 id="orgad4ea52">Beamer - CBOX</h3>
|
|
<div class="outline-text-3" id="text-orgad4ea52">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Beamer Custom Box
|
|
# --
|
|
*** ${1:@@latex:@@} :B_cbox:
|
|
,:PROPERTIES:
|
|
:BEAMER_env: cbox
|
|
:BEAMER_opt: {${2:blue}}{${3:ams nodisplayskip}}
|
|
:END:
|
|
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgeceea05" class="outline-3">
|
|
<h3 id="orgeceea05">Code</h3>
|
|
<div class="outline-text-3" id="text-orgeceea05">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Code
|
|
# --
|
|
#+caption: ${1:Listing Caption}
|
|
#+label: lst:${2:listing_name}
|
|
#+begin_src ${3:listing_language}
|
|
$0
|
|
#+end_src
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org07c50c9" class="outline-3">
|
|
<h3 id="org07c50c9">Equation</h3>
|
|
<div class="outline-text-3" id="text-org07c50c9">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Equation
|
|
# --
|
|
#+name: eq:${1:equation_name}
|
|
\begin{equation}
|
|
$0
|
|
\end{equation}
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgc8d9a5f" class="outline-3">
|
|
<h3 id="orgc8d9a5f">Figure</h3>
|
|
<div class="outline-text-3" id="text-orgc8d9a5f">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Figure
|
|
# --
|
|
#+name: fig:${1:figure_name}
|
|
#+caption: ${2:Figure caption}
|
|
[[file:${3:figs/}$1.${4:pdf}]]
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org110ed8f" class="outline-3">
|
|
<h3 id="org110ed8f">Frac</h3>
|
|
<div class="outline-text-3" id="text-org110ed8f">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :LaTeX Fraction
|
|
# --
|
|
\frac{$1}{$2} $0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgd3f3c7d" class="outline-3">
|
|
<h3 id="orgd3f3c7d">Left</h3>
|
|
<div class="outline-text-3" id="text-orgd3f3c7d">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Left Right mathematical delimitations
|
|
# --
|
|
\left$1 $0 \right$2
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org7443b06" class="outline-3">
|
|
<h3 id="org7443b06">Minipage</h3>
|
|
<div class="outline-text-3" id="text-org7443b06">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :minipage
|
|
# --
|
|
#+BEGIN_EXPORT latex
|
|
\begin{figure}[htbp]
|
|
\centering
|
|
\begin{minipage}[t]{0.49\linewidth}
|
|
#+END_EXPORT
|
|
#+attr_latex: :float nil :width 0.95\linewidth
|
|
$0
|
|
#+BEGIN_EXPORT latex
|
|
\end{minipage}%
|
|
\hfill%
|
|
\begin{minipage}[t]{0.49\linewidth}
|
|
#+END_EXPORT
|
|
#+attr_latex: :float nil :width 0.95\linewidth
|
|
|
|
#+BEGIN_EXPORT latex
|
|
\end{minipage}
|
|
\end{figure}
|
|
#+END_EXPORT
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgeb4af43" class="outline-3">
|
|
<h3 id="orgeb4af43">Multicolumn</h3>
|
|
<div class="outline-text-3" id="text-orgeb4af43">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Multcolumn
|
|
# --
|
|
#+attr_latex: :float multicolumn
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org88c6f73" class="outline-3">
|
|
<h3 id="org88c6f73">Subfigure</h3>
|
|
<div class="outline-text-3" id="text-org88c6f73">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Subfigure
|
|
# --
|
|
#+name: fig:${1:figure_name}
|
|
#+caption: ${2:figure caption}
|
|
#+attr_latex: :environment subfigure :width 0.49\linewidth :align c
|
|
| file:${3:sub_fig_name}.${4:pdf} | file:${5:sub_fig_name}.${6:pdf} |
|
|
| <<fig:$3>> ${7:sub figure caption} | <<fig:$5>> ${8:sub figure caption} |
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgc411771" class="outline-3">
|
|
<h3 id="orgc411771">Table</h3>
|
|
<div class="outline-text-3" id="text-orgc411771">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Table
|
|
# --
|
|
#+name: tab:${1:table_name}
|
|
#+caption: ${2:Table caption}
|
|
#+attr_latex: :environment tabularx :width ${3:\linewidth} :align ${4:lXX}
|
|
#+attr_latex: :center t :booktabs t :float t
|
|
| $0 | | |
|
|
|---+---+---|
|
|
| | | |
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org9f4cd61" class="outline-3">
|
|
<h3 id="org9f4cd61">Tikz</h3>
|
|
<div class="outline-text-3" id="text-org9f4cd61">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Tikz figure
|
|
# --
|
|
#+begin_src latex :file ${1:figure_name}.pdf :post pdf2svg(file=*this*, ext="png") :exports both
|
|
\begin{tikzpicture}
|
|
$0
|
|
\end{tikzpicture}
|
|
#+end_src
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org354eeb6" class="outline-3">
|
|
<h3 id="org354eeb6">Tikzfig</h3>
|
|
<div class="outline-text-3" id="text-org354eeb6">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Tikz Figure
|
|
# --
|
|
#+NAME: fig:${1:figure_name}
|
|
#+HEADER: :headers '("\\\\usepackage{tikz}" "\\\\usepackage{import}" "\\\\import{$HOME/Cloud/thesis/LaTeX/}{config.tex}")
|
|
#+HEADER: :imagemagick t :fit yes :iminoptions -scale 100% -density 150 :imoutoptions -quality 100
|
|
#+HEADER: :results raw replace :buffer no :eval no-export :exports both :mkdirp yes
|
|
#+HEADER: :output-dir ${2:figs}
|
|
#+begin_src latex :file $1.pdf :post pdf2svg(file=*this*, ext="png") :exports both
|
|
\begin{tikzpicture}
|
|
$0
|
|
\end{tikzpicture}
|
|
#+end_src
|
|
|
|
#+NAME: fig:$1
|
|
#+CAPTION: ${3:Caption}
|
|
#+RESULTS: fig:$1
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org82996fc" class="outline-3">
|
|
<h3 id="org82996fc">Tikzheader</h3>
|
|
<div class="outline-text-3" id="text-org82996fc">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Tikz Header
|
|
# --
|
|
* ${1:Title/Description of the figure}
|
|
#+begin_src latex :file ${2:figure_name}.pdf :tangle figs/$2.tex :exports ${3:both}
|
|
\begin{tikzpicture}
|
|
$0
|
|
\end{tikzpicture}
|
|
#+end_src
|
|
|
|
#+name: fig:$2
|
|
#+caption: $1 ([[./figs/$2.png][png]], [[./figs/$2.pdf][pdf]], [[./figs/$2.tex][tex]]).
|
|
#+RESULTS:
|
|
[[file:./figs/$2.png]]
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orge0d83c7" class="outline-3">
|
|
<h3 id="orge0d83c7">User-config</h3>
|
|
<div class="outline-text-3" id="text-orge0d83c7">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf"># -*- mode: snippet -*-
|
|
# name: user-config
|
|
# key: uc
|
|
# --
|
|
#+begin_src emacs-lisp :tangle user-config.el
|
|
$1
|
|
#+end_src
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgdd8424a" class="outline-3">
|
|
<h3 id="orgdd8424a">User-init</h3>
|
|
<div class="outline-text-3" id="text-orgdd8424a">
|
|
<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-orgfd7122c" class="outline-3">
|
|
<h3 id="orgfd7122c">Wrap</h3>
|
|
<div class="outline-text-3" id="text-orgfd7122c">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Wrap
|
|
# --
|
|
#+attr_latex: :float wrap
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgca596d4" class="outline-3">
|
|
<h3 id="orgca596d4">Matlab Specific</h3>
|
|
<div class="outline-text-3" id="text-orgca596d4">
|
|
</div>
|
|
<div id="outline-container-org8ec12f3" class="outline-4">
|
|
<h4 id="org8ec12f3">Mconfig</h4>
|
|
<div class="outline-text-4" id="text-org8ec12f3">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Matlab-Configuration-Header
|
|
# --
|
|
#+PROPERTY: header-args:matlab :session *MATLAB*
|
|
#+PROPERTY: header-args:matlab+ :tangle ${1:filename}.m
|
|
#+PROPERTY: header-args:matlab+ :comments org
|
|
#+PROPERTY: header-args:matlab+ :exports both
|
|
#+PROPERTY: header-args:matlab+ :results none
|
|
#+PROPERTY: header-args:matlab+ :eval no-export
|
|
#+PROPERTY: header-args:matlab+ :noweb yes
|
|
#+PROPERTY: header-args:matlab+ :mkdirp yes
|
|
#+PROPERTY: header-args:matlab+ :output-dir ${2:figs}
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orge7bcf86" class="outline-4">
|
|
<h4 id="orge7bcf86">Mdescription</h4>
|
|
<div class="outline-text-4" id="text-orge7bcf86">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Measurement-Description
|
|
# --
|
|
* Measurement description
|
|
** Setup :ignore:
|
|
*Setup*:
|
|
|
|
** Goal :ignore:
|
|
*Goal*:
|
|
|
|
** Measurements :ignore:
|
|
*Measurements*:
|
|
|
|
Three measurements are done:
|
|
| Measurement File | Description |
|
|
|-------------------------+------------------------------|
|
|
| =mat/data_${1:001}.mat= | $2 |
|
|
|
|
Each of the measurement =mat= file contains one =data= array with 3 columns:
|
|
| Column number | Description |
|
|
|---------------+-------------------|
|
|
| 1 | $3 |
|
|
| 2 | $4 |
|
|
| 3 | Time |
|
|
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgbc46c85" class="outline-4">
|
|
<h4 id="orgbc46c85">Mfigure</h4>
|
|
<div class="outline-text-4" id="text-orgbc46c85">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Matlab-Figure
|
|
# --
|
|
#+begin_src matlab :tangle no :exports results :results file replace
|
|
exportFig('figs/${1:filename}.pdf', 'width', '${2:full}', 'height', '${3:full}');
|
|
#+end_src
|
|
|
|
#+name: fig:$1
|
|
#+caption: $0
|
|
#+RESULTS:
|
|
[[file:figs/$1.png]]
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgab32029" class="outline-4">
|
|
<h4 id="orgab32029">Mfunction</h4>
|
|
<div class="outline-text-4" id="text-orgab32029">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Matlab-Function
|
|
# --
|
|
* ${1:Function Name}
|
|
:PROPERTIES:
|
|
:header-args:matlab+: :tangle src/${2: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]].
|
|
|
|
#+begin_src matlab
|
|
function [${4:in_data}] = $2(${3:in_data})
|
|
% $2 - $0
|
|
%
|
|
% Syntax: [$4] = $2($3)
|
|
%
|
|
% Inputs:
|
|
% - $3 -
|
|
%
|
|
% Outputs:
|
|
% - $4 -
|
|
|
|
end
|
|
#+end_src
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgc44afd5" class="outline-4">
|
|
<h4 id="orgc44afd5">Mheader</h4>
|
|
<div class="outline-text-4" id="text-orgc44afd5">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Matlab-Header
|
|
# --
|
|
* ${1:Heading Name}
|
|
:PROPERTIES:
|
|
:header-args:matlab+: :tangle matlab/${2:matlab_file_name}.m
|
|
:header-args:matlab+: :comments org :mkdirp yes
|
|
:END:
|
|
<<sec:$2>>
|
|
|
|
** ZIP file containing the data and matlab files :ignore:
|
|
#+begin_src bash :exports none :results none
|
|
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
|
|
#+end_src
|
|
|
|
#+begin_note
|
|
All the files (data and Matlab scripts) are accessible [[file:data/$2.zip][here]].
|
|
#+end_note
|
|
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orga9eb6ca" class="outline-4">
|
|
<h4 id="orga9eb6ca">Minit</h4>
|
|
<div class="outline-text-4" id="text-orga9eb6ca">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Matlab-Init
|
|
# --
|
|
** Matlab Init :noexport:ignore:
|
|
#+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)
|
|
<<matlab-dir>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :exports none :results silent :noweb yes
|
|
<<matlab-init>>
|
|
#+end_src
|
|
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org3ccf909" class="outline-4">
|
|
<h4 id="org3ccf909">Mtable</h4>
|
|
<div class="outline-text-4" id="text-org3ccf909">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
|
#name :Matlab-Table
|
|
# --
|
|
#+begin_src matlab :exports results :results value table replace :tangle no :post addhdr(*this*)
|
|
data2orgtable(${1:data}, {${2:'rowlabel'}}, {${3:'collabel'}}, ' %.1f ');
|
|
#+end_src
|
|
$0
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="postamble" class="status">
|
|
<p class="author">Author: Dehaeze Thomas</p>
|
|
<p class="date">Created: 2020-05-26 mar. 08:39</p>
|
|
</div>
|
|
</body>
|
|
</html>
|