
나는 캡션 텍스트("그림" 자동 레이블이 아님) 텍스트를 회고록과 함께 줄이고 더 잘 정렬하려고 노력합니다. 나는 이것을 시도한다이것성공하지 못했고 회고록 문서를 검색하고 몇 가지 명령을 시도했지만 성공하지 못했습니다.
내 예제 코드 :
\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/}}
\tolerance=1000
\sidecapmargin{outer}
\setsidecappos{t}
\makeatletter
%\renewcommand{\fnum@figure}[1]{\textbf{\figurename~\thefigure}}
\renewcommand{\fnum@figure}{\textbf{Figure~\thefigure~--}}
\makeatother
\captiondelim{\newline}
\captionstyle{\centerlastline}% for title
\setlength{\belowcaptionskip}{\onelineskip}
\setlength{\footnotesep}{\onelineskip}
\captionnamefont{\small}
\captiontitlefont{\small}
\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]
%\resizebox*{\textwidth}{!}{\includegraphics{champignonKaplan.png}}
\includegraphics[width=\linewidth]{champignonKaplan.png}
\end{sidecaption}
\end{figure}
some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...
some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...
some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...
\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éeeees, puis la simulation numérique.}[fig:Id_Champi]
%\resizebox*{\textwidth}{!}{\includegraphics{champignonKaplan.png}}
\includegraphics[width=\linewidth]{champignonKaplan.png}
\end{sidecaption}
\end{figure}
some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...some text to compare ...
some text to compare ...
\end{document}
결과는 다음과 같습니다.
답변1
찾고 있는 매크로는 다음과 같습니다 \sidecapstyle
(섹션에 설명되어 있음).10.10.1 조정, 문서의 199페이지 memoir
) 기본 정의는 다음과 같습니다.
\newcommand*{\sidecapstyle}{%
%%% \captionnamefont{\bfseries}%
\ifscapmargleft
\captionstyle{\raggedleft}%
\else
\captionstyle{\raggedright}%
\fi}
거기에 수정 사항을 도입할 수 있습니다.
\renewcommand*{\sidecapstyle}{%
\ifscapmargleft
\captionstyle{\justifying\scriptsize}%
\else
\captionstyle{\justifying\scriptsize}%
\fi}
( 패키지가 \justifying
필요합니다 ragged2e
). 완전한 예:
\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}
\usepackage{ragged2e}
\usepackage{lipsum}
\sidecapmargin{outer}
\setsidecappos{t}
\makeatletter
\renewcommand{\fnum@figure}{\textbf{Figure~\thefigure~--}}
\makeatother
\captiondelim{\newline}
\renewcommand*{\sidecapstyle}{%
\ifscapmargleft
\captionstyle{\justifying\scriptsize}%
\else
\captionstyle{\justifying\scriptsize}%
\fi}
\begin{document}
\chapterstyle{bringhurst}
\begin{figure}[!ht]
\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]
\includegraphics[width=\linewidth,height=5cm]{example-image-a}
\end{sidecaption}
\end{figure}
\lipsum[4]
\end{document}
그러나 이제 캡션용으로 예약된 공간이 너무 좁기 때문에 일부 줄에서 공백이 잘못될 수 있습니다(예제 코드에서 볼 수 있음). 아마도 당신은 정당화에 대한 결정을 재고해야 할 것입니다.