I'm having problems in fixing width of the columns in tables without the tedium of having to calculate the column widths. So I tried some solution: I used the code mentioned here. But when I apply this code to my template, the compilation stops.
Here is my sample latex online document, if you want to test the code.
\documentclass{article}
\usepackage{tabularx,ragged2e,booktabs}
\newcolumntype{L}{>{\RaggedRight\arraybackslash}X} % ragged-right version of "X"
\begin{document}
\begin{table}[]
\centering
\caption[Co-ocurrencia de temas de <<activistas>>. Actores: 15M. Día: 15 de mayo]{Co-ocurrencia de temas de <<activistas>>. Actores: 15M. Día: 15 de mayo. \\\small Fuente y elaboración propias}
\label{matriz_15m_activismo_activistas}
\begin{tabularx}{\textwidth}{@{} lLLLLL @{}}
& Espacios & Movilización & Policía & Políticos & Represión \\ \midrule
Espacios & 0 & 8 & 39 & 10 & 36 \\
Medios & 0 & 0 & 0 & 0 & 4 \\
Movilización & 8 & 0 & 7 & 1 & 4 \\
Policía & 39 & 7 & 0 & 1 & 53 \\
Políticos & 10 & 1 & 1 & 0 & 0 \\
Represión & 36 & 4 & 53 & 0 & 0 \\
\end{tabularx}
\end{table}
\end{document}


\newcolumntype...line and the table code from your MWE. I cannot replicate your problem there. Also, theinputencpackage is already loaded in theclsfile, no need to load it again in the maintexdocument (just something I spotted when quickly perusing your code; not sure if there are more doubly loaded packages). And yeah, +1 for David Carlisle's advice regarding example code (I don't usually follow external links, but curiosity got the better of me in this case). Still: good luck! – alpenwasser May 09 '17 at 22:04