Graphics, Figures & Tables ⇒ Help in table formatting
Re: Help in table formatting
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Help in table formatting
The essential parts that make it a minimal working example (MWE) as described in the topic I linked in my first reply to your request. You don't have to bother about the language. This point will be clarified by a full example.xana wrote:[...] Can you please tell me what is missing in my code? [...]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Help in table formatting
And here's an example using your first posted code:
Code: Select all
\documentclass{book}
\usepackage{multirow}
\begin{document}
\renewcommand{\arraystretch}{1.8}
\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&\\\cline{1-2}
\hline
\end{tabular}
\renewcommand{\arraystretch}{2.4}
\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&\\\cline{1-2}
\hline
\end{tabular}
\end{document}
Help in table formatting
I already resolve my problem.
I simply added space between the rows and playe with this space.
Code: Select all
\\[12ex]\hline

Best regards
Help in table formatting
I wanted to itemize sentences in the table. A introduced the following code and the result is that from the example figure.
But i want that the space before the item is smaller and the text to be justified so that it fits right into the cell. How can i do that regarding the code that i posted bellow?
Best regards
Code: Select all
\begin{center}
\footnotesize
\setlongtables
\renewcommand{\arraystretch}{1.5}
\renewcommand{\multirowsetup}{\centering}
\centering
\setlength{\tabcolsep}{2mm}
\begin{longtable}{|>{\centering}m{2.6cm}|>{\centering}m{2.5cm}|>{\centering}m{2.1cm}|>{\centering}m{3cm}|>{\centering}m{3cm}|}
\caption{Vantagens e Desvantagens dos diversos m\'{e}todos de monitoriza\c{c}\~{a}o de glicose.}
\multirow{5}{2.6cm}{Espectroscopia de infravermelho próximo\linebreak (\emph{NIR - Near Infrared Spectroscopy})} &
\multirow{5}{2.5cm}{Óptico\linebreak (Espectroscopia de absorção IR)}} &
Não-invasivo & \multirow{5}{3cm}
{\begin{itemize}
\item {Rapidez da realização das medições;}
\item {Espectro não afectado por moléculas de água.}
\end{itemize}}
& \multirow{5}{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.} \\[10ex]\cline{4-4}
&& Invasivo && \\[12ex]\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
- Attachments
-
- example.png (31.81 KiB) Viewed 3083 times