CTAN Comprehensive TeX Archive Network

Directory graphics/pstricks/contrib/luapstricks


luapstricks – A PSTricks backend for Lua

Support PSTricks directly in Lua, without requiring external processes, special environments or similar.

Since recent PSTricks versions load luapstricks automatically when Lua is used, this does not require changes to the document. Some advanced features require the pdfmanagement-testphase package to be loaded and activated.


  1. Make sure that you have the latest pstricks version installed.
  2. Run l3build install or copy luapstricks.lua from this repository into the directory of your files or another directory in your search path.
  3. Compile your document with lualatex.
  4. Given that most people immediately stop reading after they get a result and you are still here, the previous stage probably failed. Write a bug report to the author. Otherwise go to step 7.
  5. Wait for a fix.
  6. Go back to step 2 and try again.
  7. It worked? That's great. Feel free to inform the author anyway and share the awesome images you created.

Issues and feature requests

Should you find a bug or want to request a feature, please report it using the issue tracker.


This code is licensed under the Project Public License 1.3.


This project would never have reached a usable state without all the testing and suggestions by Pablo González Luengo. Also many thanks to Herbert Voß for adapting PSTricks and related packages to work with luapstricks.


Documentation of PSTricks packages, created by lualatex and luapstricks.lua:

Download the contents of this package in one zip archive (31.1k).

luapstricks – A PSTricks backend for Lua

This package enables the use of PSTricks directly in Lua documents, without invoking external programmes, by implementing a PostScript interpreter in Lua. Therefore it does not require shell escape to be enabled or special environments, and instead allows PSTricks to be used exactly like in dvips based documents.

Bug trackerhttps://github.com/zauguin/luapstricks/issues
Version0.6 2022-09-10
LicensesThe Project Public License 1.3
Copyright2021–2022 Marcel Krüger
MaintainerMarcel Krüger
Contained inTeX Live as luapstricks
MiKTeX as luapstricks
Guest Book Sitemap Contact Contact Author