我尝试减少标题文本(而不是自动标签“图片”)并将其与回忆录更好地对齐。我尝试这样做这没有成功,我在回忆录文档中搜索,并尝试了一些命令,但也没有成功。
我的示例代码:
\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}
但是请注意,现在您可能会得到(如示例代码所示)某些行中的间距不好的结果,因为为标题保留的空间太窄了。也许您应该重新考虑关于对齐的决定。