[Tex/LaTex] How to reverse margin of tufte-book

double-sidedmarginpartufte

I want to change position of tufte-book(twoside) class in my thesis. In normal mode, margins for odd pages is on the right side and for evens, is on the left side of page. I want to change the position of margins.

Normal:
enter image description here

Reverse:
enter image description here

Best Answer

Is your thesis written in an RTL language? if it is and assumning, twoside option is used and bidi package is loaded, then bidi package takes care of this and puts margins in RTL mode in odd pages on LHS and in RTL mode in even pages, it puts margins on the RHS. Here is an example:

....
\usepackage{ptext}
\usepackage[demo]{graphicx}
\usepackage{xepersian}
\begin{document}
\ptext[1]
\begin{marginfigure}
\centering
\includegraphics[width=\textwidth]{demo}
\caption{این یک شکل است}
\end{marginfigure}
\ptext
\end{document}

and here is the output:

enter image description here

And the same example using bidi package and latin characters:

...
\usepackage{lipsum}
\usepackage[demo]{graphicx}
\usepackage[RTLdocument]{bidi}
\begin{document}
\lipsum[1]
\begin{marginfigure}
\centering
\includegraphics[width=\textwidth]{demo}
\caption{This is a figure}
\end{marginfigure}
\lipsum
\end{document}
Related Question