[OS X TeX] Fractional symbols

Doris Behrendt doris.behrendt at me.com
Fri Sep 2 10:16:02 CEST 2016


shame on me … xfrac is correcting failures of nicefrac as I just read ;-)
doris
> On 02 Sep 2016, at 10:12, Doris Behrendt <doris.behrendt at me.com> wrote:
> 
> Hi all,
> 
> I myself like the look of the output with the package nicefrac best;
> 
> Doris
> 
>> On 02 Sep 2016, at 01:01, David Derbes <loki at uchicago.edu> wrote:
>> 
>> 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.
>> 
>> David Derbes
>> U of Chicago Lab Schools
>> 
>> 
>> On Sep 1, 2016, at 16:20, Manfred Braun <manfred.braun at uni-due.de> wrote:
>> 
>>> Knuth suggests the following macro (The TeXBook, Exercise 11.6): 
>>> 
>>> \def\fract#1/#2{\leavevmode\kern.1em
>>>  \raise.5ex\hbox{\the\scriptfont0$#1$}\kern-.15em/\kern-.15em
>>>  \lower.25ex\hbox{\the\scriptfont0$#2$}}
>>> 
>>> 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.
>>> 
>>> Manfred
>>> 
>>>> On 02 Sep 2016, at 00:00, R Martinez <rm.tech at mac.com> wrote:
>>>> 
>>>> All,
>>>> 
>>>> 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.
>>>> 
>>>> I am using the STIX font package. I have scoured the zillion STIX characters but cannot find ½ with a LaTeX backslash command. 
>>>> 
>>>> The STIX reference document I am using is "The stix package" STI Pub Companies v1.1.1-latex from 2014/07/31. I have attached it to this email. 
>>>> 
>>>> The character  ½ appears in the ts1-stixgeneral table on p. 29 of the STIX reference with coordinates
>>>> 
>>>> 	  ′5
>>>> ′27x |  ½  | ″Bx
>>>>          ″D
>>>> 
>>>> 
>>>> I don’t know how to access this. 
>>>> 
>>>> Does anyone know how to insert a fraction in the text?  
>>>> 
>>>> Thanks for your help.
>>>> 
>>>> Raul Martinez
>>>> 
>>>> <stix.pdf>
>>>> ----------- Please Consult the Following Before Posting -----------
>>>> TeX FAQ: http://www.tex.ac.uk/faq
>>>> List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
>>>> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>>>>               https://email.esm.psu.edu/pipermail/macosx-tex/
>>>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>>>> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
>>> 
>>> ----------- Please Consult the Following Before Posting -----------
>>> TeX FAQ: http://www.tex.ac.uk/faq
>>> List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
>>> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>>>               https://email.esm.psu.edu/pipermail/macosx-tex/
>>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>>> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
>> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>>               https://email.esm.psu.edu/pipermail/macosx-tex/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
> 
> 
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>                https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex



More information about the macostex-archives mailing list