# Tag Info

## New answers tagged tabularx

1

\documentclass[10pt,a4paper]{scrreprt} \usepackage[utf8]{inputenc} \usepackage{longtable} \usepackage{booktabs} \usepackage{eurosym} \begin{document} \begin{longtable}{@{}p{4cm}p{\dimexpr\textwidth-5.5cm-4\tabcolsep}p{1.5cm}@{}} \caption{Overview of Key Variables\label{tab:variables}}\\ \toprule Variable & Question& Scale\\ \midrule \endfirsthead ...

2

You can define a \\newlength{\WidestLength} and then store the length as: \settowidth{\WidestLength}{\bfseries Army Group Center} Notes: There is no need to guess the \hspace*{-6pt} and +12pt. You can simply remove the column padding that gets added at the start and end of the table via @{}. The showframe package was used just to show the page ...

2

I think there are two issues in your code. First, if you want to have three columns of type s, defined via \newcolumntype{s}{>{\hsize=.5\hsize}X}, you should set the type of the first column not to X but to Z, where Z should be defined via \newcolumntype{Z}{>{\hsize=2.5\hsize}X}. Note that the sum of the \hsize fractions has to equal the number of ...

3

Here's a solution that (a) uses \noindent before the start of the tabularx environment, (b) uses @{} directives to eliminate the (presumably unwanted) vertical whitespace to the left of the first column and the right of the final column, and (c) uses \multicolumn{2}{@{}p{\textwidth}@{}} instead of \multicolumn{2}{>{\hsize=2\hsize}X}. Observe that nothing ...

4

1. Tabularx First the warning from subsection 4.3 last bullet in the tabularx-manual: Do not use \multicolumn entries which cross any X column. To line up the text in the left margin, a simple solution is to load the package enumitem and use a local, optional value let the bullet flush the left margin [leftmargin=*]. To achieve your goal ...

1

The OP left much undefined by providing snippets of code, rather than an MWE, so I improvised. I redefined your \tabitem to exit vertical mode, and I placed the space following the bullet within the \llap itself. I also made the list raggedright. I added extra column space before the 2nd column, to offset the \llaped bullet. Finally, I reduced the \rule ...

1

Switching the loading order is no avail, because both packages redefine \@array (tabularx loads array which does the redefinition) in incompatible ways and there's no hope to make them live together.

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

3

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

Top 50 recent answers are included