Closed pablgonz closed 3 years ago
There should also be a currentFont
which should be possible with Lua:
\begin{itemize}
\item Helvetica (default)
\item Helvetica-Narrow
[...]
\end{itemize}
There should also be a
currentFont
which should be possible with Lua
I don't understand what you are asking for. What do you mean with currentFont
?
\usepackage{libertinus}
for example. On PostScript level I do not really know what the current font is. This is the reason why we always use the PS-fonts. With Lua you should be able to use the current active font for the PSTricks macros.
The primitive \setfontid can be used to enable a font with the given id, which of course needs to be a valid one.
The currently used fontid is 29.
@hvoss49 Hi, nice to see you here :D
There should also be a
currentFont
which should be possible with Lua
Now I understand better (I looked for a long time for the currentFont
key for \psgrid
and I couldn't find it).
It would be great to have something like this, of course to be consistent the key (boolean?) should be defined in pstricks
and be active only for lualatex
. At the moment I think having support for the gridfont
key is a good start.
\usepackage{libertinus}
for example. On PostScript level I do not really know what the current font is. This is the reason why we always use the PS-fonts. With Lua you should be able to use the current active font for the PSTricks macros.
I see what you mean now :) since we already use native LuaTeX fonts instead of "real" PostScript fonts this is easy to implement (except for some fontsize issues I'll think of something for that).
At the moment I think having support for the
gridfont
key is a good start.
It's not so much that gridfont
doesn't work, it's just that we use different fontnames than real PostScript interpreters and I would like to avoid implementing a full PS font interface, especially since most systems contain equivalent OpenType fonts anyway.
I pushed a new version which knows how to remap all the standard fontnames to corresponding TeX Gyre or Type 1 fonts, so it should work now, even if it can be considered a bit hacky.
In our example you have to change AvantGard
to AvantGarde-Book
and AvantGard-Demi
to AvantGarde-Demi
though. Ghostscript automatically does some font fallback and therefore effectively fixes such typos, but luapstricks
will just complain that it doesn't know the font.
I pushed a new version which knows how to remap all the standard fontnames to corresponding TeX Gyre or Type 1 fonts, so it should work now, even if it can be considered a bit hacky.
In our example you have to change
AvantGard
toAvantGarde-Book
andAvantGard-Demi
toAvantGarde-Demi
though. Ghostscript automatically does some font fallback and therefore effectively fixes such typos, butluapstricks
will just complain that it doesn't know the font.
I think you can completely drop the PS part here. Using \rmfamily
, \sffamily
, and \ttfamily
with the currently defined
or extra defined font should be ok. For example:
gridfont=\myfont uses the defined \myfont
gridfont=\ttfamily uses current \ttfamily
gridfont= uses current font
If someone wants AvantGarde-Book
then it must be defined in the usual way:
\newfontfamily\myfont{AvantGard-Book Regular}[extension=.otf, ...]
I think you can completely drop the PS part here.
I think that having them for consistency is a good thing, especially since it allows to reuse existing generic code without changes.
I pushed a new version which knows how to remap all the standard fontnames to corresponding TeX Gyre or Type 1 fonts, so it should work now, even if it can be considered a bit hacky. In our example you have to change
AvantGard
toAvantGarde-Book
andAvantGard-Demi
toAvantGarde-Demi
though. Ghostscript automatically does some font fallback and therefore effectively fixes such typos, butluapstricks
will just complain that it doesn't know the font.I think you can completely drop the PS part here. Using
\rmfamily
,\sffamily
, and\ttfamily
with the currently defined or extra defined font should be ok. For example:gridfont=\myfont uses the defined \myfont gridfont=\ttfamily uses current \ttfamily gridfont= uses current font
For now I added a PostScript command .findfontid
which acts like findfont
except that it reads a LuaTeX font id instead of a font name. (E.g. \fontid\font\space .findfontid
would get a dictionary for the current font at time of expansion)
This allows higher level code to implement something like this.
currentFont
is a bit more complicated since the PS code is converted during shipout when the active font might no longer be the one which was active when the pstricks commands were invoked, so either currentFont has to be intercepted by the gridfont handler and translated to the current font id or we have to preserve the current font id in the whatsit.
This works now with new pstricks.tex:
\documentclass[parskip=half-,DIV=13]{scrartcl}
\usepackage{libertinus-otf}
\usepackage{pstricks}
\pagestyle{empty}
\begin{document}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridwidth=2pt](2,2)% default font is Helvetica/NimbusSans
\end{pspicture}
\qquad\sffamily
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[griddots=3,gridfont={}](2,2)% use current font
\end{pspicture}
\qquad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Courier](2,2)%
\end{pspicture}
\end{document}
bash-3.2$ pdffonts test04.pdf
name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
ZJJELM+zhv-Reg CID Type 0C Identity-H yes yes yes 4 0
LWJKBJ+LibertinusSans-Regular CID Type 0C Identity-H yes yes yes 5 0
ESFUSA+TeXGyreCursor-Regular CID Type 0C Identity-H yes yes yes 6 0
@hvoss49 @zauguin close this?
I was putting together my help memory of valid options for gridfonts
and came across this. This is my reference file taken from README.base35
from TeX Live 2021 on win10.
FontName (URW) Corresponding Adobe font Mapped TeX Gyre
Work with dvips/ps2pdf Work with dvips/ps2pdf Work with lualatex
and lualatex and lualatex
---------------------------------------------------------------------------------------
URWGothicL-Demi AvantGarde-Demi texgyreadventor-bold.otf
URWGothicL-DemiObli AvantGarde-DemiOblique texgyreadventor-italic.otf
URWGothicL-Book AvantGarde-Book texgyreadventor-regular.otf
URWGothicL-BookObli AvantGarde-BookOblique texgyreadventor-italic.otf
URWBookmanL-DemiBold Bookman-Demi texgyrebonum-bold.otf
URWBookmanL-DemiBoldItal Bookman-DemiItalic texgyrebonum-bolditalic.otf
URWBookmanL-Ligh Bookman-Light texgyrebonum-regular.otf
URWBookmanL-LighItal Bookman-LightItalic texgyrebonum-italic.otf
NimbusMonL-Bold Courier-Bold texgyrecursor-bold.otf
NimbusMonL-BoldObli Courier-BoldOblique texgyrecursor-bolditalic.otf
NimbusMonL-Regu Courier texgyrecursor-regular.otf
NimbusMonL-ReguObli Courier-Oblique texgyrecursor-italic.otf
NimbusSanL-Bold Helvetica-Bold texgyreheros-bold.otf
NimbusSanL-BoldCond Helvetica-Narrow-Bold texgyreheroscn-bold.otf
NimbusSanL-BoldItal Helvetica-BoldOblique texgyreheros-bolditalic.otf
NimbusSanL-BoldCondItal Helvetica-Narrow-BoldOblique texgyreheroscn-bolditalic.otf
NimbusSanL-Regu Helvetica texgyreheros-regular.otf
NimbusSanL-ReguCond Helvetica-Narrow texgyreheroscn-regular.otf
NimbusSanL-ReguItal Helvetica-Oblique texgyreheros-italic.otf
NimbusSanL-ReguCondItal Helvetica-Narrow-Oblique texgyreheroscn-italic.otf
CenturySchL-Bold NewCenturySchlbk-Bold texgyreschola-bold.otf
CenturySchL-BoldItal NewCenturySchlbk-BoldItalic texgyreschola-bolditalic.otf
CenturySchL-Roma NewCenturySchlbk-Roman texgyreschola-regular.otf
CenturySchL-Ital NewCenturySchlbk-Italic texgyreschola-italic.otf
URWPalladioL-Bold Palatino-Bold texgyrepagella-bold.otf
URWPalladioL-BoldItal Palatino-BoldItalic texgyrepagella-bolditalic.otf
URWPalladioL-Roma Palatino-Roman texgyrepagella-regular.otf
URWPalladioL-Ital Palatino-Italic texgyrepagella-italic.otf
StandardSymL Symbol usyr (type 1)
NimbusRomNo9L-Medi Times-Bold texgyretermes-bold.otf
NimbusRomNo9L-MediItal Times-BoldItalic texgyretermes-bolditalic.otf
NimbusRomNo9L-Regu Times-Roman texgyretermes-regular.otf
NimbusRomNo9L-ReguItal Times-Italic texgyretermes-italic.otf
URWChanceryL-MediItal ZapfChancery-MediumItalic texgyrechorus-mediumitalic.otf
Dingbats ZapfDingbats uzdr (type 1)
% arara: latex
% arara: dvips
% arara: ps2pdf: { options : [ -dALLOWPSTRANSPARENCY -dPDFSETTINGS=/prepress -dNOSAFER] }
% arara: clean: { extensions : [ aux, log, dvi, ps ] }
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
\documentclass{article}
\usepackage{pstricks}
\usepackage{libertinus} % for gridfont={}
\setlength{\parindent}{0pt}
\addtolength{\hoffset}{-1.5cm}
\pagestyle{empty}
\begin{document}
\section{Using Adobe names}
\section*{AvantGarde}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=AvantGarde-Demi](2,2) % AvantGarde-Demi
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=AvantGarde-DemiOblique](2,2) % AvantGarde-DemiOblique
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=AvantGarde-Book](2,2) % AvantGarde-Book
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=AvantGarde-BookOblique](2,2) % AvantGarde-BookOblique
\end{pspicture}
\section*{Bookman}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Bookman-Demi](2,2) % Bookman-Demi
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Bookman-DemiItalic](2,2) % Bookman-DemiItalic
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Bookman-Light](2,2) % Bookman-Light
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Bookman-LightItalic](2,2) % Bookman-LightItalic
\end{pspicture}
\section*{Courier}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Courier-Bold](2,2) % Courier-Bold
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Courier-BoldOblique](2,2) % Courier-BoldOblique
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Courier](2,2) % Courier
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Courier-Oblique](2,2) % Courier-Oblique
\end{pspicture}
\section*{Helvetica}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Helvetica-Bold](2,2) % Helvetica-Bold
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Helvetica-Narrow-Bold](2,2) % Helvetica-Narrow-Bold
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Helvetica-BoldOblique](2,2) % Helvetica-BoldOblique
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Helvetica-Narrow-BoldOblique](2,2) % Helvetica-Narrow-BoldOblique
\end{pspicture}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Helvetica](2,2) % Helvetica
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Helvetica-Narrow](2,2) % Helvetica-Narrow
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Helvetica-Oblique](2,2) % Helvetica-Oblique
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Helvetica-Narrow-Oblique](2,2) % Helvetica-Narrow-Oblique
\end{pspicture}
\section*{NewCenturySchlbk}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NewCenturySchlbk-Bold](2,2) % NewCenturySchlbk-Bold
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NewCenturySchlbk-BoldItalic](2,2) % NewCenturySchlbk-BoldItalic
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NewCenturySchlbk-Roman](2,2) % NewCenturySchlbk-Roman
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NewCenturySchlbk-Italic](2,2) % NewCenturySchlbk-Italic
\end{pspicture}
\section*{Palatino}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Palatino-Bold](2,2) % Palatino-Bold
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Palatino-BoldItalic](2,2) % Palatino-BoldItalic
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Palatino-Roman](2,2) % Palatino-Roman
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Palatino-Italic](2,2) % Palatino-Italic
\end{pspicture}
\section*{Symbol}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Symbol](2,2) % Symbol
\end{pspicture}
\section*{Times}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Times-Bold](2,2) % Times-Bold
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Times-BoldItalic](2,2) % Times-BoldItalic
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Times-Roman](2,2) % Times-Roman
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Times-Italic](2,2) % Times-Italic
\end{pspicture}
\section*{ZapfChancery-MediumItalic}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=ZapfChancery-MediumItalic](2,2) % ZapfChancery-MediumItalic
\end{pspicture}
\section*{ZapfDingbats}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=ZapfDingbats](2,2) % ZapfDingbats
\end{pspicture}
\section*{Current font (new)}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont={}](2,2) % libertinus
\end{pspicture}
\end{document}
dvips>ps2pdf>pdffonts win10
name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
SFSFCM+Helvetica-Narrow-Bold Type 1C WinAnsi yes yes yes 31 0
CDAWQC+AvantGarde-Book Type 1C WinAnsi yes yes yes 14 0
HFJADP+Bookman-Light Type 1C WinAnsi yes yes yes 22 0
Courier Type 1 Standard no no yes 28 0
Helvetica-BoldOblique Type 1 Standard no no yes 33 0
RSFVEV+AvantGarde-BookOblique Type 1C WinAnsi yes yes yes 16 0
XDESZC+Bookman-LightItalic Type 1C WinAnsi yes yes yes 24 0
Courier-Oblique Type 1 Standard no no yes 29 0
WEIGNT+Helvetica-Narrow-BoldOblique Type 1C WinAnsi yes yes yes 34 0
IGFLLS+AvantGarde-Demi Type 1C WinAnsi yes yes yes 10 0
IJVWTB+Bookman-Demi Type 1C WinAnsi yes yes yes 18 0
Courier-Bold Type 1 Standard no no yes 26 0
Helvetica-Bold Type 1 Standard no no yes 30 0
JGTNIU+AvantGarde-DemiOblique Type 1C WinAnsi yes yes yes 12 0
PXSPRY+Bookman-DemiItalic Type 1C WinAnsi yes yes yes 20 0
JSFGTE+LibertinusSerif-Bold Type 1C WinAnsi yes yes no 7 0
Courier-BoldOblique Type 1 Standard no no yes 27 0
YPZICN+Palatino-Italic Type 1C WinAnsi yes yes yes 61 0
Helvetica Type 1 Standard no no yes 41 0
EXPTKR+NewCenturySchlbk-Bold Type 1C WinAnsi yes yes yes 47 0
DBEYVT+Palatino-Bold Type 1C WinAnsi yes yes yes 55 0
Symbol Type 1 WinAnsi no no yes 63 0
YCFOAQ+Helvetica-Narrow Type 1C WinAnsi yes yes yes 42 0
VSDKDP+NewCenturySchlbk-BoldItalic Type 1C WinAnsi yes yes yes 49 0
IOSYAD+Palatino-BoldItalic Type 1C WinAnsi yes yes yes 57 0
Helvetica-Oblique Type 1 Standard no no yes 44 0
BMGEVW+NewCenturySchlbk-Roman Type 1C WinAnsi yes yes yes 51 0
GLLAVL+Palatino-Roman Type 1C WinAnsi yes yes yes 59 0
GVLPDK+Helvetica-Narrow-Oblique Type 1C WinAnsi yes yes yes 45 0
MJZELA+NewCenturySchlbk-Italic Type 1C WinAnsi yes yes yes 53 0
Times-BoldItalic Type 1 Standard no no yes 70 0
ZapfDingbats Type 1 Custom no no yes 75 0
Times-Roman Type 1 Standard no no yes 71 0
IJTCCL+.F0x315f0d0 Type 1C WinAnsi yes yes yes 76 0
Times-Italic Type 1 Standard no no yes 72 0
Times-Bold Type 1 Standard no no yes 69 0
IHHTHU+ZapfChancery-MediumItalic Type 1C WinAnsi yes yes yes 73 0
lualatex>pdffonts win10
name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
CLAQJU+LibertinusSerif-Bold CID Type 0C Identity-H yes yes yes 8 0
LXCLTM+TeXGyreAdventor-Bold CID Type 0C Identity-H yes yes yes 9 0
IWYYCO+TeXGyreAdventor-BoldItalic CID Type 0C Identity-H yes yes yes 10 0
AZZQBL+TeXGyreAdventor-Regular CID Type 0C Identity-H yes yes yes 11 0
DOKTFI+TeXGyreAdventor-Italic CID Type 0C Identity-H yes yes yes 12 0
IMMYTT+TeXGyreBonum-Bold CID Type 0C Identity-H yes yes yes 13 0
OXSDSH+TeXGyreBonum-BoldItalic CID Type 0C Identity-H yes yes yes 14 0
HYSRRV+TeXGyreBonum-Regular CID Type 0C Identity-H yes yes yes 15 0
JUYHMQ+TeXGyreBonum-Italic CID Type 0C Identity-H yes yes yes 16 0
IRSNQV+TeXGyreCursor-Bold CID Type 0C Identity-H yes yes yes 17 0
NWSPJR+TeXGyreCursor-BoldItalic CID Type 0C Identity-H yes yes yes 18 0
ESFUSA+TeXGyreCursor-Regular CID Type 0C Identity-H yes yes yes 19 0
ZYXJPZ+TeXGyreCursor-Italic CID Type 0C Identity-H yes yes yes 20 0
NTJWQU+TeXGyreHeros-Bold CID Type 0C Identity-H yes yes yes 21 0
TFIZYI+TeXGyreHerosCondensed-Bold CID Type 0C Identity-H yes yes yes 22 0
EBWQJO+TeXGyreHeros-BoldItalic CID Type 0C Identity-H yes yes yes 23 0
KVILIC+TeXGyreHerosCondensed-BoldItalic CID Type 0C Identity-H yes yes yes 24 0
ZPJWCG+TeXGyreHeros-Regular CID Type 0C Identity-H yes yes yes 30 0
CABAZS+TeXGyreHerosCondensed-Regular CID Type 0C Identity-H yes yes yes 31 0
VCTJNX+TeXGyreHeros-Italic CID Type 0C Identity-H yes yes yes 32 0
SEHYYJ+TeXGyreHerosCondensed-Italic CID Type 0C Identity-H yes yes yes 33 0
PMVDHS+TeXGyreSchola-Bold CID Type 0C Identity-H yes yes yes 34 0
CKPEGI+TeXGyreSchola-BoldItalic CID Type 0C Identity-H yes yes yes 35 0
LDXGNT+TeXGyreSchola-Regular CID Type 0C Identity-H yes yes yes 36 0
ZYYLKQ+TeXGyreSchola-Italic CID Type 0C Identity-H yes yes yes 37 0
SSSXYH+TeXGyrePagella-Bold CID Type 0C Identity-H yes yes yes 38 0
VCXEIO+TeXGyrePagella-BoldItalic CID Type 0C Identity-H yes yes yes 39 0
HSIQKL+TeXGyrePagella-Regular CID Type 0C Identity-H yes yes yes 40 0
HWDTDC+TeXGyrePagella-Italic CID Type 0C Identity-H yes yes yes 41 0
KRREPM+StandardSymL Type 1 Builtin yes yes no 42 0
CZCDBO+TeXGyreTermes-Bold CID Type 0C Identity-H yes yes yes 46 0
YUPUZS+TeXGyreTermes-BoldItalic CID Type 0C Identity-H yes yes yes 47 0
GOISLI+TeXGyreTermes-Regular CID Type 0C Identity-H yes yes yes 48 0
SWEBAQ+TeXGyreTermes-Italic CID Type 0C Identity-H yes yes yes 49 0
KGVKIE+TeXGyreChorus-MediumItalic CID Type 0C Identity-H yes yes yes 50 0
LHGWRR+Dingbats Type 1 Builtin yes yes no 51 0
CKISIA+LibertinusSerif-Regular CID Type 0C Identity-H yes yes yes 52 0
lualatex
:% arara: latex
% arara: dvips
% arara: ps2pdf: { options : [ -dALLOWPSTRANSPARENCY -dPDFSETTINGS=/prepress -dNOSAFER] }
% arara: clean: { extensions : [ aux, log, dvi, ps ] }
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
\documentclass{article}
\usepackage{pstricks}
\usepackage{libertinus} % for gridfont={}
\setlength{\parindent}{0pt}
\addtolength{\hoffset}{-1.5cm}
\pagestyle{empty}
\begin{document}
\section{Using URW names}
\section*{URWGothicL}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=URWGothicL-Demi](2,2) % URWGothicL-Demi
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=URWGothicL-DemiObli](2,2) % URWGothicL-DemiObli
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=URWGothicL-Book](2,2) % URWGothicL-Book
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=URWGothicL-BookObli](2,2) % URWGothicL-BookObli
\end{pspicture}
\section*{URWBookmanL}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=URWBookmanL-DemiBoldItal](2,2) % URWBookmanL-DemiBoldItal
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=URWBookmanL-DemiBoldItal](2,2) % URWBookmanL-DemiBoldItal
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=URWBookmanL-Ligh](2,2) % URWBookmanL-Ligh
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=URWBookmanL-LighItal](2,2) % URWBookmanL-LighItal
\end{pspicture}
\section*{NimbusMonL}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusMonL-Bold](2,2) % NimbusMonL-Bold
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusMonL-BoldObli](2,2) % NimbusMonL-BoldObli
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusMonL-Regu](2,2) % NimbusMonL-Regu
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusMonL-ReguObli](2,2) % NimbusMonL-ReguObli
\end{pspicture}
% NimbusSanL-Bold
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusSanL-Bold](2,2) % NimbusSanL-Bold
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusSanL-BoldCond](2,2) % NimbusSanL-BoldCond
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusSanL-BoldItal](2,2) % NimbusSanL-BoldItal
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusSanL-BoldCondItal](2,2) % NimbusSanL-BoldCondItal
\end{pspicture}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusSanL-Regu](2,2) % NimbusSanL-Regu
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusSanL-ReguCond](2,2) % NimbusSanL-ReguCond
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusSanL-ReguItal](2,2) % NimbusSanL-ReguItal
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusSanL-ReguCondItal](2,2) % NimbusSanL-ReguCondItal
\end{pspicture}
\section*{CenturySchL}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=CenturySchL-Bold](2,2) % CenturySchL-Bold
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=CenturySchL-BoldItal](2,2) % CenturySchL-BoldItal
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=CenturySchL-Roma](2,2) % CenturySchL-Roma
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=CenturySchL-Ital](2,2) % CenturySchL-Ital
\end{pspicture}
\section*{URWPalladioL}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=URWPalladioL-Bold](2,2) % URWPalladioL-Bold
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=URWPalladioL-BoldItal](2,2) % URWPalladioL-BoldItal
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=URWPalladioL-Roma](2,2) % URWPalladioL-Roma
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=URWPalladioL-Ital](2,2) % URWPalladioL-Ital
\end{pspicture}
\section*{StandardSymL}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=StandardSymL](2,2) % StandardSymL
\end{pspicture}
\section*{NimbusRomNo9L}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusRomNo9L-Medi](2,2) % NimbusRomNo9L-Medi
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusRomNo9L-MediItal](2,2) % NimbusRomNo9L-MediItal
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusRomNo9L-Regu](2,2) % NimbusRomNo9L-Regu
\end{pspicture}
\quad
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=NimbusRomNo9L-ReguItal](2,2) % NimbusRomNo9L-ReguItal
\end{pspicture}
\section*{URWChanceryL}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=URWChanceryL-MediItal](2,2) % URWChanceryL-MediItal
\end{pspicture}
\section*{Dingbats}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=Dingbats](2,2) % Dingbats
\end{pspicture}
\end{document}
dvips>ps2pdf>pdffonts win10
name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
NHFKNR+NimbusSanL-BoldCond Type 1C WinAnsi yes yes yes 34 0
WHNGXK+NimbusMonL-Bold Type 1C WinAnsi yes yes yes 24 0
ZYTQAW+URWGothicL-BookObli Type 1C WinAnsi yes yes yes 16 0
PYLKNC+NimbusSanL-BoldItal Type 1C WinAnsi yes yes yes 36 0
QYKZGS+NimbusMonL-BoldObli Type 1C WinAnsi yes yes yes 26 0
NMVBBZ+URWBookmanL-DemiBoldItal Type 1C WinAnsi yes yes yes 18 0
KVKMDO+NimbusSanL-BoldCondItal Type 1C WinAnsi yes yes yes 38 0
FSDJDB+NimbusMonL-Regu Type 1C WinAnsi yes yes yes 28 0
TMRHZI+URWGothicL-Demi Type 1C WinAnsi yes yes yes 10 0
RBZEZZ+NimbusMonL-ReguObli Type 1C WinAnsi yes yes yes 30 0
LGCDLB+URWBookmanL-Ligh Type 1C WinAnsi yes yes yes 20 0
JJZBFZ+URWGothicL-DemiObli Type 1C WinAnsi yes yes yes 12 0
IHHMAP+NimbusSanL-Bold Type 1C WinAnsi yes yes yes 32 0
VJLJPI+URWBookmanL-LighItal Type 1C WinAnsi yes yes yes 22 0
NFXCQO+URWGothicL-Book Type 1C WinAnsi yes yes yes 14 0
XJGQRD+LibertinusSerif-Bold Type 1C WinAnsi yes yes no 7 0
AVAYAL+URWPalladioL-Ital Type 1C WinAnsi yes yes yes 67 0
JCBLGQ+CenturySchL-Roma Type 1C WinAnsi yes yes yes 57 0
EKUVOD+NimbusSanL-ReguCond Type 1C WinAnsi yes yes yes 47 0
FEAXAX+StandardSymL Type 1C WinAnsi yes yes yes 69 0
RGTJPR+CenturySchL-Ital Type 1C WinAnsi yes yes yes 59 0
XKCBMX+NimbusSanL-ReguItal Type 1C WinAnsi yes yes yes 49 0
BCCNOM+URWPalladioL-Bold Type 1C WinAnsi yes yes yes 61 0
KQDTBQ+NimbusSanL-ReguCondItal Type 1C WinAnsi yes yes yes 51 0
NLRFDM+URWPalladioL-BoldItal Type 1C WinAnsi yes yes yes 63 0
IHTLSL+CenturySchL-Bold Type 1C WinAnsi yes yes yes 53 0
XRKOMJ+URWPalladioL-Roma Type 1C WinAnsi yes yes yes 65 0
DQMHDP+CenturySchL-BoldItal Type 1C WinAnsi yes yes yes 55 0
ENCLGD+NimbusSanL-Regu Type 1C WinAnsi yes yes yes 45 0
FAFNAN+NimbusRomNo9L-MediItal Type 1C WinAnsi yes yes yes 78 0
GAJVBV+NimbusRomNo9L-Regu Type 1C WinAnsi yes yes yes 80 0
ZIWSCP+NimbusRomNo9L-ReguItal Type 1C WinAnsi yes yes yes 82 0
TCIAGC+URWChanceryL-MediItal Type 1C WinAnsi yes yes yes 84 0
LVIKMR+Dingbats Type 1C Custom yes yes yes 86 0
XYTXNZ+NimbusRomNo9L-Medi Type 1C WinAnsi yes yes yes 76 0
Using lualatex
returns error with the following fonts:
URWGothicL-Demi
URWGothicL-DemiObli
URWGothicL-Book
URWGothicL-BookObli
URWBookmanL-DemiBoldItal
URWBookmanL-DemiBoldItal
URWBookmanL-Ligh
URWBookmanL-LighItal
NimbusSanL-BoldCond
NimbusSanL-BoldCondItal
NimbusSanL-ReguCond
NimbusSanL-ReguCondItal
CenturySchL-Bold
CenturySchL-BoldItal
CenturySchL-Roma
CenturySchL-Ital
URWPalladioL-Bold
URWPalladioL-BoldItal
URWPalladioL-Roma
URWPalladioL-Ital
URWChanceryL-MediItal
Can anything be done at this point?
FontName (URW) Corresponding Adobe font Mapped TeX Gyre Work with dvips/ps2pdf Work with dvips/ps2pdf and lualatex ---------------------------------------------------------------------------------------
You could add Work with lualatex
in the Mapped TeX Gyre
column. I would even argue that for pure LuaLaTeX documents, using the mapped names directly is the cleanest approach.
URWGothicL-Demi URWGothicL-DemiObli URWGothicL-Book URWGothicL-BookObli URWBookmanL-DemiBoldItal URWBookmanL-DemiBoldItal URWBookmanL-Ligh URWBookmanL-LighItal NimbusSanL-BoldCond NimbusSanL-BoldCondItal NimbusSanL-ReguCond NimbusSanL-ReguCondItal CenturySchL-Bold CenturySchL-BoldItal CenturySchL-Roma CenturySchL-Ital URWPalladioL-Bold URWPalladioL-BoldItal URWPalladioL-Roma URWPalladioL-Ital URWChanceryL-MediItal
Added.
Great, with this I will be able to make a request I have in mind :). I have a few details (questions) left:
When using gridfont={}
with dvips it points to a strangely named font...what font is it?
In the terminal appears a test message for the fonts...Can I disable it?
1. When using `gridfont={}` with dvips it points to a strangely named font...what font is it?
On my system it ends up loading NimbusMonoPS-Regular, but it might be different on other systems since it's selected by GhostScript's fallback mechanism.
If you are using a system with a proper shell (aka. not Windows), you can try running gs <<< "/ findfont quit"
in a terminal window.
On my system it shows:
GPL Ghostscript 9.54.0 (2021-03-30)
Copyright (C) 2021 Artifex Software, Inc. All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
GS>Querying operating system for font files...
Loading font from /usr/share/ghostscript/9.54.0/Resource/Font/... Can't find (or can't open) font file OTTO.
Didn't find this font on the system!
Substituting font Courier for --nostringval--.
Loading NimbusMonoPS-Regular font from /usr/share/ghostscript/9.54.0/Resource/Font/NimbusMonoPS-Regular... 6810164 5423828 25420524 11747708 1 done.
Meaning that GhostScript tried and failed to load the font from a file named OTTO
(not sure why, looks like it might have some string still on the stack from dealing with OpenType fonts), then it decided that I don't have the requested font and used Courier instead which got remapped to NimbusMonoPS-Regular
.
Using Git bash on win 10 (rungs from TeX Live)
$ rungs.exe -dALLOWPSTRANSPARENCY test.ps
GPL Ghostscript 9.54.0 (2021-03-30)
Copyright (C) 2021 Artifex Software, Inc. All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Querying operating system for font files...
Can't find (or can't open) font file C:/texlive/2021/tlpkg/tlgs/Resource/Font/.
Didn't find this font on the system!
Substituting font Courier for .
Loading NimbusMonL-Regu font from C:/texlive/2021/tlpkg/tlgs/fonts/ucrr8a.pfb... 4029512 2462361 5854920 4483367 3 done.
>>showpage, press <return> to continue<<
>>showpage, press <return> to continue<<
GS>
and
pablg@RayzenTeX MINGW64 /d/luapstricks/PSTricksFiles (trunk)
$ rungs <<< "/ findfont quit"
GPL Ghostscript 9.54.0 (2021-03-30)
Copyright (C) 2021 Artifex Software, Inc. All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
GS>Querying operating system for font files...
Can't find (or can't open) font file C:/texlive/2021/tlpkg/tlgs/Resource/Font/.
Didn't find this font on the system!
Substituting font Courier for .
Loading NimbusMonL-Regu font from C:/texlive/2021/tlpkg/tlgs/fonts/ucrr8a.pfb... 4029512 2428328 2796376 1505051 1 done.
So it does indeed return Courier but with a strange name .F0x15a47c0
I will add to my helpful memory this.
The second question:
Test lualatex
Test true
Test lualatex
Test true
Test lualatex
Test true
Test lualatex
Test true
Test lualatex
Test true
I think it is some code that Herbert added when he implemented gridfont={}
.
Using the PS-names and lualatex works fine for me.
@hvoss49 You can implement the same for PSfont={}
?
What do you mean with PSfont={}
?
Sorry, I mean the pst-tools
and pst-mirror
package's
Sure, I will do ...
pst-tools
is uploaded to CTAN and also available here in git. pst-mirror
has to wait, it uses charpath
. In a couple of days
I'll delete all PSTricks files because they are all available via default TL or MiKTeX update.
@hvoss49 Great, before you remove the packages from the repository, you can take a look at the log generate by this:
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
\documentclass{article}
\usepackage{pstricks}
\usepackage{libertinus} % for gridfont={}
\setlength{\parindent}{0pt}
\addtolength{\hoffset}{-1.5cm}
\pagestyle{empty}
\begin{document}
\sffamily
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont=](2,2) % libertinus Sans
\end{pspicture}
\end{document}
This is LuaHBTeX, Version 1.13.2 (TeX Live 2021)
restricted system commands enabled.
(./test.tex
LaTeX2e <2021-06-01> patch level 1
L3 programming layer <2021-08-27>
(/usr/local/texlive/2021/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanage
ment-testphase.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanage
ment-testphase.ltx
(/usr/local/texlive/2021/texmf-dist/tex/latex/l3experimental/l3bitset/l3bitset.
sty))) (/usr/local/texlive/2021/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/l3backend/l3backend-luatex.def))
(/usr/local/texlive/2021/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend
-testphase-luatex.def
(/usr/local/texlive/2021/texmf-dist/tex/latex/pdfmanagement-testphase/l3ref-tmp
.sty))
(/usr/local/texlive/2021/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanage
ment-firstaid.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/pdfmanagement-testphase/output-pa
tches-tmp-ltx.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
Patching header in \@outputpage
Patching footer in \@outputpage
Patching \@makecol for tagging
Patching \@makecol for tagging
)) (/usr/local/texlive/2021/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/02/12 v1.4n Standard LaTeX document class
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2021/texmf-dist/tex/latex/pstricks/pstricks.sty
(/usr/local/texlive/2021/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics-def/luatex.def))
(/usr/local/texlive/2021/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-pa
tches-tmp-ltx.sty)
(/usr/local/texlive/2021/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/usr/local/texlive/2021/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2021/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2021/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/usr/local/texlive/2021/texmf-dist/tex/generic/xkeyval/keyval.tex)))))
(./pstricks.tex
(/usr/local/texlive/2021/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv))
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.te
x
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-li
sts.tex))
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.c
ode.tex))
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
Loading pgffor.code.tex
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex
)
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.
tex
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic
.code.tex)
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigo
nometric.code.tex)
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.rando
m.code.tex)
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.compa
rison.code.tex)
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.
code.tex)
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round
.code.tex)
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.
code.tex)
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integ
erarithmetics.code.tex)))
(/usr/local/texlive/2021/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex)
))
`PSTricks' v3.08 <2021/09/10> (tvz,hv)
--- We are running lualatex with luapstricks ---
(./pstricks-color.tex)
(/usr/local/texlive/2021/texmf-dist/tex/generic/pstricks/pstricks-arrows.tex)
definefont is not implemnted. Pushing dummy font.
Test lualatex
Test true
) (/usr/local/texlive/2021/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv)))
(/usr/local/texlive/2021/texmf-dist/tex/latex/libertinus/libertinus.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty
(/usr/local/texlive/2021/texmf-dist/tex/generic/iftex/ifxetex.sty)
(/usr/local/texlive/2021/texmf-dist/tex/generic/iftex/ifluatex.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/textcomp.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/unicode-math/unicode-math.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.
sty (/usr/local/texlive/2021/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty
) (/usr/local/texlive/2021/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/fontenc.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/fix-cm.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/local/texlive/2021/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2021/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2021/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2021/texmf-dist/tex/lualatex/lualatex-math/lualatex-math.st
y)
(/usr/local/texlive/2021/texmf-dist/tex/latex/unicode-math/unicode-math-table.t
ex)))
*************************************
* Using libertinus math *
*************************************
)) (./test.aux)
(/usr/local/texlive/2021/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
Test lualatex
Test true
>>>>>>>>>>>>>>>> HIER <<<<<<<<<<<<<<
[1{/usr/local/texlive/2021/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./test.aux))
484 words of node memory still in use:
6 hlist, 2 vlist, 2 rule, 2 glue, 4 kern, 1 glyph, 6 attribute, 52 glue_spec
, 6 attribute_list, 1 write nodes
avail lists: 1:1,2:51,3:12,4:26,5:26,6:2,7:35,9:35
</usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertinus-fonts/Libe
rtinusSans-Regular.otf>
Output written on test.pdf (1 page, 3069 bytes).
Transcript written on test.log.
There are a couple of things that I think are left over from a previous test:
(/usr/local/texlive/2021/texmf-dist/tex/generic/pstricks/pstricks-arrows.tex)
definefont is not implemnted. Pushing dummy font.
Test lualatex
Test true
Test lualatex
Test true
>>>>>>>>>>>>>>>> HIER <<<<<<<<<<<<<<
Yes, thanks. I already saw this. Forget to delete some comments ... :-(
I think I can now close this with my memory help finished :D
The gridfont
and PSfont
keys have been updated for use with lualatex
, it is now possible to use gridfont=
or gridfont={}
which will take the font defined at that point. For example:
\documentclass{article}
\usepackage{pstricks}
\usepackage{libertinus} % for gridfont={}
\pagestyle{empty}
\begin{document}
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red,gridfont={}](2,2) % libertinus
\end{pspicture}
\end{document}
In case of running these new options with dvips/ps2pdf
or xelatex
they will not take the current font and will return Courier
or NimbusMonoPS-Regular
as a replacement.
gridfont
and PSfont
supported by all enginesFontName (URW) Corresponding Adobe font Mapped TeX Gyre
Work with dvips/ps2pdf Work with dvips/ps2pdf Work with lualatex
xelatex and lualatex xelatex and lualatex
---------------------------------------------------------------------------------------
URWGothicL-Demi AvantGarde-Demi texgyreadventor-bold.otf
URWGothicL-DemiObli AvantGarde-DemiOblique texgyreadventor-italic.otf
URWGothicL-Book AvantGarde-Book texgyreadventor-regular.otf
URWGothicL-BookObli AvantGarde-BookOblique texgyreadventor-italic.otf
URWBookmanL-DemiBold Bookman-Demi texgyrebonum-bold.otf
URWBookmanL-DemiBoldItal Bookman-DemiItalic texgyrebonum-bolditalic.otf
URWBookmanL-Ligh Bookman-Light texgyrebonum-regular.otf
URWBookmanL-LighItal Bookman-LightItalic texgyrebonum-italic.otf
NimbusMonL-Bold Courier-Bold texgyrecursor-bold.otf
NimbusMonL-BoldObli Courier-BoldOblique texgyrecursor-bolditalic.otf
NimbusMonL-Regu Courier texgyrecursor-regular.otf
NimbusMonL-ReguObli Courier-Oblique texgyrecursor-italic.otf
NimbusSanL-Bold Helvetica-Bold texgyreheros-bold.otf
NimbusSanL-BoldCond Helvetica-Narrow-Bold texgyreheroscn-bold.otf
NimbusSanL-BoldItal Helvetica-BoldOblique texgyreheros-bolditalic.otf
NimbusSanL-BoldCondItal Helvetica-Narrow-BoldOblique texgyreheroscn-bolditalic.otf
NimbusSanL-Regu Helvetica texgyreheros-regular.otf
NimbusSanL-ReguCond Helvetica-Narrow texgyreheroscn-regular.otf
NimbusSanL-ReguItal Helvetica-Oblique texgyreheros-italic.otf
NimbusSanL-ReguCondItal Helvetica-Narrow-Oblique texgyreheroscn-italic.otf
CenturySchL-Bold NewCenturySchlbk-Bold texgyreschola-bold.otf
CenturySchL-BoldItal NewCenturySchlbk-BoldItalic texgyreschola-bolditalic.otf
CenturySchL-Roma NewCenturySchlbk-Roman texgyreschola-regular.otf
CenturySchL-Ital NewCenturySchlbk-Italic texgyreschola-italic.otf
URWPalladioL-Bold Palatino-Bold texgyrepagella-bold.otf
URWPalladioL-BoldItal Palatino-BoldItalic texgyrepagella-bolditalic.otf
URWPalladioL-Roma Palatino-Roman texgyrepagella-regular.otf
URWPalladioL-Ital Palatino-Italic texgyrepagella-italic.otf
StandardSymL Symbol usyr (type 1)
NimbusRomNo9L-Medi Times-Bold texgyretermes-bold.otf
NimbusRomNo9L-MediItal Times-BoldItalic texgyretermes-bolditalic.otf
NimbusRomNo9L-Regu Times-Roman texgyretermes-regular.otf
NimbusRomNo9L-ReguItal Times-Italic texgyretermes-italic.otf
URWChanceryL-MediItal ZapfChancery-MediumItalic texgyrechorus-mediumitalic.otf
Dingbats ZapfDingbats uzdr (type 1)
The following fonts (Adobe names) are not embedded by default when using dvips/ps2pdf
and xelatex
.
To embed them with ps2pdf
you must pass the argument -dPDFSETTINGS=/prepress
to the command line.
pst-tools
is uploaded to CTAN and also available here in git.pst-mirror
has to wait, it usescharpath
. In a couple of days I'll delete all PSTricks files because they are all available via default TL or MiKTeX update.
@hvoss49 Add the pst-func
package too :)
There were no changes in pst-func, so no upload. Or do I miss something??
Try PSfont={}
in:
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
\documentclass{article}
\usepackage{pst-func}
\usepackage{libertinus} % for gridfont={}
\setlength{\parindent}{0pt}
\addtolength{\hoffset}{-1.5cm}
\pagestyle{empty}
\begin{document}
\definecolor{BeigeTS}{rgb}{0.98,0.95,0.87}
\definecolor{CornBlauTS}{rgb}{0.39,0.59,0.93}
\definecolor{SandBraun}{rgb}{0.96,0.64,0.38}
\psset{yunit=1.25cm,arrowinset=0.02,arrowlength=2,linewidth=0.5pt,saveNodeCoors,NodeCoorPrefix=n,comma}
\def\funkf{2*sqrt(x)*cos(ln(x))*sin(x)}
\begin{pspicture}[plotpoints=500,algebraic,fontscale=5,markZeros,PrintCoord,PointName=N,dotscale=0.7](-0.5,-3)(10,2.5)
\psStep[fillstyle=solid,fillcolor=BeigeTS,opacity=0.7,linewidth=0.3pt,linecolor=SandBraun!50](0.001,9.5){40}{\funkf}
\psStep[StepType=Riemann,fillstyle=solid,opacity=0.3,fillcolor=CornBlauTS,linecolor=CornBlauTS,linewidth=0.3pt](0.001,9.5){40}{\funkf}
\psaxes[labelFontSize=\scriptstyle,ticksize=-0.1 0]{->}(0,0)(0,-2.75)(10,2.5)
\psplot[linecolor=BeigeTS!60,linewidth=0.8pt]{0.001}{9.75}{\funkf}
\psplotTangent[linecolor=blue,Derive={Derive(1,\funkf)}]{1.29}{1.5}{\funkf}
\uput[90](6,1.2){$f(x)=2\cdot\sqrt{x}\cdot\cos{(\ln{x})}\cdot\sin{x}$}
{\psset{dotscale=1.5,linecolor=blue!50!black!90,ydecimals=0,Framed,opacity=0.8,decimals=1}
\psZero[xShift=-0.2,yShift=0.15,postString=1,Newton](0.5,1){\funkf}{N1}
\psZero[xShift=-0.05,yShift=0.15,postString=2](2,4){\funkf}{N2}
\psZero[xShift=-0.45,yShift=0.15,postString=3](4,6){\funkf}{N3}
\psZero[xShift=-0.45,yShift=0.15,postString=4](6,7){\funkf}{N4}
\psZero[xShift=-0.45,yShift=0.15,postString=5](9,11){\funkf}{N5}
\psZero[xShift=-1.15,yShift=0,PointName=M,decimals=0,linestyle=none,fillcolor=SandBraun,
opacity=0.8,postString={m=1}](0.5,2){Derive(1,\funkf)-1+\funkf}[\funkf]{M}%
}
\pcline{->}(0.5,-1)(M)
\nbput[nrot=:U,labelsep=0.01]{%
\scriptsize Steigung ist hier\phantom{i}
%\psPrintValueNew[PSfont=Palatino-Roman,decimals=0,round,fontscale=7]{nMx,{Derive(1,\funkf)}}}
\psPrintValueNew[PSfont={},decimals=0,round,fontscale=7]{nMx,{Derive(1,\funkf)}}}
\psdot[linecolor=green,strokeopacity=0.8](*{nMx} {\funkf})
\uput[90](*{nMx} {\funkf}){$m=$
\psPrintValueNew[PSfont=Palatino-Roman,decimals=0,round,fontscale=8]{nMx,{Derive(1,\funkf)}}}
\end{pspicture}
\end{document}
A collision with PSfont keyword of pstricks. Try the uploaded pst-tools and rename PSfont
to printfont
Mmm...changing the key name in pst-tools
will break several things...can you get around this in another way?
Sure, but then you have to choose \psset[pst-tools]{PSfont={}}
and cannot use it as optional argumnt for the macro itself.
So far, all the keys associated with grid are working perfectly, with the exception of
gridfont
. Complete example file:UPDATE Now works !!