Skip to content

Commit 056b7c6

Browse files
committed
support for latex macros
1 parent b064937 commit 056b7c6

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

media/macros.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
% vectors
2+
\newcommand{\vq}{\mathbf{q}} % generic state
3+
\newcommand{\vu}{\mathbf{u}} % control/action q
4+
5+
% matrix
6+
\newcommand{\mA}{\mathbf{A}} %
7+
8+
% sets
9+
\newcommand{\sQ}{\mathcal{Q}} % configuration space X

slides.qmd

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ bibliography: references.bib
88

99
format:
1010
revealjs:
11-
theme: media/custom.scss
11+
theme: [dark, media/custom.scss]
1212
revealjs-plugins:
1313
- pointer
1414

15-
theme: dark # dark, default
1615
title-slide-attributes:
1716
data-background-image: media/title_white.svg
1817
data-background-size: contain
1918
---
2019

20+
## Math definitions {visibility="hidden"}
21+
22+
{{< include media/macros.tex >}}
23+
2124
# Layout
2225

2326
## Lists
@@ -97,10 +100,10 @@ text
97100

98101
$$
99102
\begin{align}
100-
\arg\min_{T, u(t), q(t)} \quad J(T, u(t), q(t)) \quad \text{s.t.}\\
101-
q(0) = q_{start} \quad q(T) = q_{goal}\\
102-
\mathcal{B}(q(t)) \subset \mathcal{W}_{free} \quad \forall t \in [0, T]\\
103-
\dot q(t) = f(q(t), u(t)) \quad \forall t \in [0, T)
103+
\arg\min_{T, \vu(t), \vq(t)} \quad J(T, \vu(t), \vq(t)) \quad \text{s.t.}\\
104+
\vq(0) = \vq_{start} \quad \vq(T) = \vq_{goal}\\
105+
\mathcal{B}(\vq(t)) \subset \mathcal{W}_{free} \quad \forall t \in [0, T]\\
106+
\mathbf{\dot{q}}(t) = f(\vq(t), \vu(t)) \quad \forall t \in [0, T)
104107
\end{align}
105108
$$
106109

0 commit comments

Comments
 (0)