Publish to html

This commit is contained in:
2021-02-10 18:02:02 +01:00
parent ad36127789
commit a6864b6e77
17 changed files with 714 additions and 377 deletions

View File

@@ -92,7 +92,7 @@ $0
#name :LaTeX Environment
# --
\begin{${1:equation}}
$0
$0
\end{$1}
#+end_src
@@ -342,9 +342,9 @@ $0
#name :Tikz figure
# --
,#+begin_src latex :file ${1:figure_name}.pdf :post pdf2svg(file=*this*, ext="png") :exports both
\begin{tikzpicture}
$0
\end{tikzpicture}
\begin{tikzpicture}
$0
\end{tikzpicture}
,#+end_src
#+end_src
@@ -359,9 +359,9 @@ $0
#+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}
\begin{tikzpicture}
$0
\end{tikzpicture}
,#+end_src
#+NAME: fig:$1
@@ -376,9 +376,9 @@ $0
# --
,* ${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}
\begin{tikzpicture}
$0
\end{tikzpicture}
,#+end_src
#+name: fig:$2
@@ -496,18 +496,18 @@ $0
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 -
function [${4:in_data}] = $2(${3:in_data})
% $2 - $0
%
% Syntax: [$4] = $2($3)
%
% Inputs:
% - $3 -
%
% Outputs:
% - $4 -
end
end
,#+end_src
#+end_src
@@ -525,17 +525,17 @@ This Matlab function is accessible [[file:src/$2.m][here]].
,** 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
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]].
All the files (data and Matlab scripts) are accessible [[file:data/$2.zip][here]].
,#+end_note
$0
@@ -548,11 +548,11 @@ $0
# --
,** 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>>
<<matlab-dir>>
,#+end_src
,#+begin_src matlab :exports none :results silent :noweb yes
<<matlab-init>>
<<matlab-init>>
,#+end_src
$0
@@ -564,7 +564,7 @@ $0
#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 ');
data2orgtable(${1:data}, {${2:'rowlabel'}}, {${3:'collabel'}}, ' %.1f ');
,#+end_src
$0
#+end_src
@@ -575,7 +575,7 @@ $0
#name :Matlab-Value
# --
,#+begin_src matlab :results value replace :exports results :tangle no
sprintf('x = %.2g', x);
sprintf('x = %.2g', x);
,#+end_src
$0
#+end_src
@@ -591,6 +591,6 @@ $0
:END:
,#+begin_src bash :tangle ~/.local/bin/$1
$0
$0
,#+end_src
#+end_src