그림을 참조할 때 "그림"이라는 단어를 어떻게 제거합니까?

그림을 참조할 때 "그림"이라는 단어를 어떻게 제거합니까?

따라서 그림에는 "그림 섹션.그림번호"라는 라벨이 붙었습니다. 즉, 섹션 1과 2에 있는 경우 각 캡션은 각각 "그림 1.1", "그림 1.2" 및 "그림 2.1"로 시작됩니다. 나는 서문에 다음을 넣어서 이 작업을 수행했습니다.

\renewcommand{\thesubFigure}{그림 \아랍어{섹션}.\아랍어{하위 그림}}

내가 하위 그림을 사용하는 이유는 페이지에 그림을 나란히 놓을 수 있기 때문입니다. 어쨌든, "그림 \ref{label1} 및 \ref{label2}를 참조하십시오"와 같이 실제 텍스트에서 이러한 그림을 참조하면 실제 출력은 "그림 그림 1.1 및 그림 1.2를 참조하십시오"입니다.

캡션에서 "그림"이라는 단어를 유지하면서 텍스트에서 그림을 참조할 때 이를 억제하려면 어떻게 해야 합니까?

다음은 최소한의 작업 예입니다.

\documentclass{article}

\usepackage{graphicx, caption}
\usepackage{float} %Needed for the [H] after \begin{figure}.  [H] stands for "Here", 
i.e., the figures appear in the PDF in the same location as in the TeX code.

\usepackage[labelformat=simple]{subcaption}

\renewcommand{\thesubfigure}{Figure \arabic{section}.\arabic{subfigure}}

\begin{document}
\section{First section}
\section{Second section}
    \begin{figure}[H]
    \centering
    \begin{subfigure}[t]{.45\textwidth}
    \begin{center} \includegraphics[scale=0.2]{stars.jpeg} \end{center}
    \caption{A picture of the past.}
    \label{fig:stars}
    \end{subfigure}
    ~~~
    \begin{subfigure}[t]{.45\textwidth}
    \begin{center} \includegraphics[scale=0.2]{monkeys.jpeg} \end{center}
    \caption{Humans not too long ago.}
    \label{fig:primates}
    \end{subfigure}
    ~~~
    \begin{subfigure}[t]{.42\textwidth}
    \begin{center} \includegraphics[scale=0.16]{lion.jpeg} \end{center}
    \caption{Not today Satan.}
    \label{fig:predator}
    \end{subfigure}
    ~~~
    \begin{subfigure}[t]{.42\textwidth}
    \begin{center} \includegraphics[scale=0.16]{blueberry.jpeg} \end{center}
    \caption{Is this a blueberry-topped cupcake, or just a cup of blueberries?.}
    \label{fig:enigma}
    \end{subfigure}
    ~~~
\end{figure}
As we can see in figures \subref{fig:stars} and \subref{fig:enigma}, I'm not very good at making a minimal working example.
\end{document}

그러면 다음과 같은 결과가 나옵니다.

여기에 이미지 설명을 입력하세요

답변1

의견에 따르면 하위 그림을 전혀 수행하지 않고 다음과 같은 작업을 수행하는 것 같습니다.

여기에 이미지 설명을 입력하세요

\documentclass{article}

\renewcommand\thefigure{\thesection.\arabic{figure}}

\usepackage{graphicx}
\begin{document}

\section{Zzzzzz}

\begin{figure}[htp]
  \begin{minipage}[t]{.33\linewidth}
    \centering
     \includegraphics[width=.7\linewidth]{example-image-a}
     \caption{Zzzzz\label{zza}}
  \end{minipage}\hfill
  \begin{minipage}[t]{.33\linewidth}
    \centering
     \includegraphics[width=.7\linewidth]{example-image}
     \caption{Zzzzz zzz\label{zzb}}  
  \end{minipage}\hfill
  \begin{minipage}[t]{.33\linewidth}
        \centering
     \includegraphics[width=.7\linewidth]{example-image-b}
     \caption{Zzzzz zzzzzz\label{zzc}}
  \end{minipage}
\end{figure}

See figures \ref{zza} to \ref{zzc}
\end{document}

관련 정보