Tag Info

New answers tagged

2

May I propose to simplify your table? You do not need all these special columns in my eyes. The trick used here is to reset the row numbers which are used by the table option of xcolor. The credits for this go to Heiko Oberdiek. % arara: pdflatex \documentclass[fontsize=10pt,paper=letter,DIV=8]{scrbook} \KOMAoptions{headsepline=true} ...


6

\documentclass[fontsize=10pt,paper=letter,headings=big,bibliography=totoc,DIV=8]{scrbook} \KOMAoptions{headsepline=true,draft=false} \usepackage{typearea} \usepackage[usenames,dvipsnames,x11names,table]{xcolor} \usepackage[single=false,macros=false,xspace=false]{acro} \usepackage[spanish,mexico]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...


4

Using tabular* (or tabular) rather than tabularx for numerical data: \documentclass{scrartcl} \usepackage{dcolumn} \usepackage{booktabs} \newcommand\hd[1]{\multicolumn{1}{c}{\begin{tabular}{@{}c@{}}#1\end{tabular}}} % hack as no R on this machine \def\Sexpr#1{12.123} \catcode`\%=12 \begin{document} \begin{table} \caption{This is a table} ...


2

You have table head values starting with numbers but which presumably should not be part of the general column alignment. You'll see odd results even without the \multicolumn if you don't escape these: & {1\_PR\_bin} & {2\_PR\_log} & {3\_RE\_bin} & {4\_RE\_log} \\ I'd also recommend telling siunitx how many digits are in each column using ...


1

I changed from \small to \scriptsize in order to fit everything in your cells. You may reformat your table with differing width in each row. Or maybe the original text fits for your chosen fontsize. The main trick was to give the multirow a certain width. As the X-column is stretchable, the multirow does not know the actual width. If you do not want to ...


6

May be some thing like this: \documentclass{article} \usepackage{colortbl} \usepackage{arydshln,graphicx,xcolor,array} \begin{document} \arrayrulecolor{magenta}% \setlength{\arrayrulewidth}{1pt}% \begin{tabular}{c;{2pt/2pt}c|} \includegraphics[width=3cm]{example-image-a} & \includegraphics[width=3cm]{example-image-b} \end{tabular} ...


2

You want \begin{aligned}[t] to align on the top.


0

I had the same problem. The solution which helped me was to use \tabularnewline instead of \\ in the tables. This example: \usepackage{tabularx} \usepackage{ctable} ... \begin{tabularx}{1\textwidth}{>{\setlength\hsize{1\hsize}\centering}X} Some text... \\ \hline \end{tabularx} Gives the error: ! Misplaced \noalign. \hline ->\noalign ...


3

Grouping the rows avoids using \multirow; particularly the header “Parameter” shouldn't be lowered, because it's first level like “Messungen in ms”. An empty cell is interpreted as “repeat the value above”. For the spacing, add \hspace{...} between columns; adjust to suit the value of 3em I set. Using siunitx allows for properly aligning the numbers. ...


4

To widen the table to, say, 0.8\textwidth, you could use a tabular* environment instead of the current tabular environment; use the directive @{\extracolsep{\fill}} to make LaTeX expand the intercolumn whitespace sufficiently so that the table takes up the width specified in the first argument of tabular*. You really ought to make a few more improvements to ...


4

This uses a new column type R which will align the text (numbers) to the right within a 2.5cm parbox. The showframe is just for the \textwidth comparison. Other possibilities: Using a larger fontsize. \documentclass{article} \usepackage{multirow} \usepackage{showframe}% \usepackage{ragged2e} \usepackage{array} ...


0

The second argument of the \multicolumn instruction is creating the issue you're looking to fix. Instead of \multicolumn{2}{@{}>{\setlength{\hsize}{2\hsize}\addtolength{\hsize}{2\tabcolsep}}X@{}} you should write \multicolumn{2}{@{} p{\textwidth} @{}} It's worth keeping in mind that an X column is, for all intents and purposes, a p{<width>} ...


1

Well after struggling all damn day with this table, and thanks to the kind responses and explanations of David Carlisle and the Zarco trick, I have the table just as I wanted. What I did was the following: \documentclass[11pt]{book} \usepackage[utf8]{inputenc} \usepackage[spanish,mexico]{babel} \usepackage[T1]{fontenc} \usepackage{ragged2e} ...


1

With two successive tables? \documentclass{article} \usepackage{tikz} %---------------------------------------------------------------% \usepackage{booktabs,tabularx,calc} \usepackage[active,floats,tightpage]{preview} \setlength\PreviewBorder{1em} \begin{document} \begin{table} \begin{tabularx}{0.5\linewidth}{lX@{}} %%% first table \hline ...


2

If I understand you correctly, you like to achieve something like this: For it I just correct errors in your MWE: \hline before tabular, number of rows in multirow: \documentclass[11pt]{article} \usepackage{multirow} \usepackage[active,floats,tightpage]{preview} \setlength\PreviewBorder{1em} \begin{document} \begin{table}\centering ...


2

David Carlisle already answered to your first questions. So I will try to help you to resolve in other problems. Your MWE has some errors like \caption is after \begin{tabularx} ..., it hasn't \end{document}. And the most notable, to me it is not clear if you like to have longtabe (spread over more page) or just simple table in float environment. I assume ...


5

ll*{3}{>{\RaggedRight\arraybackslash\hspace{0pt}}X} is ll two columns of single line left aligned entries, then *{3}{>{\RaggedRight\arraybackslash\hspace{0pt}}X} three copies of >{\RaggedRight\arraybackslash\hspace{0pt}}X each of these is basically an X column which is p{...} for an automatically calculated width. The tokens in the ...



Top 50 recent answers are included