From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Struggling with ConTeXt
Date: Thu, 2 Aug 2012 11:43:34 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.02.1208021137070.4717@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <501A9CCB.1010400@wanadoo.fr>
On Thu, 2 Aug 2012, Olivier Binda wrote:
> 1) does lxml.att("#1","some tag") really work ?
I don't know, but please provide a complete minimal example.
> 2) I'm trying to export to xml and have set
>
> \setupbackend[export=yes, xhtml=yes, css=mkiv-export.css]
>
> But
> a) my Metafun/Tikz pictures aren't exported to svg :/
Currently ConTeXt does not export Metafun/Tikz pictures to svg.
> b) the exported xml has namespaces problems (like error on line 63 at column
> 20: Namespace prefix m on math is not defined error on line 64 at column 22:
> Namespace prefix m on mrow is not defined)
>
> What am I doing wrong ? (I'm compiling with "context mydoc.tex")
Could it be a validator error? The 11th line of my test document contains:
<document xmlns:m="http://www.w3.org/1998/Math/MathML"
which defines the 'm' namespace.
> Is there some \csname tex4ht\endcsname command or some other directive that I
> should use to get my xml export right ?
ConTeXt does not use tex4ht!
> Am I missing some namespace commands (there are lots of m:math and m:mrow
> mathml tags int the exported xml source, this smells like a tex4ht issue)
>
See above.
> 3) I have defined some framed text with metafun overlays (like in the Context
> manual)
> and I'm trying to type something like
>
> but it's not really satisfying. (hate to lose vertical space with wandering
> blank spaces)
>
> Is there a better way ?
Please provide a complete minimal example.
> 4) I'm trying to port the following TeX code to ConTeXt
>
> $$\eqalign{x&=1\cr y&=2\cr}\qquad \hbox{haha}$$
>
> it looks like \startformula\startalign.. doesn't allow me to do that
> I somehow managed to have it by typing
>
> \startformula
> \vcenter{\starttabular[|rM|lM|]
> \NC x \NC =1\NC\NR
> \NC y \NC =2\NC\NR
> \stoptabular}\qquad\text{haha}
> \stopformula
>
> the pdf export is fine, but the xml export is awfull (because of \vcenter I
> guess)
>
> a) Is there a way to use tables inside math mode alongside other stuff (would
> be handy) ?
> b) what is the correct way to type the previous text, so the pdf and xml are
> fine in Context ?
Why not use \startmathalign etc. See:
http://dl.contextgarden.net/myway/mathalign.pdf
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-08-02 15:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-02 15:29 Olivier Binda
2012-08-02 15:43 ` Aditya Mahajan [this message]
2012-08-02 15:47 ` Aditya Mahajan
2012-08-03 6:35 ` Olivier Binda
2012-08-03 10:10 ` Hans Hagen
2012-08-03 14:50 ` Sietse Brouwer
2012-08-03 16:14 ` Hans Hagen
2012-08-05 9:35 ` Thomas A. Schmitz
2012-08-20 22:27 ` Olivier Binda
2012-08-22 4:54 ` Aditya Mahajan
2012-08-22 8:21 ` Olivier Binda
2012-08-22 8:42 ` Aditya Mahajan
2012-08-22 10:31 ` Olivier Binda
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=alpine.LNX.2.02.1208021137070.4717@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--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).