Binaries from one part not available for second part

Hello I am building a snap. The second part requires some binaries from a pre-existing latex snap. I have added the latex snap as the first part and specified in the second part:

after: [ latex ]

but the second part fails to build because binaries such as pdflatex and texi2any are not in the PATH. Should I manually set the path during the build for the second part? I can see the pdflatex at ${SNAPCRAFT_STAGE}/usr/bin when I run snapcraft --debug

Yes, you should add the dir to your PATH variable in the build-environment block of your part…