tybenz / vimdeck

VIM as a presentation tool
MIT License
1.41k stars 57 forks source link

Not enough spacing between header and body #26

Closed sloria closed 9 years ago

sloria commented 9 years ago

The header text is cramped:

2__tmux

The output differs from the screenshots in the README, which appear to have an extra newline between the header and the body. The extra space makes the slides look much nicer.

tybenz commented 9 years ago

Looks like the lowercase "p" is what causes this. The sample presentations use all-caps for each header, which I recommend.

sloria commented 9 years ago

I copied the "Numbered List" example from the README, and I still the issue:

README:

ACTUAL:

2__vim

tybenz commented 9 years ago

Oh I see... I must have changed the default space after I created the screenshots. I'll add an option that can be passed in to specify what bottom margin the user would like for their headers. I'll let you know when it's finished.

tybenz commented 9 years ago

Ok. That was a lot easier than I thought. New usage says...

Usage: vimdeck [<command>] [<file>]

Commands:

  slideshow          generate and show slides (default)
  generate           generate slides only
  open               open slides in presentation folder (no file needed)

Options:

  --mouse, -m           mouse support for navigating slides
  --no-indent, -I       skip indentation
  --no-ascii, -A        skip ascii headers
  --no-filetype, -n     use vim's plaintext syntax highlighting
  --header-margin, -m   bottom margin for headers. default: 1
  --header-font, -h     specify header font (http://www.figlet.org/fontdb.cgi)
                        foregoes the ability to have small and large headers

Example:

vimdeck -m 2 slides.md

Let me know if you have any issues with it.

tybenz commented 9 years ago

One other thing to note... you were using a single hash in your markdown (h1/#) versus the example double hash (h2/##). That might make a difference since they use different figlet fonts.

sloria commented 9 years ago

Works great! Thanks.