diameter symbol in ConTeXt?
hi, In LaTeX: http://osl.ugr.es/CTAN/info/symbols/comprehensive/symbols-a4.pdf \diameter produces a diameter symbol. What is the equivalent in ConTeXt? Is there any compilation of symbols avaliable in ConTeXt? I can't find no references. Xan.
On 2013–09–21 Xan wrote:
\diameter produces a diameter symbol. What is the equivalent in ConTeXt?
⌀ or \varnothing Have a look at char-def.lua for a list of context names for various glyphs. It might make sense to enable the fonts.missing tracker. Then ConTeXt warns you that a particular glyph is not available. \enabletrackers [fonts.missing]
Is there any compilation of symbols avaliable in ConTeXt?
Not that I'm aware of. In ConTeXt you have easy access to all characters of any font¹. Either input the character directly if it's present in the current font or you can create a symbol: \definefontsynonym [minion] [name:minionproregular] \definesymbol [leaf] [\getnamedglyphdirect {minion} {bullet.010}] \starttext Foo \symbol[leaf] Bar \stoptext Marco ¹ http://tex.stackexchange.com/a/87563/5245
On Sat, 21 Sep 2013, Marco Patzer wrote:
Is there any compilation of symbols avaliable in ConTeXt?
Not that I'm aware of. In ConTeXt you have easy access to all characters of any font¹. Either input the character directly if it's present in the current font or you can create a symbol:
Or send a pull request for missing csnames in char-def.lua. Aditya
On 9/21/2013 5:14 PM, Marco Patzer wrote:
On 2013–09–21 Xan wrote:
\diameter produces a diameter symbol. What is the equivalent in ConTeXt?
⌀ or \varnothing
Have a look at char-def.lua for a list of context names for various glyphs. It might make sense to enable the fonts.missing tracker. Then ConTeXt warns you that a particular glyph is not available.
\enabletrackers [fonts.missing]
Is there any compilation of symbols avaliable in ConTeXt?
there are several styles for that: s-math-* for either single fonts or comparing font coverage Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2013–09–21 Xan wrote:
\diameter produces a diameter symbol. What is the equivalent in ConTeXt?
⌀ or \varnothing
Really varnothing is not the same as diameter (see the reference of LaTeX I posted before)
Have a look at char-def.lua for a list of context names for various glyphs. It might make sense to enable the fonts.missing tracker. Then ConTeXt warns you that a particular glyph is not available.
\enabletrackers [fonts.missing]
Is there any compilation of symbols avaliable in ConTeXt?
Not that I'm aware of. In ConTeXt you have easy access to all characters of any font¹. Either input the character directly if it's present in the current font or you can create a symbol:
\definefontsynonym [minion] [name:minionproregular]
\definesymbol [leaf] [\getnamedglyphdirect {minion} {bullet.010}]
\starttext Foo \symbol[leaf] Bar \stoptext
Marco
How can I define symbol with unicode equivalent? \diameter really is U+2300 I think. Thanks, Xan.
On 2013–09–21 Xan wrote:
On 2013–09–21 Xan wrote:
\diameter produces a diameter symbol. What is the equivalent in ConTeXt?
⌀ or \varnothing
Really varnothing is not the same as diameter (see the reference of LaTeX I posted before)
\def\diameter{\char"2300}
How can I define symbol with unicode equivalent?
\definesymbol [diameter] [⌀]
\diameter really is U+2300 I think.
Diameter is U+2300, indeed. And that's exactly what I wrote in my previous mail ⌀ or \varnothing. Marco
On Sat, 21 Sep 2013, Marco Patzer wrote:
On 2013–09–21 Xan wrote:
\diameter really is U+2300 I think.
Diameter is U+2300, indeed. And that's exactly what I wrote in my previous mail ⌀ or \varnothing.
Hans, could you add the following to char-def.lua [0x2300]={ category="so", description="DIAMETER SIGN", direction="on", linebreak="al", mathspec={ { class="ord", name="varnothing" }, { class="ord", name="diameter" }, }, unicodeslot=0x2300, }, Aditya
Am 21.09.2013 um 18:25 schrieb Marco Patzer
On 2013–09–21 Xan wrote:
On 2013–09–21 Xan wrote:
\diameter produces a diameter symbol. What is the equivalent in ConTeXt?
⌀ or \varnothing
Really varnothing is not the same as diameter (see the reference of LaTeX I posted before)
\def\diameter{\char"2300}
Add a space or \relax after the number to prevent TeX from reading the next character in the input which can result in the wrong output (see output for \one). \defineexpandable\one {\char"41} \defineexpandable\two {\char"41 } \defineexpandable\three{\char"41\relax} \defineexpandable\four {\utfchar{"41}} \setupbodyfont[cambria] \starttext 1: \one 3\par 2: \two 3\par 3: \three 3\par 4: \four 3 \stoptext Wolfgang
participants (5)
-
Aditya Mahajan
-
Hans Hagen
-
Marco Patzer
-
Wolfgang Schuster
-
Xan