# How to reverse margin of tufte-book?

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:

Reverse:

-
Try \let\OldOddSideMargin\oddsidemargin \let\oddsidemargin\evensidemargin \let\evensidemargin\OldOddSideMargin. This works with book class, but I can't seem to get a two sided output with tufte-book. – Peter Grill Nov 18 '12 at 6:34
Oh, you'll probably also need \reversemarginpar. – Peter Grill Nov 18 '12 at 6:40
No, this is not working. :-( – mohammad azadi Nov 18 '12 at 7:01
Like I said I was not able to get two sided output with tufte-book class so perhaps there is something special about that class that I am not aware of. It really would be helpful if you posted a fully compilable MWE including \documentclass and the appropriate packages that set up the problem. – Peter Grill Nov 18 '12 at 7:06
May I know the title of the book from which you took the screenshot? – kiss my armpit Nov 18 '12 at 10:58

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:

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}

-
Is xepersian package crucial to solve the problem? – kiss my armpit Nov 18 '12 at 10:11
No bidi is crucial. – Vafa Nov 18 '12 at 10:11
So where is bidi in your code? – kiss my armpit Nov 18 '12 at 10:12
xepersian loads bidi package automatically. – Vafa Nov 18 '12 at 10:12
Why don't you make the solution useful for more users? I cannot compile it with pdflatex. – kiss my armpit Nov 18 '12 at 10:14