Move \section commands up to \input commands