Graphics, Figures & TablesExcel-like tables of experimental data

Information and discussion about graphics, figures & tables in LaTeX documents.
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Excel-like tables of experimental data

Post by Cham »

Johannes,

there are 2 things I need to understand :

1. Why the \noindent after the \begin{center} ? Apparently, this does nothing.
2. How did you choose the 0.8\linewidth after \begin{minipage} ? Currently, the main table isn't exactly centered on the page (within the margins).

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Excel-like tables of experimental data

Post by Johannes_B »

1. Correct, i added the center environment later and missed removing the \noindent.

2. .8 Seemed to be a reasonable good value. You need to fiddle a bit to visually center. Due to the asymetry of the table, it will always look a bit crooked (i guess).
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Re: Excel-like tables of experimental data

Post by Cham »

Then what is the 0.x\linewidth parameter doing ? I don't see clearly the logic of it, after playing with it. There's surely a way to center a table on the page. The align environment was doing it perfectly.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Excel-like tables of experimental data

Post by Johannes_B »

You could place both tabular environments into a thirs as two different lines and center that tabular. BUt agreed, using align seems to be simpler though there are reasons presented above that warn.

.8 was just a random value.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply