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!
Document Classes ⇒ Broken figure caption
Broken figure caption
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.
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,...
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Broken figure caption
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.juvey26 wrote:[...] Everything works as expected, however when converting the dvi to pdf the figure captions is "broken". [...]
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Broken figure caption
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
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
- Stefan Kottwitz
- Site Admin
- Posts: 10308
- Joined: Mon Mar 10, 2008 9:44 pm