Graphics, Figures & TablesFigure caption with the KOMA script

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
vuvo
Posts: 2
Joined: Thu Mar 03, 2022 6:19 pm

Figure caption with the KOMA script

Post by vuvo »

Hey everybody. I need help with a problem I can't solve. When I add a caption to an image, many errors appear
error.png
error.png (12.36 KiB) Viewed 1724 times
figure.png
figure.png (12.5 KiB) Viewed 1724 times
Anyone have any idea what to do about it? Without the \caption it works.
Last edited by vuvo on Thu Mar 03, 2022 7:52 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Figure caption with the KOMA script

Post by Bartman »

The source code in the figure doesn't make an error-prone impression. Please try to create a Infominimal working example that generates the error messages.

Better use the code tags to show the example, so that someone can test it right here in the forum. A screenshot of the source code would first have to be typed out, which means additional work for helpful readers.
vuvo
Posts: 2
Joined: Thu Mar 03, 2022 6:19 pm

Figure caption with the KOMA script

Post by vuvo »

Thanks, I don't even need to upload it, when I was creating the working example I discovered the error and removed it.
Thank you
Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Figure caption with the KOMA script

Post by Bartman »

A note on your use of the floating environment:

Read the comments in section 2.13 "Floating Bodies" in lshort (the extent of the content may differ depending on the language) if you only specify the optional parameter h when using a floating environment.

The post on TeX.SX is more for general understanding.
Post Reply