# Tag Info

0

\documentclass{article} \usepackage[english]{babel} \usepackage{tabularx} \begin{document} Without specifying width for last column: \noindent \begin{tabularx}{\linewidth}{| >{\bfseries}l | l | l | X |}\hline Day & \bfseries Min Temp & \bfseries Max Temp & \bfseries Summary \\ \hline Monday & 11C & 22C & A clear day with ...

2

\documentclass{article} \usepackage{ltablex} \begin{document} \noindent \begin{tabularx}{\linewidth}{|r|l|c|X|l|}\hline ID & Authors & Year & Title & Venue \\\hline ... the tabular lines \end{tabularx} \end{document}

1

You can use the ltxtable latexpackage This package is a wrapper to use tabularx (allow to not specify the length of a column - for you the 4th one -) and longtable By default the first line is repeted under all pages. the main problaim of this package is that the table need to be wrote in another file. But you can do a think like this : ...

3

You're almost there: Add the command \arraybackslash to the specification of the second X column: \begin{tabularx}{\textwidth}{|>{\raggedleft\hsize=.5\hsize\bfseries}X| >{\raggedleft\arraybackslash\hsize=1.5\hsize}X|} It doesn't hurt (but it's not essential) to add \arraybackslash to the specification of the first column as well. Separately, be ...

1

I would change that second line of the table for \hline \multicolumn{3}{p{11.5cm+2\tabcolsep}}{\textbf{Descripci\'{o}n de la clase:} Esta clase ser\'{a} la encargada de realizar la comunicaci\'{o}n con Condor, estableciendo una conexi\'{o}n con el servicio web. Contiene m\'{e}todos para el establecimiento de la conexi\'{o}n, creaci\'{o}n de trabajos u ...

3

you need to fix the width of your second multicolumn, if you set it to l it will take the natural width of the text. \documentclass[12pt]{article} \usepackage{longtable} \usepackage{multirow} \usepackage{lscape} \usepackage{pbox} \begin{document} \begin{center} \setlength{\tabcolsep}{2pt} \small ...

3

This isn't quite right but will get you started, please in future make a complete single document, as here. Note there were many errors in the use of | in \multicolumn, you should only put rules on the right, except for the first column. Also you need to not use l columns as they don't allow the cell contents to wrap. ...

2

You are asking tabularx to force the table to the original line width before you scale it, which would mean making the width of the X column negative so it gives up. Just use a normal table to arbitrary width, then scale it. \RequirePackage[demo]{graphicx} \documentclass{beamer} \usepackage{tabularx} \begin{document} \begin{frame} \begin{columns}[T] ...

7

With mighty tikz and tikzmark: \documentclass{article} \usepackage{tabularx} \usepackage{colortbl} \usepackage{tikz} \newcommand\tikzmark[2][]{ \tikz[remember picture,inner sep=\tabcolsep,outer sep=0,baseline=(#1.base),align=left]{\node[minimum width=\hsize](#1){$#2$};} } \begin{document} \begin{tabularx}{8cm}{|X|X|X|X|} \hline ...

5

I would recommend not widening a tabular beyond its natural width. With tabular* you can avoid “phantom columns”, if you really want to enlarge the intercolumn spaces. With facilities from siunitx it's easy to make tables containing numeric data. \documentclass[a4paper]{article} \usepackage{siunitx,booktabs} \begin{document} % natural width ...

3

As noted in comments your line is too wide Overfull \hbox (39.00003pt too wide) in paragraph at lines 8--22 Due to paragraph indentation and 4 \tabcolsep (15+4*6=39pt). If you simplify the markup, removing the tabular, the line fits the page, and you can use align with no problems: \documentclass{article} % Specifies the document class ...

2

If we use aligned instead of align, it is accepted inside tabular. I would suggest replacing \left and \right by a proper, smaller braces. \documentclass{article} % Specifies the document class %\usepackage{amsmath, amsfonts, mathtools, xfrac, empheq} \usepackage{amsmath, amsfonts, empheq} \usepackage{caption} \begin{document} % End of ...

5

As it says in the tabularx doc, the principal restriction on the \tabularx \endtabularx form is that \endtabularx is the first token in the end code. So the behaviour you see is documented feature, not a bug. However you could do: \documentclass{article} \usepackage{array} \usepackage{tabularx} \makeatletter \newenvironment{mytable}{% ...

0

Alternatively, \widthof from the calc package can be used. (This is what I actually had in mind when I mentioned "\phantom fiddling" in my question.) \documentclass{article} \usepackage{tabularx} \usepackage{calc} \begin{document} \begin{tabular}[t]{@{}l@{}} \begin{tabular}[t]{@{}l@{\qquad}p{5cm}@{}|>{\raggedleft}p{1.5cm}@{}} \textbf{Col1} & ...

3

\documentclass{article} \begin{document} \begin{tabular}[t]{@{}l|l@{}} \begin{tabular}[t]{@{}l@{\quad}p{5cm}@{}} \textbf{Col1} & \tabularnewline Text1 & Text1Description \tabularnewline VerylongText2 & Text2Description \tabularnewline Text3 & Text3Description ...

Top 50 recent answers are included