Keeping tables/figures close to where they are mentioned
I have a doc that has several tables in it. Each section of my end document is in a separate .tex file. In some of my files I have tables in them. Say, for example, section 4 has two tables. Currently the first table for section four does not begin on any of the pages that section 4 is on. Section 5 starts at the end of the last page, but the first section 4 table appears on the next page, which does not have any of the section 4 text in it. How do I ensure these tables appear on pages that have section 4 text on them?