An open API service indexing awesome lists of open source software.

https://github.com/esdmr/enscroll

like `enscript`, but you glue the pages together
https://github.com/esdmr/enscroll

enscript latex print pygments python

Last synced: about 1 year ago
JSON representation

like `enscript`, but you glue the pages together

Awesome Lists containing this project

README

          

# enscroll

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.

## Usage

```sh
pdm install

pdm run enscroll [options...] [--] >output.tex && latexmk -xelatex output.tex
```

Options:

- `--paper=`: Paper size as defined by the CTAN `geometry` package.
Defaults to `a4paper`.
- `--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=`: The top margin. Defaults to `1.5cm`.
- `--bottom=`: The bottom margin. Defaults to `1.5cm`.
- `--left=`: The left margin. Defaults to `1.5cm`.
- `--right=`: The right margin. Defaults to `1.5cm`.
- `--vertical=`: Equivalent to `--top= --bottom=`.
- `--horizontal=`: Equivalent to `--left= --right=`.
- `--margin=`: Equivalent to `--vertical= --horizontal=`.
- `--family=`: The font family. Defaults to `JetBrains Mono`.
- `--features=`: The font features as defined by the CTAN
`fontspec` package. Defaults to `Scale=0.9`.
- `--linechunks=`: Number of lines per page. Defaults to `60`.
- `--tabsize=`: Width of horizontal tab columns. Defaults to `4`.
- `--linenospace=`: Space between the line number and the content. Defaults to `1.5em`.