# Tag Info

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

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

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

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

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

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

3

The easiest way is using an expandable loop; longtable or tabular makes no difference, so in the example I use the latter. \documentclass{article} \usepackage[landscape]{geometry} \usepackage{xparse} \ExplSyntaxOn \DeclareExpandableDocumentCommand{\expfor}{mm} { \prg_replicate:nn { #1 } { #2 } } \ExplSyntaxOff \begin{document} \noindent ...

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

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

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

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

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

The package bidi-longtable is experimental; there is no way in TeX--XeT algorithm to make tabular material RTL except putting it inside \hbox{\beginR\vbox{...}\endR} construction. This has its own set of problems which adds up to TeX--XeT limitation. A minimal example showing the problem is: \documentclass{article} \usepackage{lipsum} ...

1

If you wanted a blank row you could just use \\[...] no need for the \multicolumn. You could add space between \hhline by doing \hhline{===} \noalign{\vspace{3pt}} \hhline{===} but here it seems you just want a double line so: \documentclass[10pt]{article} \usepackage{longtable} \usepackage{hhline} \usepackage{multirow} \usepackage{rotating} ...

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

1

semi-automatic method, using the \pdfsavepos extension to work out where the text ends then constructing a suitable length to use with \\[something] to extend the row. I have not here tried to automatically determine the rows where the page breaks, so at the end of edits just change \\ to \zz{AomeUniqueLabel} You can see the lengths it is making in the aux ...

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

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

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

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

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