ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: diameter symbol in ConTeXt?
Date: Sat, 21 Sep 2013 18:48:38 +0200	[thread overview]
Message-ID: <42907A08-FD18-4BBE-BFF8-ABD015959232@gmail.com> (raw)
In-Reply-To: <20130921162500.GF17308@homerow>


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
___________________________________________________________________________________

  parent reply	other threads:[~2013-09-21 16:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-21 14:56 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 [this message]
2013-09-21 16:38   ` Xan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42907A08-FD18-4BBE-BFF8-ABD015959232@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).