From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69519 Path: news.gmane.org!not-for-mail From: yoraxe Newsgroups: gmane.comp.tex.context Subject: Re: t-filter: how to use math-mode Date: Sat, 25 Jun 2011 12:58:44 +0200 Message-ID: <4E05BF64.9020905@googlemail.com> References: <1304111382.5256.20.camel@mattotaupa> <1304149025.5773.17.camel@mattotaupa> <87r58izkjf.fsf@micropit.couberia.bzh> <8762puz21v.fsf@micropit.couberia.bzh> <1304350249.3949.68.camel@mattotaupa> <1306486383.4362.22.camel@mattotaupa> <4E034E33.3020002@googlemail.com> <4E039B21.80209@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308999524 7786 80.91.229.12 (25 Jun 2011 10:58:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2011 10:58:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 25 12:58:40 2011 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 1QaQZT-0004bI-I9 for gctc-ntg-context-518@m.gmane.org; Sat, 25 Jun 2011 12:58:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B5673CADFB; Sat, 25 Jun 2011 12:58:38 +0200 (CEST) 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 YLks07PL5QKT; Sat, 25 Jun 2011 12:58:38 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B6918CADE7; Sat, 25 Jun 2011 12:58:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3151DCADE7 for ; Sat, 25 Jun 2011 12:58:34 +0200 (CEST) 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 j-vVeuJbcsWm for ; Sat, 25 Jun 2011 12:58:32 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 608E1CADE4 for ; Sat, 25 Jun 2011 12:58:32 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5PAwVqW008517 for ; Sat, 25 Jun 2011 12:58:31 +0200 Original-Received: by bwd14 with SMTP id 14so1021606bwd.14 for ; Sat, 25 Jun 2011 03:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=n4MfUoIdOspXi44ZXOiAlzcY8k01hVMnki9IUPn3Luk=; b=ZxUV+4OLeKPjYAhpveDcb/lFlSUsnKu90edRFScc3v8Of20YxjMHko1WTDouBWHZTD mXZkuyGduFAWfs7xwG8d3HlNv+a+de4Gd5foSrwBen58HGD7efFz9KbcSTpGzwPrRs+w 3uvfiHseJTfelx5OdEVIYRBRVaxXDMIyPz/BA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; b=xeaOlJjLSZo48NQNJvZxYxSkXwMOkgN/rZPMtCTDObcnXvNCSbL2I/+TJyfrIS2uJ1 PPWWChBr2k3Ntka93eTu1luQ1I06lzs5f1pyNAJ4sv5QgOyqOd+7GTx8EHf2VJZiykGq EeGop3mP8VqBet+Bcx5K30viyUo+ijqzL4x9o= Original-Received: by 10.204.128.198 with SMTP id l6mr2805365bks.19.1308999511047; Sat, 25 Jun 2011 03:58:31 -0700 (PDT) Original-Received: from 192.168.10.1 (91-66-116-24-dynip.superkabel.de [91.66.116.24]) by mx.google.com with ESMTPS id j7sm2411232bka.8.2011.06.25.03.58.30 (version=SSLv3 cipher=OTHER); Sat, 25 Jun 2011 03:58:30 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 06F0aWvw2 - cae07ba7d755 - 20110625 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:69519 Archived-At: Am 24.06.2011 01:23, schrieb Aditya Mahajan: > On Thu, 23 Jun 2011, yoraxe wrote: > >> Am 23.06.2011 18:30, schrieb Aditya Mahajan: >>> On Thu, 23 Jun 2011, yoraxe wrote: >>> >>>> How can I use math-mode in such a table? Using $a_b$ it just prints >>>> $a_b$ instead of identifying this as a math-input. >>>> >>>> I'm using pandoc 1.8.1.1 and context 2011.06.19. >>> >>> Can you give a complete minimal example? >> >> Find all files attached. >> I see, it is the line >> >> \NC \$a\letterunderscore{}b\$ >> >> that is not correctly translated. What do I have to type instead of _? > > It seems that pandoc's rst reader does not handle inline mathematics (at > least with pandoc 1.6; I don't know if Pandoc 1.8 fixes this). > > $echo "\$a_b\$" | pandoc -f rst -t native > > Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) > [ Para [Str "$",Str "a",Str "_",Str "b",Str "$"] ] > > In contrast, markdown reader handles inline mathematics correctly. > > $echo "\$a_b\$" | pandoc -f markdown -t native > > Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) > [ Para [Math InlineMath "a_b"] ] > > So, it would be better to discuss this on the pandoc mailing list. Ok, thanks. I'm using now markdown instead of rest. If someone is interested, it looks fine using: \usemodule[filter] \defineexternalfilter[markdown][filtercommand={pandoc -f markdown -t context -o \externalfilteroutputfile\space \externalfilterinputfile}] \starttext \startmarkdown Right Left Center Default ------- ------ ---------- ------- $h_1$ 12 12 12 123 123 123 123 1 1 1 1 \stopmarkdown \stoptext Sorry for the noise. Yoraxe ___________________________________________________________________________________ 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 ___________________________________________________________________________________