[pstricks] R: PSTricks and lualatex
Giovanni Dore
giovanni.dore at unibo.it
Sat Sep 25 15:00:36 CEST 2021
Wonderful, many thanks!
For me it is a big improvement, since LuaLaTeX typeset my 200 pages notes in 40 seconds while XeLaTeX requires 250 seconds.
Giovanni
________________________________________
Da: PSTricks <pstricks-bounces+giovanni.dore=unibo.it at tug.org> per conto di Herbert Voss <Herbert.Voss at fu-berlin.de>
Inviato: sabato 25 settembre 2021 11:15
A: Graphics with PSTricks
Oggetto: [pstricks] PSTricks and lualatex
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
More information about the PSTricks
mailing list.