SCfigure 无法实现图形居中(使用 TeXshop for Mac)

SCfigure 无法实现图形居中(使用 TeXshop for Mac)

我在使用时遇到问题SCfigure。我想将标题放在右侧边缘,但图形本身应该居中。但\centering不起作用。有人知道如何解决这个问题吗?

这是我的示例(希望对你有用)。谢谢

JA

\documentclass[11pt,a4paper,titlepage,DIV=calc,smallheadings]{article}

    \usepackage[utf8x]{inputenc}
    \usepackage[ngerman]{babel}
    \usepackage[demo]{graphicx}
    \usepackage[margincaption,outercaption,ragged,wide]{sidecap}
    \sidecaptionvpos{figure}{t} 
    \usepackage[font=scriptsize]{caption}

    \begin{document}


    \begin{SCfigure}[][ht]
    \caption{Lorem ipsum dolor sit amet, consetetur sadipscing elitr}
\centering
\includegraphics[width=8cm]{}
    \end{SCfigure}


    \end{document}

答案1

如果您使用floatrow包而不是 ,它就会起作用sidecap。对于这种狭窄的标题,您可能有兴趣justification=\RaggedRightcaption包中设置选项:

\documentclass[10pt, a4paper, twoside]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[showframe,outer= 6cm]{geometry}
\usepackage{ebgaramond}
\usepackage{graphicx}
\usepackage[labelfont = sc, justification=RaggedRight]{caption}%
\usepackage{floatrow}
\floatsetup[widefigure]{margins=hangright,capposition=beside,
capbesideposition={bottom, right},floatwidth=\textwidth}ASC

\begin{document}

\begin{figure*}\centering
\includegraphics[scale = 0.5]{loupnorstein2}
\caption{\emph{Tale of Tales} (1979) dir. Yuri Norstein.\\ This film was awarded the title of \,‘Best animation film of all times’.}\label{norstein2}
\end{figure*}

\begin{figure*}\centering
\includegraphics[scale = 0.6]{Hedgehog-in-the-fog}
\caption{\emph{Hedgehog in the fog} (1975) – Another film by Yuri Norstein}\label{norstein}
\end{figure*}

\end{document} 

在此处输入图片描述

相关内容