Issue exporting to pdf with images

Hi,

I have slides (using the Metropolis style) with some .png images that I’ve copy-pasted in (inserted, not linked). I also use some switch-statements here and there to create animations with these images. When I try to export to .pdf, I get the following error message (with no .pdf output):

Error: pdf_hummus, failed to include image file: /home/USERNAME/.TeXmacs/system/tmp/82533/tmp_122037794.pdf
Error: pdf_hummus, failed to include image file: /home/USERNAME/.TeXmacs/system/tmp/82533/tmp_975806923.pdf
Error: pdf_hummus, failed to include image file: /home/USERNAME/.TeXmacs/system/tmp/82533/tmp_1244392576.pdf
Error: Failed in end PDF

I’ve navigated to this /tmp/82533 folder, and I see all of the images I’ve pasted in, all .png’s. But I don’t see any .pdf files, or any files with similar file names to these three.

Is this a bug? Did I not include images correctly? Any help on this would be appreciated!

Could you send me (da AT liii.pro) your slides, and let me fix it?

I’m releasing Mogan v1.2.9.2 in the near future. I’d like to fix it for you.

Mogan is a distribution of GNU TeXmacs created by me, I can decide when to release Mogan. As one of the developers of GNU TeXmacs, I can not decide when to release GNU TeXmacs with bugs reported by you fixed.

I mean, it’s still unclear to me whether this is a bug or I just didn’t do image includes correctly. I also don’t remember the last time I updated GNU TeXmacs. (Maybe I should have tried that first!) So I can send you the slides, but also I’ll go ahead and see if I can replicate the issue on the most recent TeXmacs for KDE.

I appreciate your help!

Additional context that may be relevant: After pasting the images in, I did move them around, delete them, paste them back again, resize them, put them in tables, etc. Maybe some of these actions change the name of the temporary files, or something.

Hey, I had a similar issue when using the distropackage or generic linux build.

Can you try using the AppImage? In my case that fixed the PDF problem.

  • Download the AppImage from https://www.texmacs.org/tmweb/download/linux.en.html
  • (optionally) move it to a folder like ~/AppImages/
  • run chmod a+x TeXmacs-2.1.4.x86_64.AppImage
  • try to run the AppImage with ./TeXmacs-2.1.4.x86_64.AppImage
  • if it shows an error like texmacs.bin: symbol lookup error: /tmp/.mount_TeXmacNZFDz6/usr/bin/../lib/libcrypt.so.1: undefined symbol: __snprintf, version GLIBC_PRIVATE then run it with:
    env LD_PRELOAD="/lib64/libcrypt.so.1" ./TeXmacs-2.1.4.x86_64.AppImage

From my experience this is the only version which didn’t have problems with PDF export :frowning:

TeXmacs has issues with certain characters in the image file path, such as ;. Don’t know if this is the cause tho.