litex

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 8 Imported by: 0

README

LiTeX

LiTeX is an alternative to LaTeX. LiTeX creates a PDF from a markdown file (which may contain regular HTML as well) according to a CSS stylesheet.

Installation

Install go.

Install chromium-browser, for example with sudo apt-get install chromium-browser. It is used for rendering the PDF.

Install litex go install github.com/linuskmr/litex@latest

Usage

Invoke the litex executable with a markdown file (-input) and a CSS stylesheet (-css). A HTML and PDF file will be generated.

LiTeX
Convert markdown files to PDF

Arguments:
  -css string
    	CSS file to apply to markdown
  -input string
    	Markdown file to convert to PDF

Example

An example letter. The result will be written to example_letter.md.pdf.

./litex -input example_letter.md -css letter.css

An example document. The result will be written to example_document.md.pdf.

./litex -input example_document.md -css document.css

Documentation

Overview

Package main. This program converts a markdown file to a pdf file by applying a custom stylesheet.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL