when I use the following commands, the table exceeds the width of the page. While in the document how to use the package booktabs it does not exceeds the width of the page. What should I do?
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
Maybe you can combine two things: make the table font size smaller and let it stick into the margins a bit. In an example below I show a possibility how to do that. I also removed the superfluous empty columns and the repeated use of mathmode in the cells. Instead I put the whole first column in mathmode and used S columns (as provided by the siunitx package) for the remaining columns in order to align the numbers at their decimal point and get a minus sign instead of a dash for the negative values:
Sounds like you have a very outdated TeX distribution. siunitx requires an up to date distribution so you should probably install MiKTeX 2.9 or TeX Live 2012.
Hello
Thanks for your answers. Is there any other solution to avoid the use of siunitx package. I made a search on how to use TexLive2012 and it seems that it needs many steps. I didn't have enough time to install it.
Thanks.
I guess you don't want to risk a working LaTeX environment on your computer for installing a new system. You could try a LaTeX online compiler, such as writeLaTeX, Spandex.io or ShareLaTeX, which use a current TeX version. They usually provide a free account plus advanced paid services, so you could simply try. Once you made sure you can compile online, you can safely remove your old TeX installation in favor of a new one.
Exactly, I didn't want to take such risk and lose all the package that I have installed previously. I just tried the link you gave me Stefan and the solution of gnieder works very well. Many thanks.
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