Presentations from the command line?

presentations

For many jobs, conferences, classes, etc., it is necessary make presentations to show what you need. Graphic programs such as PowerPoint, Impress, etc. have always been talked about, but there are also such interesting tools for CLI as tpp, with which you can also make presentations from the command line.

You may think a priori that this is a disadvantage compared to the other options mentioned, and it is in some cases. But for presentations where you show source code snippets, or commands, then there Tpp can become especially interesting. That is why it seemed good to me to make this tool known to those users who did not know it yet.

*Note: to install the tpp package you can do it from your distro's package manager, like apt-get on Debian and derivatives, dnf on CentOS/Fedora/RHEL and derivatives, etc. Another option is to download and compile it yourself from source code.

Once you have tpp you can start creating the presentations you need from the command line, following these steps:

  • First: create, with your favorite text editor, a text file called example.tpp and inside you can include the presentation header like this:
--author LxA
--title PRIMERA PRESENTACIÓN
--date today
--heading ¿Cómo usar tpp?

  • Second: now a list of items is created using the colors, slide-in, etc. To do this, in the same file you continue adding:
---
--color orange
  *PRESENTACIÓN DE EJEMPLO 
---
--beginslideleft
--color blue
  *PRIMEROS EJEMPLOS
---
--endslideleft
--beginslidetop
--color red
  *SEGUNDOS EJEMPLOS
--color white
--endslidetop

  • Third: You can now continue adding content. For example, imagine you want to display commands or source code in your presentation, then you can do it like this example:
---
--center Source Code

--beginoutput

#!/bin/bash

echo "Hola, esto es una prueba"

--endoutput

  • Fourth: now it's time to add the lines to animate, for example:
--center Shell Output
---
--beginshelloutput
$ perl -e 'print "Hola, esto es un ejemplo.\n"'
Hola, esto es un ejemplo.
--endshelloutput

  • Fifth: you can add more slides, since so far only one has been used:
---
--newpage
--boldon
--revon
--center Please check Perl's Manual Page for more info

To know all the possible tpp options to create your presentations, you can use the manual:

man tpp

More information and obtaining the package – Github site


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

Be the first to comment

Leave a Comment

Your email address will not be published.

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.