Re: [NTG-context] ConTexT conversion to html/rtf/odt

2010-11-07 Thread Mojca Miklavec
On Sat, Nov 6, 2010 at 20:33, Manfred Lotz wrote:

 Tried htcontext test.tex and got:

 ! Undefined control sequence.
 argument dl class=dd-\itemlevel
...
 l.6     \item
              bla bla
 ?


 Perhaps there is some stupidity from my side. If yes I appreciate any
 corrections. If no then htcontext from package tex4ht doesn't really
 work for ConTeXt and then I would like to know what other alternatives
 I have. Also regarding rtf or/and odt.

There is a group of maintainers
(http://tug.org/mailman/listinfo/tex4ht), but the author who was the
big hacker passed away not that long ago. You may ask on the mailing
list, but there is no guarantee ...

tex4ht would break each time when Hans does some bigger changes in the
core and this is probably the case now as well.

See Aditya's answer about the rest ...

Mojca
___
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
___


Re: [NTG-context] ConTexT conversion to html/rtf/odt

2010-11-07 Thread John Haltiwanger
On Sat, Nov 6, 2010 at 9:00 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Sat, 6 Nov 2010, Manfred Lotz wrote:

  work for ConTeXt and then I would like to know what other alternatives
 I have. Also regarding rtf or/and odt.


 Since you do not need any fancy features, a simpler option is to use
 markdown as your starting format and use pandoc to convert it to context,
 html, and odt. However, creating even slightly complicated tables in
 markdown is a pain, unless your editor supports an ascii table mode.


This is indeed a decent solution, one which worked for typesetting my thesis
in PDF and HTML. (You get RTF and ODT for free, assuming it doesn't take
much glue to get it to look the way you want). I had to write a wrapper
script to do regular expression parsing to take care of edge cases (pandoc
is written in Haskell, so to 'scripting' the application requires working in
that language; my choice was to do a more hackish approach that used a Ruby
script that generated multiple markdown files)

Aditya, do perhaps know one of these editors with ASCII table mode?




 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

 ___


___
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
___


Re: [NTG-context] ConTexT conversion to html/rtf/odt

2010-11-07 Thread luigi scarso
On Sat, Nov 6, 2010 at 10:00 PM, Aditya Mahajan adit...@umich.edu wrote:
 On Sat, 6 Nov 2010, Manfred Lotz wrote:

 I'm in a situation where I have to do some documentation which should
 be available in html and rtf/odt (would be nice to have).

 There is an experimental feature of converting ConTeXt to XML. You can then
 process XML using standard XML tools to get HTML.
Not so experimental.
PDF/A was tested (I needs  more testing with new version of AdobeAcrobat)



-- 
luigi
___
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
___


Re: [NTG-context] ConTexT conversion to html/rtf/odt

2010-11-07 Thread Manfred Lotz
On Sat, 6 Nov 2010 17:00:38 -0400 (EDT)
Aditya Mahajan adit...@umich.edu wrote:

 On Sat, 6 Nov 2010, Manfred Lotz wrote:
 
  I'm in a situation where I have to do some documentation which
  should be available in html and rtf/odt (would be nice to have).
 
 There is an experimental feature of converting ConTeXt to XML. You
 can then process XML using standard XML tools to get HTML.
 
  I do not need any fancy stuff, just simple things: ordered,
  unordered lists, verbatim, tables etc.
 
 
 \setupbackend[export=yes]

! Undefined control sequence.
l.1 \setupbackend
 [export=yes]

This doesn't work for me. Perhaps my context from TeXLive 2010 is too
old. Not quite sure about that.


 
 Since you do not need any fancy features, a simpler option is to use 
 markdown as your starting format and use pandoc to convert it to
 context, html, and odt. However, creating even slightly complicated
 tables in markdown is a pain, unless your editor supports an ascii
 table mode.
 

Thanks for pointing me to pandoc. On the one hand it works very well
but on the other hand it (markdown) seems a bit too rudimentary.




-- 
Manfred


___
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
___


Re: [NTG-context] ConTexT conversion to html/rtf/odt

2010-11-07 Thread luigi scarso
On Sun, Nov 7, 2010 at 11:54 AM, Manfred Lotz manfred.l...@arcor.de wrote:
 On Sat, 6 Nov 2010 17:00:38 -0400 (EDT)
 Aditya Mahajan adit...@umich.edu wrote:

 On Sat, 6 Nov 2010, Manfred Lotz wrote:

  I'm in a situation where I have to do some documentation which
  should be available in html and rtf/odt (would be nice to have).

 There is an experimental feature of converting ConTeXt to XML. You
 can then process XML using standard XML tools to get HTML.

  I do not need any fancy stuff, just simple things: ordered,
  unordered lists, verbatim, tables etc.


 \setupbackend[export=yes]

 ! Undefined control sequence.
 l.1 \setupbackend
                 [export=yes]

 This doesn't work for me. Perhaps my context from TeXLive 2010 is too
 old. Not quite sure about that.
Yes, can be.
Usually you should use the minimals, but with tlcontrib  --- see
http://tlcontrib.metatex.org/ ---
thigs are changing.
Mojca ?

-- 
luigi
___
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
___


Re: [NTG-context] ConTexT conversion to html/rtf/odt

2010-11-07 Thread Hans Hagen

On 7-11-2010 11:54, Manfred Lotz wrote:

On Sat, 6 Nov 2010 17:00:38 -0400 (EDT)
Aditya Mahajanadit...@umich.edu  wrote:


On Sat, 6 Nov 2010, Manfred Lotz wrote:


I'm in a situation where I have to do some documentation which
should be available in html and rtf/odt (would be nice to have).


There is an experimental feature of converting ConTeXt to XML. You
can then process XML using standard XML tools to get HTML.


I do not need any fancy stuff, just simple things: ordered,
unordered lists, verbatim, tables etc.



\setupbackend[export=yes]


! Undefined control sequence.
l.1 \setupbackend
  [export=yes]

This doesn't work for me. Perhaps my context from TeXLive 2010 is too
old. Not quite sure about that.


it was added after tex live 2010 was frozen (this year we froze rather 
early not knowing that there would be a long delay before 2010 showed 
up; also we had to freeze in sync with luatex)


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
___


Re: [NTG-context] ConTexT conversion to html/rtf/odt

2010-11-07 Thread Aditya Mahajan

On Sun, 7 Nov 2010, John Haltiwanger wrote:


Aditya, do perhaps know one of these editors with ASCII table mode?


Emacs org mode. Nothing else even comes close to it. There are a few 
scripts that will convert csv to similar to rst tables.


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
___


[NTG-context] ConTexT conversion to html/rtf/odt

2010-11-06 Thread Manfred Lotz
Hi there,
I'm in a situation where I have to do some documentation which should
be available in html and rtf/odt (would be nice to have).

I do not need any fancy stuff, just simple things: ordered,
unordered lists, verbatim, tables etc.

As a ConTeXt newbie I thought this might be a good idea to get into
ConTeXt. However, I'm not quite sure how to create HTML from ConTeXt.


What I tried so far:

Created a simple document:

\starttext

\section{Some section}

\startitemize[1]
\item bla bla
\stopitemize

\stoptext


Tried htcontext test.tex and got:

! Undefined control sequence.
argument dl class=dd-\itemlevel 

\HCode ...ode \leavevmode \fi \ht:special {t4ht=#1
  }\fi 
\a:itemize-group ... {dl class=dd-\itemlevel }
  \global \let \end:dd
=\empty 

\dostartitemgroup ... {\dodostartitemgroup [#2][]}
  \fi 
to be read again 
   \item 
l.6 \item
  bla bla
? 


Perhaps there is some stupidity from my side. If yes I appreciate any
corrections. If no then htcontext from package tex4ht doesn't really
work for ConTeXt and then I would like to know what other alternatives
I have. Also regarding rtf or/and odt.



-- 
Thanks,
Manfred






-- 
Manfred


___
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
___


Re: [NTG-context] ConTexT conversion to html/rtf/odt

2010-11-06 Thread Aditya Mahajan

On Sat, 6 Nov 2010, Manfred Lotz wrote:


I'm in a situation where I have to do some documentation which should
be available in html and rtf/odt (would be nice to have).


There is an experimental feature of converting ConTeXt to XML. You can 
then process XML using standard XML tools to get HTML.



I do not need any fancy stuff, just simple things: ordered,
unordered lists, verbatim, tables etc.



\setupbackend[export=yes]

\starttext

\section{Some section}

\startitemize[1]
   \item bla bla
\stopitemize

\stoptext


Run context filename. This will create a filename.export file in your 
current directory that looks like this:


?xml version='1.0' standalone='yes' ?

!-- input filename   : back  --
!-- processing date  : Sat Nov  6 16:55:02 2010 --
!-- context version  : 2010.10.14 13:14  --
!-- exporter version : 0.10  --

document language='en' file='back' date='Sat Nov  6 16:55:02 2010' 
context='2010.10.14 13:14' version='0.10'

  section detail='section'
sectionnumber1/sectionnumber
sectiontitleSome section/sectiontitle
sectioncontent
  itemgroup detail='itemize' symbol='1'
item
  itemtagmathmrowmo•/mo/mrow/math/itemtag
  itemcontentbla bla/itemcontent
/item
  /itemgroup
/sectioncontent
  /section
/document


work for ConTeXt and then I would like to know what other alternatives
I have. Also regarding rtf or/and odt.


Since you do not need any fancy features, a simpler option is to use 
markdown as your starting format and use pandoc to convert it to context, 
html, and odt. However, creating even slightly complicated tables in 
markdown is a pain, unless your editor supports an ascii table mode.


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
___