0

I've created a table in my document with the help from here

the table looks exactly as I want except it's location in my document , how can I define the location of the table anywhere in the doc ?

  • I remembered that I also want to change the Roman numbering of my tables to regular numbers ??

htbp H

the first screen shot is with [htbp] the second is with [H]. the first one does fits my needs , but why I get this empty space between the text and the section title "SUMMARY & CONCLUSIONS" ?

UdiW
  • 51
  • 7
  • I don't really follow. Move the table in the code and it will (likely) move in the PDF. Regarding the second questions, tables are by default (in the most common document classes) numbered with Arabic numbers, so you have likely done something to make the numbers Roman. – Torbjørn T. Jul 24 '15 at 12:14
  • I want it to be right after specific paragraph – UdiW Jul 24 '15 at 12:19
  • In that case, move it there, add \usepackage{float}, and use H as the float specifier (i.e. \begin{table}[H]). Cf. Keeping tables/figures close to where they are mentioned – Torbjørn T. Jul 24 '15 at 12:24
  • 3
    Then don't let it float: put it in a center environment, and use \captionof (defined the capt-of and caption packages) to reference it. – Bernard Jul 24 '15 at 12:24
  • 1
    The only reason to use a figure environment is to allow latex to move it to help with page breaking, an image that needs to be part of the paragraph flow should just be included with \includegraphics – David Carlisle Jul 24 '15 at 13:27
  • addressing the blank space: do you by chance have \newpage or its equivalent at the end of that paragraph? since there's only one paragraph on that page, if you don't have \raggedbottom set and you have an explicit page break, the only permissible place to stretch the page content is between the heading and the paragraph. (if there were two paragraphs, the space would be split, and half inserted above each.) – barbara beeton Jul 26 '15 at 16:34

1 Answers1

1

At the beginning of the document:

\usepackage{float}

Right at the place in the code (after a specific paragraph), put it like this:

\begin{table}[H]
...
\end{table}

Click here for more information on the floating options (H, h, etc...).

  • Seems to partially work , table is placed at the right place, and the figures that suppose to be right after it are placed after text that should conclude them. also something wired happened to the next section. I'll add screen shot – UdiW Jul 24 '15 at 13:03
  • Have you tried [H] instead of [htbp]? –  Jul 24 '15 at 13:38
  • yes, it's spread the figure on two columns in the second page – UdiW Jul 24 '15 at 13:59
  • The figure took over the two columns of the page? That would have nothing to do with the float of the figure environment, but the scale of the graph. Could you share a screenshot? --- If you use [H], the table or figure will be forced to appear between the corresponding lines of code and/or text. So the rest of the document will adapt accordingly, and that might lead to empty space in the final document (eg. figure too big to fit in a previous page, so it jumps to next page, and so text is moved along because it inevitably goes below the figure). –  Jul 25 '15 at 00:53
  • I've added screen shots, why I am getting this blank space between the title and the text, i've tried to change the width , but it doesn't work beside that all of my figure in the file are with the same width with no blank space after them. – UdiW Jul 26 '15 at 06:36
  • That blank space appears because figures been forced to be located one after another (and forced to be before the text). Since there is not enough space for both figures to fit in this column (because of the height of the figures), the figure and therefore the following text are moved to the next column. You can play with the scale or width of the figures and make them smaller to have them appear together in one column. (The issue here is the height, not the width; but height is reduced when width is reduced.) –  Jul 26 '15 at 23:14