present icon indicating copy to clipboard operation
present copied to clipboard

How to reduce empty space at top of slides?

Open pybokeh opened this issue 5 years ago • 2 comments
trafficstars

Hi, I was using version 0.3. When I upgraded to the latest version 0.5.1, I would have to re-do my slides since there is a lot more empty space at the top, causing my slide contents at the bottom to no longer be visible. Is there a way I can reduce the amount of empty space at the top?

pybokeh avatar Aug 31 '20 13:08 pybokeh

Sorry about that! The y-coordinate for the top element is hard coded at 20% from top based on terminal height (if there are multiple elements), and middle of the terminal (if there is only one element). Can you post the markdown slide and a screenshot of what it looks like? (you can replace the text with lorem ipsum if you want)

Is there a way I can reduce the amount of empty space at the top?

Right now the only way to do that would be changing the terminal height and font size. Would you like this height to be configurable? Or maybe present can pre-calculate the y positions based on terminal height (right now, it starts at 20% from top and then adds a padding between each consecutive element) and font size and space elements apart nicely.

Thanks for reporting this!

vinayak-mehta avatar Aug 31 '20 19:08 vinayak-mehta

Hey no problem! Don't wan't to cause more work. I'm actually embarrassed to admit, I don't know how to embed an image in this post. Also, I am on a restrictive work machine, so I can't upload images to a file sharing site. But below is the markdown file:

<!-- fg=white bg=red -->
# My Project

by John Do

9 items:

- outer pack length
- outer pack width
- outer pack height (calculated)
- overall pack weiht (calculated)
- max pallet qty
- trailer stackability
- empty pallet weight
- part weight
- dunnage weight
---
<!-- fg=white bg=red -->
# Goal

## WHAT:
Improve accuracy of data in 2 source systems

## WHY:
The data is used by 3PL to ensure efficient trailer utilization

## HOW:
Get data into the hands of data experts, find root cause, submit corrections

## WHEN:
Data is provided weekly

For setting the terminal height and font size, I'll let others decide that. I'm ok with present's pre-calculated route. I changed my local copy of slideshow.py and changed the factor for 0.2 to 0.1 and now it is what I prefer.

pybokeh avatar Aug 31 '20 21:08 pybokeh