Incompatibilité tikz subfigure

Bonjour à tous en ces temps de confinement,

J’avoue être un peu perdu entre les environnements subfigure, subfig,
subfloat … et Tikz

Je suis en train d’écrire un livre, j’ai donc besoin de ce préambule
avec tout ce qu’il contient.

Je bloque ici. J’aimerais mettre côte à côte ces deux figures avec
légendes. Cela coince. Lorsque je n’utilise pas l’environnement
subfigure (mais aussi subfig, subfloat, …, même punition.), tout
fonctionne correctement.

Voici ce que je reçois comme info:

! Argument of \tkz@getfrompolar has an extra }.

Dans un autre chapitre, l’environnement \subfigure fonctionne très bien
mais je n’y utilise pas Tkz.

Où est le problème? Merci pour votre réponse.

La figure « scaphe_grec.jpg » se trouve ici

Michel

\documentclass[openany]{book}

%biblio séparée (à charger avant babel)

\usepackage[sectionbib]{chapterbib}

\usepackage{frbib}

%\pagestyle{empty}

\usepackage{tkz-tab,tkz-fct,tkz-euclide,tkz-tukey,tikzducks,tikzpeople}

\usepackage[tikz]{bclogo}

\usetikzlibrary{babel,arrows,shadows,decorations.pathmorphing,patterns,calc,
shapes,intersections,decorations.markings}

\tikzstyle directed=[postaction={decorate,decoration={markings,
mark=at position .4 with {\arrow[>=latex,scale=2]{<}}}}]
\usetikzlibrary{positioning}
\usepackage{amsfonts,bbm,mathrsfs,amsmath,amssymb,amsthm,fge}

\usepackage{mathtools}

\usepackage[upright]{fourier}

\usepackage[utf8]{inputenc}

\usepackage{pifont} \usepackage[greek,frenchb]{babel}

\usepackage{arabtex,tabularx}

\usepackage{url,xlop,multicol,cancel,subfigure}

\usepackage{wrapfig,picins,mdframed}

\usepackage{lettrine}

\usepackage{epigraph}

\setlength{\epigraphwidth}{0.9\textwidth} \setlength{\epigraphrule}{0pt}

%\usepackage{changcntr}

%\counterwithin*{section}{chapter}

%\usepackage{xcolor,xstring,pgfkeys}

\usepackage{fancyhdr}

\pagestyle{fancyplain}

\renewcommand{\chaptermark}[1]{\markboth{#1} {}}

\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

\lhead[\fancyplain{}{\bfseries\thepage}]
{\fancyplain{}{\bfseries\rightmark}}

\rhead[\fancyplain{}{\bfseries\leftmark}] {\fancyplain{}{\bfseries\thepage}}

\cfoot {} \setcounter{secnumdepth}{4}

\renewcommand{\thepart}{}

\renewcommand{\thesection}{\Roman{section} }

\renewcommand{\thesubsection}{-- \alph{subsection}) }

\renewcommand{\thesubsubsection}{-- \roman{subsubsection}) }

\renewcommand\FrenchLabelItem{\textbullet}

\begin{document}

\begin{figure}[htbp]

\subfigure [Scaphé, schéma]

{

\begin{tikzpicture}

\tkzDefPoints{0/0/O,0/-2/A,2/0/B,-2/0/C}

\tkzDefPoint(-50:2){s}

\tkzDefPoint(130:2){S}

\tkzDrawArc(O,C)(B)

\tkzDrawSegmentline width=1.5pt

\tkzDrawSegmentdashed,->,>=latex

\tkzLabelSegmentsloped{Gnomon}

\tkzDrawArcvery thick(s) \end{tikzpicture}

}

\hfill

\subfigure [Scaphé de type grec conservé au musée Clemens-Sels (de),
Neuss. \copyright{} Hartmann Linge, Wikimedia Commons, CC-by-sa 3.0]

{

\includegraphics[width=.55\textwidth]{scaphe_grec.jpg}

}

\caption{Scaphé, schéma et Scaphé de type grec conservé au musée
Clemens-Sels (de), Neuss. \copyright{} Hartmann Linge, Wikimedia
Commons, CC-by-sa 3.0}

\end{figure}

\end{document}

Un peti peu de TeX permet de résoudre le problème chez moi…

\begin{document}

\newbox\toto
\setbox\toto=\hbox{
\begin{tikzpicture}
\tkzDefPoints{0/0/O,0/-2/A,2/0/B,-2/0/C}
\tkzDefPoint(-50:2){s}
\tkzDefPoint(130:2){S}
\tkzDrawArc(O,C)(B)
\tkzDrawSegmentline width=1.5pt
\tkzDrawSegmentdashed,->,>=latex
\tkzLabelSegmentsloped{Gnomon}
\tkzDrawArcvery thick(s)
\end{tikzpicture}
}

\begin{figure}[htbp]
\box\toto
}
\hfill
\subfigure[Scaphé de type grec conservé au musée Clemens-Sels (de), Neuss.%
\copyright{} Hartmann Linge, Wikimedia Commons, CC-by-sa 3.0]{
\includegraphics[width=.55\textwidth]{scaphe_grec.jpg}
}
\caption{Scaphé, schéma et Scaphé de type grec conservé au musée Clemens-Sels (de), Neuss. \copyright{} Hartmann Linge, Wikimedia Commons, CC-by-sa 3.0}
\end{figure}

\end{document}

Le 1 mai 2020 à 11:03, michel xyz@xyz.tld a écrit :

Bonjour à tous en ces temps de confinement,

J’avoue être un peu perdu entre les environnements subfigure, subfig, subfloat … et Tikz

Je suis en train d’écrire un livre, j’ai donc besoin de ce préambule avec tout ce qu’il contient.

Je bloque ici. J’aimerais mettre côte à côte ces deux figures avec légendes. Cela coince. Lorsque je n’utilise pas l’environnement subfigure (mais aussi subfig, subfloat, …, même punition.), tout fonctionne correctement.

Voici ce que je reçois comme info:

! Argument of \tkz@getfrompolar has an extra }.

Dans un autre chapitre, l’environnement \subfigure fonctionne très bien mais je n’y utilise pas Tkz.

Où est le problème? Merci pour votre réponse.

La figure “scaphe_grec.jpg” se trouve ici

File:201005151447 NE CSM, Sonnenuhr, Kalkstein, 1. Jh.jpg - Wikimedia Commons https://commons.wikimedia.org/wiki/File:201005151447_NE_CSM,_Sonnenuhr,_Kalkstein,_1._Jh.jpg

Michel
\documentclass[openany]{book}

%biblio séparée (à charger avant babel)

\usepackage[sectionbib]{chapterbib}

\usepackage{frbib}

%\pagestyle{empty}

\usepackage{tkz-tab,tkz-fct,tkz-euclide,tkz-tukey,tikzducks,tikzpeople}

\usepackage[tikz]{bclogo}

\usetikzlibrary{babel,arrows,shadows,decorations.pathmorphing,patterns,calc, shapes,intersections,decorations.markings}

\tikzstyle directed=[postaction={decorate,decoration={markings, mark=at position .4 with {\arrow[>=latex,scale=2]{<}}}}] \usetikzlibrary{positioning} \usepackage{amsfonts,bbm,mathrsfs,amsmath,amssymb,amsthm,fge}

\usepackage{mathtools}

\usepackage[upright]{fourier}

\usepackage[utf8]{inputenc}

\usepackage{pifont} \usepackage[greek,frenchb]{babel}

\usepackage{arabtex,tabularx}

\usepackage{url,xlop,multicol,cancel,subfigure}

\usepackage{wrapfig,picins,mdframed}

\usepackage{lettrine}

\usepackage{epigraph}

\setlength{\epigraphwidth}{0.9\textwidth} \setlength{\epigraphrule}{0pt}
%\usepackage{changcntr}
%\counterwithin*{section}{chapter}
%\usepackage{xcolor,xstring,pgfkeys}
\usepackage{fancyhdr}

\pagestyle{fancyplain}

\renewcommand{\chaptermark}[1]{\markboth{#1} {}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

\lhead[\fancyplain{}{\bfseries\thepage}] {\fancyplain{}{\bfseries\rightmark}}

\rhead[\fancyplain{}{\bfseries\leftmark}] {\fancyplain{}{\bfseries\thepage}}

\cfoot {} \setcounter{secnumdepth}{4}

\renewcommand{\thepart}{}

\renewcommand{\thesection}{\Roman{section} }

\renewcommand{\thesubsection}{-- \alph{subsection}) }

\renewcommand{\thesubsubsection}{-- \roman{subsubsection}) }
\renewcommand\FrenchLabelItem{\textbullet}

\begin{document}

\begin{figure}[htbp]

\subfigure [Scaphé, schéma]
{

\begin{tikzpicture}

\tkzDefPoints{0/0/O,0/-2/A,2/0/B,-2/0/C}
\tkzDefPoint(-50:2){s}

\tkzDefPoint(130:2){S}

\tkzDrawArc(O,C)(B)
\tkzDrawSegmentline width=1.5pt

\tkzDrawSegmentdashed,->,>=latex

\tkzLabelSegmentsloped{Gnomon}
\tkzDrawArcvery thick(s) \end{tikzpicture}

}
\hfill
\subfigure [Scaphé de type grec conservé au musée Clemens-Sels (de), Neuss. \copyright{} Hartmann Linge, Wikimedia Commons, CC-by-sa 3.0]

{

\includegraphics[width=.55\textwidth]{scaphe_grec.jpg}

}

\caption{Scaphé, schéma et Scaphé de type grec conservé au musée Clemens-Sels (de), Neuss. \copyright{} Hartmann Linge, Wikimedia Commons, CC-by-sa 3.0}

\end{figure}
\end{document}

Merci beaucoup.
Je pensais bien qu’il fallait “isoler” Tikz mais je ne savais pas
comment m’y prendre.
Encore merci

Le 01/05/2020 à 11:55, Alain MAITRE a écrit :

Un peti peu de TeX permet de résoudre le problème chez moi…

\begin{document}
\newbox\toto
\setbox\toto=\hbox{
\begin{tikzpicture}
\tkzDefPoints{0/0/O,0/-2/A,2/0/B,-2/0/C}
\tkzDefPoint(-50:2){s}
\tkzDefPoint(130:2){S}
\tkzDrawArc(O,C)(B)
\tkzDrawSegmentline width=1.5pt
\tkzDrawSegmentdashed,->,>=latex
\tkzLabelSegmentsloped{Gnomon}
\tkzDrawArcvery thick(s)
\end{tikzpicture}
}

\begin{figure}[htbp]
\box\toto
}
\hfill
\subfigure[Scaphé de type grec conservé au musée Clemens-Sels (de),
Neuss.%
\copyright{} Hartmann Linge, Wikimedia Commons, CC-by-sa 3.0]{
\includegraphics[width=.55\textwidth]{scaphe_grec.jpg}
}
\caption{Scaphé, schéma et Scaphé de type grec conservé au musée
Clemens-Sels (de), Neuss. \copyright{} Hartmann Linge, Wikimedia
Commons, CC-by-sa 3.0}
\end{figure}

\end{document}

Le 1 mai 2020 à 11:03, michel <xyz@xyz.tld
mailto:xyz@xyz.tld> a écrit :

Bonjour à tous en ces temps de confinement,

J’avoue être un peu perdu entre les environnements subfigure, subfig,
subfloat … et Tikz

Je suis en train d’écrire un livre, j’ai donc besoin de ce préambule
avec tout ce qu’il contient.

Je bloque ici. J’aimerais mettre côte à côte ces deux figures avec
légendes. Cela coince. Lorsque je n’utilise pas l’environnement
subfigure (mais aussi subfig, subfloat, …, même punition.), tout
fonctionne correctement.

Voici ce que je reçois comme info:

! Argument of \tkz@getfrompolar has an extra }.

Dans un autre chapitre, l’environnement \subfigure fonctionne très
bien mais je n’y utilise pas Tkz.

Où est le problème? Merci pour votre réponse.

La figure “scaphe_grec.jpg” se trouve ici

File:201005151447 NE CSM, Sonnenuhr, Kalkstein, 1. Jh.jpg - Wikimedia Commons

Michel

\documentclass[openany]{book}

%biblio séparée (à charger avant babel)

\usepackage[sectionbib]{chapterbib}

\usepackage{frbib}

%\pagestyle{empty}

\usepackage{tkz-tab,tkz-fct,tkz-euclide,tkz-tukey,tikzducks,tikzpeople}

\usepackage[tikz]{bclogo}

\usetikzlibrary{babel,arrows,shadows,decorations.pathmorphing,patterns,calc,
shapes,intersections,decorations.markings}

\tikzstyle directed=[postaction={decorate,decoration={markings,
mark=at position .4 with {\arrow[>=latex,scale=2]{<}}}}]
\usetikzlibrary{positioning}
\usepackage{amsfonts,bbm,mathrsfs,amsmath,amssymb,amsthm,fge}

\usepackage{mathtools}

\usepackage[upright]{fourier}

\usepackage[utf8]{inputenc}

\usepackage{pifont} \usepackage[greek,frenchb]{babel}

\usepackage{arabtex,tabularx}

\usepackage{url,xlop,multicol,cancel,subfigure}

\usepackage{wrapfig,picins,mdframed}

\usepackage{lettrine}

\usepackage{epigraph}

\setlength{\epigraphwidth}{0.9\textwidth} \setlength{\epigraphrule}{0pt}

%\usepackage{changcntr}

%\counterwithin*{section}{chapter}

%\usepackage{xcolor,xstring,pgfkeys}

\usepackage{fancyhdr}

\pagestyle{fancyplain}

\renewcommand{\chaptermark}[1]{\markboth{#1} {}}

\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

\lhead[\fancyplain{}{\bfseries\thepage}]
{\fancyplain{}{\bfseries\rightmark}}

\rhead[\fancyplain{}{\bfseries\leftmark}]
{\fancyplain{}{\bfseries\thepage}}

\cfoot {} \setcounter{secnumdepth}{4}

\renewcommand{\thepart}{}

\renewcommand{\thesection}{\Roman{section} }

\renewcommand{\thesubsection}{-- \alph{subsection}) }

\renewcommand{\thesubsubsection}{-- \roman{subsubsection}) }

\renewcommand\FrenchLabelItem{\textbullet}

\begin{document}

\begin{figure}[htbp]

\subfigure [Scaphé, schéma]

{

\begin{tikzpicture}

\tkzDefPoints{0/0/O,0/-2/A,2/0/B,-2/0/C}

\tkzDefPoint(-50:2){s}

\tkzDefPoint(130:2){S}

\tkzDrawArc(O,C)(B)

\tkzDrawSegmentline width=1.5pt

\tkzDrawSegmentdashed,->,>=latex

\tkzLabelSegmentsloped{Gnomon}

\tkzDrawArcvery thick(s) \end{tikzpicture}

}

\hfill

\subfigure [Scaphé de type grec conservé au musée Clemens-Sels (de),
Neuss. \copyright{} Hartmann Linge, Wikimedia Commons, CC-by-sa 3.0]

{

\includegraphics[width=.55\textwidth]{scaphe_grec.jpg}

}

\caption{Scaphé, schéma et Scaphé de type grec conservé au musée
Clemens-Sels (de), Neuss. \copyright{} Hartmann Linge, Wikimedia
Commons, CC-by-sa 3.0}

\end{figure}

\end{document}

Désolé, j’ai été un peu trop vite…

\begin{document}

\newbox\toto
\setbox\toto=\hbox{
\begin{tikzpicture}
\tkzDefPoints{0/0/O,0/-2/A,2/0/B,-2/0/C}
\tkzDefPoint(-50:2){s}
\tkzDefPoint(130:2){S}
\tkzDrawArc(O,C)(B)
\tkzDrawSegmentline width=1.5pt
\tkzDrawSegmentdashed,->,>=latex
\tkzLabelSegmentsloped{Gnomon}
\tkzDrawArcvery thick(s)
\end{tikzpicture}
}

\begin{figure}[htbp]
\subfigure[Scaphé, schéma]{ <================= Oubli de ma part
\box\toto
}
\hfill
\subfigure[Scaphé de type grec conservé au musée Clemens-Sels (de), Neuss.%
\copyright{} Hartmann Linge, Wikimedia Commons, CC-by-sa 3.0]{
\includegraphics[width=.55\textwidth]{scaphe_grec.jpg}
}
\caption{Scaphé, schéma et Scaphé de type grec conservé au musée Clemens-Sels (de), Neuss. \copyright{} Hartmann Linge, Wikimedia Commons, CC-by-sa 3.0}
\end{figure}

\end{document}

Le 1 mai 2020 à 11:55, Alain MAITRE xyz@xyz.tld a écrit :

Un peti peu de TeX permet de résoudre le problème chez moi…

\begin{document}

\newbox\toto
\setbox\toto=\hbox{
\begin{tikzpicture}
\tkzDefPoints{0/0/O,0/-2/A,2/0/B,-2/0/C}
\tkzDefPoint(-50:2){s}
\tkzDefPoint(130:2){S}
\tkzDrawArc(O,C)(B)
\tkzDrawSegmentline width=1.5pt
\tkzDrawSegmentdashed,->,>=latex
\tkzLabelSegmentsloped{Gnomon}
\tkzDrawArcvery thick(s)
\end{tikzpicture}
}

\begin{figure}[htbp]
\box\toto
}
\hfill
\subfigure[Scaphé de type grec conservé au musée Clemens-Sels (de), Neuss.%
\copyright{} Hartmann Linge, Wikimedia Commons, CC-by-sa 3.0]{
\includegraphics[width=.55\textwidth]{scaphe_grec.jpg}
}
\caption{Scaphé, schéma et Scaphé de type grec conservé au musée Clemens-Sels (de), Neuss. \copyright{} Hartmann Linge, Wikimedia Commons, CC-by-sa 3.0}
\end{figure}

\end{document}

Le 1 mai 2020 à 11:03, michel <xyz@xyz.tld mailto:xyz@xyz.tld> a écrit :

Bonjour à tous en ces temps de confinement,

J’avoue être un peu perdu entre les environnements subfigure, subfig, subfloat … et Tikz

Je suis en train d’écrire un livre, j’ai donc besoin de ce préambule avec tout ce qu’il contient.

Je bloque ici. J’aimerais mettre côte à côte ces deux figures avec légendes. Cela coince. Lorsque je n’utilise pas l’environnement subfigure (mais aussi subfig, subfloat, …, même punition.), tout fonctionne correctement.

Voici ce que je reçois comme info:

! Argument of \tkz@getfrompolar has an extra }.

Dans un autre chapitre, l’environnement \subfigure fonctionne très bien mais je n’y utilise pas Tkz.

Où est le problème? Merci pour votre réponse.

La figure “scaphe_grec.jpg” se trouve ici

File:201005151447 NE CSM, Sonnenuhr, Kalkstein, 1. Jh.jpg - Wikimedia Commons https://commons.wikimedia.org/wiki/File:201005151447_NE_CSM,_Sonnenuhr,_Kalkstein,_1._Jh.jpg

Michel
\documentclass[openany]{book}

%biblio séparée (à charger avant babel)

\usepackage[sectionbib]{chapterbib}

\usepackage{frbib}

%\pagestyle{empty}

\usepackage{tkz-tab,tkz-fct,tkz-euclide,tkz-tukey,tikzducks,tikzpeople}

\usepackage[tikz]{bclogo}

\usetikzlibrary{babel,arrows,shadows,decorations.pathmorphing,patterns,calc, shapes,intersections,decorations.markings}

\tikzstyle directed=[postaction={decorate,decoration={markings, mark=at position .4 with {\arrow[>=latex,scale=2]{<}}}}] \usetikzlibrary{positioning} \usepackage{amsfonts,bbm,mathrsfs,amsmath,amssymb,amsthm,fge}

\usepackage{mathtools}

\usepackage[upright]{fourier}

\usepackage[utf8]{inputenc}

\usepackage{pifont} \usepackage[greek,frenchb]{babel}

\usepackage{arabtex,tabularx}

\usepackage{url,xlop,multicol,cancel,subfigure}

\usepackage{wrapfig,picins,mdframed}

\usepackage{lettrine}

\usepackage{epigraph}

\setlength{\epigraphwidth}{0.9\textwidth} \setlength{\epigraphrule}{0pt}
%\usepackage{changcntr}
%\counterwithin*{section}{chapter}
%\usepackage{xcolor,xstring,pgfkeys}
\usepackage{fancyhdr}

\pagestyle{fancyplain}

\renewcommand{\chaptermark}[1]{\markboth{#1} {}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

\lhead[\fancyplain{}{\bfseries\thepage}] {\fancyplain{}{\bfseries\rightmark}}

\rhead[\fancyplain{}{\bfseries\leftmark}] {\fancyplain{}{\bfseries\thepage}}

\cfoot {} \setcounter{secnumdepth}{4}

\renewcommand{\thepart}{}

\renewcommand{\thesection}{\Roman{section} }

\renewcommand{\thesubsection}{-- \alph{subsection}) }

\renewcommand{\thesubsubsection}{-- \roman{subsubsection}) }
\renewcommand\FrenchLabelItem{\textbullet}

\begin{document}

\begin{figure}[htbp]

\subfigure [Scaphé, schéma]
{

\begin{tikzpicture}

\tkzDefPoints{0/0/O,0/-2/A,2/0/B,-2/0/C}
\tkzDefPoint(-50:2){s}

\tkzDefPoint(130:2){S}

\tkzDrawArc(O,C)(B)
\tkzDrawSegmentline width=1.5pt

\tkzDrawSegmentdashed,->,>=latex

\tkzLabelSegmentsloped{Gnomon}
\tkzDrawArcvery thick(s) \end{tikzpicture}

}
\hfill
\subfigure [Scaphé de type grec conservé au musée Clemens-Sels (de), Neuss. \copyright{} Hartmann Linge, Wikimedia Commons, CC-by-sa 3.0]

{

\includegraphics[width=.55\textwidth]{scaphe_grec.jpg}

}

\caption{Scaphé, schéma et Scaphé de type grec conservé au musée Clemens-Sels (de), Neuss. \copyright{} Hartmann Linge, Wikimedia Commons, CC-by-sa 3.0}

\end{figure}
\end{document}