
私はmemoirクラスでsideCaptionを使用しようとしましたが、2つの問題があります(画像の赤い注釈1) :
- sideCaption は左の余白を尊重しません...
- 図の名前を図の上部に揃えるには、saidCaption にどう指示すればよいですか?
最小限のコード:
\documentclass[a4paper, 12pt,twoside, openright]{memoir}
\usepackage{polyglossia}
\setdefaultlanguage{french}
\usepackage{fontspec}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[autostyle=true,french=guillemets,maxlevel=3]{csquotes}
\usepackage{xparse}
\usepackage{graphicx}
\usepackage[protrusion=true]{microtype}
\graphicspath{{FigureIntroduction/}}
\makeatletter
\renewcommand{\fnum@figure}[1]{\textbf{\figurename~\thefigure}}
\makeatother
\begin{document}
\chapterstyle{bringhurst}
\begin{figure}[!h]
\begin{sidecaption}[fortoc]{Le "champignon informationnel" proposé par Frédéric Kaplan est révélateur de l'augmentation du champs d'expérimentation rendu possible par la numérisation des données, puis la simulation numérique.}[fig:I_Champi]
%\centering
%\resizebox*{\textwidth}{!}{\includegraphics{champignonKaplan.png}}
\includegraphics[width=\linewidth]{champignonKaplan.png}
\end{sidecaption}
\end{figure}
\end{document}
結果 :
答え1
キャプションは外側の余白に置きたいと考えるでしょうから、次のようにするといいでしょう。
\sidecapmargin{outer}
の幅はsidecap
長さ によって定義されます\sidecapwidth
。デフォルトでは なので\marginparwidth
、これを変更するには を使用します\setlength\sidecapwidth{<length of your choice>}
。ただし、個人的には外側の余白だけを使用します。
配置を修正するには、
\setsidecappos{t}
これについてはセクション10.10で説明されている。サイドキャプションmemoir
マニュアルに記載されています。
完全なコード:
\documentclass[a4paper, 12pt,twoside, openright]{memoir}
\usepackage[demo]{graphicx}
\sidecapmargin{outer}
\setsidecappos{t}
\makeatletter
\renewcommand{\fnum@figure}[1]{\textbf{\figurename~\thefigure:} }
\makeatother
\begin{document}
\begin{figure}
\begin{sidecaption}{Le "champignon informationnel" proposé par Frédéric Kaplan est révélateur de l'augmentation du champs d'expérimentation rendu possible par la numérisation des données, puis la simulation numérique.}[fig:I_Champi]
%\centering
%\resizebox*{\textwidth}{!}{\includegraphics{champignonKaplan.png}}
\includegraphics[width=\linewidth]{champignonKaplan.png}
\end{sidecaption}
\end{figure}
\end{document}