302 lines
7.9 KiB
Org Mode
302 lines
7.9 KiB
Org Mode
#+TITLE: Test File for the Org Mode Theme
|
|
#+SUBTITLE: Simple set of CSS and JS files
|
|
:DRAWER:
|
|
#+STARTUP: overview
|
|
|
|
#+LANGUAGE: en
|
|
#+EMAIL: dehaeze.thomas@gmail.com
|
|
#+AUTHOR: Dehaeze Thomas
|
|
|
|
#+HTML_LINK_HOME: ../index.html
|
|
#+HTML_LINK_UP: ../index.html
|
|
|
|
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="dist/style.css"/>
|
|
#+HTML_HEAD: <script type="text/javascript" src="dist/script.js"></script>
|
|
|
|
#+HTML_MATHJAX: align: center tagside: right font: TeX
|
|
|
|
#+PROPERTY: header-args:matlab :session *MATLAB*
|
|
#+PROPERTY: header-args:matlab+ :comments org
|
|
#+PROPERTY: header-args:matlab+ :results none
|
|
#+PROPERTY: header-args:matlab+ :exports both
|
|
#+PROPERTY: header-args:matlab+ :eval no-export
|
|
#+PROPERTY: header-args:matlab+ :output-dir figs
|
|
#+PROPERTY: header-args:matlab+ :tangle no
|
|
#+PROPERTY: header-args:matlab+ :mkdirp yes
|
|
|
|
#+PROPERTY: header-args:shell :eval no-export
|
|
|
|
#+PROPERTY: header-args:latex :headers '("\\usepackage{tikz}" "\\usepackage{import}" "\\import{$HOME/Cloud/tikz/org/}{config.tex}")
|
|
#+PROPERTY: header-args:latex+ :imagemagick t :fit yes
|
|
#+PROPERTY: header-args:latex+ :iminoptions -scale 100% -density 150
|
|
#+PROPERTY: header-args:latex+ :imoutoptions -quality 100
|
|
#+PROPERTY: header-args:latex+ :results file raw replace
|
|
#+PROPERTY: header-args:latex+ :buffer no
|
|
#+PROPERTY: header-args:latex+ :eval no-export
|
|
#+PROPERTY: header-args:latex+ :exports results
|
|
#+PROPERTY: header-args:latex+ :mkdirp yes
|
|
#+PROPERTY: header-args:latex+ :output-dir figs
|
|
#+PROPERTY: header-args:latex+ :post pdf2svg(file=*this*, ext="png")
|
|
:END:
|
|
|
|
#+begin_abstract
|
|
Simple Abstract.
|
|
#+end_abstract
|
|
|
|
* Normal Markup
|
|
|
|
Here is some text in *bold*, now with _underline_ and now some =inline code=.
|
|
|
|
Finally some /italic/ text.
|
|
|
|
A link to a footnote[fn:1] and to another footnote[fn:2].
|
|
|
|
* Lists
|
|
** Unordered List
|
|
|
|
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
- Nam aliquet euismod viverra.
|
|
- Phasellus turpis nisi, faucibus a orci et, faucibus fermentum ligula.
|
|
|
|
** Ordered List
|
|
|
|
1. In libero odio, imperdiet eget ex a, vulputate suscipit tellus.
|
|
2. Etiam sed leo ex.
|
|
3. Integer eu rutrum turpis.
|
|
|
|
** Nested Lists
|
|
|
|
- Nulla facilisi.
|
|
- Donec vulputate risus ut lectus bibendum, vitae fringilla odio tempus.
|
|
1. In libero odio, imperdiet eget ex a, vulputate suscipit tellus.
|
|
2. Etiam sed leo ex.
|
|
- Nulla facilisi.
|
|
- Donec vulputate risus ut lectus bibendum, vitae fringilla odio tempus.
|
|
3. Integer eu rutrum turpis.
|
|
- Ut porta, quam id mattis feugiat, augue mauris bibendum sapien, a pulvinar mi lorem vitae nunc.
|
|
- Integer eu rutrum turpis.
|
|
- Sed pretium mattis nibh, vel lobortis augue semper vel.
|
|
|
|
** Definition List
|
|
- Lorem ipsum :: dolor sit amet, consectetur adipiscing elit. Mauris laoreet
|
|
sollicitudin venenatis. Duis sed consequat dolor.
|
|
- Etiam feugiat :: pharetra sapien et semper. Nunc ornare lacus sit amet massa
|
|
auctor, vitae aliquam eros interdum. Mauris arcu ante, imperdiet vel purus
|
|
ac, bibendum faucibus diam. Ut blandit nec mi at ultricies. Donec eget
|
|
mattis nisl. In sed nibh felis. Cras quis convallis orci.
|
|
- Sed aliquam :: odio sed faucibus aliquam, arcu augue elementum justo, ut
|
|
vulputate ligula sem in augue. Maecenas ante felis, pellentesque auctor
|
|
semper non, eleifend quis ante. Fusce enim orci, suscipit ac dapibus et,
|
|
fermentum eu tortor. Duis in facilisis ante, quis faucibus dolor. Etiam
|
|
maximus lorem quis accumsan vehicula.
|
|
|
|
* Headlines
|
|
** Second level Headline
|
|
*** Third level Headline
|
|
**** Fourth level Headline
|
|
***** Fifth level Headline
|
|
****** Sixth level Headline
|
|
*** Third level Headline
|
|
** Second level Headline
|
|
** Second level Headline
|
|
|
|
* Maths
|
|
Here is some inline mathematics: $z = 2$.
|
|
|
|
Unumbered equation:
|
|
\[ F(x) = \int_0^x f(t) dt \]
|
|
|
|
Using the =equation= environment:
|
|
\begin{equation}
|
|
F(s) = \int_0^\infty f(t) e^{-st} dt \label{eq:numbered}
|
|
\end{equation}
|
|
|
|
Using the =align= environment:
|
|
\begin{align}
|
|
\mathcal{F}(a) &= \frac{1}{2\pi i}\oint_\gamma \frac{f(z)}{z - a}\,dz\\
|
|
\int_D (\nabla\cdot \mathcal{F})\,dV &=\int_{\partial D}\mathcal{F}\cdot n\, dS
|
|
\end{align}
|
|
|
|
* Quote
|
|
#+begin_quote
|
|
This is a quote
|
|
#+end_quote
|
|
|
|
* Blocks
|
|
|
|
#+begin_seealso
|
|
=seealso= block.
|
|
#+end_seealso
|
|
|
|
#+begin_hint
|
|
=hint= block.
|
|
#+end_hint
|
|
|
|
#+begin_definition
|
|
=definition= block.
|
|
#+end_definition
|
|
|
|
#+begin_exampl
|
|
=exampl= block.
|
|
#+end_exampl
|
|
|
|
#+begin_question
|
|
=question= block.
|
|
#+end_question
|
|
|
|
#+begin_summary
|
|
=summary= block.
|
|
#+end_summary
|
|
|
|
#+begin_important
|
|
=important= block.
|
|
#+end_important
|
|
|
|
#+begin_caution
|
|
=caution= block.
|
|
#+end_caution
|
|
|
|
#+begin_warning
|
|
=warning= block.
|
|
#+end_warning
|
|
|
|
* Source Blocks
|
|
** 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
|
|
|
|
** Figures
|
|
#+begin_src matlab
|
|
t = 0:0.01:5; % Time [s]
|
|
x = sin(2*pi*t); % Output Voltage [V]
|
|
#+end_src
|
|
|
|
#+begin_src matlab
|
|
figure;
|
|
plot(t, x);
|
|
xlabel('Time [s]'); ylabel('Voltage [V]');
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports results :results file replace
|
|
exportFig('figs/matlab_fig_example.pdf', 'width', 'wide', 'height', 'normal');
|
|
#+end_src
|
|
|
|
#+name: fig:matlab_fig_example
|
|
#+caption: Matlab Figure
|
|
#+RESULTS:
|
|
[[file:figs/matlab_fig_example.png]]
|
|
|
|
** Table Result
|
|
|
|
#+begin_src matlab
|
|
x = 1:10;
|
|
y = x.^2;
|
|
#+end_src
|
|
|
|
#+begin_src matlab :exports results :results value table replace :tangle no :post addhdr(*this*)
|
|
data2orgtable([x', y'], {}, {'$x$', '$y = x^2$'}, ' %.0f ');
|
|
#+end_src
|
|
|
|
#+name: tab:table_name
|
|
#+caption: Table caption
|
|
#+RESULTS:
|
|
| $x$ | $y = x^2$ |
|
|
|-----+-----------|
|
|
| 1 | 1 |
|
|
| 2 | 4 |
|
|
| 3 | 9 |
|
|
| 4 | 16 |
|
|
| 5 | 25 |
|
|
| 6 | 36 |
|
|
| 7 | 49 |
|
|
| 8 | 64 |
|
|
| 9 | 81 |
|
|
| 10 | 100 |
|
|
|
|
** Inline Results
|
|
|
|
#+begin_src matlab :results value replace
|
|
sqrt(2)
|
|
#+end_src
|
|
|
|
#+RESULTS:
|
|
: 1.4142
|
|
|
|
** Text Results
|
|
|
|
#+begin_src matlab :results output replace
|
|
y
|
|
#+end_src
|
|
|
|
#+RESULTS:
|
|
: y =
|
|
: 1 4 9 16 25 36 49 64 81 100
|
|
|
|
* Images
|
|
|
|
#+HTML: <details><summary>Code</summary>
|
|
#+begin_src latex :file general_control_names.pdf :exports both
|
|
\begin{tikzpicture}
|
|
|
|
% Blocs
|
|
\node[block={2.0cm}{2.0cm}] (P) {$P$};
|
|
\node[block={1.5cm}{1.5cm}, below=0.7 of P] (K) {$K$};
|
|
|
|
% Input and outputs coordinates
|
|
\coordinate[] (inputw) at ($(P.south west)!0.75!(P.north west)$);
|
|
\coordinate[] (inputu) at ($(P.south west)!0.25!(P.north west)$);
|
|
\coordinate[] (outputz) at ($(P.south east)!0.75!(P.north east)$);
|
|
\coordinate[] (outputv) at ($(P.south east)!0.25!(P.north east)$);
|
|
|
|
% Connections and labels
|
|
\draw[<-] (inputw) node[above left, align=right]{(weighted)\\exogenous inputs\\$w$} -- ++(-1.5, 0);
|
|
\draw[<-] (inputu) -- ++(-0.8, 0) |- node[left, near start, align=right]{control signals\\$u$} (K.west);
|
|
|
|
\draw[->] (outputz) node[above right, align=left]{(weighted)\\exogenous outputs\\$z$} -- ++(1.5, 0);
|
|
\draw[->] (outputv) -- ++(0.8, 0) |- node[right, near start, align=left]{sensed output\\$v$} (K.east);
|
|
\end{tikzpicture}
|
|
#+end_src
|
|
#+HTML: </details>
|
|
|
|
#+name: fig:general_control_names
|
|
#+caption: Figure caption
|
|
#+RESULTS:
|
|
[[file:figs/general_control_names.png]]
|
|
|
|
* Tables
|
|
|
|
#+name: tab:table_name
|
|
#+caption: Table caption
|
|
| a | b | c |
|
|
|-----+-------------------------+-----|
|
|
| x | $\int_0^\infty f(x) dx$ | 0 |
|
|
| y | sdf | sdf |
|
|
| sdf | sdf | sd |
|
|
| fsd | df | sdf |
|
|
|
|
* Details
|
|
|
|
#+begin_question
|
|
What is the approximate diameter of the earth?
|
|
|
|
#+HTML: <details><summary>Answer</summary>
|
|
It is approximately 12,742 km
|
|
#+HTML: </details>
|
|
#+end_question
|
|
|
|
* Videos
|
|
|
|
yt:A7wHSr6GRnc
|
|
|
|
* Links
|
|
|
|
* Footnotes
|
|
|
|
[fn:1] A long foot note. Lorem ipsum dolor sit amet, consectetur adipiscing elit. With a reference to Figure [[fig:general_control_names]].
|
|
[fn:2] An other footnote.
|