我在使用时遇到问题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=\RaggedRight
从caption
包中设置选项:
\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}