I'm new in this forum and i really need your help.
In fact, i need to put two tables side by side. I dit it but the problem is that the second column of the second table is not centered and i don't understand why.
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
That extra flexible space pushes the content to the right. I would use tabularx. That package provides stretchable columns too, up to a selectable table width.
I used your solution, the problem now is that the tables are one under the other. (See picture).
I forget to say that it's the same table (same caption) that i divided in two sub tables for a best fit.
in the first tabular but i have this error: (log file)
! Missing number, treated as zero.
<to be read again>
}
l.227 \end{tabularx}
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
eamrob wrote:the problem now is that the tables are one under the other. (See picture).
unlike your initial sub tables (using the minipages) with 0.3\linewidth each, you're now trying to put two sub tables with half the linewidth each, plus something in-between. Small wonder, really, that LaTeX breaks at this `something in-between'...
might even try to put more than the 1 cm from \hspace beween the sub tables: starting a new line between two somethings is like telling LaTeX you want a (horizontal) space between those two.
in the first tabular but i have this error: (log file)
! Missing number, treated as zero.
you must not omit the width for the {tabularx} environment (nor the column specification). With {tabularx}, the optional position argument goes between the two mandatory arguments:
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