# Tag Info

10

First off, 25 columns is a lot to take in! Do ask yourself if your readers might be (much!) better off if you broke up the table into two or three parts, with 12-13 or 8-9 columns each, respectively. Assuming the columns are fairly narrow to begin with and the default font size is reasonable (e.g., 10pt), a combination of \small (which reduces the font size ...

7

Explicitly embed the enumerate environment inside a minipage environment. \documentclass[11pt,a4paper]{article} \usepackage{longtable} \begin{document} \begin{longtable}{c|p{10cm}}\hline \textbf{test} & \textbf{test} \\\hline\hline test & \begin{minipage}[t]{10cm} \begin{enumerate} \item test \item test ...

6

You can use \numexpr\LT@cols-1 and define your own multicolumn command like \makeatletter \def\mymc#1#2{% \multicolumn{\numexpr\LT@cols-1}{#1}{#2}% %%#1 = alignment, #2 = content } \makeatother and use it like \mymc{r}{abc} Full code: \documentclass[]{scrbook} \usepackage{booktabs, longtable} \makeatletter \def\mymc#1#2{% ...

5

\documentclass{article} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{longtable} \begin{document} \begin{longtable}[l]{l @{\hspace{1em}}ccc} \textbullet& ABC & ABC & ABC\\ & ABCD & ABC & ABC\\ & ABC & ABCD & ABCD\\ \end{longtable} \begin{itemize} \item[] \blindtext ...

5

Tables containing many lines can be typeset using the longtable-environmet, provided by the longtable-package. This environment allows page breaks within the table environment and is used much like the tabular-environment. Usually I typeset tables containing many columns using the sidewaystable-environment, provided by the rotate-package. However, if you ...

4

the underfull box warning is only a warning, not an error. \documentclass[landscape]{article} \usepackage{longtable} \addtolength\textwidth{120pt} \usepackage[T1]{fontenc} \usepackage{array} \showoutput \newcolumntype{L}[1]{>{\raggedright\arraybackslash\hspace{0pt}}m{#1}} \newcolumntype{C}[1]{>{\centering\arraybackslash\hspace{0pt}}m{#1}} ...

4

You're not supposed to have a tabular inside the longtable, the column specification should be added directly to the longtable. \documentclass{article} \usepackage{hyperref} % The hy­per­ref pack­age is used to han­dle cross-ref­er­enc­ing com­mands in LATEX to pro­duce hy­per­text links in the doc­u­ment. \usepackage[margin=0.5in]{geometry} ...

4

You could use an xtabular environment, provided by the xtab package, instead of the longtable environment. The upper portion of the first page would look like this: In the code below, I've left out most of the table's rows to economize on space. \documentclass[twocolumn]{article} \usepackage{xtab,booktabs} \begin{document} \begingroup\small ...

3

This can be achieved by defining column specifier for the last column by \newcolumntype command with one argument for column width, as shown below. \newcolumntype{C}[1]{>{\raggedright \arraybackslash\hspace{0pt}}m{#1}} the m{#1} means paragraph column with text vertically aligned in the middle (requires array package) one can decide the last column ...

3


3

Here's another solution based on mdframed: \documentclass{article} \usepackage{enumitem} \usepackage{lipsum} \usepackage[framemethod=tikz]{mdframed} \newlength{\defparindent} \setlength{\defparindent}{\parindent} % The leftrule environment \newmdenv[ linecolor=black,% topline=false, bottomline=false, rightline=false, rightmargin=0pt, skipabove=0pt, ...

2

You're doing things more complicated than they are. In any case, the explanation for the missing rule is that ending prematurely a row with \\ doesn't draw the rules corresponding to the unspecified cells. Here's an easier version; just remove \fsc from the cells if you don't want equal height for all rows. \documentclass[11pt,a4paper,oneside]{report} ...

2

You can do this if you trick longtable that it is not inside a multicols enviroment: \documentclass{report} \usepackage{longtable} \usepackage{booktabs} \usepackage{multicol} \newsavebox\ltmcbox \begin{document} \begin{multicols}{2} \scriptsize \setbox\ltmcbox\vbox{ \makeatletter\col@number\@ne \begin{longtable}{@{}lllllll@{}} \toprule && ...

2

Compile again: longtable (and so also longtabu that's based over it) requires up to four (rarely more) runs to stabilize: at each pass it writes the column widths to the .aux file for the next run. Most of the times a couple of runs are sufficient, but in some cases more are needed. In any case, if the widths are changed from the previous run, a warning is ...

1

Another way of doing, using hhline for the frames, makecell commands to add vertical spacing above and below cells and siunitx to vertically align decimal dots: \documentclass[a4paper,onesided]{report} \usepackage[utf8]{inputenc} \usepackage[nomarginpar, left=1.5in, right=1in, top=1.5in, bottom=1in,]{geometry} \usepackage{array} \usepackage[font = ...

1

Without your complete table, I don't get problems. But here is, how you may add the skip just to this table. % arara: pdflatex \documentclass[12pt,twoside,titlepage,headinclude]{scrreprt} \usepackage{longtable} \usepackage{booktabs} \usepackage[% ,font=small ,labelfont=bf ,justification=justified ]{caption} \begin{document} ...

Only top voted, non community-wiki answers of a minimum length are eligible