I use a memoir
class to write my thesis, and i don't know why i write all my text using the twoside
option.
Now i need oneside
option to print - yes, this is a silly situation :( - for impression, and all my margin settings are broken.
I want the same assymmetric page for all recto printed page, with sidecaption to the right for each page.
About \sidecapmargin
Memoir class say that :
the \sidecapmargin command controls the margin where the sidecaption will be placed. The possible values for margin are one of: left , right , inner , or outer . If left or right is specified the caption will go into the left or right margin. If inner or outer is specified then in a two sided document the caption will be on different sides of the typeblock according to whether it is a recto or verso page; in a one sided document the caption margin is fixed. The left margin is the default.
Using a class document with oneside
, i want the sidecaption
go to the right (and default is left as the manual of memoir say).
The \overridescapmargin{ right }
work for only ONE sidecaption at a time. How can i automatize this to all sidecaption, because \sidecapmargin{}
command is desactivated in oneside
option.
% !TEX encoding = UTF-8 Unicode
% -*- program: xelatex -*-
\documentclass[a4paper, 11pt,oneside, openright]{memoir}
\usepackage{polyglossia}
\setdefaultlanguage{french}
\usepackage{graphicx}
\usepackage[protrusion=true,final]{microtype}
%\usepackage[hang]{footmisc}
\usepackage{mwe} % just for dummy images
\usepackage{lipsum}
\checkandfixthelayout %or perhaps \checkandfixthelayout[lines]
\setlength{\evensidemargin}{\oddsidemargin}% after \checkandfix......
\raggedbottom
\enlargethispage{\baselineskip}
% SIDE CAPTION
\newsubfloat{figure}{}
\newsubfloat{table}{}
\loosesubcaptions
\setsidecappos{t}
\strictpagecheck
\setsecnumdepth{paragraph}
\pagestyle{ruled}
\begin{document}
\frontmatter
\cleardoublepage
\chapterstyle{bringhurst}
\tableofcontents
\mainmatter
\chapter{my first chapter}
\lipsum
\begin{figure}[htbp]
\overridescapmargin{right}
\begin{sidecaption}[fortoc]{this is a very long comment on the margin this is a very long comment on the margin this is a very long comment on the margin
this is a very long comment on the margin this is a very long comment on the margin this is a very long comment on the margin}[fig:S_VV1]
\centering
\includegraphics[]{example-image-c}
\end{sidecaption}
\end{figure}
\lipsum
\begin{figure}[htbp]
\overridescapmargin{right}
\begin{sidecaption}[fortoc]{this is a very long comment on the margin this is a very long comment on the margin this is a very long comment on the margin this is a very long comment on the margin this is a very long comment on the margin this is a very long comment on the margin}[fig:S_VV2]
\centering
\includegraphics[width=.9\linewidth]{example-image-b}
\end{sidecaption}
\end{figure}
\lipsum
\begin{figure}[htbp]
\overridescapmargin{right}
\begin{sidecaption}[fortoc]{this is a very long comment on the margin this is a very long comment on the margin this is a very long comment on the margin
this is a very long comment on the margin this is a very long comment on the margin this is a very long comment on the margin}[fig:S_VV3]
\centering
\includegraphics[]{example-image-b}
\end{sidecaption}
\end{figure}
\chapter{my second chapter}
\lipsum
\begin{figure}[htbp]
\begin{sidecaption}[fortoc]{this is a very long comment on the margin this is a very long comment on the margin this is a very long comment on the margin this is a very long comment on the margin this is a very long comment on the margin}[fig:S_VV4]
\centering
\includegraphics[]{example-image-a}
\end{sidecaption}
\end{figure}
\lipsum
\listoftables
\listoffigures
\appendix
\appendixpage
\chapter{my first appendix}
\lipsum
\chapter{my second appendix}
\lipsum
\end{document}
What i want in the MWE :