[OS X TeX] Rules failed

David Arnold dwarnold45 at suddenlink.net
Thu Jan 21 13:17:15 EST 2010


True, but the pgf part works just fine.

\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}


It's when I try to add marginpars that things begin to fail. So I thought I'd turn to this list. I even tried \strictpagecheck before each margin par.

D.

On Jan 20, 2010, at 10:57 PM, Axel E. Retif wrote:

> On  20 Jan, 2010, at 23:21, David Arnold wrote:
> 
>> Mark et al,
>> 
>> We're using the memoir class. Our macro:
> 
> Mark (Wibrow) answered your previous post in the pgf/TikZ mailing list, and you're sending this to the TeX on Mac OS X mailing list.
> 
> 
> Best,
> 
> Axel
> 
> 
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> 




More information about the MacOSX-TeX mailing list