From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74126 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: =?windows-1252?q?=22overscored=22_or_=22overlined?= =?windows-1252?q?=22_text_=85_=28or_whatever_it_should_be_called=29?= Date: Wed, 25 Jan 2012 21:13:35 +0100 Message-ID: <5D59323D-C56A-46C6-88ED-6BD550500655@googlemail.com> References: <430D8C74-8823-42B5-A05B-EBBCA1F22E8A@gmail.com> <4F1FF2ED.8030708@wxs.nl> <4F2043C4.4050705@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: multipart/mixed; boundary="===============2024099779==" X-Trace: dough.gmane.org 1327522447 23368 80.91.229.12 (25 Jan 2012 20:14:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2012 20:14:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 25 21:13:58 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rq9ED-0001KG-15 for gctc-ntg-context-518@m.gmane.org; Wed, 25 Jan 2012 21:13:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4C6FBCB1F5; Wed, 25 Jan 2012 21:13:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pDFpcJlB4x8k; Wed, 25 Jan 2012 21:13:53 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D252FCB1F1; Wed, 25 Jan 2012 21:13:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E15D0CB1F1 for ; Wed, 25 Jan 2012 21:13:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0ll8SkPBjaSx for ; Wed, 25 Jan 2012 21:13:42 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id 014C8CB1F0 for ; Wed, 25 Jan 2012 21:13:41 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0PKDe1j004091 for ; Wed, 25 Jan 2012 21:13:41 +0100 Original-Received: by eekc13 with SMTP id c13so2431498eek.14 for ; Wed, 25 Jan 2012 12:13:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; bh=LrCo/sAS00/09ZJ7hYfdJBc8+K7bg4MmcngvGrHIAic=; b=l0dN6N3qNRN+KEI5XwL8ElmPC3q3sLSv0X7BmNoT/iyRw07UJZuXaUfln2vaxd4YYY OqUF1CPIb3q5+pZUGMcl9R3EdJtzY4j3LV+1ynK28YAiiO5Y87w4rJBtz7n7MLVep/pZ 4+9rG5ajriAPW7vqSAqrFwpzc/ZgU2YMQyclY= Original-Received: by 10.14.3.220 with SMTP id 68mr6136432eeh.123.1327522420613; Wed, 25 Jan 2012 12:13:40 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFAE97.dip.t-dialin.net. [87.175.174.151]) by mx.google.com with ESMTPS id w46sm5962508eeb.0.2012.01.25.12.13.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Jan 2012 12:13:39 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04GpUdEwI - 520dffe169ec - 20120125 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:74126 Archived-At: --===============2024099779== Content-Type: multipart/alternative; boundary="Apple-Mail=_FAE8548D-55B6-461F-954E-74858FB30E0C" --Apple-Mail=_FAE8548D-55B6-461F-954E-74858FB30E0C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 25.01.2012 um 20:20 schrieb Philipp A.: > 2012/1/25 Hans Hagen > \ifmmode >=20 > thanks. that was obvious=85 >=20 > $\StrikeMe{x}$ >=20 > unfortunately this does the same as my tikz version: it exits math = mode: >=20 > $\StrikeMe{\ifmmode math mode! \else no math mode :( \fi} \ifmmode = math mode. \else wat \fi$ >=20 > returns >=20 > no math mode :( math mode. \framed puts the content in a \hbox and when you put a \hbox in a math = environment the text in the box is typeset in text mode, this feature is = used for the \text command. To get now the content of the \StrikeMe = command in math mode a different definition. = \defineframed[StrikeMeFrame][background=3Dstrikeme,frame=3Doff,offset=3D0p= t,location=3Dlow,backgroundcolor=3Dblue] \define[1]\StrikeMe {\ifmmode \StrikeMeFrame{$#1$}% \else \StrikeMeFrame{#1}% \fi} Wolfgang= --Apple-Mail=_FAE8548D-55B6-461F-954E-74858FB30E0C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
2012/1/25 Hans Hagen <pragma@wxs.nl>
\ifmmode

thanks. that was = obvious=85

$\StrikeMe{x}$

unfortunately this does the same = as my tikz version: it exits math mode:

$\StrikeMe{\ifmmode math = mode! \else no math mode :( \fi} \ifmmode math mode. \else wat = \fi$

returns

no math mode :( math = mode.

\framed puts the = content in a \hbox and when you put a \hbox in a math environment the = text in the box is typeset in text mode, this feature is used for the = \text command. To get now the content of the \StrikeMe command in math = mode a different = definition.

\defineframed[StrikeMeFrame][bac= kground=3Dstrikeme,frame=3Doff,offset=3D0pt,location=3Dlow,backgroundcolor= =3Dblue]

\define[1]\StrikeMe
  = {\ifmmode
    =  \StrikeMeFrame{$#1$}%
  =  \else
    =  \StrikeMeFrame{#1}%
  =  \fi}

Wolfgang= --Apple-Mail=_FAE8548D-55B6-461F-954E-74858FB30E0C-- --===============2024099779== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============2024099779==--