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
- Host: GitHub
- URL: https://github.com/esdmr/enscroll
- Owner: esdmr
- License: mit
- Created: 2024-02-11T15:48:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-11T21:37:02.000Z (about 2 years ago)
- Last Synced: 2025-01-21T15:13:42.769Z (about 1 year ago)
- Topics: enscript, latex, print, pygments, python
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.