# Tag Info

## New answers tagged longtable

0

Lets start from easy side of your question(s): if like to use vertical lines, than don't use rules from \booktabs. Instead them use \hline for vertical lines I sugest to do the following: every odd column/.style ={% column type/.add={|}{} }, every even column/.style ={% column type/.add={|}{} }, every last column/.style ={% column ...

2

The fact that ltablex affects all tabularx is not the best feature of the package, you could instead use ltxtable package but anyway with ltablex as with normal tabularx if you want the tabke to float it must be inside a table environment, and once inside such an environment it will not split as table makes a box. You can not add float options such as [h] to ...

1

The problem is that the first time you call \mytablespec, \mytablespec itself is redefined. So, when you call it the second time, it has its new definition and not the old one. If you redefine a macro, you cannot continue to use it with its old definition. It now has its new definition and it can only have one definition at a time. The problem can be easily ...

0

you have to use \\ instead of \ wherever you want to move next row of data in the table. for the first four columns you specify the width as p{1,5cm} and for others p{1cm}. Fourth column heading may be split into two.Example Netzbe\newline{treiber} and execute the code. Now you will get the desired result.

1

The \newline work fine, your units come on the next line, however TeX does not hyphenate the first word of a paragraph (and as in the example english patters are used it probably would break incorrect;y anyway) I added \- in some places. \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{longtable} \def\zz{ N & N & N & N ...

1

If you add a line like after row={ a&b&c&d&e&f\\ \midrule\endhead\midrule\multicolumn{\pgfplotstablecols}{r}{{\small\tablename\ \thetable{} -- will continue.}}\endfoot \bottomrule\endlastfoot% }, % after row then you see Showing that the decimal alignment is using two columns internally which you need to take ...

6

If you absolutely want some colour, here are two solutions with swapping rows and columns. One with vertical and horizontal rules, the other with only horizontal rules (built not using booktabs, as this leads to white spaces in coloured cells). The latter looks better, in my opinion: \documentclass{article} \usepackage[utf8]{inputenc} ...

6

An alternative using booktabs for the table rules, tabularx to get a table that fits the textwidth and siunitx to properly typeset the units. \documentclass{article} \usepackage{tabularx} \usepackage{siunitx} \usepackage{booktabs} \renewcommand{\tabularxcolumn}[1]{>{\centering\arraybackslash}m{#1}} ...

5

It's possible with collcell: \documentclass{article} \usepackage{longtable} \usepackage{collcell} \newcommand{\cutlongemail}[1]{% \sbox0{#1}% \ifdim\wd0 > \linewidth \docutlongemail#1\relax \else #1% \fi } \def\docutlongemail#1@#2\relax{#1@\newline#2} \begin{document} \begin{longtable}{ p{0.3\linewidth} ...

0

This question already (kind of) has been answered: Caption with longtable and pgfplotstabletypeset The problem is the positioning of the caption, which must be added as every head row/.style={before row=\caption{First table}\tabularnewline} in the optional argument of \pgfplotstabletypset macro. captionof does not work (and is not needed). ...

0

You have used longtable inside table , which does no good as table is a box so can not split so then a table \caption and longtable both increment the table caption. Either just use longtable, and use \caption inside longtable or use \caption inside table and use tabular.

0

In fact, there was an update of the estout package in stata including a longtable option. source: http://www.stata.com/statalist/archive/2009-02/msg00688.html

4

Here is a solution. We don't use fullwidth package since it can do nothing here. The idea is to patch \LT@output command (special output used by longtable) we move the table to the left, in fact we need to do that only for even page but we make it possible for odd pages too. \documentclass[twoside,a4paper]{article} \usepackage[T1]{fontenc} ...

Top 50 recent answers are included