prez
is a simple presentation tool
Installation
use git to install the newest version
git clone https://github.com/krzysckh/prez
cd prez
make
sudo make install
Syntax
Use a tilde (~) and a single lettter command to set text attributes. After writing text, use the same letter, but uppercase to terminate it.
command | description | usage example |
---|---|---|
p | paragraph | ~pThis is a paragraph!~P |
h | header | ~hThis is a header!~H |
b | bold | ~bThis text is bold!~B |
c | cursive | ~cThis text is cursive!~C |
i | image | ~i/path/to/image.png~I |
|\n | code block | ~|\n/*This is a code block*/~| |
- | next slide | ~- |
Configuration
Configuration file is stored in ~/.config/prez/prez.cfg
Syntax:
option (tab) value
Configuration options:
option | value | description |
---|---|---|
padding | integer | sets padding for text |
header_height | sets height of the header (read Handlers section) | |
code_tabsz | sets \t size for default code block handler (read Handlers section) | |
image_handler | prez or program -args |
sets image handler (read Handlers section) |
header_handler | sets header handler (read Handlers section) | |
code_handler | sets code block handler (read Handlers section) | |
code_tmp_fname | /tmp/filename |
sets location for temporary code block files |
Handlers
-
image_handler
sets a program to run to show an image. It runs program with path to the image at the end. Defaults to "prez". If set as such, it will just show[IMAGE: filename]
.Recommended:
-
imcat - Preview any size image in a terminal window.
-
img2txt - Colour ASCII Art Library.
-
sxiv - Simple X Image Viewer.
-
prez_w3m_handler
-prez_w3m_handler
is an experimental handler that usesw3mimgdisplay
to show images in the terminal. To use it copyprez_w3m_handler
to somewhere in the$PATH
, and setimage_handler
toprez_w3m_handler.
-
-
header_handler
sets a program to run when rendering a header. It runs program with path to the image at the end. Defaults toprez
. If set as such, it will render a rather ugly header with letters defined inchars.h
.Recommended:
-
figlet - FIGlet is a program for making large letters out of ordinary text.
-
toilet - The TOIlet project attempts to create a free replacement for the FIGlet utility.
-
banner - The banner program on Unix and Unix-like operating systems outputs a large ASCII art version of the text that is supplied to it as its program arguments.
-
-
code_handler
sets a program to run when rendering code blocks. It runs program with code_tmp_fname at the end. Defaults to "prez". If set as such, it will render code with padding set to3*padding
. Also it will usecode_tabsz
to set tab size (defaults to 8).Recommended:
-
highlight - Highlight converts sourcecode to HTML, [...] and terminal escape sequences with coloured syntax highlighting.
Recommended setting:
highlight -O ansi --stdout --syntax <language>
-
Read more, and get it here.