Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 4
Résolu

23 Jan '23, 20:36

fred02840's gravatar image

fred02840
4.2k31165189

Titre unique pour plusieurs subfiguressubfigures [RÉSOLU]

J'ai consulté la documentation du paquet `subfig`, mais ce que je lis p. ou 43 (par ex.) ne me permet pas de donner un seul et unique titre (sans la mention « Figure ») à deux subfigures. Résultat : `Package subcaption Error: This package can't be used in cooperation(subcaption) with the subfig package. Undefined control sequence. Package reledmac Error: Failed to patch the \setcounter command. No counter 'subfigure@save' defined. \subfloat.` \documentclass{scrartcl} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \DeclareCaptionFormat{sanslabel}{#3} \usepackage{subfig} \begin{document} \begin{figure}[!h] \subfloat[caption fig (a).]{\includegraphics[width=7cm]{example-image-a}\label{fig1}} \hfill \subfloat[caption fig (b).]{\includegraphics[width=7cm]{example-image-b}\label{fig2}} \captionsetup{format=sanslabel,justification=centering,font={small, sf}} \caption{Titre commun} \label{Verte} \end{figure} \end{document}
cliquez ici pour masquer/afficher la révision 3

23 Jan '23, 20:21

fred02840's gravatar image

fred02840
4.2k31165189

Titre unique pour plusieurs subfigures

J'ai consulté la documentation du paquet `subfig`, mais ce que je lis p. ou 43 (par ex.) ne me permet pas de donner un seul et unique titre (sans la mention « Figure ») à deux subfigures subfigures. Résultat : `! LaTeX `Package subcaption Error: This package can't be used in cooperation(subcaption) with the subfig package. Undefined control sequence. Package reledmac Error: Failed to patch the \setcounter command. No counter 'subfigure@save' defined.` defined. \subfloat.` \documentclass{scrartcl} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \DeclareCaptionFormat{sanslabel}{#3} \usepackage{subfig} \renewcommand{\thesubfigure}{\thefigure.\arabic{subfigure}} \captionsetup[subfigure]{ labelformat=simple, labelsep=colon, listofformat=subsimple} \captionsetup{lofdepth=2} \makeatletter \renewcommand{\p@subfigure}{} \makeatother \begin{document} \begin{figure}[!h] \subfloat[]{ \label{img_a} \includegraphics[width=\linewidth]{example-image-a} } \subfloat[caption fig (a).]{\includegraphics[width=7cm]{example-image-a}\label{fig1}} \hfill \subfloat[]{ \label{img_b} \includegraphics[,width=\linewidth]{example-image-b} } \subfloat[caption fig (b).]{\includegraphics[width=7cm]{example-image-b}\label{fig2}} \captionsetup{format=sanslabel,justification=centering,font={small, sf}} \caption{Titre commun} \label{Verte} \end{figure} \end{document}
cliquez ici pour masquer/afficher la révision 2

23 Jan '23, 20:08

fred02840's gravatar image

fred02840
4.2k31165189

cliquez ici pour masquer/afficher la révision 1

23 Jan '23, 20:07

fred02840's gravatar image

fred02840
4.2k31165189

C'est votre première visite ici ? Consultez la FAQ !

×