Created Wednesday 16 October 2019
Quick presentation using Wize_S5 export.
Every H1 header will start a new slide.
This export uses special H4 and H5 headers for in document configuration, these headers begins with the "#" character and are never directly displayed. We will refer these as #H4 and #H5 in the following
The content of the first two #H4 on the page, will be placed in the footer. The #H5 headers will be interpreted as layout informations as demonstrated later.
will be of course normally displayed!
The presentation will keep most of the current Wize theme, however the behaviour will be somewhat different.
All customization is done into the common-theme directory.
The specific Wize_S5 customization is done with four files :
Here's a table example :
First Name | Name | Favorite color | |
---|---|---|---|
Nathalie | Charpentier | nathalie.charpentier@lasbas.com | Green |
Marcel | Dupont | marcel.dupont@nothere.com | Blue |
Joe | Smith | joe.smith@here.com | Orange |
Electra | Cigales | electra.cigales@nowhere.com | Red |
It uses the current theme colors.
The relative font-size used in tables can be defined in zim-pres-variables.css file.
By default, pictures will be centered and resized to an height of approximately 8 characters. This value can be modified into zim-pres-variables.css
Code will be syntax highlighted but the portion of code that can be actually displayed is limited.
#include <iostream>
int main(int argc, char *argv[]) {
/* An annoying "Hello World" example */
for (auto i = 0; i < 0xFFFF; i++)
cout << "Hello, World!" << endl;
char c = '\n';
unordered_map <string, vector<string> > m;
m["key"] = "\\\\"; // this is an error
return -2e3 + 12l;
}
The relative size of the used font for code can be defined in zim-pres-variables.css file.
Having pictures, tables, lists and code all displayed centered the same way can be boring in a presentation, this is why there's the ability to somewhat customize these by using #H5.
For example :
Adding two #H5 with "#left" and "#height5em" after the text "For example :" just before the image, makes it floating left, which means that text will flow around it. And we also specified a height of 5 characters.
This is a screnshot of how the previous appeared in zim
Every #H5 header must contain only one instruction.
The following configuration tags are available :
These applied on
These will respectively make the following object float left or right
This tag will only be usefull with other objects than images, it will apply a XX% factor on the font-size.
These tags use a unit. This unit better be a relative one such as em (character), vh (viewport height), vw (viewport width)
This tag will force the height of an object to value XX within unit UU. This tag is mainly intended to be used with images.
This tag will force the width of an object to value XX within unit UU. It also force height to auto.
First Name | Name | Favorite color | |
---|---|---|---|
Nathalie | Charpentier | nathalie.charpentier@lasbas.com | Green |
Marcel | Dupont | marcel.dupont@nothere.com | Blue |
Joe | Smith | joe.smith@here.com | Orange |
Electra | Cigales | electra.cigales@nowhere.com | Red |
Here we used #width50vw, #right and #fontsize90 before this table, which means, that we want it to float on the right and to have its width equal be 50% of the viewport width (even if it seems to be more due to margins). We also apply a 90% sizing on the font.
#include <iostream>
int main(int argc, char *argv[]) {
/* An annoying "Hello World" example */
for (auto i = 0; i < 0xFFFF; i++)
cout << "Hello, World!" << endl;
char c = '\n';
unordered_map <string, vector<string> > m;
m["key"] = "\\\\"; // this is an error
return -2e3 + 12l;
}
Here we used #width70vw and #fontsize80 before this block code, sizing it to 70% of viewport width.