Skip to content

Lua binding for Typst, a new markup-based typesetting system that is powerful and easy to learn.

License

Notifications You must be signed in to change notification settings

rousbound/typst-lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typst-lua

Lua binding to typst, a new markup-based typesetting system that is powerful and easy to learn. Also has arguments that enable lua to pass certain values directly to typst.

Installation

luarocks install typst-lua

Usage/Docs

local typst = require"typst"

local pdf_bytes, err = typst.compile( "helloworld.typ", { who = "World!"} )

Example

Example with the lua code above in the following "helloworld.typ" file:

Hello #_LUADATA.who

Output in pdf will be:

Hello World!

License

This work is released under the Apache-2.0 license. A copy of the license is provided in the LICENSE file.

About

Lua binding for Typst, a new markup-based typesetting system that is powerful and easy to learn.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages