cover | ||||||
---|---|---|---|---|---|---|
|
Yo can write text, in-line math
$$ \int_0^{x} f'(x)~ dx = f(x) - f(0) $$
out of line.
! vspace - 1 ! pause ! mod - 1, color=RED
Additionally, you can write colorful things
! pause
a1 = Arrow(start=LEFT+DOWN/3, end=2.5*LEFT+DOWN/3, color=GRAY)
t1 = (p.add_text(r"Also, this space here was added using a `vspace`")
.next_to(a1, RIGHT))
p.add([a1, t1], box="floating")
p.pause()
a2 = Arrow(start=ORIGIN, end=1.2*UP, color=GRAY).next_to(t1, DOWN)
t2 = p.add_text(r"And this was written directly in Python").next_to(a2, DOWN)
p.add([a2, t2], box="floating")
p.pause()
p.remove([a1, a2, t1, t2])
You can even do other things with the text and math
! pause ! mod - 1, rotate=-90 ! mod - 2, font_size=60 ! bec - 3, p.text("$\pi$")
! def grid - [['A', 'C'], ['B', 'C'], ['D', 'D']], height_ratios=[1, 1, 0.1]
! set box - 'A', arrange='center'
This is a box. $$ \int 2 ~d x = 2t $$
! set box - 'B'
! add image - 'example.png', height='100%', draft_mode=True
! set box - 'C'
Boxes can have different shapes
! add image - 'example.png', width='100%', draft_mode=False, arrange='center'
! pause ! set box - 'D', arrange='center' ! add - p.named_boxes.content.get_bbox_grid(), box="floating"
These are the defined boxes
! set box - 'content', arrange='center'
This text is writen in a `fragment` codeblock.
You can change the properties of the fragments on the fly.
! pause
**You can change their [color](color=RED)**
! mod - 1, color=RED ! pause
**You can change their _rotation_**
! mod - 1, rotate=180*DEGREES ! pause
**Or even change the whole text**
This text was change using an `overwrite` codeblock.
If you are only interested in alternating between different options you can use an alternate
codeblock:
>! add image - 'example.png', height='80%'
---
>! add image - 'example.png', height='80%', draft_mode=True
---
$$
\vec{F} = m\vec{a} [-](font_size=100)
$$