I am trying to create a loop that will print out a list of image files. All of these image files have a filename like this: fa-x.jpg (where x is a character from a - h). I've made a loop, but the counter variable is not properly being converted into a character and is causing an error. Here is the code so far:
\count255 = 97
\loop
\subsection*{Part (\char\number\count255)}
\includegraphics[scale=0.7]{fa-\char\number\count255.jpg}
\hfil\break
\ifnum\count255 < 104
\advance\count255 by 1
\repeat
The error I am geting:
LaTeX Warning: File `fa-\char 97.jpg' not found on input line 77.
So, it is not converting 97 into a char because it's inside the \includegraphics argument. Keep in mind that in the above loop, the \subsection line works and prints out the characters a - h.
\documentclass{...}and ending with\end{document}. – cfr Jan 21 '15 at 03:45\alphfits your job. – Symbol 1 Jan 21 '15 at 03:49\alphis OP's final goal. Nevertheless If expansion-analysis is welcomed, I will post an answer in minutes. – Symbol 1 Jan 21 '15 at 05:32