Text FormattingIs the caption formatting possible without warning?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
szmitek
Posts: 1
Joined: Tue Mar 25, 2014 2:55 pm

Is the caption formatting possible without warning?

Post by szmitek »

I format the caption in this way:

Code: Select all

\usepackage[justification=justified,singlelinecheck=false,font=it]{caption}
Using the above line causes warming:

Code: Select all

Package caption Warning: Unsupported document class (or package) detected,
(caption)                usage of the caption package is not recommended.
See the caption package documentation for explanation.
I use captions for figures and tables, eg.

Code: Select all

\begin{figure}[H]
	\begin{center}
		\includegraphics[width=14cm]{dk}
	\end{center}
	\caption{Diagram komponentów}
	\label{rys:dk}
\end{figure}
I use custom document class based on mwrep package. Is the caption formatting possible without warning? Should I worry about this warning? Could you help me?
Kamil Szmit

Recommended reading 2024:

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

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Is the caption formatting possible without warning?

Post by Johannes_B »

mwrep is a class of its own. In most cases, classes come with own definitions of captions and similar, which are tweaked by package caption.

I don't know, what mwrep is defining, since the documentation is polish. And i don't have time to take a look at the code.

Does the caption formatting work as expected? Then you should have a look at package silence.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply