Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have created a table that is too wide for the margins. What I tried to do was implement \hspace*{-50pt} before \begin{tabular} and \hspace{-50pt} after \end{tabluar}. Which gets rid of the overfull \hbox message but the table is right to the edge of the paper. Is there way to scale it down so it centers and is not at the edge of the paper? Here is the MWE:

\documentclass[11pt,twoside,openright]{memoir}
\usepackage[size=pocket,trim,bleed]{createspace}
%\usepackage[paperwidth=4.25in, paperheight=6.875in,bindingoffset=.75in]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{tgtermes}

\usepackage{mathpazo}
\usepackage[protrusion=true,expansion=true]{microtype}
\usepackage{lipsum}
%\usepackage{type1cm}
%\usepackage{lettrine}

%\checkandfixthelayout

% See the ``Memoir customise'' template for some common customisations
% Don't forget to read the Memoir manual: memman.pdf

%\title{TITLE OF BOOK}
%\author{NAME OF AUTHOR}
%\date{} % Delete this line to display the current date

%% BEGIN TITLE

\makeatletter
\def\maketitle{%
  \null
  \thispagestyle{empty}%
  \vfill
  \begin{center}\leavevmode
    \normalfont
    {\LARGE\raggedleft \@author\par}%
    \hrulefill\par
    {\huge\raggedright \@title\par}%
    \vskip 1cm
%    {\Large \@date\par}%
  \end{center}%
  \vfill
  \null
  \cleardoublepage
  }
\makeatother
\author{AUTHOR}
%\author{NAME OF AUTHOR}
\title{TITLE}
%\date{}










%%% BEGIN DOCUMENT

\begin{document}
\pdftitle{TITLE}
\pdfauthor{AUTHOR}
\pdfsubject{SUBJECT}
\chapterstyle{bianchi}

\let\cleardoublepage\clearpage


\maketitle






\frontmatter

\null\vfill

\begin{flushleft}

Copyright \copyright  
%\textit{TITLE}

All rights reserved.

ISBN: 

ISBN--13: 
\bigskip





\end{flushleft}
\let\cleardoublepage\clearpage
\clearpage
\tableofcontents

    \chapter{[Chapter name]}
    \begin{figure}
\hspace*{-50pt}
    \begin{tabular}{l l l l }
        Open & $512$ & P/E & $21.0$ \\
        Range & $500-598$ & Mkt.Cap & $100.5$B\\
        52 Week high/low & $456-612$ & \# of shares & $256$m\\
        VOL/Avg. & 355458760/2914515 & Beta & $1.02$ \\
        Ask & $510.25$ & Inst. Own & $45$\% \\
        Div/Yield & - & Bid & $511.25$ \\
        & & EPS & 25.07 
        \end{tabular}
        \hspace{-50pt}
        \caption{TEXT}
    \end{figure}


\mainmatter
\sloppy
%Input all of the chapter here


\backmatter


\end{document}
share|improve this question
1  
    
just use \small ? –  David Carlisle Mar 13 '13 at 15:14
2  
@daleif: no harm done, and I'm glad that we agree on the issue ;) –  benwilfut Mar 13 '13 at 15:52
1  
@gekkostate: there are several other things you ought to fix in that example: (1) units, typeset using siunitx, (2) does this indicate a range? $500-598$, if so write it as 500--598, minus is the wrong dash in this case. –  daleif Mar 13 '13 at 15:54
1  
Between \tiny and \small there is \footnotesize. –  jon Mar 13 '13 at 17:14

1 Answer 1

up vote 1 down vote accepted

What is createspace? If I use the geometry settings, this works:

\documentclass[11pt,twoside,openright]{memoir}
%\usepackage[size=pocket,trim,bleed]{createspace}
\usepackage[paperwidth=4.25in, paperheight=6.875in,%bindingoffset=.75in
showframe]{geometry}
% the 'bindingoffset' seems huge for such narrow margins
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
% \usepackage{tgtermes}% ..?
\usepackage{mathpazo}
\usepackage[protrusion=true,expansion=true]{microtype}

\setlength{\tabcolsep}{2pt}

\begin{document}

Here is the table:

\begin{table}[!hb]
\footnotesize
  \begin{tabular}{@{}l l l l}
    Open & $512$ & P/E & $21.0$ \\
    Range & $500-598$ & Mkt.Cap & $100.5$B\\
    52 Week hi./lo. & $456-612$ & \# of shares & $256$m\\
    VOL/Avg. & {\scriptsize 355458760/2914515} & Beta & $1.02$ \\
    Ask & $510.25$ & Inst. Own & $45$\% \\
    Div/Yield & - & Bid & $511.25$ \\
    & & EPS & 25.07
  \end{tabular}
  \caption{TEXT}
\end{table}

\end{document}
share|improve this answer
    
createspace is a package that I am using to format my book. –  gekkostate Mar 13 '13 at 17:58
    
I have tried \footnotesize and that seems to do it. Thanks a lot for your help. I guess \resizebox{}{}{} was not necessary after all. –  gekkostate Mar 13 '13 at 18:01
    
@gekkostate -- glad it worked! –  jon Mar 13 '13 at 18:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.