
我已經使用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
由於SCfigure
定義了一個浮動對象,它將根據 LaTeX 中實現的演算法浮動。您可以嘗試使用第二個可選參數來限制定位(正如您已經在做的那樣),但這不會強制 LaTeX 在所有情況下將圖形準確地放置在您想要的位置。
在下面的程式碼中我展示了一個選項;我還對您的程式碼進行了一些更改:不需要使用 aminipage
來排版窄標題(此外,您也沒有使用正確的語法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}
請注意,一般來說,最好使用and width
/orheight
選項。\includegraphics
scale