Tag Info

New answers tagged

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 ...


2

\documentclass{article} \usepackage{tabularx} \newcommand\DotsPage [1]{\dotfill\rlap{\kern2\tabcolsep #1}&} \begin{document} \begin{tabularx}{\linewidth}{ l X l } Figure & & Page \\ 1.1.1 & test text text text text text text text text text text text text text text text text text text\DotsPage{10}\\ 1.1.2 ...


2

This may be the solution you are looking for, although it is a bit clumsy. You have to include array package to get option b{} for table alignement. \documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{b{0.1\linewidth}b{0.8\linewidth}p{0.1\linewidth}} Figure & & Page \\ 1.1.1 & test text text text text text ...


1

Such things are almost always better set as a list than as a table, here just using enumerate but you may want a custom list format (enumitem package might help) \documentclass{article} \begin{document} \def\Dotfill{{\def\hfill{\hskip4em plus 1fill}\dotfill}} \begin{enumerate} \item[1.1.1] test text text text text text text text text text ...


4

\documentclass[10pt]{article} % Document font size and equations flushed left \usepackage{booktabs} \usepackage{tabularx} \newcommand{\head}[1]{\textnormal{\textbf{#1}}} \begin{document} \noindent\hrulefill a line\hrulefill% to show the linewidth \def\N{\phantom{0}} \begin{center} \begin{tabular}{@{} l l c c *5l @{}} \toprule[1.5pt] ...



Top 50 recent answers are included