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: embedding ConTeXt code in an xtable
Date: Sun, 16 Jun 2013 20:40:30 +0200	[thread overview]
Message-ID: <A1DB6D19-43A2-4337-8A66-AAEABA5904BE@gmail.com> (raw)
In-Reply-To: <51BDD438.1040000@student.ru.nl>


Am 16.06.2013 um 17:05 schrieb Sander Maijers <S.N.Maijers@student.ru.nl>:

> On 15-06-13 19:42, Wolfgang Schuster wrote:
>> 
>> Am 15.06.2013 um 18:01 schrieb Sander Maijers <S.N.Maijers@student.ru.nl>:
>> 
>>> I am now using xtable to have an XMLish document to store a table. How I can embed ConTeXt code like $\Delta{}N_{\text{test}}$
>>> in the external XML file file with the table? In other words, having mathematical notiation in the table header?
>>> 
>>> I tried various things such as:
>>> \expanded{\xmlflush{#1}}
>> 
>> 1. Have you looked at the cals table module?
> 
> No. I was able to find some references to CALS and ConTeXt with Google, but no documentation for the module you describe.

A simple example I found online:

\usemodule[cals]

\starttext

\startbuffer
<cals:table>
   <tgroup cols="1">
      <colspec/>
      <thead>
         <row>
            <entry>Any text</entry>
         </row>
      </thead>
      <tbody>
         <row>
            <entry>Any text</entry>
         </row>
      </tbody>
   </tgroup>
</cals:table>
\stopbuffer

\processXMLbuffer

\stoptext

>> 2. Can you provide a example for your problem?
> 
> No, not at this time, because I am very pressed for time now. But I will come back to this later.

When the content of the cells is normal context code you can use \xmlflushcontext instead of \xmlflush.

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
___________________________________________________________________________________


  reply	other threads:[~2013-06-16 18:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-15 16:01 Sander Maijers
2013-06-15 17:42 ` Wolfgang Schuster
2013-06-16 15:05   ` Sander Maijers
2013-06-16 18:40     ` Wolfgang Schuster [this message]
2013-06-17 20:58       ` Sander Maijers

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=A1DB6D19-43A2-4337-8A66-AAEABA5904BE@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).