Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
    
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
1  
No, this is not working. :-( –  mohammad azadi Nov 18 '12 at 7:01
1  
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
1  
May I know the title of the book from which you took the screenshot? –  Oh my ghost Nov 18 '12 at 10:58

1 Answer 1

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}
share|improve this answer
    
Is xepersian package crucial to solve the problem? –  Oh my ghost Nov 18 '12 at 10:11
    
No bidi is crucial. –  Vafa Nov 18 '12 at 10:11
    
So where is bidi in your code? –  Oh my ghost Nov 18 '12 at 10:12
    
xepersian loads bidi package automatically. –  Vafa Nov 18 '12 at 10:12
1  
Why don't you make the solution useful for more users? I cannot compile it with pdflatex. –  Oh my ghost Nov 18 '12 at 10:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.