ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XML and TeX
@ 2002-01-23 11:59 AlterEgo Qasars
  2002-01-23 12:55 ` Hans Hagen
  2002-01-23 13:37 ` Hans Hagen
  0 siblings, 2 replies; 3+ messages in thread
From: AlterEgo Qasars @ 2002-01-23 11:59 UTC (permalink / raw)


Good evening,

I'd like to typeset some TeX command within XML code. Things like

<?context-command \blank[4*line, force] ?>

should work (according to manual), but they don't. The last parameter is 
typeset (word force). With some commands (\noindent) it crashes. What's 
wrong? How to do it?

And one more problem. I write the XML code in an XHTML editor. I'd like 
the TeX stuff to be seen, e.g. written in <U>...</U> environment. How this 
could be done?

Many thanks and greetings.
Michal Kvasnicka

P.S. I'm sorry if this question was discuses  here already. I'm now pretty 
short of time and I can't read the list as carefully as I would like.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: XML and TeX
  2002-01-23 11:59 XML and TeX AlterEgo Qasars
@ 2002-01-23 12:55 ` Hans Hagen
  2002-01-23 13:37 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2002-01-23 12:55 UTC (permalink / raw)
  Cc: konference o ConTeXtu

At 12:59 PM 1/23/2002 +0100, AlterEgo Qasars wrote:
>Good evening,
>
>I'd like to typeset some TeX command within XML code. Things like
>
><?context-command \blank[4*line, force] ?>
>
>should work (according to manual), but they don't. The last parameter is
>typeset (word force). With some commands (\noindent) it crashes. What's
>wrong? How to do it?

i'll have a look; for the moment, remove the space before force

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-pod.nl
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: XML and TeX
  2002-01-23 11:59 XML and TeX AlterEgo Qasars
  2002-01-23 12:55 ` Hans Hagen
@ 2002-01-23 13:37 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2002-01-23 13:37 UTC (permalink / raw)
  Cc: konference o ConTeXtu

At 12:59 PM 1/23/2002 +0100, AlterEgo Qasars wrote:
>Good evening,
>
>I'd like to typeset some TeX command within XML code. Things like
>
><?context-command \blank[4*line, force] ?>
>
>should work (according to manual), but they don't. The last parameter is
>typeset (word force). With some commands (\noindent) it crashes. What's
>wrong? How to do it?

In cont-new.tex you may add (after \unprotect):

\def\rawprocesscommaitem#1,#2%
   {\if]#1\else
      \csname\s!next\the\commalevel\endcsname{#1}%
      \@EA\rawprocesscommaitem
    \fi#2}

this is more tolerant.

BTW, this problem was introduced when extending the \blank macro: you can 
now enter more complex constructs (while it's also much faster).

things like \defineblank[whatever][big,2*small] 
\blank[3*big,2*whatever,small] are supposed to work ok now.

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-pod.nl
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-23 13:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-23 11:59 XML and TeX AlterEgo Qasars
2002-01-23 12:55 ` Hans Hagen
2002-01-23 13:37 ` Hans Hagen

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).