
실제로 코드를 만들었고, (아래) 소개에서 그림을 만들고 싶습니다.
그러나 결과는 다음과 같습니다.
소개에 나온 그림은 어떻게 만들 수 있나요?? (1.소개 아래)
\documentclass[12pt]{article}
%\usepackage[left=40mm,right=40mm,top=40mm,bottom=40mm,a4paper]{geometry}
\usepackage{amsfonts,amsmath,amssymb,amsthm,kotex}
\usepackage{graphicx}
\usepackage{times}
\usepackage{bm}
\usepackage{amsbsy}
\usepackage{indentfirst}
\usepackage[all]{xy}
\usepackage{curve2e}
\usepackage[onehalfspacing]{setspace}
\usepackage{setspace}
\setstretch{1.6}
\usepackage{subcaption}
\usepackage{booktabs}
\usepackage{multirow}
\counterwithin{equation}{section}
\renewcommand{\theequation}{\arabic{section}.\arabic{equation}}
\renewcommand\refname{\centerline{References}}
\renewcommand\thesection{\arabic{section}}
\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}}
\renewcommand\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}
\begin{document}
\newtheorem{thm}{Theorem}
\numberwithin{thm}{section}
\newtheorem{cor}{Corollary}
\numberwithin{cor}{section}
\newtheorem{lem}{Lemma}
\numberwithin{lem}{section}
\newtheorem{prop}{Proposition}
\numberwithin{prop}{section}
\theoremstyle{definition}
\newtheorem{de}{Definition}
\numberwithin{de}{section}
\newtheorem{ex}{Example}
\numberwithin{ex}{section}
\newtheorem*{rmk}{Remark}
\setlength{\paperwidth}{40mm}
\setlength{\paperheight}{40mm}
Why
\section{Introduction}
\begin{figure}
\centering
\begin{subfigure}{0.4\textwidth}
\includegraphics[width=\textwidth]{4.jpg}
\label{fig:first}
\end{subfigure}
\hfill
\begin{subfigure}{0.4\textwidth}
\includegraphics[width=\textwidth]{5.jpg}
\label{fig:second}
\end{subfigure}
\caption{Canonical forms are the same.}
\label{fig:figures}
\end{figure}
Come on
답변1
당신은 이것을 원합니다 :
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{float}
\begin{document}
Why
\section{Introduction}
\begin{figure}[H]
\centering
\begin{subfigure}{0.4\textwidth}
\includegraphics[width=\textwidth]{example-image-a}
\label{fig:first}
\end{subfigure}
\hfill
\begin{subfigure}{0.4\textwidth}
\includegraphics[width=\textwidth]{example-image-b}
\label{fig:second}
\end{subfigure}
\caption{Canonical forms are the same.}
\label{fig:figures}
\end{figure}
Come on
\end{document}
또한 다음 번에는 적절한 최소한의 작업 예제를 제공하도록 노력하십시오.