Convert source code to PDF. Similar to GNU enscript
, but you are supposed to
glue the ends of each page over the header of the next page so it looks like a
very long piece of paper containing source code, kind of like a continuous feed
computer paper, but with regular A4/letter paper.
pdm install
pdm run enscroll [options...] [--] <input file name> >output.tex && latexmk -xelatex output.tex
Options:
--paper=<string>
: Paper size as defined by the CTANgeometry
package. Defaults toa4paper
.--a4
: Equivalent to--paper=a4paper
.--a5
: Equivalent to--paper=a5paper
.--b5
: Equivalent to--paper=b5paper
.--executive
: Equivalent to--paper=executivepaper
.--legal
: Equivalent to--paper=legalpaper
.--letter
: Equivalent to--paper=letterpaper
.--top=<dimension>
: The top margin. Defaults to1.5cm
.--bottom=<dimension>
: The bottom margin. Defaults to1.5cm
.--left=<dimension>
: The left margin. Defaults to1.5cm
.--right=<dimension>
: The right margin. Defaults to1.5cm
.--vertical=<dimension>
: Equivalent to--top=<dimension> --bottom=<dimension>
.--horizontal=<dimension>
: Equivalent to--left=<dimension> --right=<dimension>
.--margin=<dimension>
: Equivalent to--vertical=<dimension> --horizontal=<dimension>
.--family=<string>
: The font family. Defaults toJetBrains Mono
.--features=<options>
: The font features as defined by the CTANfontspec
package. Defaults toScale=0.9
.--linechunks=<int>
: Number of lines per page. Defaults to60
.--tabsize=<int>
: Width of horizontal tab columns. Defaults to4
.--linenospace=<dimension>
: Space between the line number and the content. Defaults to1.5em
.