Tag Info

New answers tagged longtable

2

The solution given in the question you linked (How can I keep my TikZ overlay picture on the same page?) does work here, in the following sense: \begin{longtable}{p{3cm}p{3cm}} \toprule first column & second column\tikz [remember picture] \node (rightmark) {};\\ \midrule \endhead A & A \\ A & A \\ A & A \\ A ...

1

You have not provided any usable example so this is untested but it looks like you do not need a table construct at all: %% List environment %%%%%%%%%%%%%%%% \newenvironment{entrylist}{\par\raggedright}{\par} \newcommand{\entry}[4]{% \makebox[2cm][l]{#1}parbox[t]{13cm}{% \textbf{#2}% \hfill% {\footnotesize\addfontfeature{Color=lightgray} ...

1

for single-line entries it's more natural to use l and let the table find the natural width of the content, also you need to allow the note in the foot to span more columns. Also landscape is an environment. \documentclass{article} \usepackage{longtable,pdflscape,booktabs} \begin{document} \begin{landscape} \begin{longtable}{lllp{2cm}p{4cm}lp{3.5cm}} ...

2

The problem is not related to lists, and longtable doesn't make things "unbreakable". The source of the problem is a penalty inserted by longtable which forces a page break. One can avoid it by setting this penalty to a smaller value. But I don't know if this will have bad side effects, imho David Carlisle and Thomas Sturm will have to look into it. ...

1

The package pythontex requires, among other packages, filehook which is the bad guy in this case. The definition of \InputIfFileExists becomes \renewcommand{\InputIfFileExists}[2]{% \IfFileExists{#1} {\expandafter\filehook@swap\expandafter{\@filef@und}{% #2\@addtofilelist{#1}% \filehook@every@atbegin{#1}% ...

1

Thanks for @Davide Carlisle's help (see in the comment), the problem has been solved. When using \csvautolongtable in landscape, it will not break the additional columns that exceed the page length, but it will still put the additional rows on the next page. I guess that's my misunderstanding regarding the \csvautolongtable in landscape environment. I ...

5

You shouldn't be using the threeparttable package and its eponymous environment to encase a longtable environment. Instead, use the threeparttablex package. (Note that its syntax is not the same as that of the threeparttable package.) \documentclass{article} \usepackage[margin=1in,a4paper]{geometry} % page parameters ...

3

In your markdown source code add the \suppressfloats command before the offending floats (tables, figures), and compile with pandoc -f markdown+raw_tex. Tested on this kantlip.md input ![Two plots placed side by side.](frog.jpg) \kant[2-3] \suppressfloats \begin{figure} \includegraphics[width=0.5\linewidth]{frog} ...

4

It seems that you need not the long tables breakable to the pages but your preprocessor uses this marking for all tables. In such case, you can define longtable as normal table. It means, don't load longtable package, i.e don't use \usepackage{longtable} but define this: \newenvironment{longtable}[2][c] {\table[h] \bgroup ...

2

I am not sure if longtable is needed at all or if the real data is longer. I think the following would be a good starting point. \documentclass{article} \usepackage[labelfont=bf]{caption} \captionsetup{belowskip=10pt,aboveskip=10pt} \usepackage[a4paper,margin=1in]{geometry} \usepackage{longtable,booktabs} \usepackage{siunitx} ...

5

If I understand well what you need: you need to place data of one table in compact form in the source file, then to place data of the second table and then to print these tables one next to second, they have different height and they must be breakable to pages. This can be done by the following code: \newbox\tleftbox \newbox\trightbox ...

0

1.In between longtable \end{table} and \lipsum command use \pagebreak command 2.Use minipage environment as shown below: \begin{minipage}[t]{0.5 \linewidth} \begin{tabular*}{0.9 \textwidth}{@{\extracolsep{\fill}}rr} and \begin{minipage}[b]{0.5 \linewidth} \begin{tabular*}{0.9 \textwidth}{@{\extracolsep{\fill}}lrrr} and end with \end{tabular*} in ...

3

There is some black magic going on here. With dec sep align key, `pgfplotstable is out putting double the number of columns to align around the decimal point. The columns will be like rlrlrlrlrl for a 5 column table. All r column type hold the integers while the l type columns hold the decimal fractions. One can see this by adding ...

2

I changed your given code to solve the problem with the table head and foot of longtable in pgfplotstable. I kicked out the styling of the columns, to give it to you as homework (please read the documentation of pgfplotstable!). To get rid of the first line (see result later) you can add an empty header. Please follow the advices in this question. The ...

0

My suggestion is: Take the following usepackages longtable, datatool. Designing a table which can handle your task seems to be possible. There are a lot of questions unanswered. What if table one is much longer than table 2 ? What if table one is much shorter than table 2 ? How do you want to handle this cases? Maybe I have a solution for you, but ...

1

The only error I get is a missing \$ inserted because of the underscore in the first column name. After changing that to theta1 everything works. That said, I wouldn't use string type for the last column in particular, as that has minus signs. Instead, add dec sep align so that the numbers are aligned at the decimal point. You can also set the column name to ...

4

You have several errors in your code. For example in longtable you have to write a \\ after \caption and \label. Then does longtableoffers an firsthead of the table and following heads of the table, same with the foot of the table. So at last please read the documentation of longtable (try texdoc longtable on your console/terminal) and study my complex ...

2

In your code tabular was comented and \centering and \caption moved: \documentclass{article} \usepackage{booktabs} \usepackage{longtable} \begin{document} % Table generated by Excel2LaTeX from sheet 'data' \centering \begin{longtable} {rrrrr} %\begin{table}[htbp] %\centering %\caption{Add caption} % \begin{tabular}{rrrrr} \toprule theta\_1 ...

0

While Python cannot know when the table has reached the bottom of the page, it can make a very good guess. If all your entries have the same size more or less, you can just count the number of rows in your table and start a new table every n rows, where n depends on the geometry of your page, your font size, the entries to the table, etc. Depending on the ...

0

The problem is not caused by the table or multicol but simply by the fact that LaTeX doesn't know how to split the extremely long number you gave it. I suggest using the package seqsplit, designed for typesetting DNA sequences. \usepackage{seqsplit} ... \begin{longtable}{| p{5cm} | p{5cm} | p{5cm} |} \hline Número & Compuesto & Primo \\ \hline ...

2

This is a workaround. Use \usepackage[labelsep=colon]{caption} after \usepackage[english,french]{babel} \documentclass[a4paper,11pt,final]{article} \usepackage[T1]{fontenc} \usepackage[english,french]{babel} \usepackage[utf8]{inputenc} \usepackage{tabularx} \usepackage{longtable} \usepackage[labelsep=colon]{caption} \begin{document} ...

Top 50 recent answers are included