* diameter symbol in ConTeXt?
@ 2013-09-21 14:56 Xan
2013-09-21 15:14 ` Marco Patzer
2013-09-21 15:37 ` Xan
0 siblings, 2 replies; 9+ messages in thread
From: Xan @ 2013-09-21 14:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
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.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: diameter symbol in ConTeXt?
2013-09-21 14:56 diameter symbol in ConTeXt? Xan
@ 2013-09-21 15:14 ` Marco Patzer
2013-09-21 15:16 ` Aditya Mahajan
2013-09-21 20:11 ` Hans Hagen
2013-09-21 15:37 ` Xan
1 sibling, 2 replies; 9+ messages in thread
From: Marco Patzer @ 2013-09-21 15:14 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 881 bytes --]
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
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: diameter symbol in ConTeXt?
2013-09-21 15:14 ` Marco Patzer
@ 2013-09-21 15:16 ` Aditya Mahajan
2013-09-21 20:11 ` Hans Hagen
1 sibling, 0 replies; 9+ messages in thread
From: Aditya Mahajan @ 2013-09-21 15:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 377 bytes --]
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
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: diameter symbol in ConTeXt?
2013-09-21 14:56 diameter symbol in ConTeXt? Xan
2013-09-21 15:14 ` Marco Patzer
@ 2013-09-21 15:37 ` Xan
2013-09-21 16:25 ` Marco Patzer
2013-09-21 16:38 ` Xan
1 sibling, 2 replies; 9+ messages in thread
From: Xan @ 2013-09-21 15:37 UTC (permalink / raw)
To: Xan; +Cc: mailing list for ConTeXt users
> 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.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: diameter symbol in ConTeXt?
2013-09-21 15:37 ` Xan
@ 2013-09-21 16:25 ` Marco Patzer
2013-09-21 16:43 ` Aditya Mahajan
2013-09-21 16:48 ` Wolfgang Schuster
2013-09-21 16:38 ` Xan
1 sibling, 2 replies; 9+ messages in thread
From: Marco Patzer @ 2013-09-21 16:25 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 561 bytes --]
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
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: diameter symbol in ConTeXt?
2013-09-21 15:37 ` Xan
2013-09-21 16:25 ` Marco Patzer
@ 2013-09-21 16:38 ` Xan
1 sibling, 0 replies; 9+ messages in thread
From: Xan @ 2013-09-21 16:38 UTC (permalink / raw)
To: Xan; +Cc: mailing list for ConTeXt users
> > Really varnothing is not the same as diameter (see the reference of LaTeX I posted before)
>
> \def\diameter{\char"2300}
>
This (\char"2300) is really what I want.
Sorry if I don't understand you.
Xan.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: diameter symbol in ConTeXt?
2013-09-21 16:25 ` Marco Patzer
@ 2013-09-21 16:43 ` Aditya Mahajan
2013-09-21 16:48 ` Wolfgang Schuster
1 sibling, 0 replies; 9+ messages in thread
From: Aditya Mahajan @ 2013-09-21 16:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 531 bytes --]
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
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: diameter symbol in ConTeXt?
2013-09-21 16:25 ` Marco Patzer
2013-09-21 16:43 ` Aditya Mahajan
@ 2013-09-21 16:48 ` Wolfgang Schuster
1 sibling, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2013-09-21 16:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 21.09.2013 um 18:25 schrieb Marco Patzer <lists@homerow.info>:
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: diameter symbol in ConTeXt?
2013-09-21 15:14 ` Marco Patzer
2013-09-21 15:16 ` Aditya Mahajan
@ 2013-09-21 20:11 ` Hans Hagen
1 sibling, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2013-09-21 20:11 UTC (permalink / raw)
To: ntg-context
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-09-21 20:11 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-21 14:56 diameter symbol in ConTeXt? Xan
2013-09-21 15:14 ` Marco Patzer
2013-09-21 15:16 ` Aditya Mahajan
2013-09-21 20:11 ` Hans Hagen
2013-09-21 15:37 ` Xan
2013-09-21 16:25 ` Marco Patzer
2013-09-21 16:43 ` Aditya Mahajan
2013-09-21 16:48 ` Wolfgang Schuster
2013-09-21 16:38 ` Xan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).