Thank you Akira Kakuto, Will Robertson, and Bruno Voisin; this was very helpful. This is kind of embarrassing for me because grepping for xunicode in my texlive directory reveals that there is some obvious documentation I neglected to read. Sorry.<br><br>But in regards to hasbangs, I was following the examples provided in the .zip on scripts.sil.org. Perhaps they should updated or are we waiting for 0.997? (It should be trivial) Just my two cents.<br><br>While I appreciate the suggestion, tex-text mappings make less sense to me than putting in actual en dashes and em dashes into the source, especially since the source is UTF-8. Does this somehow contradict my using \$ to typeset a dollar sign?<br><br>Easter Sunshine.<br><br><br><b><i>Bruno Voisin <bvoisin@mac.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Le 26 oct. 07 à 03:52, Easter Sunshine a écrit :<br><br>>
%&program=xelatex<br>> %&encoding=UTF-8 Unicode<br><br>BTW (given that Will solved the problem related with the absence of <br>the xunicode package), the above two lines, specific to TeXShop on <br>Mac OS X, refer to a deprecated syntax, no longer supported by <br>default. Instead you should use:<br><br>%!TEX TS-program = xelatex<br>%!TEX encoding = UTF-8 Unicode<br><br>> \usepackage{fontspec}<br>> \newcommand{\MAINFONT}{Minion Pro}<br>> \setromanfont{\MAINFONT}<br><br>For existing TeX documents to work (should you use at some point copy- <br>and-paste from old documents), it's better to also load the tex-text <br>remapping, so that ligatures such as -- and --- are remapped to the <br>appropriate UTF-8 characters – and —.<br><br>For the same reason, in some cases the default loading of Latin <br>Modern fonts by the fontspec package leads to problems. I haven't <br>looked sufficiently into the issue to determine exactly what's going <br>on, but
in these cases a fix is to specify the [cm-default] of the <br>fontspec package.<br><br>And two more things:<br><br>- Recently (I don't remember exactly at which version), \setromanfont <br>has been changed to \setmainfont in fontspec.<br><br>- A useful addition to the default packages loaded by XeLaTeX is <br>xltxtra, which performs some additional optimizations for XeLaTeX.<br><br>- Sometimes the MatchLowercase font feature (in fontspec's jargon) is <br>helpful, by (if I understood correctly) rescaling a font so that its <br>x-height matches that of Computer Modern.<br><br>All in all, the preamble for your document could become:<br><br>%!TEX TS-program = xelatex<br>%!TEX encoding = UTF-8 Unicode<br><br>\documentclass{article}<br><br>\usepackage[cm-default]{fontspec}<br>\usepackage{xunicode,xltxtra}<br>\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}<br>\newcommand{\MAINFONT}{Minion Pro}<br>\setmainfont{\MAINFONT}<br><br>Hope this helps,<br><br>Bruno
Voisin<br>_______________________________________________<br>XeTeX mailing list<br>postmaster@tug.org<br>http://tug.org/mailman/listinfo/xetex<br></blockquote><br><p> __________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com