zauguin / luapstricks

8 stars 0 forks source link

Projected text with pst-solides3d #82

Open hvoss49 opened 2 years ago

hvoss49 commented 2 years ago
\RequirePackage{pdfmanagement-testphase}
\DocumentMetadata{}
\documentclass{article}
\usepackage{pst-solides3d}

\begin{document}
\psset{viewpoint=50 20 30 rtp2xyz,Decran=50}
\begin{pspicture}(-4,-4)(4,5)
    \psset{unit=0.5,solidmemory,lightsrc=viewpoint}
    \psSolid[object=cube,a=8,action=draw**,name=A,linecolor=red]%
    \psset{fontsize=80}
    \psSolid[object=plan,action=none, definition=solidface,args=A 0,name=P0]
    \psProjection[object=texte,linecolor=red,text=Side A,plan=P0]%
    \psSolid[object=plan,action=none,definition=solidface,args=A 1,name=P1]
    \psProjection[object=texte,linecolor=red,text=Side B,plan=P1]%
    \psSolid[object=plan,action=none,definition=solidface,args=A 4,name=P4]
    \psProjection[object=texte,linecolor=red,text=Side E,plan=P4]%
    \axesIIID(4,4,4)(6,6,6)
\end{pspicture}
\end{document}

ouput:

Bildschirmfoto 2022-07-24 um 16 28 50

expected:

Bildschirmfoto 2022-07-24 um 16 28 33

version = 'v0.5', date = '2022-04-20',

pablgonz commented 2 years ago

@hvoss49 Hi, i get this in .log file:

) [1...2022/texmf-dist/tex/lualatex/luapstricks/luapstricks.lua:4048: ...2022/t
exmf-dist/tex/lualatex/luapstricks/luapstricks.lua:794: Unknown name "charpath"

stack traceback:
    [C]: in function 'error'
    ...2022/texmf-dist/tex/lualatex/luapstricks/luapstricks.lua:4178: in function 
<...2022/texmf-dist/tex/lualatex/luapstricks/luapstricks.lua:4153>
    [C]: in function 'vf.node'
    ...2022/texmf-dist/tex/lualatex/luapstricks/luapstricks.lua:4146: in function 
<...2022/texmf-dist/tex/lualatex/luapstricks/luapstricks.lua:4137>.
<inserted text> BAD

l.20 \end{document}

With TeX Live updated as of today.

Related to https://github.com/zauguin/luapstricks/issues/35

hvoss49 commented 2 years ago

I cannot see it in my run, Up-to-date TL2022

pablgonz commented 2 years ago

Mmm... On Win10/Fedora get same log file.

pablgonz commented 1 year ago

@hvoss49 I have updated to the current version of the repository and I find again the same error with TL23

This is LuaHBTeX, Version 1.16.0 (TeX Live 2023)  (format=lualatex 2023.4.13)  15 APR 2023 22:06
 restricted system commands enabled.
**issue82.tex
(./issue82.tex
LaTeX2e <2022-11-01> patch level 1
Lua module: luaotfload 2022-10-03 3.23 Lua based OpenType font support
Lua module: lualibs 2022-10-04 2.75 ConTeXt Lua standard libraries.
Lua module: lualibs-extended 2022-10-04 2.75 ConTeXt Lua libraries -- extended c
ollection.
luaotfload | conf : Root cache directory is "/home/pablo/.texlive2023/texmf-var/
luatex-cache/generic/names".
luaotfload | init : Loading fontloader "fontloader-2022-10-03.lua" from kpse-res
olved path "/usr/local/texlive/2023/texmf-dist/tex/luatex/luaotfload/fontloader-
2022-10-03.lua".
Lua-only attribute luaotfload@noligature = 1
luaotfload | init : Context OpenType loader version 3.120
Inserting `luaotfload.node_processor' in `pre_linebreak_filter'.
Inserting `luaotfload.node_processor' in `hpack_filter'.
Inserting `luaotfload.glyph_stream' in `glyph_stream_provider'.
Inserting `luaotfload.define_font' in `define_font'.
Lua-only attribute luaotfload_color_attribute = 2
luaotfload | conf : Root cache directory is "/home/pablo/.texlive2023/texmf-var/
luatex-cache/generic/names".
Inserting `luaotfload.harf.strip_prefix' in `find_opentype_file'.
Inserting `luaotfload.harf.strip_prefix' in `find_truetype_file'.
Removing  `luaotfload.glyph_stream' from `glyph_stream_provider'.
Inserting `luaotfload.harf.glyphstream' in `glyph_stream_provider'.
Inserting `luaotfload.harf.finalize_vlist' in `post_linebreak_filter'.
Inserting `luaotfload.harf.finalize_hlist' in `hpack_filter'.
Inserting `luaotfload.cleanup_files' in `wrapup_run'.
Inserting `luaotfload.harf.finalize_unicode' in `finish_pdffile'.
Inserting `luaotfload.glyphinfo' in `glyph_info'.
Lua-only attribute luaotfload.letterspace_done = 3
Inserting `luaotfload.aux.set_sscale_dimens' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.set_font_index' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.patch_cambria_domh' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.fixup_fontdata' in `luaotfload.patch_font_unsafe'.
Inserting `luaotfload.aux.set_capheight' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.set_xheight' in `luaotfload.patch_font'.
Inserting `luaotfload.rewrite_fontname' in `luaotfload.patch_font'. L3 programm
ing layer <2023-03-30>
Inserting `tracingstacklevels' in `input_level_string'.
(/usr/local/texlive/2023/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanage
ment-testphase.sty
Package: pdfmanagement-testphase 2023-03-09 v0.95x LaTeX PDF management testpha
se bundle

(/usr/local/texlive/2023/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty
Package: tagpdf-base 2023-03-07 v0.98e part of tagpdf - provide base, no-op ver
sions of the user commands 
\c@g__tag_struct_abs_int=\count183
)
(/usr/local/texlive/2023/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanage
ment-testphase.ltx
File: pdfmanagement-testphase.ltx 2023-03-09 v0.95x PDF management code (testph
ase)
\g__pdfmanagement_EmbeddedFiles_int=\count184

(/usr/local/texlive/2023/texmf-dist/tex/latex/l3experimental/l3bitset/l3bitset.
sty
Package: l3bitset 2023-03-30 L3 Experimental bitset support
\l__bitset_internal_int=\count185
)
\l__pdfmeta_xmp_indent_int=\count186
))
(/usr/local/texlive/2023/texmf-dist/tex/latex/latex-lab/documentmetadata-suppor
t.ltx)
(/usr/local/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-luatex.def
File: l3backend-luatex.def 2023-03-30 L3 backend support: PDF output (LuaTeX)
\l__color_backend_stack_int=\count187
Inserting `l3color' in `luaotfload.parse_color'.
Inserting `l3opacity' in `luaotfload.parse_transparent'.
\l__pdf_internal_box=\box51
)
(/usr/local/texlive/2023/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend
-testphase-luatex.def
File: l3backend-testphase-luatex.def 2023-03-09 LaTeX PDF management testphase 
bundle backend support:PDFoutput(LuaTeX)

(/usr/local/texlive/2023/texmf-dist/tex/latex/pdfmanagement-testphase/l3ref-tmp
.sty
Package: l3ref-tmp 2021-06-23 L3 Experimental cross-referencing
)
\l__pdf_backend_tmpa_box=\box52
\l__pdf_backend_tmpb_box=\box53
\g__pdf_backend_resourceid_int=\count188
\g__pdf_backend_name_int=\count189
\g__pdf_backend_page_int=\count190
)
(/usr/local/texlive/2023/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanage
ment-firstaid.sty
Package: pdfmanagement-firstaid 2023-03-09 v0.95x LaTeX PDF management testphas
e bundle / firstaid-patches

Package pdfmanagement Info: loading pdfmanagement firstaid code for pgf

)
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2022/07/02 v1.4n Standard LaTeX file (size option)
luaotfload | db : Font names database loaded from /home/pablo/.texlive2023/texmf
-var/luatex-cache/generic/names/luaotfload-names.luc.gz)
\c@part=\count191
\c@section=\count192
\c@subsection=\count193
\c@subsubsection=\count194
\c@paragraph=\count195
\c@subparagraph=\count196
\c@figure=\count197
\c@table=\count198
\abovecaptionskip=\skip48
\belowcaptionskip=\skip49
\bibindent=\dimen139
)
(/usr/local/texlive/2023/texmf-dist/tex/latex/pst-solides3d/pst-solides3d.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/pstricks/pstricks.sty
Package: pstricks 2022/19/23 v0.72 LaTeX wrapper for `PSTricks' (RN,HV)

(/usr/local/texlive/2023/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2022/02/03 v1.0f TeX engine tests
)
(/usr/local/texlive/2023/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2022/06/12 v2.14 LaTeX color extensions (UK)

(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: luatex.def on input line 227.

(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics-def/luatex.def
File: luatex.def 2022/09/22 v1.2d Graphics/color driver for luatex
)
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics/mathcolor.ltx)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1353.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1357.
Package xcolor Info: Model `RGB' extended on input line 1369.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1371.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1372.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1373.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1374.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1375.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1376.
)
(/usr/local/texlive/2023/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-pa
tches-tmp-ltx.sty
Package: xcolor-patches-tmp-ltx 2023-03-09 v0.95x patch xcolor for l3color
)
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)

(/usr/local/texlive/2023/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2022/06/16 v2.9 package option processing (HA)

(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks16
\XKV@tempa@toks=\toks17

(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/keyval.tex))
\XKV@depth=\count199
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
)))
(/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv)
\pstFP@xs=\count266
\pstFP@xia=\count267
\pstFP@xib=\count268
\pstFP@xfa=\count269
\pstFP@xfb=\count270
\pstFP@rega=\count271
\pstFP@regb=\count272
\pstFP@regs=\count273
\pstFP@times=\count274
)
(/usr/local/texlive/2023/texmf-dist/tex/latex/pgf/utilities/pgffor.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.te
x
\pgfutil@everybye=\toks18
\pgfutil@tempdima=\dimen140
\pgfutil@tempdimb=\dimen141
)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def
\pgfutil@abb=\box54
) (/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/pgf.revision.tex)
Package: pgfrcs 2023-01-15 v3.1.10 (3.1.10)
))
(/usr/local/texlive/2023/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
\pgfkeys@pathtoks=\toks19
\pgfkeys@temptoks=\toks20

(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfil
tered.code.tex
\pgfkeys@tmptoks=\toks21
)))
(/usr/local/texlive/2023/texmf-dist/tex/latex/pgf/math/pgfmath.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex
\pgf@x=\dimen142
\pgf@xa=\dimen143
\pgf@xb=\dimen144
\pgf@xc=\dimen145
\pgf@y=\dimen146
\pgf@ya=\dimen147
\pgf@yb=\dimen148
\pgf@yc=\dimen149
\c@pgf@counta=\count275
\c@pgf@countb=\count276
\c@pgf@countc=\count277
\c@pgf@countd=\count278
)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex
\pgfmath@dimen=\dimen150
\pgfmath@count=\count279
\pgfmath@box=\box55
\pgfmath@toks=\toks22
\pgfmath@stack@operand=\toks23
\pgfmath@stack@operation=\toks24
)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.
tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic
.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigo
nometric.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.rando
m.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.compa
rison.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.
code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round
.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.
code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integ
erarithmetics.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex
\c@pgfmathroundto@lastzeros=\count280
)))
(/usr/local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
Package: pgffor 2023-01-15 v3.1.10 (3.1.10)
\pgffor@iter=\dimen151
\pgffor@skip=\dimen152
\pgffor@stack=\toks25
\pgffor@toks=\toks26
))
\psLoopIndex=\count281
`PSTricks' v3.18  <2022/11/28> (tvz,hv)
\pst@dima=\dimen153
\pst@dimb=\dimen154
\pst@dimc=\dimen155
\pst@dimd=\dimen156
\pst@dimg=\dimen157
\pst@dimh=\dimen158
\pst@dimm=\dimen159
\pst@dimn=\dimen160
\pst@dimo=\dimen161
\pst@dimp=\dimen162
\pst@hbox=\box56
\pst@ibox=\box57
\pst@boxg=\box58
\pst@cnta=\count282
\pst@cntb=\count283
\pst@cntc=\count284
\pst@cntd=\count285
\pst@cntg=\count286
\pst@cnth=\count287
\pst@cntm=\count288
\pst@cntn=\count289
\pst@cnto=\count290
\pst@cntp=\count291
\@zero=\count292
\pst@toks=\toks27
--- We are running lualatex with luapstricks ---
Lua module: luapstricks 2023-04-14 v0.9 PSTricks backend for LuaLaTeX
Lua function luaPST = 26
Lua function luaPSTcolor = 27
Lua function luaPSTbox = 28 (/usr/local/texlive/2023/texmf-dist/tex/generic/pst
ricks/pstricks-color.tex)
\psunit=\dimen163
\psxunit=\dimen164
\psyunit=\dimen165
\pst@C@@rType=\count293
\pslinewidth=\dimen166
\psk@startLW=\dimen167
\psk@endLW=\dimen168

(/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-arrows.tex
\pshooklength=\dimen169
\pshookwidth=\dimen170
)
\pst@customdefs=\toks28

(/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/pstricks-dots.tex)
\pslinearc=\dimen171
\pst@symbolStep=\dimen172
\pst@symbolWidth=\dimen173
\pst@symbolLinewidth=\dimen174
\everypsbox=\toks29
\psframesep=\dimen175
\pslabelsep=\dimen176
\sh@wgridXunit=\dimen177
\sh@wgridYunit=\dimen178
\pst@shift=\dimen179
\ps@imagectr=\count294
)
File: pstricks.tex 2022/11/28 v3.18 `PSTricks' (tvz,hv)

(/usr/local/texlive/2023/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv))
File: pst-fp.tex 2020/11/20 v0.06 `PST-fp' (hv)
)
Package: pst-solides3d 2017/03/03 package wrapper for pst-solides3d

(/usr/local/texlive/2023/texmf-dist/tex/generic/pst-solides3d/pst-solides3d.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/pst-node/pst-node.tex
 v1.43, 2022/01/31
\psrow=\count295
\pscol=\count296
\psmatrixcnt=\count297
\psrowsep=\skip50
\pscolsep=\skip51
\pst@args=\count298
\num@pts=\count299
\pst@argcnt=\count300
)
(/usr/local/texlive/2023/texmf-dist/tex/generic/multido/multido.tex
 v1.42, 2010/05/14 <tvz>
\multido@count=\count301
\multidocount=\count302
\multido@stuff=\toks30
) `PSTSOLIDESIIID' v4.34a, 2018/12/27
\test@mode=\count303
)
File: pst-solides3d.tex 2018/12/27 v4.34a `PST-solides3D'
) (./issue82.aux)
\openout1 = issue82.aux

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 6.
LaTeX Font Info:    Trying to load font information for TS1+cmr on input line 6
.
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 2022/07/10 v2.5l Standard LaTeX font definitions
)
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for TU/lmr/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.

(/usr/local/texlive/2023/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count304
\scratchdimen=\dimen180
\scratchbox=\box59
\nofMPsegments=\count305
\nofMParguments=\count306
\everyMPshowfont=\toks31
\MPscratchCnt=\count307
\MPscratchDim=\dimen181
\MPnumerator=\count308
\makeMPintoPDFobject=\count309
\everyMPtoPDFconversion=\toks32
)
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 18.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 18.
 [1

./luapstricks.lua:4119: ./luapstricks.lua:801: Unknown name "charpath"
stack traceback:
    [C]: in function 'error'
    ./luapstricks.lua:4153: in function <./luapstricks.lua:4130>
    (...tail calls...)
    [C]: in function 'vf.node'
    ./luapstricks.lua:4195: in function <./luapstricks.lua:4186>.
<inserted text> BAD

l.20 \end{document}

? 
{/usr/local/texlive/2023/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./issue82.aux))

Here is how much of LuaTeX's memory you used:
 11076 strings out of 478278
 100000,1977958 words of node,token memory allocated
 416 words of node memory still in use:
   3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 4 attribute, 50 glue_spec,
 4 attribute_list, 1 write nodes
   avail lists: 2:114,3:5,4:72,5:29,6:2,7:103,8:1,9:85
 30984 multiletter control sequences out of 65536+600000
 29 fonts using 1869375 bytes
 90i,5n,99p,599b,285s stack positions out of 10000i,1000n,20000p,200000b,200000s
</usr/local/texlive/2023/texmf-dist/fonts/opentype/public/lm/lmroman10-regular.o
tf></usr/local/texlive/2023/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb
>
Output written on issue82.pdf (1 page, 22796 bytes).

PDF statistics: 23 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 131072)
 11 words of extra memory for PDF output out of 10000 (max. 100000000)
hvoss49 commented 1 year ago

Sure, charpath is the only function which still isn't supported by luapstricks.