GeneralTable Madness!

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pepperedmoth
Posts: 9
Joined: Sun Nov 16, 2008 5:32 am

Table Madness!

Post by pepperedmoth »

I am at my wit's end. I need to create an enormous text-only table, spanning several pages. I need text wrapping in every cell. It needs to be landscape orientation. And it needs to be resized, so it actually fits a page. Here is what I have so far. I CANNOT figure out how to get longtable and tabularx to co-operate. Maybe I should be using something entirely different. I'm going bananas. Here is what I have so far (I've loaded all the right packages up front, and I also am using fullpage, so I have more usable space):

Code: Select all

\begin{landscape}

\resizebox{\textwidth}{!}{%

\begin{tabularx}{\textwidth}[tb]{XXXXXXXX} %% Maybe this isn't the right way to do this? I need flexible columns. 

%% I know the longtable commands should go here . . . somewhere.  I have no idea!

\hline
Title & Journal & Theoretical Framework & Sampling and Recruitment & Final Sample & Methods & Results & Implications\\
\hline
Risk Factors for Breast Cancer in Jordanian Women 
& Journal of Nursing Scholarship 
& None stated in the article. 
& All Jordanian women with breast cancer who were listed in the Jordanian Cancer Registry in 1996 were included in the case sample.  The controls were a convenience sample. 
& 100 participants in both case and control groups. 
& Each participant was interviewed using a carefully constructed instrument. Each item in the interview was then statistically analyzed. 
& Direct trauma to the breast, exposure to stress, change in breast size, use of chemical hair dyes, use of pesticides, and irregular menstruation were all strongly correlated to the case group.
& Use of chemical hair dyes was an unexpected finding that easily lends itself to nursing intervention.  In this population at least, women should be encouraged to use natural dyes (such as henna), and further research is warranted to see if this result is replicable.\\
\hline
Environmental Health Hazards: The Impact on a Southern Community
& Public Health Nursing
& None stated in this article.
& After a preliminary 'windshield survey,' network sampling was used to find a group of people who lived near a local hazardous waste site.
& 222 informants, mostly female and from lower or lower-middle socioeconomic backgrounds.
& Each informant was interviewed about health concerns related to living near the waste site.
& Lots of concerns. %% lots more text here
& So many implications. %% lots more text here\\
\hline

%% Eight more journal articles to be summarized in table form, thus.

\end{tabularx}}

\end{landscape}
HELP! I am gnashing my teeth in frustration. Oh, plus, the rest of my document is double-spaced, and I cannot seem to get my table out of the double space mode. I assume I set that in the table environment? How?

Much love in advance.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Table Madness!

Post by gmedina »

Hi,

the ltxtable package can be what you are looking for. To temporarily change the space between lines, use the setspace package.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pepperedmoth
Posts: 9
Joined: Sun Nov 16, 2008 5:32 am

Re: Table Madness!

Post by pepperedmoth »

Ahhh, thank you SO MUCH! Yes, that's exactly what I need! If anyone cares (doubtful, but possible), I'll post my new markup and output so everyone can see . . .
Post Reply