Math & Science ⇒ ntheorem and a twoside book
ntheorem and a twoside book
I'm using the package ntheorem in a book just to label rules and definitions.
The labels (eq. numbers) appear always on the right side, but I would like that they toggle between the left and the right side, i.e. they should be always at the outer margin.
I did some searching but I couldn't find a solution.
Can someone help me?
Thanks a lot.
Nino
Ubuntu + TexLive + Kile
Xandros (eeePC) + TeTex + TexMaker
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
ntheorem and a twoside book
It would be really helpful if you provide a more detailed explanation of your intent as well as a minimal compilable version of the way in which you are using ntheorem.
ntheorem and a twoside book
You're right: sorry!
I attach the minimal compilable version and an image of the pdf I get from the original version. I would like to have the [Reg. X] on the same margin as the page number.
It's wondering that the minimal version behave correctly!
Thank you very much for your attention.
Nino
Ubuntu + TexLive + Kile
Xandros (eeePC) + TeTex + TexMaker
ntheorem and a twoside book
you could take advantage of margin notes to easily achieve what you desire. Take a look at the following example in which I used the \marginnote command provided by the homonimous package:
Code: Select all
\documentclass[a5paper,headsepline,titlepage,10pt,normalheadings,DIVcalc,twoside]{scrbook}
\usepackage[marginparsep=4pt]{geometry}
\usepackage[italian]{babel}
\usepackage[thref]{ntheorem}
\usepackage{marginnote}
\makeatletter
\newtheoremstyle{mystyle}%
{\item[]%
\leavevmode\raise.2em\hbox{%
\marginnote{\fbox{\theorem@headerfont##1\ ##2}}%
}%
}
{\item[]%
\leavevmode\raise.2em\hbox{%
\marginnote{\fbox{\theorem@headerfont##1\ ##2}}%
}%
{\theorem@headerfont##3}\theorem@separator\\\nopagebreak%
}
\makeatother
\theoremstyle{mystyle}
\theoremheaderfont{\normalfont\bfseries}
\theorembodyfont{\slshape}
\theoremsymbol{\ensuremath{\clubsuit}}
\theoremseparator{:}
\newtheorem{reg}{Reg.}
\begin{document}
\begin{reg}[Semina]\label{reg130a}
\textbf{La direzione di semina si sceglie all'inizio di ogni turno}.
\end{reg}
\begin{reg}[Semina - direzione]\label{reg131}
\textbf{Durante la semina, la direzione di semina non pu\`o cambiare}.
\end{reg}
\clearpage
\begin{reg}[kutakata]\label{kasa0211}
\textbf{Quando l'ultimo seme cade in una buca vuota, finisce il turno di un giocatore}.
\end{reg}
\begin{reg}[kutakata - direzione]\label{kasa17c140}
Durante il \textbf{\textit{kutakata}} non si pu\`o cambiare direzione di semina.
\end{reg}
\end{document}
Re: ntheorem and a twoside book
Thank you very much for your help.
After some adjustments, as you said, it works very well!
Thank you again,
Nino
Ubuntu + TexLive + Kile
Xandros (eeePC) + TeTex + TexMaker