<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi All,<div><br></div><div>I stumbled upon a solution for my problem after Federico pointed me in the right direction by pointing out the amssymb call in todo itself and the fact that it is a font-related package...</div><div><br></div><div>I moved </div><div><br></div><div>\usepackage{todo}</div><div><br></div><div>to the beginning of the preamble.</div><div><br></div><div>It seems that under XeTeX/XeLaTeX the amssymb package (or presumably any other package that requires it) needs to come before other packages that use amslatex packages. I am guessing that I was using something else that called an amslatex style package (euler.sty?). I saw references to similar issues arising from the order of package calls under XeTeX in a previous discussion at</div><div><br></div><div><a href="http://www.tug.org/pipermail/xetex/2008-October/011031.html">http://www.tug.org/pipermail/xetex/2008-October/011031.html</a></div><div><br></div><div>For completeness sake here is the new preamble (that works with the only change being I moved todo up to the beginning):</div><div><br></div><div><div>\documentclass[12pt,letterpaper,article]{memoir} </div><div><br></div><div>\usepackage[marginpar]{todo}</div><div>\usepackage{ifxetex}</div><div><br></div><div>\ifxetex </div><div><br></div><div>\usepackage{euler}</div><div>\usepackage[cm-default]{fontspec}</div><div>\usepackage{xltxtra,xunicode}</div><div>\defaultfontfeatures{Mapping=tex-text}</div><div>\setromanfont[Mapping=tex-text]{Hoefler Text}</div><div>\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gill Sans}</div><div>\setmonofont[Scale=MatchLowercase]{Andale Mono}</div><div><br></div><div>\else</div><div>%set the font specifications to use if xetex/xelatex is not available</div><div>\fi %closes ifxetex statement</div><div><br></div><div>\usepackage{hyperref}</div><div><br></div><div>And here is the preamble that was generating the error messages:</div><div><br></div><div><div>\documentclass[12pt,letterpaper,article]{memoir} </div><div><br></div><div>\usepackage{ifxetex}</div><div><br></div><div>\ifxetex </div><div><br></div><div>\usepackage{euler}</div><div>\usepackage[cm-default]{fontspec}</div><div>\usepackage{xltxtra,xunicode}</div><div>\defaultfontfeatures{Mapping=tex-text}</div><div>\setromanfont[Mapping=tex-text]{Hoefler Text}</div><div>\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gill Sans}</div><div>\setmonofont[Scale=MatchLowercase]{Andale Mono}</div><div><br></div><div>\else</div><div>%set the font specifications to use if xetex/xelatex is not available</div><div>\fi %closes ifxetex statement</div><div><br></div><div>\usepackage[marginpar]{todo}</div><div>\usepackage{hyperref}</div></div></div><div><br></div><div>Thanks,</div><div><br></div><div>Rob</div><div><div><div>On Apr 17, 2010, at 3:08 PM, Rob Rye wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Federico,<div><br></div><div>You did correctly use</div><div><br></div><div>\RequirePackage{amssymb}</div><div><br></div><div>in the todo.sty</div><div><br></div><div>Cheers,</div><div><br></div><div>Rob<br><div><div>On Apr 17, 2010, at 3:01 PM, Federico Garcia wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Rob and all,<br><br>From my first look at the error messages, I think somehow the amssymb package is being loaded twice (so, the second time LaTeX complains that all the commands amssymb defines are already defined). This is not supposed to happen: LaTeX should check for loaded packages before attempting a second load.<br>
<br>I don't have access to the todo code right now, but the problem may be that I forgot to use \RequirePackage instead of \usepackage. Could you please check, in the todo.sty file, what the exact mention of amssymb is?<br>
<br>In case it's \usepackage, that's the problem right there: change it into \RequirePackage and it should work. (And please let me know so I can fix it and re-publish)<br><br>Otherwise this might have something to do with XeLaTeX---amssymb is, after all, a font package. I am curious to see what the XeLaTeX folks can tell us!<br>
<br>Best regards,<br><br>Federico<br><br><div class="gmail_quote">On Sat, Apr 17, 2010 at 5:45 PM, Rob Rye <span dir="ltr"><<a href="mailto:rowenrye@gmail.com">rowenrye@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word;"><div>MacOSX TeX Group and Federico Garcia (developer of todo package),</div><div><br></div><div>I have recently started using the todo package to keep track of unfinished business in my manuscripts. I had always just used comments, but the todo package allows me to see a list of my unfinished tasks at the end of the pdf, all in one place. todo has worked flawlessly for me under LaTeX. I really like it. </div>
<div><br></div><div>I have also begun trying to make the transition to XeLaTeX, having been intimidated at the prospect of really learning how to use fonts under LaTeX. When I typeset a document using XeLaTeX and todo, I get the following error messages (which are non-fatal but annoying):<div>
<br></div><div><div style="margin: 0px;">/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/amssymb.sty:231: LaTeX Er</div><div style="margin: 0px;">ror: Command `\Finv' already defined.</div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px;">See the LaTeX manual or LaTeX Companion for explanation.</div><div style="margin: 0px;">Type  H <return>  for immediate help.</div><div style="margin: 0px;"> ...                                              </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; ">                                                  <br></div><div style="margin: 0px;">l.231 ...ol{\Finv}           {\mathord}{AMSb}{"60}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; ">
                                                  <br></div><div style="margin: 0px;">? </div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/amssymb.sty:232: LaTeX Er</div>
<div style="margin: 0px;">ror: Command `\Game' already defined.</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">See the LaTeX manual or LaTeX Companion for explanation.</div><div style="margin: 0px;">
Type  H <return>  for immediate help.</div><div style="margin: 0px;"> ...                                              </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; ">                                                  <br>
</div><div style="margin: 0px;">l.232 ...ol{\Game}           {\mathord}{AMSb}{"61}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; ">                                                  <br></div><div style="margin: 0px;">
? </div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/amssymb.sty:237: LaTeX Er</div><div style="margin: 0px;">ror: Command `\beth' already defined.</div>
<div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">See the LaTeX manual or LaTeX Companion for explanation.</div><div style="margin: 0px;">Type  H <return>  for immediate help.</div><div style="margin: 0px;">
 ...                                              </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; ">                                                  <br></div><div style="margin: 0px;">l.237 ...ol{\beth}           {\mathord}{AMSb}{"69}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; ">                                                  <br></div><div style="margin: 0px;">? </div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">
/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/amssymb.sty:238: LaTeX Er</div><div style="margin: 0px;">ror: Command `\gimel' already defined.</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">
See the LaTeX manual or LaTeX Companion for explanation.</div><div style="margin: 0px;">Type  H <return>  for immediate help.</div><div style="margin: 0px;"> ...                                              </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; ">
                                                  <br></div><div style="margin: 0px;">l.238 ...ol{\gimel}          {\mathord}{AMSb}{"6A}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; ">                                                  <br>
</div><div style="margin: 0px;">? </div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/amssymb.sty:239: LaTeX Er</div><div style="margin: 0px;">
ror: Command `\daleth' already defined.</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">See the LaTeX manual or LaTeX Companion for explanation.</div><div style="margin: 0px;">Type  H <return>  for immediate help.</div>
<div style="margin: 0px;"> ...                                              </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; ">                                                  <br></div><div style="margin: 0px;">
l.239 ...ol{\daleth}         {\mathord}{AMSb}{"6B}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; ">                                                  <br></div></div><div><br></div><div>Presumably these errors indicate that when running XeLaTeX and todo together I somehow end up defining several symbols found in assymb.sty a second time. Has anyone else used this combination of tools? If so, is there a workaround, other than hitting return over and over again to ignore the errors?</div>
<div><br></div><div>In case it matters, all of my TeX work is done using the TeXShop GUI (v. 2.33 as of this writing) under Snow Leopard.</div><div><br></div><div>Thanks,</div><div><br></div><font color="#888888"><div>Rob Rye</div>
<div>Astrobiologist-at-Large</div><div><br></div><div><br></div></font></div></div></blockquote></div><br><br clear="all"><br>-- <br>Federico Garcia<br>Artistic Director<br>Alia Musica Pittsburgh<br><a href="http://www.alia-musica.org/">www.alia-musica.org</a><br>
<a href="http://www.fedegarcia.net/">www.fedegarcia.net</a><br>
</blockquote></div><br></div></div></blockquote></div><br></div></body></html>