I want to include a table from another tex file before another table but this pushes the to another page. Do you have any solution to sidestep the problem?  Here is the code  \documentclass[english]{article} \usepackage{babel} \usepackage{graphicx} \usepackage{margin= 1.5 cm}[geometry]  \begin{document} \include{DS}  \begin{table}[!htpb] \centering \begin{tabular}{ccc} % ... \end{tabular} \end{table}  \end{document}   I tried scalebox to resize the second table but it didn't solve the problem.
3831
There are two different commands to incorporate another file into the source of some document, \input and \include. When should I use one or the other? What are the differences between them? Are there more things like them to be aware of?
53265
Possible Duplicate:          I am trying to create a table after some text:  Some text. foobar foobar \\  \begin{table}[t] \centering \begin{tabular}{|c|c|c|c|c|c|} \hline  &amp; a &amp; c &amp; &amp; &amp;  \\ \hline $\{X, X', Y\}$ &amp; &amp; b &amp;  &amp; &amp;  \\ \hline \hline \end{tabular} \end{table}   However, the table is appearing before the text even though I type if after I type the text. Why?
12691
I want to put several tables in the same table float like this:  \documentclass[a4paper, 12pt]{article} \usepackage[T1]{fontenc} \usepackage{subfig} \begin{document}  \begin{table}  \caption{Internal exon scores}\label{tab:internal} \begin{tabular}{|c|l|l|} \hline Ranking&amp;Exon Coverage&amp;Splice Site Support\\ \hline E1&amp;Complete coverage by a single transcript&amp;Both splice sites\\ E2&amp;Complete coverage by more than a single transcript&amp;Both splice sites\\ E3&amp;Partial coverage&amp;Both splice sites\\ E4&amp;Partial coverage&amp;One splice site\\ E5&amp;Complete or partial coverage&amp;No splice sites\\ E6&amp;No coverage&amp;No splice sites\\ \hline \end{tabular}  \caption{External exon scores}\label{tab:external} \begin{tabular}{|c|l|l|} \hline Ranking&amp;Exon Coverage&amp;Internal Splice Site Coverage\\ \hline X1&amp;Complete coverage by one or more transcripts&amp;Splice site covered\\ X2&amp;Exon coverage &gt;= 80\%&amp;Splice site covered\\ X3&amp;Exon coverage &lt; 80\%&amp;Splice site covered\\ X4&amp;Exon coverage &lt; 80\%&amp;Splice site not covered\\ X5&amp;No coverage&amp;Splice site not covered\\ \hline \end{tabular}  \end{table} \end{document}   When I build the document, table 2's caption is closer to the bottom of table 1, which makes things confusing. hspace{} doesn't seem to work in the table environment. I've worked out that the subfloat package appears to be causing the spacing behaviour of the captions. Is there anything else that I can do to introduce a blank horizontal break to space out the captions?
100281
EDIT Like some comments below are remarking the table environment doesn't allow tables over more than one page. However the solution works fine  I need to make a table over more than one page. The standard approach seems to be to use the ltablex environment. However, it doesn't work; also I assume that the table environment may also be required for the thesis template I work on (e.g. suppose for the capture).   \documentclass[11pt]{article} \usepackage{booktabs} \usepackage{tabularx} \usepackage{ltablex}  \begin{document}  \begin{table} \caption{Example of an table} \label{tab:daypack}      \begin{tabularx}{\linewidth}{@{}cX@{}}   \toprule \textbf{Column 1} &amp; \textbf{Column 2} \\[6pt] \midrule \endhead $R$ &amp; 1This is an example sentence \\[6pt] $R$ &amp; 2As well as the line before \\[6pt] $A$ &amp; 3Also this is an example \\[6pt] $R$ &amp; 4This is an example sentence \\[6pt] $R$ &amp; 5As well as the line before \\[6pt] $A$ &amp; 6Also this is an example \\[6pt] $R$ &amp; 7This is an example sentence \\[6pt] $R$ &amp; 8As well as the line before \\[6pt] $A$ &amp; 9Also this is an example \\[6pt] $R$ &amp; 10This is an example sentence \\[6pt] $R$ &amp; 11As well as the line before \\[6pt] $A$ &amp; 12Also this is an example \\[6pt] $R$ &amp; 13This is an example sentence \\[6pt] $R$ &amp; 14As well as the line before \\[6pt] $A$ &amp; 15Also this is an example \\[6pt] $R$ &amp; 16This is an example sentence \\[6pt] $R$ &amp; 17As well as the line before \\[6pt] $A$ &amp; 18Also this is an example \\[6pt] $R$ &amp; 19This is an example sentence \\[6pt] $R$ &amp; 20As well as the line before \\[6pt] $A$ &amp; 21Also this is an example \\[6pt] $R$ &amp; 22This is an example sentence \\[6pt] $R$ &amp; 23As well as the line before \\[6pt] $A$ &amp; 24Also this is an example \\[6pt] $R$ &amp; 25This is an example sentence \\[6pt] $R$ &amp; 26As well as the line before \\[6pt] $A$ &amp; 27Also this is an example \\[6pt] $R$ &amp; 28This is an example sentence \\[6pt] $R$ &amp; 29As well as the line before \\[6pt] $A$ &amp; 30Also this is an example \\[6pt] $R$ &amp; 31This is an example sentence \\[6pt] $R$ &amp; 32As well as the line before \\[6pt] $A$ &amp; 33Also this is an example \\[6pt] $R$ &amp; 34This is an example sentence \\[6pt] $R$ &amp; 35As well as the line before \\[6pt] $A$ &amp; 36Also this is an example \\[6pt] $R$ &amp; 37This is an example sentence \\[6pt] \bottomrule \end{tabularx}    \end{table}      \end{document}
90389
I was using this:    To try and create numbered examples in my document.  However, when I load it and put the example exe in that link in one of the separate Tex files (Introduction.tex) I include in main.tex, I get:  ./Chapters/Introduction.tex:14: TeX capacity exceeded, sorry [parameter stack s ize=10000]. \gb@ifnextchar #1#2#3-&gt;                        \let \reserved@d =#1\def \reserved@a {#2}\def \reserv... l.14 ... and political news \cite{washington_post}                                                   .  More importantly, when ...   Which is not even referring to the exe example I inserted but a couple of blocks of tex above it.  For info, here is my full code before my document begins:  \documentclass{report} % [fontsize=11pt,border=5pt] % standalone for the tree \usepackage{forest} % This overrides warnings like http://tex.stackexchange.com/questions/52576/difference-between-bookmark-levels-greater-than-one-what-does-this-mean \usepackage{bookmark} \usepackage{amsmath} \usepackage{subcaption} \usepackage{standalone} \usepackage[round]{natbib} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[utf8]{inputenc} % This is for hyperlinks \usepackage{hyperref} \hypersetup{     colorlinks=true,     linkcolor=blue,     filecolor=magenta,           urlcolor=cyan, }  \urlstyle{same} % Not sure why I need to use this % \usepackage{graphicx} % \graphicspath{ {images/} } % \usepackage[pdftex]{graphicx} % fontsize=11pt,twoside]{scrartcl} % This is for numbered examples \usepackage{gb4e}   Would appreciate some help as I feel like my Latex is very messy here.
80475
I would like to include part of the contents of a .tex file into a different .tex file. I don't have the option of modifying the file to include. The file to include may change so simply copying and pasting the part I need is not ideal.  Essentially, I'm wondering if there is something that would work like  \input[start-end]{file.tex}   where start and end are the first and last lines to include from the file?
3930
It seems to be the  that tables should not be used for layout in HTML.   Why?  I have never (or rarely to be honest) seen good arguments for this. The usual answers are:   It's good to But this is a fallacious argument; . I guess it's true that using the table element for layout has little to do with tabular data. So what? Does my boss care? Do my users care?Perhaps me or my fellow developers who have to maintain a web page care... Is a table less maintainable? I think using a table is  than using divs and CSS.By the way... why is using a div or a span good separation of content from layout and a table not? Getting a good layout with only divs often requires a lot of nested divs. Readability of the codeI think it's the other way around. Most people understand HTML, few understand CSS. It's better for SEO not to use tablesWhy? Can anybody show some evidence that it is? Or a statement from Google that tables are discouraged from an SEO perspective? Tables are slower.An extra tbody element has to be inserted. This is peanuts for modern web browsers. Show me some benchmarks where the use of a table significantly slows down a page. A layout overhaul is easier without tables, see .Most web sites that need an upgrade need new content (HTML) as well. Scenarios where a new version of a web site only needs a new CSS file are not very likely. Zen Garden is a nice web site, but a bit theoretical. Not to mention its  of CSS.   I am really interested in good arguments to use divs + CSS instead of tables.
36238
[i am trying to insert a table into a two column document. but i was unable to do it. i have tried many things but not able to get the correct way. I want the table to be in center of the page even the document is two column oriented  \lipsum[1]   \begin{table*}     \centering       \begin{tabular}[b]{l l l l l l l l}      &amp;   2011 &amp;  2012 &amp;  2013 &amp;  2014 &amp;  2015 &amp;  2016 &amp;  2017        \\ \hline Networking &amp;    0.15 &amp;  0.23 &amp;  0.42 &amp;  0.65 &amp;  0.85 &amp;  1.01 &amp;  1.15        \\ NoSQL &amp;     0.07 &amp;  0.13 &amp;  0.29 &amp;  0.5 &amp;   0.8 &amp;   1 &amp;     1.2     \\ Infrastructure Software  &amp;  0.14 &amp;  0.44 &amp;  0.83 &amp;  1.08 &amp;  1.25 &amp;  1.6 &amp;   1.9     \\ SQL &amp;   0.62 &amp;  0.88 &amp;  1.31 &amp;  1.75 &amp;  2.25 &amp;  2.45 &amp;  2.7     \\ Cloud  &amp;    0.36 &amp;  0.62 &amp;  1.19 &amp;  1.82 &amp;  2.52 &amp;  3.05 &amp;  3.65        \\ Storage &amp;   1.1 &amp;   1.75 &amp;  3.09 &amp;  4.2 &amp;   5.5 &amp;   6.4 &amp;   6.95        \\ Computation &amp;   1.53 &amp;  2.29 &amp;  3.65 &amp;  4.92 &amp;  6.4 &amp;   7.1 &amp;   7.6     \\ Apps \&amp; Analytics       &amp;   0.52 &amp;  0.99 &amp;  1.69 &amp;  3.45 &amp;  5.29 &amp;  6.65 &amp;  7.75        \\ Professional Services         &amp;     2.8 &amp;   4.42 &amp;  6.15 &amp;  10.1 &amp;  13.5 &amp;  16 &amp;    17.2        \\       \end{tabular}     \caption{This is the caption for complicated table}     \label{tab:1} \end{table*}   \lipsum[1]
48536
Since updating to the 2020 Fall release (MikTeX on Windows but also tested with TeXLive), I can no longer compile files where tables are imported from an external file using \input and followed by \hline (or \bottomrule). Things work perfectly with older releases. Note that it works if the last \\ is outside the file to be imported, but this is not a feasible option if the tables are created automatically from other softwares. Here is a MWE:  \begin{document}  \begin{table}   \caption{Table in text}   \begin{tabular}{lcc}     a &amp; 1 &amp; 2\\     b &amp; 1 &amp; 2\\     \hline   \end{tabular} \end{table}  \begin{table}   \caption{Table in other file 1}   \begin{tabular}{lcc}     \input{table1}     \hline   \end{tabular} \end{table}  \begin{table}   \caption{Table in other file 2}   \begin{tabular}{lcc}     \input{table2}\\     \hline   \end{tabular} \end{table}  \end{document}  with external files: table1.tex:     a &amp; 1 &amp; 2\\     b &amp; 1 &amp; 2\\  table2.tex:     a &amp; 1 &amp; 2\\     b &amp; 1 &amp; 2  Here is the log when it fails: This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.10) entering extended mode (MWE.tex LaTeX2e &lt;2020-10-01&gt; patch level 1 L3 programming layer &lt;2020-10-05&gt; xparse &lt;2020-03-03&gt; (&quot;C:\Program Files\MiKTeX\tex/latex/base\article.cls&quot; Document Class: article 2020/04/10 v1.4m Standard LaTeX document class (&quot;C:\Program Files\MiKTeX\tex/latex/base\size10.clo&quot;)) (&quot;C:\Program Files\MiKTeX\tex/latex/l3backend\l3backend-pdftex.def&quot;) (MWE.aux) (table1.tex) ! Misplaced \noalign. \hline -&gt;\noalign                    {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet... l.18     \hline                 ! You can't use `\hrule' here except with leaders. \hline -&gt;\noalign {\ifnum 0=`}\fi \hrule                                           \@height \arrayrulewidth \futurelet... l.18     \hline                 ! Missing number, treated as zero. &lt;to be read again&gt;                     \futurelet  l.18     \hline                 ! Illegal unit of measure (pt inserted). &lt;to be read again&gt;                     \futurelet  l.18     \hline                 (table2.tex) [1{C:/Users/Gouel/AppData/Local/MiKTeX/pdftex/config/pdftex.map}] (MWE.aux) ) (see the transcript file for additional information)&lt;C:/Program Files/MiKTeX/fo nts/type1/public/amsfonts/cm/cmr10.pfb&gt; Output written on MWE.pdf (1 page, 14750 bytes). Transcript written on MWE.log.  With an older release under Linux, it works perfectly: This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex)  restricted \write18 enabled. entering extended mode (./MWE.tex LaTeX2e &lt;2020-02-02&gt; patch level 2 L3 programming layer &lt;2020-02-14&gt; (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/12/20 v1.4l Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def) (./MWE.aux) (./table1.tex) (./table2.tex) [1{/var/lib/texmf/fonts/map/pdftex/up dmap/pdftex.map}] (./MWE.aux) )&lt;/usr/share/texlive/texmf-dist/fonts/type1/publi c/amsfonts/cm/cmr10.pfb&gt; Output written on MWE.pdf (1 page, 13788 bytes). Transcript written on MWE.log.
58161
With this MWE  \documentclass{article} \usepackage{tabulary}  \begin{document}  \hrule  \begin{center}   \begin{tabulary}{\textwidth}{|L|L|L|}     foo&amp;bar&amp;baz   \end{tabulary} \end{center}  \hrule  \end{document}   I get a table which is narrower than the page:   But I'd like the table to be spread out to \textwidth like tabularx would do. Is this possible?  Or is there an alternative approach?
80205
The following MWE :  \documentclass[10pt]{article} \usepackage[french]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}   \usepackage{color} \usepackage{array,float}  \begin{document}     \begin{tabular}{|*{3}{&gt;{\centering}p{1cm}|}}         \hline \color{red}A&amp;B&amp;C\tabularnewline \hline     \end{tabular}      \begin{tabular}{|*{3}{&gt;{\centering}m{1cm}|}}         \hline \color{blue}A&amp;B&amp;C\tabularnewline \hline     \end{tabular}      Some blablah... \end{document}   gives me :    The blue color continues after the cell, and even after the tabular !  I know that I can basically solve the problem with braces around  \color{blue}A   but I want to understand why, if I use "m" parameter instead of "p" in tabular, \color has this strange behaviour... (Otherwise, why, in the first tabular, cells are higher and A in the bottom of his cell ?)
7373
I would like to concatenate several tables and just keeping the header in the first line (and thus not having a new header each time that a new table has been concatenate). Does anyone know how to do that?  I am currently using:  find "/dir/folder" name "*.dat" -exec cat {} + &gt;&gt; "/dir/folder/table.txt"   but I can get rid of the header with that.
121515
I am writing a paper using the elsarticle document class. However, the article contains a long table which is sent to the next page, in the middle of the page although I have specified the position as 'here'. Is there any way to make the table split if one page is not long enough for the table? Thank you very much for your very kind help.
33448
My main file generate extra page before \tableofcontents with header title "Table of contents". How can I remove this page?  I am copying the main.tex file code for your reference.   \documentclass[twoside,12pt]{Classes/aesm_edspia}  \begin{document} \addtocounter{page}{-1} \makethese  \onehalfspacing \newpage\thispagestyle{empty}\addtocounter{page}{-5}   %depth in the table of contents and section numbering \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \frontmatter  \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{Acknowledgements} \fancyfoot[RO]{\thepage} \fancyfoot[LE]{\thepage} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt}  \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{Table of Contents} \fancyfoot[RO]{\thepage} \fancyfoot[LE]{\thepage} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt}  \input{Abstract/Abstract}  \tableofcontents \listoffigures \listoftables   \mainmatter \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{Introduction} \fancyfoot[RO]{\thepage} \fancyfoot[LE]{\thepage} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt}   \end{document}
119015
I have a document that uses both the longtable and the array package. At first I ascribed the problem to an interaction of both. After testing, it seems array is the only culprit.  Here's a minimal example.  \documentclass{article} \usepackage{array} \begin{document}  \begin{tabular}{p{0.4\textwidth}&gt;{\raggedright}p{0.4\textwidth}} 1 &amp; a \\ 2 &amp; b \\ 3 &amp; c \\ \end{tabular} \end{document}   It produces the error  ! Extra alignment tab has been changed to \cr.
63759
I want to do something like the following in TeX:  \begin{nobreak}    Text here will not split over pages, it will remain as one continuous chunk. If there isn't enough room for it on the current page a pagebreak will happen before it and the whole chunk will start on the next page.    \end{nobreak}   Is this possible?
115509
Consider the following table example, the text in the second row is wrapped.  \documentclass[a4paper]{article}  \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{tabu} \usepackage{booktabs}  \usepackage{array} \setlength{\extrarowheight}{5pt}  \begin{document}    \begin{tabu} to \linewidth {X[.5,c] X[1,l] X[1,l] X[2,l]}     \toprule     \rowfont{\bfseries}     Row &amp; Head 1                   &amp; Head 2 &amp; Head 3 \\\hline     1.  &amp; short text               &amp; ? &amp; ? \\\hline     2.  &amp; long long long long text &amp; ? &amp; ? \\\hline     3.  &amp; short text               &amp; ? &amp; ? \\\hline     4.  &amp; short text               &amp; ? &amp; ? \\     \bottomrule   \end{tabu}  \end{document}   It renders like:    Why is there so little space between the text in the second row and the rule below it?  How can I fix it?  What comes to my mind is to use \\[1ex] instead of \\, is there a better solution?