在乳胶中调整侧标题
adjusting side caption in latex
我想通过将标题向左(或向右)冲洗并与图的顶部对齐来调整 Latex 中的侧标题。
附上MWE
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage[ragged]{sidecap}
\begin{document}
\begin{SCfigure}
\includegraphics[width=5cm]{name}
\caption{I would like the caption to occupy say 0.2linewidth and be left (or right) adjusted and on top}\label{fig:testA}
\end{SCfigure}
\end{document}
要使标题向左或向右对齐,sidecap
软件包提供了选项 raggedright
和 raggedleft
。
要将标题与图的顶部对齐,您可以使用 \sidecaptionvpos{figure}{t}
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage[
%ragged
%raggedright
raggedleft
]{sidecap}
\sidecaptionvpos{figure}{t}
\begin{document}
\begin{SCfigure}
\includegraphics[width=5cm]{name}
\caption{I would like the caption to occupy say 0.2linewidth and be left (or right) adjusted and on top}\label{fig:testA}
\end{SCfigure}
\end{document}
我想通过将标题向左(或向右)冲洗并与图的顶部对齐来调整 Latex 中的侧标题。 附上MWE
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage[ragged]{sidecap}
\begin{document}
\begin{SCfigure}
\includegraphics[width=5cm]{name}
\caption{I would like the caption to occupy say 0.2linewidth and be left (or right) adjusted and on top}\label{fig:testA}
\end{SCfigure}
\end{document}
要使标题向左或向右对齐,sidecap
软件包提供了选项 raggedright
和 raggedleft
。
要将标题与图的顶部对齐,您可以使用 \sidecaptionvpos{figure}{t}
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage[
%ragged
%raggedright
raggedleft
]{sidecap}
\sidecaptionvpos{figure}{t}
\begin{document}
\begin{SCfigure}
\includegraphics[width=5cm]{name}
\caption{I would like the caption to occupy say 0.2linewidth and be left (or right) adjusted and on top}\label{fig:testA}
\end{SCfigure}
\end{document}