ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: Vladimir Lomov <lomov.vl@gmail.com>,
	General mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Purpose of backend (export=yes)
Date: Tue, 09 Nov 2010 17:40:44 +0100	[thread overview]
Message-ID: <4CD9798C.4080702@wxs.nl> (raw)
In-Reply-To: <20101108145241.GE15531@smoon>

On 8-11-2010 3:52, Vladimir Lomov wrote:

> I compiled them with context (mkIV, context minimal) and got
> ex{1,2,3}.export. I thought that I get not only the document content but
> also its logical structure (for example some markup for font switching).

Bold in itself is not structure so best tag it as (e.g.) important:

\setupbackend[export=yes]

\definestartstop[important][style=bold]

\starttext

This is second example.
This time we try to use font switching mechanism:
This is normal, but this \important{one is bold}. Normal again.

\stoptext

> Is it true that 'backend' only output document content not its logic
> strcuture? Does it work with math? The third example gives for math only
> not letters.

Math becomes:

  This is inline formula
   <math>
     <mrow>
       <mi>𝐸</mi>
       <mo>=</mo>
       <mi>𝑚</mi>
       <msup>
         <mi>𝑐</mi>
         <mn>2</mn>
       </msup>
     </mrow>
   </math>
.
   <break/>
  This is display formula
   <formula>
     <formulacontent>
       <math>
         <mrow>
           <mi> 𝐸</mi>
           <mo>=</mo>
           <mi>𝑚</mi>
           <msup>
             <mi>𝑐</mi>
             <mn>2</mn>
           </msup>
         </mrow>
       </math>
     </formulacontent>
   </formula>

> I attached the resulted export files.
>
> P.S. Then I saw the announce about 'backend'&  'export=yes' I thought
> that context would be good tool for notes. I imagine that I could wrote
> a text file and make from it either pdf (for printing/screening) or html
> (for screening) or may be convert xml (using existing tools and
> methods) to other formats (rtf/odt/xhtml) that would contain math,
> images, tables. But seems that I was wrong or this will be in future
> of the backend?

indeed it should be possible to use context that way and afaik the 
export is already quite okay (you might need a recent luatex as there 
have been issues with attributes in math mode that were sorted out a 
while ago)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2010-11-09 16:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-08 14:52 Vladimir Lomov
2010-11-09 16:40 ` Hans Hagen [this message]
2010-11-10 14:24   ` Vladimir Lomov
2010-11-10 14:42     ` Hans Hagen
2010-11-10 15:17       ` Khaled Hosny
     [not found] ` <AANLkTinDVyr+bkU36s2pKmPDsfLDQi1-GLVBLB3L-Pub@mail.gmail.com>
2010-11-10 14:11   ` Vladimir Lomov

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=4CD9798C.4080702@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=lomov.vl@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).