\documentclass[a4paper,12pt]{article} %% Well understand input, and nice output \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{hyperref} \hypersetup{colorlinks} % uncomment this line if you prefer colored hyperlinks (e.g., for onscreen viewing) \usepackage{palatino} % For graphics / images \usepackage{graphicx} \graphicspath{{graphics/}} \DeclareGraphicsExtensions{.pdf,.eps,.png,.jpg} %% Easy for loop for LaTeX % https://stackoverflow.com/a/5958641/ \usepackage{pgffor} \usepackage[right]{pokemonnumbering} % Metadata \title{Pokédex} \author{Lilian Besson} \begin{document} % full title page \maketitle \thispagestyle{empty} \tableofcontents \pokemonnumbering % all the Pokémons % \foreach \n in {1}{ % \foreach \n in {1,...,3}{ \foreach \n in {1,...,151}{ \input{src/\n.tex} } \end{document}