<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>I'm fairly happy with \sfrac in the xfrac package. Interestingly, \sfrac{1}{2} works in both math and text mode, though the solidus or division bar is longer in math mode.</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">David Derbes</div><div id="AppleMailSignature">U of Chicago Lab Schools<br><br></div><div><br>On Sep 1, 2016, at 16:20, Manfred Braun <<a href="mailto:manfred.braun@uni-due.de">manfred.braun@uni-due.de</a>> wrote:<br><br></div><blockquote type="cite"><div>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div class="">Knuth suggests the following macro (The TeXBook, Exercise 11.6): </div><div class=""><br class=""></div><div class="">\def\fract#1/#2{\leavevmode\kern.1em</div><div class="">  \raise.5ex\hbox{\the\scriptfont0$#1$}\kern-.15em/\kern-.15em</div><div class="">  \lower.25ex\hbox{\the\scriptfont0$#2$}}</div><div class=""><br class=""></div><div class="">It allows to write  \fract 1/2.  This is not exactly what you want, but it is the TeX solution. It allows also to write  \fract 13/5, if needed, and this you will not find on your keyboard.</div><div class=""><br class=""></div><div class="">Manfred</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 02 Sep 2016, at 00:00, R Martinez <<a href="mailto:rm.tech@mac.com" class="">rm.tech@mac.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">All,<div class=""><br class=""></div><div class="">I want to write text in my LaTeX document that includes a fraction, e.g., 3 1/2, but I want to replace the three-character 1/2 with the single character ½. As you can see, I can do it using the Mac keyboard with Mac documents such as this email. I tried inserting it in my LaTeX document but it did not typeset correctly.</div><div class=""><br class=""></div><div class="">I am using the STIX font package. I have scoured the zillion STIX characters but cannot find ½ with a LaTeX backslash command. </div><div class=""><br class=""></div><div class="">The STIX reference document I am using is "<font size="4" class=""><span style="font-family: STIXGeneral;" class="">The </span><span style="font-family: SFSS1728;" class="">stix </span><span style="font-family: STIXGeneral;" class="">package"</span></font><span style="font-size: 17pt; font-family: STIXGeneral;" class="">
</span><span style="font-size: 12pt; font-family: STIXGeneral;" class="">STI Pub Companies </span><span style="font-family: STIXGeneral; font-size: 12pt;" class="">v1.1.1-latex from 2014/07/31. I have attached it to this email. </span></div><div class=""><br class=""></div><div class="">The character  ½ appears in the ts1-stixgeneral table on p. 29 of the STIX reference with coordinates</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>  ′5</div><div class="">′27x |  ½  | ″Bx</div><div class="">          ″D</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I don’t know how to access this. </div><div class=""><br class=""></div><div class="">Does anyone know how to insert a fraction in the text?  </div><div class=""><br class=""></div><div class="">Thanks for your help.</div><div class=""><br class=""></div><div class="">Raul Martinez</div><div class=""><br class=""></div><div class=""></div></div><span id="cid:CC37DBD8-CCE3-404F-B8FE-BC22939B9A5A@uni-due.de"><stix.pdf></span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""></div></div>----------- Please Consult the Following Before Posting -----------<br class="">TeX FAQ: <a href="http://www.tex.ac.uk/faq" class="">http://www.tex.ac.uk/faq</a><br class="">List Reminders and Etiquette: <a href="https://www.esm.psu.edu/~gray/tex/" class="">https://www.esm.psu.edu/~gray/tex/</a><br class="">List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" class="">http://dir.gmane.org/gmane.comp.tex.macosx</a><br class="">                <a href="https://email.esm.psu.edu/pipermail/macosx-tex/" class="">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br class="">TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" class="">http://mactex-wiki.tug.org/</a><br class="">List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" class="">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br class=""></div></blockquote></div><br class=""></div></blockquote><blockquote type="cite"><div><span>----------- Please Consult the Following Before Posting -----------</span><br><span>TeX FAQ: <a href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a></span><br><span>List Reminders and Etiquette: <a href="https://www.esm.psu.edu/~gray/tex/">https://www.esm.psu.edu/~gray/tex/</a></span><br><span>List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx">http://dir.gmane.org/gmane.comp.tex.macosx</a></span><br><span>                <a href="https://email.esm.psu.edu/pipermail/macosx-tex/">https://email.esm.psu.edu/pipermail/macosx-tex/</a></span><br><span>TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/">http://mactex-wiki.tug.org/</a></span><br><span>List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a></span><br></div></blockquote></body></html>