MHB How can I fix unwanted vertical space after figures in $\LaTeX$?

Click For Summary
SUMMARY

The forum discussion addresses the issue of unwanted vertical space after figures in $\LaTeX$. The user initially employed the \centerline command to include images but encountered excessive spacing, which was not present in other figures. After experimenting with negative vspace and different scaling factors, the user discovered that improper image cropping was the root cause of the issue. The solution involved correctly cropping the images to eliminate the extra vertical space.

PREREQUISITES
  • Familiarity with $\LaTeX$ document preparation system
  • Understanding of image inclusion commands in $\LaTeX$
  • Knowledge of image scaling techniques in $\LaTeX$
  • Basic skills in image editing for cropping
NEXT STEPS
  • Learn about the \includegraphics command in $\LaTeX$
  • Research proper image cropping techniques using tools like GIMP or Photoshop
  • Explore alternatives to \centerline for positioning figures in $\LaTeX$
  • Investigate the use of the \vspace command for fine-tuning vertical spacing
USEFUL FOR

This discussion is beneficial for $\LaTeX$ users, technical writers, and researchers who need to manage figure placement and spacing in their documents effectively.

Jameson
Insights Author
Gold Member
MHB
Messages
4,533
Reaction score
13
Hello everyone.

I'm typing up a report in $\LaTeX$ and I'm having trouble with some unwanted space. Here is what it looks like with the extra space marked by the reddish rectangles.

2mha1vt.png


The images themselves don't have excessive vertical space below them.

2m5au6b.png


On the previous page I have included figures that don't have any vertical space issues.
2rpfk0y.png


To include these I'm using the following code:

Code:
\centerline{\includegraphics[scale=.5]{Retail_Sales_dividebypop.png}}

I've read online that \centerline isn't advised to use but it's worked fine for me up until this point. I've tried using negative vspace but that doesn't do anything either.

The only thing I can think of is that the scaling adds more space. In second set of figures they are scaled lower, as you can see by this code:

Code:
\centerline{\includegraphics[scale=.1]{nasdaq_graph.png}}

Maybe the .1 scale factor leaves less room than .5? Any insight or help would be much appreciated!
 
Physics news on Phys.org
[SOLVED]! I wasn't cropping the images correctly, leaving extra vertical space. I might delete this thread later but am considering keeping just to have an example thread on vertical spacing. :o
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K