[XeTeX] Diameter symbol

David Cottenden d.cottenden at ucl.ac.uk
Tue Mar 16 10:09:56 CET 2010


Marvelous! Thanks to all for help - problem solved.

David

Will Robertson wrote:
> On 2010-03-16 00:31:10 +1030, David Cottenden <d.cottenden at ucl.ac.uk> 
> said:
>
>>> Or are you looking for EMPTY SET, ∅, at U+2205? DIAMETER SIGN, ⌀, is
>>> at U+2300.
>> The latter is the one that I am after, but I know that my main body font
>> doesn't include it. Is there a decent font which does? I'm looking to
>> match with Chaparral Pro, if that's possible.
>
>
> If you're using XeTeX (and why wouldn't you be asking on this list -- 
> ! -- sorry I didn't twig this answer straight away), you can just use 
> a text glyph directly:
>
> \documentclass{article}
> \usepackage{fontspec,siunitx}
> \begin{document}
> \newfontface\symbolsfont{TeX Gyre Pagella}
> \newcommand\diametersymbol{\mbox{\symbolsfont \char"2300}}
> % (Or just type the symbol in there instead of the \char nonsense.)
> \newcommand\diam{\diametersymbol\,}
> The cylinder has dimensions \diam\SI{2x3}{m}.\par
> (Not sure how that spacing should look, exactly; hand-tune it for the 
> font.)
> \end{document}
>
> Hope this helps,
> Will
>
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex

-- 
David Cottenden
PhD Student
Continence and Skin Technology Group
UCL

Phone: +44 (0)20 7288 3771
Fax: +44 (0)20 7288 3019 



More information about the XeTeX mailing list