[pstricks] PSTricks and lualatex
Herbert Voss
Herbert.Voss at fu-berlin.de
Sat Sep 25 11:15:18 CEST 2021
Hello all,
with up-to-date TeXLive or MiKTeX you can run your
PSTricks code with lualatex without using Ghostscript.
It will directly create a pdf. Only the \pscharpath from
pst-text is at this time not possible.
An example:
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
\documentclass{article}
\usepackage{pstricks}
\usepackage{fontspec}
\setmainfont{Lobster Two}% an opentype font
\begin{document}
AN example with an OpenType font:
\vspace{1cm}
\begin{pspicture}(5,5)
\psgrid[subgridcolor=black!20,subgriddiv=10,gridlabels=12pt]
% gridfont is helvetica (default)
\end{pspicture}
\qquad
\begin{pspicture}(5,5)
\psgrid[subgridcolor=black!20,subgriddiv=10,gridlabels=12pt,gridfont={}]
% gridfont is now current font (LobsterTwo)
\end{pspicture}
\vspace{1cm}
\begin{pspicture}(5,5)
\psgrid[subgridcolor=black!20,subgriddiv=10,gridlabels=12pt,gridfont={LibertinusSerif-Regular}]
% gridfont is now current Libertinus Serif
\end{pspicture}
\end{document}
Herbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2021-09-25 um 11.13.50.png
Type: image/png
Size: 179878 bytes
Desc: not available
URL: <https://tug.org/pipermail/pstricks/attachments/20210925/477dce78/attachment-0001.png>
More information about the PSTricks
mailing list.