Articles of tables

Setting the position of an element using Tikz

Recently I’ve asked a question about “Inserting an image properly in a table”, and I got nice answers. I decided to adopt the accepted one but now I have another problem. I thought it was a minor issue, but I decided to ask another question after being directed by the answerer. Previously I asked about […]

Underfull hbox error on tabular context

I am having a problem with the following document, pdflatex is continuously complaining with Underfull \hbox (badness 10000) in alignment at lines 3–7 in this sample, but it does for many more lines in the original doc. I’ve read it has to do with the \\ in the code, but as far as I know […]

Vertical centred alignment of text in table cell

I would like to know how to put vertical centered text inside a table cell. The problem with m column type is that i’m actually using tabularx to auto detect the width of the columns \newcolumntype{Y}{>{\small\centering\arraybackslash}X} \begin{tabularx}{\textwidth}{YYY} & Lorem ipsum \newline Lorem ipsum dolor sit amet, consectetur adipisicing & Lorem ipsum \newline Lorem ipsum dolor […]

How to get the pdf of a compiled table only

I would like to generate a pdf document by compiling a table using pdflatex. For that I checked this but the result there is a complete a4 page. is there a way to generate a pdf that has the size of the table. For example let’s assume we have the following table saved in tab1.tex […]

Setting widths in a longtable not working

I want to create a longtable that spans several pages, with column widths set to cms by me: \documentclass[12pt]{article} \usepackage{longtable} \usepackage{seqsplit} \usepackage[a4paper,landscape,margin=1cm]{geometry} \usepackage[utf8]{inputenc} \begin{document} \begin{longtable}{|p{3,53cm}|p{1,60cm}|p{0,80cm}|p{1,11cm}|p{1,16cm}|p{0,94cm}|p{1,11cm}|p{0,96cm}|p{0,57cm}|p{1,21cm}|p{1,04cm}|p{1,32cm}|p{1,26cm}|p{0,99cm}|p{1,27cm}|p{2,71cm}|p{1,41cm}|} \hline \textbf{ \seqsplit{one} } & \textbf{ \seqsplit{tow} } & \textbf{ \seqsplit{three} } & \textbf{ \seqsplit{four} } & \textbf{ \seqsplit{five} } & \textbf{ \seqsplit{six} } & \textbf{ \seqsplit{seven} } & \textbf{ […]

tabular: thicker lines

\begin{tabular}{|c|c|c|c|c|c|} \hline \multicolumn{2}{|c|}{Foo} & \multicolumn{4}{|c|}{Bar} \\ \hline \multicolumn{2}{|c}{} & \multicolumn{2}{|c|}{BarA} & \multicolumn{2}{|c|}{BarB} \\ \hline \multicolumn{2}{|c|}{} & $\lambda$ & $\theta$ & $\lambda$ & $\theta$ \\ \hline \multirow{2}{*}{FooA} & $\mu$ & 2 & 3 & 8 & 9\\ \cline{2-6} & $\pi$ & 5 & 6 & 7 & 9 \\ \hline \multirow{2}{*}{FooB} & $\mu$ & 2 & […]

Vertical lines in table where none is supposed to be

\begin{table*} \renewcommand\arraystretch{2} \begin{tabular}{|c|c|c|c|c|c|c|c|c|} \cline{3-9} &&\multicolumn{7}{|c|}{Hashtag-dataset} \\\cline{3-9} &&Joy & Fear &Sadness &Thankfulness & Anger & Surprise & Love \\ \cline{1-9} & Joy & 70,80\% & 5,78\% & 3,53\% & 22,89\% & 1,62\% & 16,73\% & 19,63\% \\ \cline{2-9} \multirow{4}{*}{\rotatebox[origin=c]{90}{Crowdsource-set}} & Fear & 3,53\% & 69,77\% & 2,94\% & 1,66\% & 1,37\% & 5,53\% & 1,32\% \\ […]

Is the longtable enviroment limited? I have a several pages long table

I am writing a long table with several complex things inside. When I realized I needed a multiple page table I tried to change table to longtable, but it just gives me a lot of errors. How can I achieve to get a multiple page table? code with normal table: \documentclass[12pt,a4paper,final]{report} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{booktabs} \usepackage[table]{xcolor} […]

Align table data by decimal points

I have tried for about an hour and a half now to get my table data to align by the decimal places and I am beginning to lose my mind a bit. I am aware of the siunitx and dcolumn packages but cannot get either to work for my table. Could someone please help? Thanks! […]

sans serif math in tables and siunitx

I want to know the easiest way to ensure that the content inside a tabular, including siunitx columns is set using a/the sans serif math font. The normal document is set in serif font. This approach shows some of my attempts: \documentclass[paper=a4, fontsize=11pt]{scrartcl} \usepackage{lmodern} \usepackage{amsmath} \usepackage{dcolumn} \usepackage{siunitx} \makeatletter % dcolumn column \newcolumntype{d}[1]{>{\DC@{.}{ ,}{#1}}l<{\DC@end}} % sans […]