
我嘗試將 sideCaption 與回憶錄類別一起使用,但有兩個問題(圖像中的紅色註釋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}