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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm inputting several figures in my thesis and I'd like to know why there is always so much white space above and to the side of the figure and below the caption. Below the caption is particularly annoying but the 'offset' figure looks ugly too. Please see the picture. I've played with both the bounding box, the float dimensions, and figure dimensions. Other than making it really small to fit, I haven't found a good solution (using LyX). Suggestions? Thanks Dominik

EDIT: More info. SInce setspace was returning an error saying spacing was already defined, I pulled this out of the custom .cls file. ANy change this will garner an answer?

\def\doublespacing{ \ifcase \@ptsize \relax
       \def \baselinestretch {1.703}% 10pt -- EDIT (thesis=2.004; see line 251)
\or \def \baselinestretch {1.505}% 11pt -- EDIT (thesis=1.771; see line 252)
\or \def \baselinestretch {1.441}% 12pt -- EDIT (thesis=1.660; see line 253)
  \fi \setspace@size}
\def\singlespacing{\def \baselinestretch {1} \setspace@size \vskip \baselineskip}
  \let\@currsize#1 \baselineskip #2
  \baselineskip \baselinestretch\baselineskip
  \parskip \baselinestretch\parskip
  \setbox\strutbox \hbox{ \vrule height.7\baselineskip depth.3\baselineskip
  width\z@} \skip\footins \baselinestretch\skip\footins
%%%%%%%%% floats & footnotes singlespaced %%%%%%%%%
\def\@xfloat #1[#2]{\latexx@xfloat #1[#2]
\def\baselinestretch{1}\@normalsize \normalsize}
    \def\baselinestretch {1}
    \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
    \hsize\columnwidth \@parboxrestore
      \csname p@footnote\endcsname\@thefnmark}
    \color@begingroup \@makefntext{
    \unvbox \@mpfootins
    \def\baselinestretch {1}
    \hsize\columnwidth \@parboxrestore
      \csname p@mpfootnote\endcsname\@thefnmark}
    \color@begingroup \@makefntext{
%%%%%%%% single / double spacing %%%%%%%%%
\def\singlespace{ \vskip \baselineskip \def\baselinestretch {1}
  \setspace@size \vskip -\baselineskip }
\def\spacing#1{ \par \begingroup \def\baselinestretch {#1} \setspace@size }
\def\endspacing{ \par \vskip \parskip \vskip \baselineskip
  \endgroup \vskip -\parskip \vskip -\baselineskip }
\def\doublespace{ \ifcase \@ptsize \relax
      \spacing{1.6}%1.703   10pt -- EDIT (thesis=2.004; see line 199)
  \or \spacing{1.4}%1.505   11pt -- EDIT (thesis=1.771; see line 200)
  \or \spacing{1.3  }%1.441 12pt -- EDIT (thesis=1.660; see line 201)
  \fi }
share|improve this question

closed as not a real question by lockstep, egreg, Joseph Wright Jul 17 '11 at 16:57

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

It looks to me like you're using a \baselinestretch for spacing the text. Try using \usepackage{setspace} as explained here: secure.wikimedia.org/wikibooks/en/wiki/LaTeX/… – Habi Apr 20 '11 at 8:45
I tried inserting setspace into the preamble and got an error compiling: setstretch, singlespacing, doublespacing already defined. I did some reading about baselinestretch and sounds like i definitely don't want to be using it. I'm guessing the spacing is somehow defined in the .cls? Is there a way to override them in the preamble? I played with \renewcommand{\baselinestretch}{2} and \selectfont but didn't notice any changes. \usepackage[ font=small, justification=justified, labelfont={bf,singlespacing}, textfont=singlespacing ]{caption} ? Thx for help – Dominik Apr 21 '11 at 2:52
sorry, couldn't figure out how to format my last post – Dominik Apr 21 '11 at 2:57
Could you post a minimal working example (minimalbeispiel.de/mini-en.html)?, then we can probably figure out a bit more. And if you enclose the stuff you want to format in `, then it's highlighted. – Habi Apr 21 '11 at 8:53
'\usepackage{ifthen} \renewenvironment{figure}[1][]{% \ifthenelse{\equal{#1}{}}{% \@float{figure} }{% \@float{figure}[#1]% }% \centering }{% \end@float } \renewenvironment{table}[1][]{% \ifthenelse{\equal{#1}{}}{% \@float{table} }{% \@float{table}[#1]% }% \centering }{ \end@float }' – Dominik Apr 21 '11 at 16:49

Browse other questions tagged or ask your own question.