I wonder if someone can help me figure out how to adjust the margins of a page where tables are too wide. I tried the geometry package in the preamble:
\usepackage[hmargin=1in,vmargin=1in]{geometry}
Then I changed to:
\newgeometry{hmargin={1cm}} to try to fit the table but it has no effect
and besides the command gets printed when the pdf is generated.
Code: Select all
Code, edit and compile here:
\documentclass[11pt]{article}\usepackage{geometry}\usepackage{pdflscape}\usepackage{ctable}\title{How to adjust margins where tables are too wide}\usepackage{Sweave}\begin{document}\maketitle\begin{quote}I would like every page to have 1in margins except the page with a wide table.\\Page with table should be 1cm horizontal margin.\end{quote}\newpage\begin{landscape}\ctable[caption={Preliminary }]{ccccccccc}{}{\FL\multicolumn{1}{c}{Date}&\multicolumn{1}{c}{RFlows(cfs)}\tmark[1]&\multicolumn{1}{c}{Temp(C)}&\multicolumn{1}{c}{Turbs(NTU)}&\multicolumn{1}{c}{BY09.Winter}&\multicolumn{1}{c}{BY09.Spring}&\multicolumn{1}{c}{BY09.Fall}&\multicolumn{1}{c}{BY09.LateFall}&\multicolumn{1}{c}{BY10.Steelhead}\tabularnewline\hline3/12/2010&6,780&12.8&4.2&33 (119 - 119)&33 (71 - 71)&890 (32 - 47)&0 ( - )&0 ( - ) \\3/13/2010&11,400&13.4&-&-&-&-&-&- \\\FL}\end{landscape}\end{document}