[OS X TeX] Rules failed

David Arnold dwarnold45 at suddenlink.net
Thu Jan 21 00:21:16 EST 2010


Mark et al,

We're using the memoir class. Our macro:

\newcounter{example}[section]
\renewcommand{\theexample}{\arabic{example}}
\newenvironment{example}[1]%
{\medskip\refstepcounter{example}%
	\strictpagecheck\checkoddpage
	\ifoddpage
	\noindent\tikz{%
		\draw[thick,webbrown] (0,0)
		--(\linewidth+2pt,0) 	node[right,fill=white]{\trythis{#1}}
		--(\linewidth+\marginparwidth,0);}
	\else
	\noindent\hspace{-\marginparwidth}\hspace{-\marginparsep}\tikz{%
		\draw[thick,webbrown](-\marginparwidth-\marginparsep,0)
		--(-\marginparwidth+2pt,0) node[right,fill=white]{\trythis{#1}}
		--(\linewidth,0);}
	\fi
	\par\noindent\textbf{EXAMPLE \theexample.}}%
{\par\smallskip
	\strictpagecheck\checkoddpage
	\ifoddpage
	\noindent\tikz{%
		\draw[thick,webbrown] (0,0)
		--(\linewidth+2pt,0)
		--(\linewidth+\marginparwidth,0) node[right]{$\square$};}
	\else
	\noindent\hspace{-\marginparwidth}\hspace{-\marginparsep}\tikz{%
		\draw[thick,webbrown](-\marginparwidth-\marginparsep,0)
		--(\linewidth,0) node[right]{$\square$};}
	\fi
	\par\medskip}

Blew up when I started adding \marginpar's. See attached file. At first, the marginpar's are just off by about a 1/2 line, but on page 7 of the attached document, they failed miserably. If you are willing to take a stab at helping me, I can provide some source. This is part of our project of writing free textbooks for our developmental math students at College of the Redwoods.

http://msenux.redwoods.edu/PreAlgText/

David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: chapter1.pdf
Type: application/pdf
Size: 145231 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20100120/de54820c/attachment.pdf>


More information about the MacOSX-TeX mailing list