I'm currently working on a document with LaTeX and I want to make all sectioning in a separate document.
On main.tex I have the following
\documentclass[fontsize=12pt, fonttype=arial]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[catalan, activeacute]{babel}
\usepackage{currfile}
\begin{document}
\tableofcontents
\newpage
\input{Composició de la matèria}
%On the future I will have more \input with more sections
\end{document}
And on "Composició de la matèria.tex" I have this
\section{\currfilebase}
%On the future I will have more text here
But the pdf output it's the following
It happens with all the catalan acutes, how could I do it?


