Based on this code, I added a title but now I face the problem that the margins are ignored when I use book or scrbook with the twoside option.





\tikzset{titregris/.style = {draw=gray, thick, fill=white, text=black, rectangle, rounded corners, right, minimum height=.7cm}}

      \node[titregris,xshift=1cm] at (P-|O) %
      \node[titregris,xshift=1cm] at (P-|O) %

 \def\zz{\begin{mdframed}[style=exercisestyle, rightline=false]}%
           \hbox{\box#1\llap{\phantom p}}}%





What's going wrong here or better what does I need to do to make it working?

closed as unclear what you're asking by Mensch, Przemysław Scherwentke, Jesse, Mike Renfro, Zarko May 24 '16 at 4:25

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    leftmargin and rightmargin may be responsible. Quoting the mdframed manual: »Many books are written in twoside mode. In those cases it’s better to set the margins related to the site. Instead of the explained options leftmargin and rightmargin you can work with the options outermargin and innermargin – clemens Oct 4 '13 at 15:23
  • @cgnieder outermargin seems to have no influence and innermargin (only) shifts the left column under the right one. Any other ideas? – susis strolch Oct 7 '13 at 16:47
  • Indeed the options don't seem to work as expected... Maybe ask @MarcoDaniel about this? – clemens Oct 7 '13 at 16:59

Browse other questions tagged or ask your own question.