Re: [NTG-context] margintext in mkii and mkiv

2010-11-06 Thread Vladimir Lomov
** Hans Hagen [2010-11-05 13:54:06 +0100]:

 On 5-11-2010 5:51, Vladimir Lomov wrote:
Hi.

Consider the attached example. When compiled with mkii (texexec) I get
text in margin while if I compile the file with mkiv (context) I get
only text with nothing in margin.

I'm using context minimal:
$ context --version | grep version
MTXrun | current version: 2010.11.03 19:42

Did I miss something?
 
 put this in cont-new.mkiv
 
 \def\doflushmargincontents
   {\ifconditional\margintextcollected
  \expandafter\flushmargincontentsindeed
\fi}
Thanks Hans. (If I add them into cont-new.mkiv the file would be
overwritten next time when I run update procedure, is it right?)

 (when cleaning up status variables something got lost)
That's Ok.

I hope that these lines will in proper place in next beta, it's not
hurry.

-- 
If I am elected, the concrete barriers around the WHITE HOUSE will be
replaced by tasteful foam replicas of ANN MARGARET!
___
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] Dotted leader in index entries

2010-11-06 Thread Duncan Hothersall

 [Reposting because I think my last message got mangled.]

Hello all.

I'm using Mk II. When I use the following setup to get dotted leaders 
between an index entry and its page number:


\def\MyIndexTextCmd#1{#1\dotfill}
\setupregister[Index][n=2,textcommand=\MyIndexTextCmd,distance=1em,alternative=A]

it works okay producing output like this:

Index entry.123

except when the entry text is just long enough to fill up the horizontal 
space, pushing the number over onto the next line. What I get in that 
scenario is this:


Index entry text...
  123

This is no good. What I really need is for all page numbers to be at the 
right hand side, with leading dots. So I'd like a solution to produce 
either this:


Index entry text...
  123

or preferably this:

Index entry
  text..123

At the moment I'm putting forced line breaks before the last word to 
achieve what I need, but I would really like to automate this!


Thanks for any help, hope the issue is clear.

Duncan

___
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] Dotted leader in index entries

2010-11-06 Thread Wolfgang Schuster

Am 06.11.2010 um 12:12 schrieb Duncan Hothersall:

 [Reposting because I think my last message got mangled.]

Your message came through but there was no example from you!

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
___


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


[NTG-context] \margintext

2010-11-06 Thread Herbert Voss
The documentation says, that this should work, but it didn't:

\starttext
\margintext{foo}bar baz
\stoptext

However, in the documentation the example also didn't show the
margin text (p 64).

Herbert
___
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] \margintext

2010-11-06 Thread Aditya Mahajan

On Sat, 6 Nov 2010, Herbert Voss wrote:


The documentation says, that this should work, but it didn't:

\starttext
\margintext{foo}bar baz
\stoptext

However, in the documentation the example also didn't show the
margin text (p 64).


There was an email about it yesterday with a fix. Did you see that?

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
___


Re: [NTG-context] \margintext

2010-11-06 Thread Herbert Voss
Am 06.11.2010 22:28, schrieb Aditya Mahajan:
 On Sat, 6 Nov 2010, Herbert Voss wrote:
 
 The documentation says, that this should work, but it didn't:

 \starttext
 \margintext{foo}bar baz
 \stoptext

 However, in the documentation the example also didn't show the
 margin text (p 64).
 
 There was an email about it yesterday with a fix. Did you see that?

yes, but forget it ...

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