Giter Site home page Giter Site logo

Comments (6)

Davidyz avatar Davidyz commented on June 11, 2024 1

Yes, this works for my issue. It would be nice if I could simply do <!-- new_lines --> (without an argument) for one single new line but the current implementation is totally good enough for me. Thanks for the lightning-fast reply & implementation.

from presenterm.

mfontanini avatar mfontanini commented on June 11, 2024

I'll start by saying I doubt you'll ever get a good looking slide with that combination of a gigantic terminal and 3 lines of content :P. I do acknowledge this problem though, I'm just not sure what would be the ideal way to display this. e.g. where would you add the padding? Pad the first "in fact" line down by how much, then how much padding until the title? Then how much padding after that? I don't think you can just evenly distribute them as that'll look bad in a different way IMO.

from presenterm.

Davidyz avatar Davidyz commented on June 11, 2024

This is just a toy presentation to familiarise myself with this tool. I reckon that it might be difficult to implement an automatic mechanism to place the contents but would it be possible to add a parameterized command to allow manually adding blank lines, like

<!-- new_line 2 -->

for two blank lines,
so that users can somehow control the spacing above a certain paragraph? At the moment there isn't even a way to "center" a paragraph in the vertical axis, which I find quite necessary when making slides.

from presenterm.

mfontanini avatar mfontanini commented on June 11, 2024

<!-- new_line 2 -->

Yeah I've been thinking of this, it seems very useful.

At the moment there isn't even a way to "center" a paragraph

I think I haven't documented it (and need to do that!) but there's a

<!-- jump_to_middle -->

That jumps to the vertical center. Do note that if you already wrote something there, it will look like crap. My favorite (and really the only) use for this is to do something like

blablabla

<!-- end_slide -->

<!-- jump_to_middle -->

Farming potatoes
===

<!-- end_slide -->

In order to create a nice "separator" slide that changes topics.

from presenterm.

mfontanini avatar mfontanini commented on June 11, 2024

I created #167 to introduce the new_lines command. Does that work for you as a workaround?

from presenterm.

mfontanini avatar mfontanini commented on June 11, 2024

Alright I merged the PR. There's 2 new commands:

  • new_lines: <number> (you can also use newlines) that adds <number> new lines.
  • new_line (you can also use newline) that adds a single new line.

from presenterm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.