Document ClassesBroken figure caption

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
juvey26
Posts: 2
Joined: Tue Oct 28, 2008 1:02 am

Broken figure caption

Post by juvey26 »

Hi,
I am using the sidewaysfigure environment via the rotate package. Everything works as expected, however when converting the dvi to pdf the figure captions is "broken". Specifically, the text "Figure #:" appears approximately 1/2 of a line height above the rest of the caption. My first guess was that the figure was too large, however I have experimented with small figures, using the picture environment, and other things, and the figure size does not appear to be the problem. I have also tried the landscape environment but with the same result.

A second observation is that all figures that appear prior to the sidewaysfigure command have "unbroken" captions, while every figure that appears after the command has a "broken" caption. If the sidewaysfigure portion is removed, the captions appear as normal.

I am perplexed; any help is greatly appreciated. Thank you very much in advance!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Broken figure caption

Post by gmedina »

Hi juvey26,

Could you please post a minimal working example (MWE) that allows us to reproduce that problematic behaviour? Following the link that I provided, you will find instructions on how to build such a MWE.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Broken figure caption

Post by localghost »

juvey26 wrote:[...] Everything works as expected, however when converting the dvi to pdf the figure captions is "broken". [...]
Could be a matter of the conversion. I recommend not to convert DVI to PDF, but compile either directly to PDF (with pdflatex) or via DVI and PS to PDF. If your final output format is PDF, you should prefer the first method.


Best regards and welcome to the board
Thorsten¹
juvey26
Posts: 2
Joined: Tue Oct 28, 2008 1:02 am

Re: Broken figure caption

Post by juvey26 »

Thank you very much for your helpful suggestions. In stripping many packages from my preamble to generate the MWE, I discovered that the error is originating from a custom sty file. I will try to track that down further, and if I have trouble will be sure to solicit more help.

Also, I am using LaTeX -> dvi -> dvi to pdf because my graphics are originally generated in .eps form. To my knowledge there is no way to use those graphics with pdflatex without first converting all the (numerous!) graphics to pdf form. If there is a way around this I'd love to know!

Thanks again for your help, and best regards,
Andrew
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

Broken figure caption

Post by Stefan Kottwitz »

Hi Andrew,

the epstopdf package could help.

Stefan
LaTeX.org admin
Post Reply