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 >
2020-11-03 16:27:09 +01:00
<!-- 2020 - 11 - 03 mar. 16:26 -->
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 = "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 >
2020-11-03 16:27:09 +01:00
< li > < a href = "#org23a68e2" > Minipage Figures< / a > < / li >
< li > < a href = "#orgeef052f" > Wrap Figure< / a > < / li >
2020-05-26 08:40:15 +02:00
< 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" >
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" > < 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});
2020-05-26 08:40:15 +02:00
$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" >
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" > < 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});
2020-05-26 08:40:15 +02:00
$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" >
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" > < 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}};
2020-05-26 08:40:15 +02:00
$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" >
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" > < 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});
2020-05-26 08:40:15 +02:00
$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" >
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" > < 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 >
2020-05-26 08:40:15 +02:00
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" >
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" > < 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})
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 >
< 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" >
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" > < 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}}
2020-05-26 08:40:15 +02:00
$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" >
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" > < 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 >
2020-05-26 08:40:15 +02:00
< / 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" >
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" > < 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 >
2020-05-26 08:40:15 +02:00
< / 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" >
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" > < 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 >
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 >
< 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" >
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 >
< 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" >
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 >
< 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" >
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 >
< 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" >
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 >
< 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" >
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" > < 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:
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 >
< 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" >
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" > < 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 >
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 >
< 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" >
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" > < 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 >
2020-05-26 08:40:15 +02:00
\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" >
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" > < 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}]]
2020-05-26 08:40:15 +02:00
$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" >
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" > < 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 >
2020-05-26 08:40:15 +02:00
\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" >
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" > < 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 >
2020-05-26 08:40:15 +02:00
\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" >
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" > < 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 >
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 >
< div id = "outline-container-org23a68e2" class = "outline-3" >
< h3 id = "org23a68e2" > Minipage Figures< / h3 >
< div class = "outline-text-3" id = "text-org23a68e2" >
< 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-orgeef052f" class = "outline-3" >
< h3 id = "orgeef052f" > Wrap Figure< / h3 >
< div class = "outline-text-3" id = "text-orgeef052f" >
< 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
2020-05-26 08:40:15 +02:00
< / 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" >
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" > < 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 >
2020-05-26 08:40:15 +02:00
$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" >
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" > < 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} |
2020-05-26 08:40:15 +02:00
$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" >
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" > < 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 >
2020-05-26 08:40:15 +02:00
| $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" >
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" > < 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 >
2020-05-26 08:40:15 +02: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 >
< 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" >
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" > < 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 >
2020-05-26 08:40:15 +02: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 >
< 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" >
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" > < 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 >
2020-05-26 08:40:15 +02: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 >
< 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" >
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 >
< 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" >
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" > < 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 >
2020-05-26 08:40:15 +02:00
$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" >
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" > < 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 >
2020-05-26 08:40:15 +02:00
$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" >
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" > < 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 >
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 >
< 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" >
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" > < 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 >
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 >
< 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" >
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" > < 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}
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:
< < sec:$2> >
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 >
< 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})
2020-05-26 08:40:15 +02:00
% $2 - $0
%
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > % Syntax: < / span > [< span class = "org-constant" > $4< / span > ] = $2($3)
2020-05-26 08:40:15 +02:00
%
% 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 >
< 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" >
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" > < 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}
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:
< < sec:$2> >
** 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 >
2020-05-26 08:40:15 +02: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 >
2020-05-26 08:40:15 +02: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 >
< 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" >
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" > < 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 >
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 >
2020-05-26 08:40:15 +02:00
< < matlab-dir> >
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 >
2020-05-26 08:40:15 +02:00
< < matlab-init> >
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 >
< 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" >
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" > < 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 >
2020-05-26 08:40:15 +02:00
$0
< / pre >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< div id = "postamble" class = "status" >
< p class = "author" > Author: Dehaeze Thomas< / p >
2020-11-03 16:27:09 +01:00
< p class = "date" > Created: 2020-11-03 mar. 16:26< / p >
2020-05-26 08:40:15 +02:00
< / div >
< / body >
< / html >