static void blit(const array<char, 40 * 25>& data) {
copy(data.begin(), data.end(),
reinterpret_cast<char*>(0x0400));
}
void draw(Point, string_view);
Make content appear incrementally
{{% fragment %}} One {{% /fragment %}}
{{% fragment %}} **Two** {{% /fragment %}}
{{% fragment %}} Three {{% /fragment %}}
Press Space
to play!
A fragment can accept two optional parameters:
class
: use a custom style (requires definition in custom CSS)weight
: sets the order in which a fragment appearslet a = 1;
let b = 2;
let c = x => 1 + 2 + x;
c(3);
def main():
print("Hello, World!")
for i in range(10):
print(i)
Right Arrow
or Space
Left Arrow
Home
End
Esc
S
F
Alt + Click
Inline code: variable
Code block:
porridge = "blueberry"
if porridge == "blueberry":
print("Eating...")
In-line math: $x + y = z$
Block math:
$$ f\left( x \right) = \frac{{2\left( {x + 4} \right)\left( {x - 4} \right)}}{{\left( {x + 4} \right)\left( {x + 1} \right)}} $$
Add speaker notes to your presentation
{{% speaker_note %}}
- Only the speaker can read these notes
- Press `S` key to view
{{% /speaker_note %}}
Press the S
key to view the speaker notes!
Customize the slide style and background
{{< slide background-image="/media/boards.jpg" >}}
{{< slide background-color="#0000FF" >}}
{{< slide class="my-style" >}}
Let’s make headers navy colored.
Create assets/css/reveal_custom.css
with:
.reveal section h1,
.reveal section h2,
.reveal section h3 {
color: navy;
}
#include <iostream>
int main() {
std::cout << "Hello, World!";
return 0;
}