![図がページの半分まで表示されない](https://rvso.com/image/328480/%E5%9B%B3%E3%81%8C%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%AE%E5%8D%8A%E5%88%86%E3%81%BE%E3%81%A7%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%81%AA%E3%81%84.png)
こんにちは。私は論文を書いています。私のセットアップは基本的に大学のテンプレートを使用しており、そこにはマスター .tex ファイルがあり、それにアクセスして\input{Chapter}
各章を作成します。
私の章の一般的な形式は、テキスト、テキスト、テキスト、最後に図が付くというものです各図は別々のページに表示され、その下にキャプションが配置され、すべてページの中央に配置されます。。
他の図よりも小さい図が 1 つあり、通常のコマンドを使用すると、Latex によって前のページの前の図の下に配置されます (キャプションなどと一緒に押し込まれます)。これを回避するには、\clearpage
コマンドを使用しますが、図は中央に配置されますが、ページの中央には表示されません。何かアイデアはありますか?
\topskip0pt
\vspace*{\fill}
\begin{figure}[h]
\centering
\includegraphics[width=.9\textwidth,height=.9\textheight,keepaspectratio]{Fig3.pdf}
\caption[Figure one caption for preamble]{Figure one caption on page it appears.}
%\label{fig:filenameoffigurehere}
\end{figure}
\vspace*{\fill}
\clearpage
\topskip0pt
\vspace*{\fill}
\begin{figure}[h]
\centering
\includegraphics[width=.9\textwidth,height=.9\textheight,keepaspectratio]{Fig4.pdf}
\caption[Figure 2 caption for preamble]{Figure 2 caption on page it appears.}
%\label{fig:filenameoffigurehere}
\end{figure}
\vspace*{\fill}
私のパッケージ リストは (常に変化しますが) 次のようになります。
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{textcomp}
\usepackage{siunitx}
\usepackage{graphicx}
\usepackage{color}
\usepackage{amsmath}
\usepackage{fixltx2e}
\usepackage[square,super,sort,comma,numbers]{natbib}
%\usepackage[]{chapterbib}
\usepackage{fancyvrb}
\usepackage{amstext}
\usepackage{units}
\usepackage{inputenc}
\usepackage{array}
\usepackage{tabularx}
\usepackage{caption}
\usepackage{booktabs,makecell}
\renewcommand\theadfont{\bfseries}
\setcellgapes[b]{-3pt}
\newcommand{\mca}[1]{\multicolumn{2}{c}{#1}}
\newcommand{\mcb}[1]{\multicolumn{4}{c}{#1}}
\usepackage{siunitx}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
%\usepackage{multirow}
%\usepackage{float}
%\usepackage[T1]{fontenc}
%\usepackage[hidelinks]{hyperref}
\usepackage{parskip}
\usepackage{setspace}
\usepackage{float}
\floatstyle{plaintop}
\restylefloat{table}
答え1
これが少しでも役に立つかどうか見てみましょう:
\documentclass{report}
\usepackage{graphicx}
\usepackage{lipsum}
\begin{document}
\lipsum[1-7]
\begin{figure}[p]% <---
\vspace*{\fill}
\centering
\includegraphics[width=.9\textwidth,height=.9\textheight,keepaspectratio]{example-image-a}
\caption[Figure one caption for preamble]{Figure one caption on page it appears.}
%\label{fig:filenameoffigurehere}
\vspace*{\fill}
\end{figure}
\clearpage% <---
\lipsum[1-5]
\begin{figure}[p]% <---
\vspace*{\fill}
\centering
\includegraphics[width=.9\textwidth,height=.9\textheight,keepaspectratio]{example-image-b}
\caption[Figure 2 caption for preamble]{Figure 2 caption on page it appears.}
%\label{fig:filenameoffigurehere}
\vspace*{\fill}
\end{figure}
\end{document}
私は図オプションを使用してp
、\clearpage
各図の後に配置します。