Graphics, Figures & Tableslongtable, multirow | Page Width exceeded

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
adhraklasoon
Posts: 6
Joined: Sun Sep 09, 2012 6:08 pm

longtable, multirow | Page Width exceeded

Post by adhraklasoon »

Hi all,

I'm trying to create a longtable with multirow. So far its worked but the last column is exceeding page width. I've tried various things, but was unsuccessful. Please please help! I've really spent too much time and don't know why I didn't think of asking the LaTeX Community! (duh)

I have attached the tex and pdf files.


Cheers
adhraklasoon
Attachments
samplefile.pdf
(25.08 KiB) Downloaded 314 times
samplefile.tex
(3.92 KiB) Downloaded 307 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

longtable, multirow | Page Width exceeded

Post by kaiserkarl13 »

How's about this?

Code: Select all

\documentclass[letterpaper]{article}
\usepackage{lscape,booktabs}
\usepackage{multirow}
\usepackage[margin=1in]{geometry}
\begin{document}
%Table summarising strength studies
\begin{landscape}\noindent
\begin{tabular}{l l l l l p{2.5in}}
\hline\hline
Study & Age Range &  Sample size  & Strength & Muscle group  & Results \\
\hline\hline
\\%Vidt et al. 2012
%a&b&c&d&e&f
\multirow{3}{1in}{Vidt et al.\ 2012}
    & 66--83 & $f=8$, $m=10$ & Isometric PT & shoulder ab/ad
        & PT of older group < PT of younger group \\
    &        &               &              & elbow F/E
        & Shoulder strength highest in younger group  \\
    &        &               &              & wrist F/E
        & Wrist strength highest in older group
\\\hline %Samuel & Rowe 2011
\multirow{3}{1in}
{Samuel and Rowe 2011} & 60's, 70's, 80's & $f=40$, $m=42$     &Isometric PT & knee F/E  & 80's strength${}<{}$60's strength by 14\% for grip strength to 27\% for hip abductors\\
                           &  &            &             & hip F/E, ab/ad   &  grip strength is not an indicator of lower limb strength\\
                           &  &            &             & grip strength     &
\\\hline%Kim et al. 2010
\multirow{3}{1in}{Kim et al.\ 2010} & 18--34 & $f=7$, $m=7$    &Isokinetic PT & ankle df/pf  & Middle aged workers sig. weaker than younger aged workers \\
                      & 35--54 & $f=7$, $m=7$    &              & knee F/E     & Older adults almost identical to middle aged workers \\
                      & $> 65$  & $f=7$, $m=7$    &              &              & Knee flexors declined more compared to knee extensors in middle aged adults \\
\hline %Demura et al. 2010
\multirow{3}{1in}{Demura et al.\ 2010} & 60--69 & $f=15$, $m=15$    &MVC           & grip strength  & MVC of males sig.\ stronger than females\\
                         &       &               &peak velocity &                & No sig.\ gender diff in peak velocity and time to reach peak velocity \\
\hline %Yamauchi et al. 2009
\multirow{5}{1in} {Yamauchi et al.\ 2009} & 18--29 & $f=39$, $m=55$    &Isometric PT & leg press  & Decrease in force generating capacity with age \\
                           & 30--39 & $f=35$, $m=35$     &            &  & No differences in max. shortening velocity across all age groups\\
                           & 40--49 & $f=12$, $m=15$     &            &  & \\
                           & 50--59 & $f=17$, $m=35$     &            &  & \\
                           & 60--{} & $f=66$, $m=27$     &            &  & \\
\hline %Danneskiold-Samsoe et al. 2009
\multirow{6}{1.3in} {Danneskiold-Samsoe et al.\ 2009} & 20--29 & $f=18$, $m=10$    &Isometric, isokinetic PT &all major joints  & Male strength declines linearly from 25 years and more dependent on age parameter \\
                     &30--39  & $f=18$, $m=10$    &              &      &Female strength depends on weight and declines with age from ca.~40 years  \\
                     &40--49  & $f=23$, $m=12$    &              &      &Males are 1.5--2 times stronger than females in general  \\
                     &50--59  & $f=18$, $m=10$    &              &      &Oldest males as strong as youngest females in general  \\
                     &60--69  & $f=22$, $m=10$    &              &      &  \\
                     &70--79  & $f=27$, $m=11$    &              &      &  \\
\hline\hline
\end{tabular}
\end{landscape}
\end{document}
adhraklasoon
Posts: 6
Joined: Sun Sep 09, 2012 6:08 pm

Re: longtable, multirow | Page Width exceeded

Post by adhraklasoon »

You made it work AND made it look prettier! :) Thank you!
Post Reply