1

I'm beginner in Latex, and need help, How can I, select all images on folder? I trying using the popular /*.jpg, but do not function

\documentclass{article} \usepackage{graphicx}

\begin{document}

\begin{figure}
\includegraphics[width=0.5\textwidth]{C:/Users/myuser/Pictures/Images/*.jpg}
\end{figure}

\end{document}
  • Welcome to TeX.Stackexchange! – user36296 Oct 3 '18 at 15:01
1

One approch could be to rename all the images by for example image1.jpg, image2.jpg, and so on. And if so we can use pgffor package like this:

   \documentclass{article} 
    \usepackage{graphicx,pgffor}

    \begin{document}

\foreach \i in {1,...,5}{
    \begin{figure} \includegraphics[width=0.5\textwidth]{C:/Users/myuser/Pictures/Images/image\i.jpg} \end{figure}
}
    \end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.