-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.txt
130 lines (100 loc) · 3.07 KB
/
demo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{:: Welcome to the jslide demo}
{:: You can write comments between curly brackets followed by
two colons. You can write your comment over multiple lines.}
{:: Syntax for jslide is slightly based on Markdown.}
# Demo {:: Use hashes to control the size of your title}
---- {:: a full line is generated by 4 or more bars}
{:: Curly braces with one colon are used to set attributes.
We can, for instance, change the alignment of the text.
The attributes .left, .right, and .center can be used}
{: .right}
jslide
{:: The text size can by controlled by using hashes, from one
hash # for very large text to up to 8 hashes ######## for
tiny text. Normally the hashes are used for titles and
subsections. Normal text's size can be set by attributes
.normal .small .tine .large, and .huge}
{: .small .center}
by Jan Maes
{:: To start a new slide we use the symbol @}
@
{:: Text can be written in color.}
{: .red .left}
## Red
{: .green .center}
### Green
{: .blue .right}
#### Blue
{: .center}
##### {: .orange}Different {: .yellow} colors {: .gray} are {: .white} possible
{:: Transition to the next slide is also controlled with
attributes. You can use .dia, .split, .fade, .zoom,
or .notransfer}
{: .split}
@
{:: The background can also be customized. Here you can write
a custom glsl shader similar to the shaders from
ShaderToy (https://www.shadertoy.com/).
The syntax for a background shader is ! followed by
the shader code between quotes "".}
!"void mainImage( out vec4 fragColor, in vec2 fragCoord )
{
fragColor = vec4(1, 0.5, 0, 1); // orange backgroun
}"
{:: See subfolder shaders in the code for some example shaders}
{: .right .blue .normal} Itemize
----
{: .left}
{:: There is no syntax for itemized lists. But if you want
each item to appear one after the other, then you can
use @@ instead of recreating the whole slide over and over.}
@@
* first item
@@
* second item
@@
* third item
{: .zoom .white .center}
@
{:: For background shaders, you can also provide a file instead
of the actual shader code.}
!"shaders/fire.frag"
Hot shader
{: .dia}
@
{: .right .cyan}
I like c++
----
{:: Code snippets (between quotes `) have automatic
syntax highlighting. Several languages are available as
an attribute: .asm, .basic, .batch, .c, .cpp, .csharp,
.cmake, .fortran, .html, .java, .json, .javascript, .lisp,
.lua, .metal, .objectivec, .pascal, .python, .ruby,
.rust, .scheme, .swift, .xml }
{:: Several highlighting schemes are available:
.dracula, .solarized, .solarizeddark, .tomorrow,
.tomorrownight, .gruvbox, .gruvboxlight, .acme,
.dark, .matrix, .light, .none}
{: .cpp .dracula}
`
/*
Fibonacci series using recursion
*/
int fib(int n)
{
if (n <= 1)
return n;
return fib(n-1) + fib(n-2);
}
`
@
{: .left .green}
Images
----
{:: Images have the following syntax: ![w h](path/image.ext).
Here w and h are floating point values between 0 and 1
indicating the width and height of the image with respect
to the slide.}
{: .center}
![0.3 0.6](yoda.jpg)
my dog