pomber / code-surfer

Rad code slides <🏄/>
https://codesurfer.pomb.us/
MIT License
6.34k stars 174 forks source link

CodeSurfer is not print-friendly #55

Open vlsi opened 5 years ago

vlsi commented 5 years ago

I try to produce a pdf version of my mdx-deck slides, and it looks like CodeSurfer does not quite work for that.

I add the following to theme to ensure 16:9 aspect ratio for the PDF:

  css: {
    '@page': {
      size: '1920px 1080px',
      margin: 0,
    }
  }

Unfortunately the scale computation seems to be off for some reason, so the code in pdf looks either too small or artificial margins appear or whatever.

The issue is more-or-less reproducible with default sample fixture if @page: {size:...} is added.

Relequestual commented 5 years ago

It also does not work for code with multiple steps.

Morozzzko commented 4 years ago

Not being able to work for code with multiple steps is a problem, definitely.

Would be nice if someone explained where to get started. Perhaps, someone could contribute