Tag Info

New answers tagged

2

It doesn't work to use tabularx with no X columns, but I wouldn't use tabularx here. This is still a bit wide but not knowing the language I can't really abbreviate any more. \documentclass[fontsize=12pt,paper=letter,headings=small,bibliography=totoc,DIV=12,headsepline=true,titlepage=on]{scrartcl} \usepackage{soul} ...


2

You need to set the anchor point for both columns to be at the vertical centre. For the left c-column, which only contains graphics, you can use the key-value valign=c which requires adding \usepackage[export]{adjustbox} to your preamble. For the second X-column, use \renewcommand{\tabularxcolumn}[1]{m{#1}} Here's your document with a global setting of ...


3

You can use \renewcommand\tabularxcolumn[1]{m{#1}} and m column type for first column also like \begin{tabularx}{\textwidth}{>{\centering\arraybackslash}m{2.2in}X} to get You have to adjust 2.2in as you wish. BTW, your table is too long to fit in the page. \documentclass[svgnames]{article} \usepackage{tabu,tabularx} % just to show ...


6

It is a known problem that row colors doesn't work with longtable: However, \rowcolor in front of individual rows runs nicely. Added: There is a problem using booktabs with rwcolor(s): as it adds some vertical padding around its rules, there appears white strips that may be unwanted. In such a case I propose another solution, based on the boldline and ...


4

tabularx stores the width of X columns in \TX@col@width. Use it to calculate the width of 3 X columns plus 4 \tabcolsep's. \documentclass[a4paper]{report} \usepackage{tabularx} \usepackage{xparse} \usepackage{multirow} \usepackage{tikz} \usepackage{color} \newcolumntype{H}{@{}m{0pt}@{}} \newcommand{\tskip}{&} \DeclareDocumentCommand{\tr}{ O{\hline} ...


1

There are two problems: \href contains %3D. Since tabularx scans the table contents as argument, the catcode of \href are not yet in force and % acts as comment char. & has a special meaning in tables. Both characters can be protected in \href by using \% and \& instead of % and &: \documentclass{article} \usepackage{tabularx} ...


2

You need neither tabularx nor multirow. It's not clear why you're pushing the thing to the left and want to use more than the default text width, but I didn't change this. You just need a tabular for the four images; I use another one for the left image just to get vertical centering (there are several other methods). Note the two nested \makebox commands: ...


3

From the (almost) the same question (not so long ago) we know, that tabularx clashes with subcaption and caption numbering. So, there is no sense to insist to use it with such application. Instead, it is better to use ordinary tabular and manually calculate width of columns (see MWE below). multirow works in all types of tables, so for its use there is no ...


0

Do you like to have something like this: I didn't measure height of the first row (it should be approximately 1cm), for other rows I understand that they haven't request for minimal height of 1cm. In code I use thead from the makecell package. With renewcommad I select boldface fonts for them, boldface fonts in the first column is determined by option of ...


2

You need another ampersand in the argument to \paddingtop: \paddingtop{0.5cm}{&&&&}


0

You have defined three columns but just use one A centred column is defined by the specifier c If you use tabularx with \textwidth, it is not surprising that your lines are that long Do not use \addlinespace that often. Just if it is needed in order to clearly separate some parts of the table. % arara: pdflatex \documentclass[a4paper,11pt]{article} ...


2

For the first column, don't specify l as the column type and then use a \parbox (of width 3cm) to typeset its material. Instead, use p{3cm} directly as the column type specifier. In view of the rather narrow measure that's set for the first column, I would use ragged-right rather than full (ie., left and right) justification. \documentclass{article} ...


2

Addiing an additional column is needed, each column has to be explicitely declared. The spaces have been adjusted to the example, in your real tabular, you have to adjust them. I deleted some of the stuff that i consider bad. \documentclass[a4paper,11pt,oneside]{article} \usepackage[protrusion=true,expansion=true]{microtype} ...


2

% arara: pdflatex \documentclass{article} \usepackage{array} \newcommand{\specialcell}[1]{\begin{tabular}{@{}c@{}}#1\end{tabular}} \begin{document} \begin{table} \centering \begin{tabular}{|c|c|c|c|} \hline \bfseries Time-Scale & \bfseries\specialcell{Mechanical\\Machine State\\Variables} & ...


0

\documentclass[11pt,a4paper]{book} \usepackage{booktabs} \usepackage{tabularx} \usepackage{pdflscape} \begin{document} \begin{landscape} \renewcommand{\tabcolsep}{5pt} \begin{table*} \begin{tabularx}{\linewidth}{@{}X*{11}cr@{}} \toprule & Control& & & Low Input & & & Medium Input & ...


1

You have two problems: textwidth is on the landscape orientation the same as in the portrait╦Ť. so lines are long only textwidth if you use tabularx at least one colum. had to be type X if you replace line with \begin{tabularx}{\textwidth}{@{}lcccccccccccr@{}} width for example with \begin{tabularx}{\hsize}{@{}Xcccccccccccr@{}} or shorter: ...


2

no need for \centering, if you have something greater or equal to \textwidth Put it in a makebox That's fine if you want the last three columns to have the same width Use booktabs Use booktabs NB: Don't use \bf any more. % arara: pdflatex \documentclass[11pt, oneside]{Thesis} \usepackage[english]{babel} \usepackage[table]{xcolor} \usepackage{tabularx} ...


2

The third page of the table (to show referencing): \documentclass[fontsize=12pt,paper=letter,headings=small,bibliography=totoc,DIV=9,headsepline=true,titlepage=on]{scrartcl} \usepackage[spanish,mexico]{babel} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX,Mapping=tex-text} \usepackage{xunicode} \setmainfont[ ItalicFont = SourceSerifPro, ...


3

A trial solution, since I don't know the first column should be aligned really: \documentclass[a4paper,10pt]{article} \usepackage[top=2cm,bottom=2cm,right=2cm,left=3cm]{geometry} \geometry{a4paper} \usepackage{array} \usepackage{tabularx} \usepackage{ragged2e} \usepackage{multirow} \usepackage{makecell} \newcolumntype{R}[1]{>{\RaggedLeft}p{#1}} ...


-1

Thanks for try help me :). O solve my problem in other way... I save my table in pdf format, so put like this : \begin{table*}[th] \caption{caption hehehe}\centering \resizebox{\linewidth}{!}{ % \begin{tabular}{c} \centering \includegraphics[width=0.85\textwidth]{fig/rules.pdf} \end{tabular}} \end{table*}



Top 50 recent answers are included