标题中的逆时针或顺时针符号(90°、180°、270°、360°)

标题中的逆时针或顺时针符号(90°、180°、270°、360°)

我有这个MWE:

    \documentclass[a4paper,12pt]{article}
    \usepackage{amsmath,amssymb}
    \usepackage{tikz}
    \usepackage{graphicx}
    \usepackage[labelformat=simple]{caption}
    \usepackage[labelformat=simple]{subcaption} % https://tex.stackexchange.com/a/135441/121799
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \DeclareCaptionFormat{Sebastiano}{%#1#2\par
    {\tikz[remember picture,baseline=-0.5ex]{%
    \node[fill=orange,text=white,font=\bfseries\sffamily\large,rounded
    corners=0.2em,minimum width=1.8em,minimum height=1.8em](M){#1};
    \draw[very thick,orange] (M.west) -- ++ (-1,0);}}%
    \hfill\hfill{\tikz[remember picture,overlay]{\coordinate(R);
    \draw[very thick,orange] (M.east) -- (M.east-|R);
    }}\par
    #3} 
    \DeclareCaptionFormat{Incredibile}{%#1#2\par
    {\tikz{%
    \node[text width=\linewidth-14pt,outer xsep=1.6pt,align=justify](MI){\textbf{\sffamily#1#2}#3};
    \draw[very thick,orange] (MI.north west) -- (MI.south west)
    (MI.north east) -- (MI.south east);
    }}\par
    } 
    \captionsetup{format=Incredibile}
    \captionsetup[sub]{format=Sebastiano}
    \newcommand{\IncludeClippedGraphics}[2][]{\begin{tikzpicture} 
    \node[rounded corners=5pt,clip,preaction={draw=orange,very thick},inner sep=-2pt]{%
    \includegraphics[#1]{#2}}; 
    \end{tikzpicture}}
    
    \begin{document}
    \begin{figure}[htp]
    \centering
    \begin{subfigure}[t]{.45\linewidth}
    \centering
    \IncludeClippedGraphics[width=\textwidth]{example-image-b}
    \caption{\label{fig:subim12}}
    \end{subfigure}\quad%
    \begin{subfigure}[t]{.45\linewidth}
    \centering
    \IncludeClippedGraphics[width=\textwidth]{example-image-c}
    \caption{\label{fig:subim29}}
    \end{subfigure}     
    \caption{Coordinate sferiche  $P(r,\varphi,\theta)$ nello spazio con linee coordinate e versori tangenti: notazione invertita tra $\varphi$ e $\theta$ rispetto a quella classica in Analisi Matematica.}
    \end{figure}
    \end{document}

截图如下:

在此处输入图片描述

是否可以\blacktriangle图1,每次我有一个新的图形时,符号都会从这个位置开始旋转或逆时针或顺时针旋转?

我想要的例子如下。

在此处输入图片描述

答案1

编辑使用\newcount数学技巧来执行所需的乘法,以便每个图形将三角形逆时针旋转额外的 90 度。

另一个关键是\figurename您需要更新宏以反映所需的标题标签。因此,我在序言中补充的内容如下:

\makeatletter
\newcount\figcnt
\newcommand\figrot{\figcnt=\numexpr\dimexpr90\c@figure\relax-90\relax}
\makeatother
\renewcommand\figurename{\figrot\textcolor{orange}{%
  \rotatebox[origin=c]{\figcnt}{$\blacktriangle$}} Figure}

妇女权利委员会:

    \documentclass[a4paper,12pt]{article}
    \usepackage{amsmath,amssymb}
    \usepackage{tikz}
    \usepackage{graphicx}
    \usepackage[labelformat=simple]{caption}
    \usepackage[labelformat=simple]{subcaption} % https://tex.stackexchange.com/a/135441/121799
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \DeclareCaptionFormat{Sebastiano}{%#1#2\par
    {\tikz[remember picture,baseline=-0.5ex]{%
    \node[fill=orange,text=white,font=\bfseries\sffamily\large,rounded
    corners=0.2em,minimum width=1.8em,minimum height=1.8em](M){#1};
    \draw[very thick,orange] (M.west) -- ++ (-1,0);}}%
    \hfill\hfill{\tikz[remember picture,overlay]{\coordinate(R);
    \draw[very thick,orange] (M.east) -- (M.east-|R);
    }}\par
    #3} 
    \DeclareCaptionFormat{Incredibile}{%#1#2\par
    {\tikz{%
    \node[text width=\linewidth-14pt,outer xsep=1.6pt,align=justify](MI){\textbf{\sffamily#1#2}#3};
    \draw[very thick,orange] (MI.north west) -- (MI.south west)
    (MI.north east) -- (MI.south east);
    }}\par
    } 
    \captionsetup{format=Incredibile}
    \captionsetup[sub]{format=Sebastiano}
    \newcommand{\IncludeClippedGraphics}[2][]{\begin{tikzpicture} 
    \node[rounded corners=5pt,clip,preaction={draw=orange,very thick},inner sep=-2pt]{%
    \includegraphics[#1]{#2}}; 
    \end{tikzpicture}}

\makeatletter
\newcount\figcnt
\newcommand\figrot{\figcnt=\numexpr\dimexpr90\c@figure\relax-90\relax}
\makeatother
\renewcommand\figurename{\figrot\textcolor{orange}{%
  \rotatebox[origin=c]{\figcnt}{$\blacktriangle$}} Figure}
    \begin{document}
    \begin{figure}[htp]
    \centering
    \begin{subfigure}[t]{.45\linewidth}
    \centering
    \IncludeClippedGraphics[width=\textwidth]{example-image-b}
    \caption{\label{fig:subim12}}
    \end{subfigure}\quad%
    \begin{subfigure}[t]{.45\linewidth}
    \centering
    \IncludeClippedGraphics[width=\textwidth]{example-image-c}
    \caption{\label{fig:subim29}}
    \end{subfigure}     
    \caption{Coordinate sferiche  $P(r,\varphi,\theta)$ nello spazio con linee coordinate e versori tangenti: notazione invertita tra $\varphi$ e $\theta$ rispetto a quella classica in Analisi Matematica.}
    \end{figure}

\begin{figure}
\caption{Next}
\end{figure}

\begin{figure}
\caption{Third}
\end{figure}
\end{document}

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

相关内容