I'm new Latex, I want to use make a table, and it works fine. the problem that I have is the position  of table in the document :   \chapter{chapter description } \section{section name } \subsetion{subsection} here should the text be displayed  \begin{table} \begin{tabularx}{\textwidth}{p{0.3\textwidth}|c|c|c} \end{tabularx} \caption{Table Name   \label{tab:table_label}} \end{table}   the pdf result hasn't the right order,  I get  first  the table  and that the \chapter and section , subsection  I don't what I'm doing wrong   any idea ?  thanks in advance
1605
How to influence the position of float environments like figure and table in LaTeX?   This is a general question and should collect useful answers for all users. I hope we can use this as a reference
7598
I'm posting today because I would like to reduce white space in a document I'm writing. The content is two-columns but I have floating tables that span across both columns (table*).   At some point, the text ends in the beginning of the first column of a new page. I would like to include my table on this page since it has a lot of free space below the text, but when I insert the table* right after the text, it goes to the top of the next page instead:    Do you know a way of obtaining the desired behavior?  Minimal working example :  \documentclass{article} \usepackage{lipsum}  \begin{document} \twocolumn  \paragraph{} \lipsum[1]  \begin{table*} \centering \begin{tabular}{|c|c|c|c|} \hline Column 1 &amp; Column 2 &amp; Column 3 &amp; Column 4 \\ \hline Column 1 &amp; Column 2 &amp; Column 3 &amp; Column 4 \\ \hline \end{tabular} \end{table*}%   \end{document}
11863
Since I have only little experience in Latex, I'm not sure how to create a specific table as shown in the example screenshot. Is such a table even possible with Latex and if yes, where do I need to start? Or is the layout maybe not the best choice and I should setup the layout of the table in another way?
40764
I am developing some tables on LaTeX environment and I am having some troubles with the spacing. Originally, I was able to generate the tables using the standard \begin{table}, but then I tried to add some features, as the capability to break the table if it is too long (using longtable) the issue appears. I also want to align numbers by decimal point and center, reason why I use siunitx package. The problem is on the last column, which had a width almost the double than the others. If I specify the column width, the problem "disappear", but I'm really interested in the possibility of automatically generate the width of the table.  The code is the following:  \documentclass[paper=a4, fontsize=11pt]{scrartcl} \usepackage[english]{babel} \usepackage{siunitx} \usepackage{longtable} \usepackage{booktabs}  \begin{document} \begin{longtable}{l*{4}{S}} % no problem specifying the column width\begin{longtable}{l*{4}{S[table-column-width=1.25cm]}} \caption{Univariate Item Descriptives}\\ \toprule \multicolumn{1}{l}{\textbf{Item}} &amp; \multicolumn{1}{c}{\textbf{Mean}} &amp;    \multicolumn{1}{c}{\textbf{Variance}} &amp; \multicolumn{1}{c}{\textbf{Skewness}} &amp; \multicolumn{1}{c}{\textbf{Kurtosis}} \\ \midrule \endfirsthead \multicolumn{5}{c}% {\tablename\ \thetable\ -- \textit{Univariate Item Descriptives (Continued from previous page)}} \\ \toprule \textbf{Item} &amp; \textbf{Mean} &amp; \textbf{Variance} &amp; \textbf{Skewness} &amp; \textbf{Kurtosis} \\ \midrule \endhead \hline \multicolumn{5}{r}{\textit{Continued on next page}} \\ \endfoot \bottomrule \endlastfoot 2. EX +         &amp; 2.788   &amp;    1.060 &amp;        -0.120   &amp;   -0.368\\ 3. DS +         &amp; 4.080   &amp;    0.853 &amp;        -1.141   &amp;    1.379\\ 4. AM +         &amp; 3.684   &amp;    0.705 &amp;        -0.541   &amp;    0.744\\ 5. EX +         &amp; 3.653   &amp;    1.043 &amp;        -0.709   &amp;    0.149\\ 6. DS -         &amp; 2.240   &amp;    1.665 &amp;         0.725   &amp;   -0.603\\ 7. AM +         &amp; 4.292   &amp;    0.876 &amp;        -1.627   &amp;    2.705\\ 8. EX -         &amp; 2.419   &amp;    1.588 &amp;         0.449   &amp;   -0.897\\ 9. AM +         &amp; 3.255   &amp;    0.923 &amp;        -0.234   &amp;   -0.037\\ 10. DS -        &amp; 3.449   &amp;    1.408 &amp;        -0.453   &amp;   -0.599\\ 11. EX +        &amp; 3.678   &amp;    1.232 &amp;        -0.669   &amp;   -0.219\\ 12. AM -        &amp; 2.830   &amp;    1.162 &amp;         0.029   &amp;   -0.565\\ 13. EX -        &amp; 3.452   &amp;    1.205 &amp;        -0.410   &amp;   -0.336\\ 14. DS -        &amp; 2.442   &amp;    1.374 &amp;         0.310   &amp;   -0.893\\ 15. AM -        &amp; 2.114   &amp;    1.168 &amp;         0.729   &amp;   -0.176\\ 16. EX -        &amp; 3.070   &amp;    1.085 &amp;        -0.176   &amp;   -0.347\\ 17. AM +        &amp; 3.893   &amp;    1.116 &amp;        -0.954   &amp;    0.544\\ 18. EX +        &amp; 3.311   &amp;    0.964 &amp;        -0.238   &amp;   -0.066\\ 19. AM -        &amp; 2.674   &amp;    1.404 &amp;         0.245   &amp;   -0.780\\ \end{longtable} \end{document}
92740
Consider the minimal code below, which produces two different layouts depending on the  table position marks.    The first layout uses   \begin{table}   which results in the table ending below the footnotes and the second,  \begin{table}[htbp]   results in the table ending above the footnotes. Is this normal behaviour in LaTeX? I think a better algorithm would have been to try and position images or tables above the footnotes; is it some form of a bug? Here is the MWE.  \documentclass{book} \usepackage[paperwidth=4.75in,paperheight=7.25in,             textwidth=4.5in,textheight=6.5in,             headsep=0.1in, footskip=0.15in,             marginratio=1:1]{geometry} \usepackage[latin,english]{babel} \usepackage[demo]{graphicx} \usepackage{booktabs,lipsum} \begin{document}  \selectlanguage{latin} \chapter{Errora}  Una imagine tabula, figura et \ae nigma.\footnote{translatio via google}.   \begin{figure}[htbp] \centering \includegraphics[width=0.3\textwidth]{./graphics/amato} \caption{Uno pictorum}  \end{figure} \begin{table}%[htbp] %uncomment to see difference \centering \begin{tabular}{cccc}   \toprule   Error &amp;Errors &amp;error &amp;errors\\   \bottomrule \end{tabular}       \caption{Test} \end{table} %\lipsum[1-3] \end{document}   Edit:  I had a look at the documentation of the footmisc recommended by Thorsten Donig as a workaround where  Robin Fairbairns describes this behaviour as an "infelicity". There is a further infelicity, if you let both floats to float freely, the table floats to the next page and the image goes in the footer area, while there is ample space to have stayed exactly in its position in the text.
19162
I have a table which has quite a lot of text but want to keep it on a portrait page. I am using the tabularx environment and managed to get all I want into the columns, but now the spacing between the words is super ugly. I'd rater define the orientation of my text in the table in each column, than having it justified. How can I change that?  I am pretty new to latex and I still struggle a lot. I went through some similar questions already, but I only make it worse trying to fix my problem.   \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{textcomp} \usepackage{graphicx} \usepackage{chngcntr} \counterwithin{figure}{section} \usepackage[font=small,labelfont=bf]{caption} \usepackage{tabularx}  \begin{document}  \begin{table}[htb] \footnotesize \begin{tabularx}{\textwidth}{&gt;{\hsize=.4\hsize}X&gt;{\hsize=.7\hsize}X&gt;{\hsize=1.3\hsize}X&gt;{\hsize=1.3\hsize}X&gt;{\hsize=1.3\hsize}X} \hline \hline \textbf{WHO grade} &amp; \textbf{Type} &amp; \textbf{Description} &amp; \textbf{Treatment} &amp; \textbf{Outcome} \\ \hline \hline I &amp; Pilocytic astrocytoma &amp; low proliferative potential, not diffusive &amp; surgical resection &amp; not associated with recurrence after complete resection\\ II &amp; Diffuse glioma &amp; infiltrative, low mitotic activity, well differentiated &amp; surgical resection, adjuvant therapy &amp; median survival $&gt;$10 years, often recurrence as high-grade tumour\\ III &amp; Anaplastic Astrocytoma &amp; mitotically active, anaplastic histology and infiltrative capacity &amp; surgical resection, aggressive adjuvant therapy &amp; median survival 2-3 years, recurrence as grade IV\\ IV &amp; GBM &amp; mitotically active, anaplastic histology, highly infiltrative, necrisis, angiogenesis &amp; surgical resection, aggressive adjuvant therapy &amp; associated with rapid progression, median survival 14 month\\ \hline \hline \end{tabularx} \caption{WHO Glioma Grades} \label{table:glioma types} \end{table}  \end{document}   Looks like this:
108644
I'm writing my thesis with latex and I have a problem with this table setting. I would like to have all the equations aligned on the left and also the first and the last rows less height. Here is my code  \begin{table}\centering \begin{tabular}{ m{3cm} m{10cm} }\hline Continuity &amp; {\begin{equation} \frac{\partial \rho}{\partial t}+\nabla\cdot\left ( \rho\mathbf{V}\right )   =0\label{continuity_1}\end{equation}}\\ x-momentum\newline\newline y-momentum\newline\newline z-momentum &amp; {\begin{subequations}\begin{align} &amp;\frac{\left ( \partial \rho u\right ) }{\partial t}+\nabla\cdot\left ( \rho u\mathbf{V}\right ) = -\frac{\partial p}{\partial x}+\nabla\cdot\left ( \mu\nabla u\right ) +S_{Mx}\\ &amp;\frac{\left ( \partial \rho v\right ) }{\partial t}+\nabla\cdot\left ( \rho v\mathbf{V}\right ) = -\frac{\partial p}{\partial y}+\nabla\cdot\left ( \mu\nabla v\right ) +S_{My}\\ &amp;\frac{\left ( \partial \rho w\right ) }{\partial t}+\nabla\cdot\left ( \rho w\mathbf{V}\right ) = -\frac{\partial p}{\partial z}+\nabla\cdot\left ( \mu\nabla w\right ) +S_{Mz} \end{align}\label{NS_eq1}\end{subequations}}\\ Energy &amp; {\begin{equation} \frac{\left ( \partial \rho e\right ) }{\partial t}+\nabla\cdot\left ( \rho e\mathbf{V}\right ) =-p\nabla\cdot\mathbf{V}+\nabla\left ( k\nabla T \right ) + \Phi + S_{i} \label{energy_1}\end{equation}}\\ \hline\end{tabular}\caption{Governing equations of flow for a Newtonian fluid}\label{NS_eqt}\end{table}   This is the result
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?
73796
I am using this LaTeX code to generate three tables side by side. However, it showing errors and not giving satisfactory result. Can anyone please help me to short out the problem.  \begin{table} \centering \makebox[0pt][c]{\parbox{1.2\textwidth}{% \begin{minipage}[b]{0.265\hsize}\centering \begin{tabular}{ | c | c |c | } \multicolumn{3}{c} \hline {$q=1/10$} \\ \hline T &amp; $r_h$ &amp; $\omega$ \\  \hline 0.233 &amp; 0.135 &amp; 2.38486-0.34667I  \\  0.256 &amp; 0.140 &amp; 2.38092-0.35837I \\ 0.273 &amp; 0.145 &amp; 2.38049-0.35982I \\  0.278 &amp; 0.146 &amp; 2.38007-0.36130I \\  0.281 &amp; 0.147 &amp; 2.37964-0.36282I \\  \hline 0.284 &amp; 0.761 &amp; 2.54150-2.03209I \\ 0.285 &amp; 0.765 &amp; 2.54515-2.04292I \\ 0.289 &amp; 0.800 &amp; 2.57799-2.13761I \\ 0.302 &amp; 0.900 &amp; 2.67987-2.40712I \\ 0.312 &amp; 1.000 &amp; 2.79214-2.67552I \\ \hline \end{tabular} \end{minipage} \hfill \begin{minipage}[b]{0.265\hsize}\centering \begin{tabular}{ | c | c | c | } \multicolumn{3}{c} \hline {$q=1/9$} \\ \hline T &amp; $r_h$ &amp; $\omega$ \\ \hline 0.227 &amp; 0.150 &amp; 2.34385-0.41094I  \\  0.245 &amp; 0.155 &amp; 2.34215-0.41723I \\ 0.260 &amp; 0.160 &amp; 2.34056-0.42416I \\  0.271 &amp; 0.165 &amp; 2.33908-0.43175I \\  0.276 &amp; 0.167 &amp; 2.33852-0.43497I \\  \hline 0.280 &amp; 0.720 &amp; 2.50248-1.92299I \\ 0.283 &amp; 0.750 &amp; 2.52893-2.00424I \\ 0.286 &amp; 0.780 &amp; 2.55660-2.08533I \\ 0.289 &amp; 0.800 &amp; 2.57568-2.13931I \\ 0.302 &amp; 0.900 &amp; 2.67807-2.40842I \\ \hline \end{tabular} \end{minipage} \hfill \begin{minipage}[b]{0.265\hsize}\centering \begin{tabular}{ | c | c | c |} \multicolumn{3}{c} \hline {$q=1/8$} \\ \hline T &amp; $r_h$ &amp; $\omega$ \\  \hline 0.246 &amp; 0.180 &amp; 2.29733-0.50611I  \\  0.255 &amp; 0.185 &amp; 2.29654-0.51364I \\ 0.263 &amp; 0.190 &amp; 2.29589-0.52172I \\  0.269 &amp; 0.195 &amp; 2.29534-0.53033I \\  0.273 &amp; 0.199 &amp; 2.29496-0.53758I \\  \hline 0.275 &amp; 0.675 &amp; 2.46067-1.80426I \\ 0.277 &amp; 0.700 &amp; 2.48131-1.87194I \\ 0.288 &amp; 0.800 &amp; 2.57245-2.14170I \\ 0.302 &amp; 0.900 &amp; 2.67555-2.41027I \\ 0.317 &amp; 1.000 &amp; 2.78870-2.67796I \\ \hline \end{tabular} \end{minipage}% }} \end{table}
119721
In a two column document in LaTeX, is there any way to put a table* (a table spanning both columns) at the bottom of the page?  The obvious doesn't work:  \begin{table*}[b]   % b!, hb, hb!, etc. doesn't work either    %... a wide table \end{table*}
15541
I am importing a data table into a document and want the table to be within the text. When I import with \input{bodyrate}[htpb], the table is placed at the end of the document and [htpb] is printed instead. How do I get the table to be where I import it in the .tex file?  \documentclass[preprint]{aastex} \begin{document} \input{file}[htpb] \end{document}   the table file begins with:  \begin{deluxetable}{lccc} \tablecolumns{4} \tablewidth{0pc}
97832
What are the general differences between the various table environments that exist for LaTeX? By this I mean: What are their basic purposes? Which ones are the most important ones for new users? Which ones are more advanced and should only be used by advanced LaTeX users? Are there differences in terms of the appearance of the table? How does the booktabs package play into this?  In short, where will you use each of them and what are merits and disadvantages of each of them. This question is especially useful to LaTeX newcomers, for whom the number of options can seem overwhelming.
56327
The LaTeX Wikibook :     Please understand: you do not have to use floating tables. It only   looks more professional. If you want to place your tables where they   lie in your source code, do not use table at all! This is a very   common misunderstanding among newcomers.   LaTeX works with an intricate , but I often prefer immediate placement with the H placement specifier (enabled by the float package).  My understanding is that captions and table/figure numbering require the table/figure environments. Is this really so, or are there ways around that? What other reasons are there for using table/figure if we know that we don't want a particular object to float?
51959
Below picture shows my table of contents  The title size (the word, Contents) is very big, maybe Huge. I never set it as Huge and I searched the whole LaTeX file, there is no the word "huge" at all.  And the number is start with 0, for example "0.1 Introduction", not the normal "1 Introduction"  Below is the only code related with ToC  \usepackage[subfigure]{tocloft} . . . \setcounter{tocdepth}{2} \tableofcontents   What problem it can be?  PS: I tried to use \usepackage{xpatch}, but this one does not work   I use report   \documentclass[a4paper,leqno,twoside]{report}   Thanks everyone! I changed report to article, the problem is gone!
24643
My LaTeX document is acting strangely. Here is a simplified version of it:  \documentclass{article}  \begin{document}  \tableofcontents \newpage  \addcontentsline{toc}{part}{A Part of My Document} \include{includedfile}  \end{document}   And in includedfile.tex:  \section{My Section Title} Quack.   Clearly, in the table of contents, the heading for the part should precede the one for the section, but it doesn't! What's wrong?
78548
I am completely noobie in LaTeX. I need to change table name in all captions. But when I write \renewcommand\tablename{newname} at the beginning of document, it doesn't do anything. It's still "Table" My code looks like this:  ... \renewcommand\tablename{new} ... \begin{table}[b] \centering \begin{tabular}{|l|} ... your table ... \end{tabular} \caption{This table shows some data} \end{table} ...   What am I doing wrong?
71809
First of all I would like to thank everyone here for being so helpful this website is doing a really great job helping new people fall in love with latex. I have another question. I have to put a few tables in landscape mode since they are to big to look nice in normal portrait mode. I would also like to have my header and page numbering on that page as well. Can anyone guide me in how to do this. With a simple code. I am actually scared of ruing my current document so I am going to make it on a separate file and then add it with a PDF tool later into my original document. So i would probably need to add custom numbering to those page. I am providing the code I used from a user here for my header and number can you guys tell me how to add a custom number in here for example if the landscape table is on 23rd page. Also I am adding an image of how I want my page to look with a table in landscape. Thanks alot    and here is the code where I want to put custom numbers  \usepackage{fancyhdr} \usepackage[margin=0.75in,head=2cm,top=1.5cm,bottom=2.5cm,includehead]{geometry} \usepackage{lastpage} \usepackage{graphicx} \renewcommand{\headrule}{}% to remove the line \lhead{\includegraphics[width=6cm]{lol.png}}% use your logo \rhead{% \begin{minipage}[b]{5cm} \flushright \today\\ IND/Q-85/15 \\ Page \thepage{} of \pageref{LastPage} \vspace{6mm} \end{minipage}} \cfoot{}   I think I would need to change the '\thepage{}' with a normal 23 if it was the 23rd page I am not sure though =/. Sorry if I am asking a very easy question.