
논문 보고서에 큰 이미지를 삽입해야 합니다. 어떤 이유로 이미지가 기본적으로 페이지에서 오른쪽 정렬됩니다. \hspace{-1.4cm}를 사용하여 이미지를 중앙에 맞추려고 했지만 개선되지 않았습니다. 어떤 제안이라도 도움이 될 것입니다.
%\documentclass[a4paper, 12pt, oneside, BCOR1cm]{scrbook}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
%function definition for starting intro from first section.
\def\frontmatter{%
%\pagenumbering{roman}
\setcounter{page}{1}
\renewcommand{\thesection}{\Roman{section}}
}%
\def\mainmatter{%
%\pagenumbering{arabic}
%\setcounter{page}{1}
\setcounter{section}{0}
\renewcommand{\thesection}{\arabic{section}}
}%
\def\backmatter{%
%\pagenumbering{arabic}
}%
\usepackage{fontspec}
%\setmainfont{Times New Roman}
\usepackage{makecell}
\usepackage{graphicx}
\usepackage{float}%%%
\usepackage{wrapfig}%%%
\usepackage{caption}
\usepackage{subfigure}
\usepackage{amsmath}
\numberwithin{equation}{section}
\usepackage{textgreek}
\usepackage{gensymb}
\usepackage{svg}
\usepackage{commath}\usepackage{amsmath}
\linespread{1.32}
%\usepackage[top = 2.8cm, bottom = 3.5cm, inner = 3cm, outer = 3cm, headheight = 15pt]{geometry}
%\usepackage{geometry}
\usepackage[a4paper, total={5.7in, 8.72in}]{geometry}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amstext}
\usepackage{amsthm}
\usepackage{blindtext}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[C]{\leftmark}
\cfoot[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\usepackage{chngcntr}
\usepackage{microtype}
\usepackage{titletoc}
%\usepackage{blindtext}
\usepackage{dirtytalk}
%\usepackage{fancyhdr}
\usepackage[utf8]{inputenc}
\usepackage[hidelinks]{hyperref}
\counterwithin{figure}{section}
\counterwithin{table}{section}
%\usepackage{picins}
\usepackage{array}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\floatstyle{plaintop}
\restylefloat{table}
\newenvironment{bottompar}{\par\vspace*{\fill}}{\clearpage}
\begin{document}
%%%%%%Lots of text
\begin{figure}[H]
\centering
\hspace{-1.4cm}
\includegraphics[height=5.4in,width=7.4in]{images/image1.png}
\caption[demo]{demo}
\vspace{0cm}
\label{fig:arc6}
\end{figure}
%%%%%%Text
\backmatter
\thispagestyle{plain}
\bibliographystyle{ieeetr}
\bibliography{References}
%\bibliographystyle{unsrt}
\end{document}
답변1
이미지가 보다 넓어서 textwidth
중앙에 위치할 수 없습니다. 그래픽의 지정된 너비를 textwidth
.
% picprob.tex SE
\documentclass[a4paper,12pt,oneside,BCOR1cm]{scrbook}
\usepackage{float}
\usepackage{mwe} % provides example images
\usepackage{graphicx}
\usepackage{lipsum} % provides many lines of text
\begin{document}
\lipsum[1]
\begin{figure}[H] %% your code
\centering
\hspace{-1.4cm}
\includegraphics[height=5.4in,width=7.4in]{images/image1.png}
\caption[demo]{demo}
\vspace{0cm}
\label{fig:arc6}
\end{figure}
Text
%%% my code
\lipsum[2]
\begin{figure}%[H] %% my code
\centering
%\hspace{-1.4cm}
%\includegraphics[height=5.4in,width=7.4in]{example-image}
\includegraphics[height=5.4in,width=5.4in]{example-image}
\caption[demo]{demo}
\vspace{0cm}
\label{fig:arc6}
\end{figure}
\end{document}
[H]
float 옵션은 float를 무효화하므로 사용하지 마십시오 . 플로트가 없다고 고집한다면 플로트를 요청하지 마세요. 그래픽이나 표에 캡션을 추가하는 다른 방법이 있습니다.