ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Johannes Hüsing" <tmi0m0@spi.power.uni-essen.de>
Subject: Re: Using a ~ in a text
Date: Fri, 26 May 2000 13:57:34 +0200	[thread overview]
Message-ID: <20000526135734.60951@spi.power.uni-essen.de> (raw)
In-Reply-To: <392E610F.12A901FB@conceptsfa.nl>; from Ed Roozendaal on Fri, May 26, 2000 at 01:33:35PM +0200

On Fri 2000-05-26 (13:33), Ed Roozendaal wrote:
> Hello
> 
> I am trying to insert a tilde (~) into my document, but I receive an
> error message. 
> 
> The log file says:
> 
> <snip>
> ! Missing $ inserted.
> <inserted text> 
>                 $
> <to be read again> 
>                    _
> <argument> ...soft.com/library/backgrnd/html/msdn_
>                                                   bldcli~1.htm}

As TeX's error log linebreaks at the point where it fails to
treat a token accordingly, it can be seen from the log that the 
underscore poses the problem. This is because the underscore is 
interpreted by TeX as "set the following character or group as
subscript". This can only be done in math mode. Hence, the 
"Missing $ inserted" message as the dollar sign signifies a switch
to math mode. 

The "~" wouldn't have caused a problem by itself, as it is interpreted
as a non-breakable space in text mode -- certainly not what you want :).

Both "~" and "_" are not encoded in many text fonts except the 
typewriter fonts. Yet, \type{http://www.micros~1.com/} should do
what you  want.

Greetings

Johannes


  parent reply	other threads:[~2000-05-26 11:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-26 11:33 Ed Roozendaal
2000-05-26 11:41 ` Taco Hoekwater
2000-05-26 11:57 ` Johannes Hüsing [this message]
2000-05-26 12:02   ` Taco Hoekwater
2000-05-26 14:05   ` Hans Hagen

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=20000526135734.60951@spi.power.uni-essen.de \
    --to=tmi0m0@spi.power.uni-essen.de \
    --cc=johannes.huesing@uni-essen.de \
    /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).