I need to have tables exactly in plase, where I put them. I tried to use /table[h], but not works. Is any method to forse latex to input table exactly where I want to?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
there are at least two options to prevent your tables from floating.
1) Do not to use the table floating environment; in its stead, use minipages and the \captionof command from the caption package (if the tabular material requires caption). A little example:
\documentclass{article}
\usepackage{caption}
\begin{document}
text text text text
\noindent\begin{minipage}{\linewidth}
\centering
\begin{tabular}{cc}\hline
column1 & column2 \\\hline
\end{tabular}
\captionof{table}{a non-floating table}
\label{tab:test1}
\end{minipage}
text text text text
\noindent\begin{minipage}{\linewidth}
\centering
\begin{tabular}{cc}\hline
column1 & column2 \\\hline
\end{tabular}
\captionof{table}{another non-floating table}
\label{tab:test2}
\end{minipage}
text text text text
\end{document}
\documentclass{article}
\usepackage{float}
\begin{document}
text text text text
\begin{table}[H]
\centering
\begin{tabular}{cc}\hline
column1 & column2 \\\hline
\end{tabular}
\caption{a non-floating table}
\label{tab:test1}
\end{table}
text text text text
\begin{table}[H]
\centering
\begin{tabular}{cc}\hline
column1 & column2 \\\hline
\end{tabular}
\caption{another non-floating table}
\label{tab:test2}
\end{table}
text text text text
\end{document}
\documentclass{article}
\usepackage{float}
\begin{document}
text text text text
\begin{table}[H]
\centering
\begin{tabular}{cc}\hline
column1 & column2 \\\hline
\end{tabular}
\caption{a non-floating table}
\label{tab:test1}
\end{table}
text text text text
\begin{table}[H]
\centering
\begin{tabular}{cc}\hline
column1 & column2 \\\hline
\end{tabular}
\caption{another non-floating table}
\label{tab:test2}
\end{table}
text text text text
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p