Tag Info

New answers tagged

0

\usepackage{ltablex} Then your tabularx can have a pagebreak between tabular lines.


3

You have to use [t] for setting the vertical alignment; however, your tabular will be too wide. \documentclass[draft]{scrbook} \usepackage[pass,showframe]{geometry} % just to show the margins \usepackage{tabularx,calc} \usepackage[ruled,longend,german,algochapter]{algorithm2e} \usepackage{lipsum} \newenvironment{algotabularx} ...


4

\documentclass{scrbook} \usepackage{tabularx} \usepackage[ruled,longend,german,algochapter]{algorithm2e} \usepackage{lipsum} \begin{document} \begin{algorithm}[tbp] \SetKwInOut{Input}{Input} \SetKwInOut{Output}{Output} \LinesNumbered \caption[Description]{Description} ...


4

The \textwidth doesn't change: you have to use \linewidth when inside a list (which addmargin is); moreover you have to remember \noindent and @{} for removing the padding on the left and right. \documentclass{scrbook} \usepackage{tabularx} \usepackage{lipsum} \begin{document} \lipsum[2] \begin{addmargin}[2\parindent]{0pt} \lipsum[1] \noindent ...


3

I really wouldn't use tabularx here, as you really know all the column widths in advance, however if you do use it you can add some stretch glue to pad out the box \documentclass[a4paper,12pt]{report} \usepackage[polish]{babel} \usepackage[top=25mm,bottom=25mm,left=35mm,right=25mm]{geometry} \usepackage{tabularx} \begin{document} \begin{table}[!ht] ...


3

ltablex redefines \caption incorrectly, you should have used ltxtable :-) The simplest fix is \documentclass[a4paper,11pt,twoside]{article} %\usepackage{rotating} \usepackage{tabularx} % For paragraph cells in tables \usepackage{ltablex} % allows tabularx over multiple pages. May need to be compiled a couple of times. \usepackage{lscape} ...


0

\caption has to be outside of the tabularx environment but inside a float environment, such as \begin{table}...\end{table}. Edit: Although my answer compiles, my explanation was incorrect. See David Carlisle's answer and comment for an explanation. \documentclass[a4paper,11pt,twoside]{article} %\usepackage{rotating} \usepackage{tabularx} % For paragraph ...


0

This is my solution, based on the input from Paul Gessler in the comments: \documentclass[12pt,ngerman]{article} \usepackage[utf8]{inputenc} \usepackage{tabularx} \usepackage{booktabs} \begin{document} \begin{table}[!htb] \begin{tabularx}{\textwidth}{Xcccccccccccc} \toprule & \multicolumn{6}{c}{dropout yes/no} \\ \addlinespace & ...


2

Use columntype X for the first column: \begin{tabularx}{\textwidth}{Xccc} The X is a column of the type p. If you want to vertically center the values in the other columns you have to redefine the \tabularxcolumnn to \renewcommand\tabularxcolumn[1]{m{#1}} Code: \documentclass[12pt,ngerman]{article} \usepackage[utf8]{inputenc} \usepackage{tabularx} ...


4

Thanks for posting a full MWE. The culprit turns out to be the pdfsync package. I can't tell which of the many other packages you also load it interacts with badly, but the upshot of its presence is the terrible look of the table. The user guide of the pdfsync package suggests that in case of severe conflicts with another package, try instead ...


0

(I've thoroughly revised this answer.) I think you have three main options: Keep using the tabularx environment but increase the value of \tabcolsep, the length parameter that sets a (hard) amount of inter-column white-space. In the example below I've chosen 12pt for this parameter, double the default value of 6pt. Switch to a tabular* environment. Unlike ...


1

To increase space between columns you can set the value of the parameter tabcolsep by using the following statement inside the table environment : \setlength{\tabcolsep}{7pt} \begin{table}[htbp] \setlength{\tabcolsep}{7pt} %set appropriate space, default is 5pt (most probably). \renewcommand{\arraystretch}{1.2} %change vertical spacing of tables ...


1

For example, you could do the following if you rewrote your original code to use tikzmark. Note that I eliminated extraneous stuff from your MWE. \documentclass[pdf]{beamer} \mode<presentation>{} \usepackage[english]{babel} \usepackage{color, colortbl} \usepackage{tikz} \usetikzlibrary{tikzmark, positioning, fit, shapes.misc} ...


2

Your question is totally unclear but guessing from the error message I'm assuming that the markup you show is replaced by a verbatim environment by some pre-processor before being seen by LaTeX. To get two verbatim environments side by side you want two minipage so I assume you can do \begin{figure} \centering \begin{minipage}{.4\textwidth} ...


1

Here is a solution that uses makecell, enumitem, ltablex that combines tabularx and longtable, and finally caption and babel (since it's written in French). I don't need multirow, since makecell has its own multirowcell command, with a simpler syntax and the possibility to use \\ inside a cell. Please note that the number of rows used by \multirowcell is ...


3

You're missing the mandatory argument for minipage: \documentclass{article} \usepackage{tabularx} \begin{document} \noindent \begin{tabularx}{\textwidth}{@{}p{3cm}|X@{}} ABCDEFG & \begin{minipage}[t]{\hsize} \begin{itemize} \item bla bla bla \item hello hello goodbye\strut \end{itemize} \end{minipage} \\ \end{tabularx} \end{document} In an X column ...


1

This is one possible solution -- Use of `\vspace{-xxcm} Code \documentclass[border=10pt]{standalone}%[a4paper]{article} \usepackage{tabularx} \newlength{\mymyrandomlength} \settowidth\mymyrandomlength{hello world} \begin{document} \begin{tabularx}{\textwidth}{@{}*{1}{p{\mymyrandomlength}}|*{1}{X}@{}} ABCDEFG& \vspace{-0.5cm} \begin{itemize} ...


2

The tabular content is divided into six columns, but only five are declared with the macro. Something like: \begin{tabular}{|L|L|L|L|L|} %five columns 1&2&3&4&5&6 %six columns \end{tabular} Which will not work. To solve the compilation error the number of columns should be equal or less than that ...



Top 50 recent answers are included