ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: yoraxe <yoraxe@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: t-filter: how to use math-mode
Date: Thu, 23 Jun 2011 21:59:29 +0200	[thread overview]
Message-ID: <4E039B21.80209@googlemail.com> (raw)
In-Reply-To: <alpine.LNX.2.01.1106231229390.1238@ybpnyubfg.ybpnyqbznva>

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

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 _?

[-- Attachment #2: tabletest.log --]
[-- Type: text/x-log, Size: 5618 bytes --]

(tabletest.tex

ConTeXt  ver: 2011.06.19 14:17 MKIV  fmt: 2011.6.22  int: english/english

system          > cont-new.mkiv loaded
(/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > tabletest.top loaded
system          > options > begin of optionfile
system          > options >
system          > options > % runtime options files (command line driven)
system          > options > \unprotect
system          > options > % feedback and basic job control
system          > options > % handy for special styles
system          > options > \startluacode
system          > options > document = document or { }
system          > options > document.arguments={
system          > options > }
system          > options > document.files={
system          > options >  "tabletest",
system          > options > }
system          > options > \stopluacode
system          > options > % process info
system          > options > \setupsystem[inputfile=tabletest]
system          > options > \setupsystem[\c!n=1,\c!m=1]
system          > options > % modes
system          > options > % options (not that important)
system          > options > \startsetups *runtime:options
system          > options > \stopsetups
system          > options > % styles and modules
system          > options > \startsetups *runtime:modules
system          > options > \stopsetups
system          > options > % done
system          > options > \protect \endinput
system          > options >
system          > options > end of optionfile
(tabletest.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
resolvers       > modules > loaded: 'filter'
(/home/context/tex/texmf-context/tex/context/third/filter/t-filter.tex
loading         > ConTeXt User Module / Filter
resolvers       > modules > loaded: 'module-catcodes'
(/home/context/tex/texmf-context/tex/context/third/filter/t-module-catcodes.tex
loading         > ConTeXt User Module / Module Catcodes
)){/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
(/home/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > virtual math > unable to resolve name mapsfromchar
fonts           > fallback modern rm 12pt is loaded
system          > begin file tabletest at line 4
t-filter        > command : pandoc -f rst -t context -o tabletest-temp-rest.tex tabletest-temp-rest.tmp
(tabletest-temp-rest.tex
floatblocks     > 1 placed
)
backend         > xmp > using file '/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
system          > end file tabletest at line 13
 )</home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats  > used config file          - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path           - readable: '/home/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606' (order 1)
mkiv lua stats  > used cache path           - readable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606' (order 2)
mkiv lua stats  > used cache path           - writable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606'
mkiv lua stats  > input load time           - 0.006 seconds
mkiv lua stats  > stored bytecode data      - 289 modules, 61 tables, 350 chunks
mkiv lua stats  > loaded tex modules        - 2 requested, 2 found (*-filter *-module-catcodes), 0 missing
mkiv lua stats  > cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats  > node memory usage         - 2 glue, 2 penalty, 9 attribute, 27 glue_spec, 3 attribute_list
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 5 instances (re)created, 2466 calls
mkiv lua stats  > used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns           - en::2
mkiv lua stats  > callbacks                 - 2655 direct, 3477 indirect, 6132 total
mkiv lua stats  > randomizer                - resumed with value 0.72040259452555
mkiv lua stats  > lxml preparation time     - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats  > result saved in file      - tabletest.pdf
mkiv lua stats  > loaded fonts              - 44 files: stmary10.afm lmmath.otf lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman6-bold.otf lmroman6-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb5.tfm eufb7.tfm eufm10.tfm eufm5.tfm eufm7.tfm msam10.tfm msam5.tfm msam7.tfm msbm10.tfm msbm5.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi6.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib5.tfm lmmib7.tfm lmsy10.tfm lmsy6.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr6.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats  > fonts load time           - 0.414 seconds 
mkiv lua stats  > luatex banner             - this is luatex, version beta-0.70.1-2011051918 (rev 4277)
mkiv lua stats  > control sequences         - 31081 of 165536
mkiv lua stats  > current memory usage      - 52 MB (ctx: 54 MB)
mkiv lua stats  > runtime                   - 0.986 seconds, 1 processed pages, 1 shipped pages, 1.014 pages/second


[-- Attachment #3: tabletest.pdf --]
[-- Type: application/pdf, Size: 6744 bytes --]

[-- Attachment #4: tabletest.tex --]
[-- Type: text/x-tex, Size: 271 bytes --]

\usemodule[filter]
        \defineexternalfilter[rest][filtercommand={pandoc -f rst -t context -o 
\externalfilteroutputfile\space \externalfilterinputfile}]
\starttext
\startrest
=====	======
first	second
=====	======
 a_b	1.6
$a_b$	2.5
=====	======
\stoprest
\stoptext

[-- Attachment #5: tabletest-temp-rest.tex --]
[-- Type: text/x-tex, Size: 180 bytes --]

\placetable[here]{none}
\starttable[|l|l|]
\HL
\NC first
\NC second
\NC\AR
\HL
\NC a\letterunderscore{}b
\NC 1.6
\NC\AR
\NC \$a\letterunderscore{}b\$
\NC 2.5
\NC\AR
\HL
\stoptable

[-- Attachment #6: 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
___________________________________________________________________________________

  reply	other threads:[~2011-06-23 19:59 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-29 21:09 t-filter: no table created when Unicode characters are included Paul Menzel
2011-04-29 21:17 ` [t-filter] [PATCH] tests: add test file for reST (reStructuredText) Paul Menzel
2011-04-29 22:13 ` t-filter: no table created when Unicode characters are included Aditya Mahajan
2011-04-30  7:37   ` Paul Menzel
2011-04-30 15:10     ` Aditya Mahajan
2011-05-01 10:48       ` Paul Menzel
2011-05-01 12:12       ` Peter Münster
2011-05-01 14:29         ` Aditya Mahajan
2011-05-01 18:27           ` Peter Münster
2011-05-01 18:52           ` Peter Münster
2011-05-01 19:05             ` Aditya Mahajan
2011-05-01 19:09               ` Aditya Mahajan
2011-05-02 15:30                 ` Paul Menzel
2011-05-27  8:53                   ` [solved] " Paul Menzel
2011-06-23 14:31                     ` yoraxe
2011-06-23 16:30                       ` Aditya Mahajan
2011-06-23 19:59                         ` yoraxe [this message]
2011-06-23 21:08                           ` t-filter: how to use math-mode yoraxe
2011-06-23 23:23                           ` Aditya Mahajan
2011-06-25 10:58                             ` yoraxe
2011-04-30 21:00 ` t-filter: no table created when Unicode characters are included Philipp Gesang
2011-05-20  9:24   ` t-rst: Unicode character not printed (was: t-filter: no table created when Unicode characters are included) Paul Menzel
2011-05-20  9:54     ` Philipp Gesang

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=4E039B21.80209@googlemail.com \
    --to=yoraxe@googlemail.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).