
memoir 클래스에서 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}