d0c-s4vage / lookatme

An interactive, terminal-based markdown presenter
https://lookatme.readthedocs.io/en/latest/
MIT License
2.08k stars 61 forks source link

Export to pdf #148

Open Irubataru opened 1 year ago

Irubataru commented 1 year ago

I just held a presentation with lookatme and it was great. I really like the tool, and I think the result is fantastic. The problem is that after I finished the participants obviously want the presentation. I can send them the markdown file, but it just isn't the same thing, especially if the audience isn't that tech savvy.

So I was wondering if there is a way to export it to a pdf presentation? I understand this is hard as it depends on your terminal settings, fonts (I use nerd font symbols in the presentation to spice it up a bit), colours to an extent, etc, so I am not sure it would even make sense to have it inside lookatme, but maybe be an external tool.

What I did now was do screenshots of my terminal, one slide at a time, convert them to pdf and concat them to the final presentation. This feels automatable, but I am not sure I have the right idea, so I am asking here if anyone else can think of something smart.

d0c-s4vage commented 1 year ago

You know, there should be a way that you can do this. A few things that I've been thinking about:

I've actually been wanting to be able to export from a lookatme presentation to html, including automatically doing asciinema recordings of any embedded terminals, etc. If I did this, it would be trivial to go from the generated html to pdf.

Irubataru commented 1 year ago

That is really cool!

I don't know anything about pandoc, but is it possible to keep the font and fontsize? One thing that is a bit unfortunate about asciinema recordings (and some other terminal recording software) is that it doesn't have a nerdfont (or ideally my specific font), so things look bad when you have a lot of those symbols in your prompts, editor, tools, etc.