Graphics, Figures & Tables ⇒ Help in table formatting
Re: Help in table formatting
gmedia's last post is extremely useful..and i am happy to get what i need..
thanks a lot
rajini
Ps. these hints are not shown in any internet pages,,so i was bugging you guys..
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Help in table formatting
If you are a beginner (or even if you are not), I have found the above website and it's explanations and examples very helpful.
Also, you'll be amazed at what you pick up by simply read threads on the forum.
Re: Help in table formatting
I have maked a table like you suggested. My problem is that if the content {text text text text} is bogger than the other cells, the content don't stay in the cell.
Can someone tell me how can i make the table align by the biggest cell of the row?
Thank you
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Help in table formatting
[1] View topic: Avoidable mistakes
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Help in table formatting
i'm sorry, but i'm a beginner in latex.
I try to do a table in latex with \multirow. The next examples shows what i want to do. The alignment of the cells should follow the longest cell (at the right).
-----------------------------------------------
| | | ABCABCABC |
| | B | ABCABCABC |
| ----------------- ABCABCABC |
| A | C | ABCABCABC |
| ----------------- ABCABCABC |
| | D | ABCABCABC |
| | | ABCABCABC |
-----------------------------------------------
My problem is that if i type:
\begin{tabular}{|c|c|c|}
\hline
A&B&C\\
\hline
1&2&\multirow{3}{*}{\parbox{6cm}{ABCABCABC ABCABCABC ABCABCABC ABCABCABC ABCABCABC ABCABCABC ABCABCABC ABCABCABC ABCABCABC ABCABCABC}}\\\cline{1-2}
3&4&\\\cline{1-2}
5&6&\\
\hline
\end{tabular}
The result is the following:
-----------------------------------------------
| | B | ABCABCABC |
| ----------------- ABCABCABC |
| A | C | ABCABCABC |
| ----------------- ABCABCABC |
| | D | ABCABCABC |
--------------------------------ABCABCABC------
ABCABCABC
ABCABCABC
Can somebodey please help me with this.
Thank you so much
Re: Help in table formatting

My probelm is if the total content in columns B, C and D is smaller than the content in the other cells, that content continuous outside the cell.
I want that if the conten in the other cells is larger, the cell to stretch. But with that code that i posted before, the cells borders appear according to the content of columns B, C and D.
I'm sorry for the inconvenience

Re: Help in table formatting
Re: Help in table formatting
Best regards
- Attachments
-
- example1.png (29.11 KiB) Viewed 5001 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Help in table formatting
It goes without saying that the content of a horizontal box can only occupy as much lines as given in the argument to the \multirow command. Every line that goes beyond this value will protrude the borders of the created cell.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Help in table formatting
I'm sorry, the text in the column is in an other language

I'm also new at this forum, and i'm sorry if the previous posts are not complete.
The code for the previous table is posted bellow:
Code: Select all
\begin{center}
\footnotesize
\setlongtables
\renewcommand{\arraystretch}{1.5}
\renewcommand{\multirowsetup}{\centering}
\centering
\setlength{\tabcolsep}{2mm}
\begin{table}{|>{\centering}m{2.6cm}|>{\centering}m{2.5cm}|>{\centering}m{2cm}|>{\centering}m{3cm}|>{\centering}m{3cm}|}
\caption{Vantagens e Desvantagens dos diversos m\'{e}todos de monitoriza\c{c}\~{a}o de glicose.}
\hline
\textbf{T\'{e}cnica de monitoriza\c{c}\~{a}o} & \textbf{M\'{e}todo} & \textbf{Interac\c{c}\~{a}o com o corpo humano} & \textbf{Vantagens} & \textbf{Desvantagens} \\
\multirow{2}{2.6cm}{Espectroscopia de infravermelho próximo\linebreak (\emph{NIR - Near Infrared Spectroscopy})} &
\multirow{2}{2.5cm}{Óptico\linebreak (Espectroscopia de absorção IR)} &
Não-invasivo & \multirow{2}{3cm}{Rapidez da realização das medições;\linebreak Espectro não afectado por moléculas de água.} & \multirow{2}{3cm}{Dificuldade de distinção entre os sinais de glicose e os sinais interferentes (ruído);\linebreak Espectro tem maior probabilidade de ser dispersado do que absorvido.} \\\cline{4-4}
&& Invasivo && \\\hline
Espectroscopia de infravermelho médio\linebreak (MIR - Mid-Infrared Spectroscopy) & Óptico\linebreak (Espectroscopia de absorção IR) & Não-invasivo & Não requer a penetração da pele humana para realizar medições aos níveis glicêmicos. & Influências por parte de variações de temperatura;\linebreak Absorção das ondas Mid-IR pelas moléculas de água. \\\hline
\end{table}
\end{center}
Best regards