
環境を使用してSCfigure
サイド キャプションを作成しました。キャプション/コメントはうまく機能しますが、画像が希望する場所に配置されません。たとえば、次の画像をサブタイトルの下にドッキングします (4.4.3.....)
コードはこちら
\subsubsection*{4.4.3 Variance-covariance propagation: some examples}
\begin{SCfigure}[\sidecaptionrelwidth][!htb]
\centering
\includegraphics[scale=0.65]{E:/CloudStore/Dropbox/3SM/AdjOne/PicSet/4_43a.jpg}
\caption{\minibox{Angles $\alpha$ $\&$ $\beta$ have been measured with \\ standard deviation of $s_\alpha=s_\beta=1$ mgon \\
\\ Compute the Standard Deviation $S_\gamma$}}
\end{SCfigure}
乾杯 SL
答え1
は float オブジェクトを定義するためSCfigure
、LaTeX に実装されているアルゴリズムに従って float になります。2 番目のオプション引数を使用して配置を制限することもできます (既に実行しているように)。ただし、これによって LaTeX が常に図を希望の場所に正確に配置するように強制されるわけではありません。
以下のコードでは、1 つのオプションを示しています。また、コードにいくつか変更を加えました。minipage
狭いキャプションをタイプセットするために を使用する必要はありません (さらに、 の正しい構文を使用していませんでしたminipage
。これは、必須の引数 (幅) を持つ環境です)。代わりに、raggedright
の オプションを使用してくださいsidecap
。そうすれば、狭い側のキャプションは自動的に不揃いになります。
また、なぜサブセクションに手動で番号を付けるのでしょうか? LaTeX で自動的に番号を付けましょう:
\documentclass{article}
\usepackage{graphicx}
\usepackage[raggedright]{sidecap}
\begin{document}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\subsubsection{Variance-covariance propagation: some examples}
\begin{SCfigure}[\sidecaptionrelwidth][!hb]
\centering
\includegraphics[scale=0.65]{example-image-a}
\caption{Angles $\alpha$ $\&$ $\beta$ have been measured with standard deviation of $s_\alpha=s_\beta=1$ mgon Compute the Standard Deviation $S_\gamma$}
\end{SCfigure}
\end{document}
コード内の位置に図を正確に配置したい場合は、強力なfloatrow
H 配置フロート指定子を使用できるようにするパッケージ:
\documentclass{article}
\usepackage{graphicx}
\usepackage{floatrow}
\begin{document}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\subsubsection{Variance-covariance propagation: some examples}
\thisfloatsetup{
capposition=beside,
capbesideposition={bottom,right},
capbesidewidth=.3\textwidth,
justification=raggedright
}
\begin{figure}[H]
\floatbox{figure}[\FBwidth]{\caption{Angles $\alpha$ $\&$ $\beta$ have been measured with standard deviation of $s_\alpha=s_\beta=1$ mgon Compute the Standard Deviation $S_\gamma$}
}{\includegraphics[width=0.65\textwidth]{example-image-a}}
\end{figure}
\end{document}
一般に、width
と またはheight
オプションを使用するか、 を使用するかは異なることに\includegraphics
注意してくださいscale
。