Usually to import packages we do
\usepackage{a}
...
\usepackage{z}
what if I wanted to define a file containing the package names
./myPackages.tex
a,b, ... ,z
How can I import this file into my main LaTeX file. I have tried \usepackage{\input{myPackages}} and this did not work.
\usepackagenot a list of package names, – David Carlisle Apr 01 '22 at 16:15