I have added a table and after the table a graph.
I am using \begin{table}[H] (i tried with !h but it doesn't fix the problem) to control position of tables and similar code for figures. But although I put explicitly the table before the graph, the graph appears before. Is there any way to control it? Is there any way to order all floats in one shot?
What i have in my file looks like this:
\begin{center}
\begin{table}[h]
\centering
\caption{Convergencia pm6}
\label{convergencia_cluster_pm6_table}
\begin{tabular}{|l|l|l|}
\hline
\textbf{nºconf} & \textbf{$\Delta G^0$-SS} & \textbf{$\Delta G^0$-Packmol} \\ \hline
5 & -64.6 & -64.7 \\ \hline
10 & -65.5 & -64.1 \\ \hline
15 & -63.7 & -66.5 \\ \hline
20 & -64.3 & -65.0 \\ \hline
30 & -65.9 & -66.3 \\ \hline
40 & -67.2 & -65.6 \\ \hline
\end{tabular}
\end{table}
\end{center}
and for images:
\begin{figure}
\caption{Convergencia pm6 cluster}
\label{Convergencia_cluser_pm6_figure}
\includegraphics[page=1,trim=0 140 0 360, clip, width=\linewidth]{imagenes/all_results_thesis.pdf}
\end{figure}

ht!or other options from the answer there – koleygr Aug 27 '17 at 02:10!has to be beforeht(!ht)... sorry. It was wrong in the previous comment too... But the others are more experienced... So you may ignore my answers – koleygr Aug 27 '17 at 02:18H. It is not to usetableorfigureat all. Usecaptionorcapt-ofif you need captions. – cfr Aug 27 '17 at 02:19Hoption. It is completely unnecessary always, and just causes problems in cases like this. – cfr Aug 27 '17 at 02:22\usepackage[spanish,es-noquoting]{babel}. That's why i didn't accept the answer, and i hadn't seen it also. – Aug 27 '17 at 03:52[!ht]was my suggestion... but I thing @cfr's solution should work (Almost nothing could break it) – koleygr Aug 27 '17 at 04:17tableorfigurewithcenterin your code andcaptionwithcaptionof{table}or\captionof{figure}and leave text of caption as is. For example old\caption{Mytable 1}will become\captionof{table}{Mytable 1}... Add also\usepackage{caption}in your preamble – koleygr Aug 27 '17 at 04:35tablenor afigureenvironment. – Mico Aug 27 '17 at 07:30es-noquotingsolution. That's why I offered another. (I know this is off-topic.) You don't need to accept my answer and probably shouldn't if you're using another solution. – cfr Aug 27 '17 at 11:33