On Monday, December 13, 2021, Andrea paz <gamberucci.andrea@gmail.com> wrote:
> Andrea,
> Latex problem in Auxiliaryprograms.tex that I tried several ways to fix.  If you have any idea how to fix this, please do so.

Sorry Phyllis, I don't think I understand the problem. I tried
manually copying the script into a file (jpeglist.sh) and it works
without error. I tried copying and pasting from the html page into a
file and that works fine too. However, copying and pasting from the
pdf brings an error on line 20 and doesn't work. Finally doing the
copy and paste from the LaTeX code works fine. In short, only copying
from the pdf produced by latex leads to the error.
Doing a diff between the jpeglist.sh file produced from pdf and html
does not show any difference (only indentation differences).
The "listing" package should only show the code that is written in it
without alterations. Let's hear Andrey if he can explain this
behavior. I attach the 3 jpeglist.sh that I used.
NOTE1: to the command "jpeglist.sh outfile infiles*.jpg" I have to
prefix ./ otherwise it doesn't work (and I have to make it
executable).
NOTE2: The pdf manual splits the "code" block into 2 pages. Could this
be the cause of the problem?
NOTE3: even the "outfile" that came without error, do not work once
imported into CinGG.

well, last note a bit concerned - because  user migh hope provided script work out of the box? 

did you looked into created list - was it using relative image pathes? or absolute? did changing them one way or another resulted in working list?