[NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Cecil Westerhof
I another thread I talked about my problems with converting my ConTeXt file to an editable format. In principal going the xhtml way seemed best. But yesterday I got talking with someone in the train. He told me that it was possible to convert ConTeXt to LaTeXt and LaTeXt to an ODT file. This

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Martin Schröder
2011/7/19 Cecil Westerhof cldwester...@gmail.com: was possible to convert ConTeXt to LaTeXt and LaTeXt to an ODT file. This LaTeX - ODT: tex4ht Best Martin ___ If your question is of interest to others as well,

Re: [NTG-context] beta

2011-07-19 Thread Hans Hagen
On 18-7-2011 10:31, Aditya Mahajan wrote: On Thu, 14 Jul 2011, Aditya Mahajan wrote: On Wed, 13 Jul 2011, Hans Hagen wrote: - Typing gets frontstripped with the number of spaces in front of \stoptyping so that one can have nicely formatted input like: Great. Recently I had added a similar

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Hans Hagen
On 19-7-2011 10:47, Cecil Westerhof wrote: I another thread I talked about my problems with converting my ConTeXt file to an editable format. In principal going the xhtml way seemed best. But yesterday I got talking with someone in the train. He told me that it was possible to convert ConTeXt

Re: [NTG-context] resolvers.findctxfile broken

2011-07-19 Thread Hans Hagen
On 19-7-2011 11:06, Andreas Schneider wrote: Hi, since one of the latest beta, resolvers.findctxfiles is broken. The attached example used to work (see test3.working.log) while the new beta fails (see test3.failed.log). fixed in next update Hans

Re: [NTG-context] resolvers.findctxfile broken

2011-07-19 Thread Andreas Schneider
On Tuesday, July 19, 2011 11:22 Hans Hagen wrote: On 19-7-2011 11:06, Andreas Schneider wrote: Hi, since one of the latest beta, resolvers.findctxfiles is broken. The attached example used to work (see test3.working.log) while the new beta fails (see test3.failed.log). fixed in next

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Cecil Westerhof
2011/7/19 Hans Hagen pra...@wxs.nl On 19-7-2011 10:47, Cecil Westerhof wrote: I another thread I talked about my problems with converting my ConTeXt file to an editable format. In principal going the xhtml way seemed best. But yesterday I got talking with someone in the train. He told me

[NTG-context] Characters instead numbers in headings

2011-07-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to get numbering style like this: A. Chapter A.1 Section I compiled a couple-of-months-old file and I got another result than before (?!). So I created a minimal example - hope this is a valid code for numbering (or rather charactering) chapters as described before:

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Mojca Miklavec
On Tue, Jul 19, 2011 at 11:41, Cecil Westerhof wrote: Okay, I'll discard this option then. (Or someone else must have a way to do the ConTeXt - LaTeXt part.) Keep in mind that ConTeXt - ODT should in theory be doable as well, but the author of tex4ht died and it is very unlikely that the

[NTG-context] Use of \hairline in the header

2011-07-19 Thread Cecil Westerhof
I have the following document: \setupheader[ after={\startalignment[center]\hairline\stopalignment}, style={\switchtobodyfont[9pt]}, ] \setuplayout[ footer=0mm, header=10mm, ] \setupheadertexts[] \setupheadertexts[Documentation for product XYZ –concept–] [version:

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Martin Schröder
2011/7/19 Mojca Miklavec mojca.miklavec.li...@gmail.com: If you can throw away any formatting you did and if you didn't use too many ConTeXt specific tricks, you can simply rewrite your code to LaTeX with a few regular expressions etc. But in the same spirit it might be way easier to just

Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)

2011-07-19 Thread Cecil Westerhof
2011/7/18 Aditya Mahajan adit...@umich.edu On Thu, 14 Jul 2011, John Haltiwanger wrote: PS. For what it is worth, I do not think it would be _too_ hard to create a Context to Markdown translator. Yes. A while back I did some tests (though I cannot find them now), and had most of the

Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)

2011-07-19 Thread Martin Schröder
2011/7/19 Cecil Westerhof cldwester...@gmail.com: When you find them, I would be interested in them. And maybe I can improve on them. Pandoc. :-) Best Martin ___ If your question is of interest to others as

Re: [NTG-context] General suggestion: Unit tests for ConText

2011-07-19 Thread Cecil Westerhof
2011/7/18 Peter Schorsch trala...@freenet.de during my work with context I wrote a bunch of fewliners mainly to test how to do things. When there change from mkii to mkiv occured many of my mini-tests failed and later with the growing of mkiv restartet to work - some just without adaption..

Re: [NTG-context] General suggestion: Unit tests for ConText

2011-07-19 Thread Cecil Westerhof
2011/7/19 Hans Hagen pra...@wxs.nl fyi: there is an archive with a bunch of tests (mostly mine but I occasionally add -adapted- samples from the list): http://www.pragma-ade.nl/**context/latest/cont-tst.7zhttp://www.pragma-ade.nl/context/latest/cont-tst.7z Quite some of these can be used

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Cecil Westerhof
2011/7/19 Martin Schröder mar...@oneiros.de 2011/7/19 Mojca Miklavec mojca.miklavec.li...@gmail.com: If you can throw away any formatting you did and if you didn't use too many ConTeXt specific tricks, you can simply rewrite your code to LaTeX with a few regular expressions etc. But in the

Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)

2011-07-19 Thread John Haltiwanger
On Tue, Jul 19, 2011 at 3:27 AM, Martin Schröder mar...@oneiros.de wrote: 2011/7/19 Cecil Westerhof cldwester...@gmail.com: When you find them, I would be interested in them. And maybe I can improve on them. Pandoc. :-) Pandoc does not support Context as an input. Nor does it support

Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)

2011-07-19 Thread luigi scarso
On Tue, Jul 19, 2011 at 12:41 PM, John Haltiwanger john.haltiwan...@gmail.com wrote: On Tue, Jul 19, 2011 at 3:27 AM, Martin Schröder mar...@oneiros.de wrote: 2011/7/19 Cecil Westerhof cldwester...@gmail.com: When you find them, I would be interested in them. And maybe I can improve on

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Cecil Westerhof
2011/7/19 Hans Hagen pra...@wxs.nl Concerning OTD: if you need to be roundtrip, then you also need to be able to convert back, which might be non trivial. Roundtrip is not necessary I think (in this case). As I understand it: after delivery we do not have to change the document anymore. And

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Mojca Miklavec
On Tue, Jul 19, 2011 at 12:50, Cecil Westerhof wrote: As I understand it: after delivery we do not have to change the document anymore. And if we have, well we just use Open Office. (Or Libre.) I wonder why someone would want to hire third-party to create them a document in OpenOffice if

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Cecil Westerhof
2011/7/19 Mojca Miklavec mojca.miklavec.li...@gmail.com As I understand it: after delivery we do not have to change the document anymore. And if we have, well we just use Open Office. (Or Libre.) I wonder why someone would want to hire third-party to create them a document in OpenOffice

Re: [NTG-context] Use of \hairline in the header

2011-07-19 Thread Christian
Hi, I was also experiencing unexpected results when using a hairline in the header. I found this solution for a line (I think it's somewhere in the wiki): \setupbackgrounds[header][text][frame=off, bottomframe=on,rulethickness=.5pt] The drawback is, that you'll have to use

Re: [NTG-context] Characters instead numbers in headings

2011-07-19 Thread Wolfgang Schuster
Am 19.07.2011 um 12:02 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I'm trying to get numbering style like this: A. Chapter A.1 Section I compiled a couple-of-months-old file and I got another result than before (?!). So I created a minimal example - hope this is a

Re: [NTG-context] Characters instead numbers in headings

2011-07-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, have you tried it? On Tue, 19 Jul 2011 14:19:52 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: or \setuphead[chapter,section][sectionconversionset=Num2Char] Wolfgang \definestructureconversionset[Num2Char][numbers,Characters][numbers]

[NTG-context] How well do ConTeXt (lua)module for other users?

2011-07-19 Thread Jaroslav Hajtmar
Hello ConTeXist. I have done the module (for context), which is entirely written in Lua (ConTeXt definitions are done through Lua too). I wonder how it can be loaded into ConTeXt file. Have I to use the beginning of the file: \startluacode dofile (my-module.lua) \stopluacode to loading

Re: [NTG-context] How well do ConTeXt (lua)module for other users?

2011-07-19 Thread luigi scarso
On Tue, Jul 19, 2011 at 2:27 PM, Jaroslav Hajtmar hajt...@gyza.cz wrote: Hello ConTeXist. I have done the module (for context), which is entirely written in Lua (ConTeXt definitions are done through Lua too). I wonder how it can be loaded into ConTeXt file. Have I to use the beginning of

Re: [NTG-context] Characters instead numbers in headings

2011-07-19 Thread Wolfgang Schuster
Am 19.07.2011 um 14:27 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, have you tried it? Yes! mtx-context | current version: 2011.07.17 23:08 Wolfgang ___ If your question is of interest to others

Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)

2011-07-19 Thread Hans Hagen
On 19-7-2011 12:46, luigi scarso wrote: On Tue, Jul 19, 2011 at 12:41 PM, John Haltiwanger john.haltiwan...@gmail.com wrote: On Tue, Jul 19, 2011 at 3:27 AM, Martin Schrödermar...@oneiros.de wrote: 2011/7/19 Cecil Westerhofcldwester...@gmail.com: When you find them, I would be interested

Re: [NTG-context] How well do ConTeXt (lua)module for other users?

2011-07-19 Thread Wolfgang Schuster
Am 19.07.2011 um 14:27 schrieb Jaroslav Hajtmar: Hello ConTeXist. I have done the module (for context), which is entirely written in Lua (ConTeXt definitions are done through Lua too). I wonder how it can be loaded into ConTeXt file. Have I to use the beginning of the file:

Re: [NTG-context] Characters instead numbers in headings

2011-07-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Tue, 19 Jul 2011 14:33:05 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: mtx-context | current version: 2011.07.17 23:08 Wolfgang OK, thanks for hints and testing. I've just downloaded the latest beta - ConTeXt ver: 2011.07.19 11:22 MKIV fmt: 2011.7.19

Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)

2011-07-19 Thread luigi scarso
On Tue, Jul 19, 2011 at 2:37 PM, Hans Hagen pra...@wxs.nl wrote: On 19-7-2011 12:46, luigi scarso wrote: I don't know haskell, but it sound like a good excuse to start. it might be way easier to convert the xml export to pandoc because then users can still define commands (like special

Re: [NTG-context] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)

2011-07-19 Thread Khaled Hosny
On Tue, Jul 19, 2011 at 02:37:33PM +0200, Hans Hagen wrote: On 19-7-2011 12:46, luigi scarso wrote: On Tue, Jul 19, 2011 at 12:41 PM, John Haltiwanger john.haltiwan...@gmail.com wrote: On Tue, Jul 19, 2011 at 3:27 AM, Martin Schrödermar...@oneiros.de wrote: 2011/7/19 Cecil

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Khaled Hosny
On Tue, Jul 19, 2011 at 12:15:46PM +0200, Mojca Miklavec wrote: On Tue, Jul 19, 2011 at 11:41, Cecil Westerhof wrote: Okay, I'll discard this option then. (Or someone else must have a way to do the ConTeXt - LaTeXt part.) Keep in mind that ConTeXt - ODT should in theory be doable as

Re: [NTG-context] ConTeXt - LaTeXt - ODT?

2011-07-19 Thread Hans Hagen
On 19-7-2011 2:58, Khaled Hosny wrote: On Tue, Jul 19, 2011 at 12:15:46PM +0200, Mojca Miklavec wrote: On Tue, Jul 19, 2011 at 11:41, Cecil Westerhof wrote: Okay, I'll discard this option then. (Or someone else must have a way to do the ConTeXt - LaTeXt part.) Keep in mind that ConTeXt -

Re: [NTG-context] Use of \hairline in the header

2011-07-19 Thread Wolfgang Schuster
Am 19.07.2011 um 12:21 schrieb Cecil Westerhof: I have the following document: \setupheader[ after={\startalignment[center]\hairline\stopalignment}, style={\switchtobodyfont[9pt]}, ] \setupheader[text][after=\hairline,...] Wolfgang

[NTG-context] markdown

2011-07-19 Thread Hans Hagen
Hi Khaled, I took a look at the lunamark code, and ran it on some (copied) sample. As it was much slower than I'd expected from lpeg I messed around a little and could bring down the runtime on the sample from 2 sec to 0.1 sec. Anyhow, there is room for improvement so I wonder If I should

Re: [NTG-context] markdown

2011-07-19 Thread John Haltiwanger
On Tue, Jul 19, 2011 at 7:05 AM, Hans Hagen pra...@wxs.nl wrote: Hi Khaled, I took a look at the lunamark code, and ran it on some (copied) sample. As it was much slower than I'd expected from lpeg I messed around a little and could bring down the runtime on the sample from 2 sec to 0.1 sec.

Re: [NTG-context] How well do ConTeXt (lua)module for other users?

2011-07-19 Thread Jaroslav Hajtmar
Great ... that's exactly what I needed ... Thanks very much Wolfgang. It can be somewhere on similar techniques to read more? Just links to some sample files to the dissected ... Thanks a lot Jaroslav Dne 19.7.2011 14:39, Wolfgang Schuster napsal(a): Am 19.07.2011 um 14:27 schrieb Jaroslav

Re: [NTG-context] Use of \hairline in the header

2011-07-19 Thread Cecil Westerhof
2011/7/19 Wolfgang Schuster schuster.wolfg...@googlemail.com I have the following document: \setupheader[ after={\startalignment[center]\hairline\stopalignment}, style={\switchtobodyfont[9pt]}, ] \setupheader[text][after=\hairline,...] Works. Thanks. -- Cecil Westerhof

[NTG-context] \copypages[file#.pdf]

2011-07-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, this kind of question was discussed once - how to include '#' character to the file name so that \copypages take it? Something like: \copypages[TZ#001.pdf] e.g. by \copypages[\MAKETEXT{TZ#001.pdf}] There was discussion about other not-so-frequent chars as well - ! # $ % @ ^ _ -

Re: [NTG-context] \copypages[file#.pdf]

2011-07-19 Thread Wolfgang Schuster
Am 19.07.2011 um 16:58 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, this kind of question was discussed once - how to include '#' character to the file name so that \copypages take it? Something like: \copypages[TZ#001.pdf] e.g. by \copypages[\MAKETEXT{TZ#001.pdf}]

Re: [NTG-context] How well do ConTeXt (lua)module for other users?

2011-07-19 Thread Wolfgang Schuster
Am 19.07.2011 um 16:26 schrieb Jaroslav Hajtmar: Great ... that's exactly what I needed ... Thanks very much Wolfgang. It can be somewhere on similar techniques to read more? Just links to some sample files to the dissected ... You should always read Hans bet announcements where he often

Re: [NTG-context] \copypages[file#.pdf]

2011-07-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Perfect, thank you! Lukas On Tue, 19 Jul 2011 17:04:35 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 19.07.2011 um 16:58 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, this kind of question was discussed once - how to include '#' character to the file

[NTG-context] \start/stopTEXpage resets page layout?

2011-07-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, let's have the following code: \setuplayout[page] \starttext AAA \page \copypages[cow.pdf] BBB \startTEXpage \externalfigure[cow] \stopTEXpage \page CCC \stoptext Texts AAA and BBB are written from the strict left top corner of the page - page has no

Re: [NTG-context] Use of \hairline in the header

2011-07-19 Thread Christian
\setupheader[text][after=\hairline,...] Works. Thanks. Works, but does penetrate the text area. See the attached image (I have \showframe on, so don’t be confused by that many lines. The hairline is the one partially highlighted, running just above the lowercase letters). How can

Re: [NTG-context] Use of \hairline in the header

2011-07-19 Thread Wolfgang Schuster
Am 19.07.2011 um 18:27 schrieb Christian: \setupheader[text][after=\hairline,...] Works. Thanks. Works, but does penetrate the text area. See the attached image (I have \showframe on, so don’t be confused by that many lines. The hairline is the one partially highlighted,

Re: [NTG-context] markdown

2011-07-19 Thread Khaled Hosny
On Tue, Jul 19, 2011 at 04:05:13PM +0200, Hans Hagen wrote: Hi Khaled, I took a look at the lunamark code, and ran it on some (copied) sample. As it was much slower than I'd expected from lpeg I messed around a little and could bring down the runtime on the sample from 2 sec to 0.1 sec.

Re: [NTG-context] markdown

2011-07-19 Thread Hans Hagen
On 19-7-2011 7:08, Khaled Hosny wrote: On Tue, Jul 19, 2011 at 04:05:13PM +0200, Hans Hagen wrote: Hi Khaled, I took a look at the lunamark code, and ran it on some (copied) sample. As it was much slower than I'd expected from lpeg I messed around a little and could bring down the runtime on

Re: [NTG-context] markdown

2011-07-19 Thread Wolfgang Schuster
Am 19.07.2011 um 19:14 schrieb Hans Hagen: On 19-7-2011 7:08, Khaled Hosny wrote: On Tue, Jul 19, 2011 at 04:05:13PM +0200, Hans Hagen wrote: Hi Khaled, I took a look at the lunamark code, and ran it on some (copied) sample. As it was much slower than I'd expected from lpeg I messed

Re: [NTG-context] Use of \hairline in the header

2011-07-19 Thread Christian
\setupheader[text][after=\hairline,...] Works. Thanks. Works, but does penetrate the text area. See the attached image (I have \showframe on, so don’t be confused by that many lines. The hairline is the one partially highlighted, running just above the lowercase letters). How

Re: [NTG-context] Problem with \automigrateinserts

2011-07-19 Thread Andreas Harder
Am 18.07.2011 um 13:39 schrieb Hans Hagen: On 16-7-2011 1:40, Andreas Harder wrote: Hi, if one uses \automigrateinsers footnotes in captions will be eaten. \automigrateinserts % kill footnotes in captions! experimental hack in next version Thanks a lot! It works. Andreas

[NTG-context] vertical alignment in TOC

2011-07-19 Thread Thomas A. Schmitz
Hi all, for an edited volume, entries in the TOC have two lines, title, then author. Is is possible to have the page number aligned to the title, i.e. the first of these lines? Example: \setuphead[chapter] [number=no] \setuplist[chapter] [width=0cm] \starttext

Re: [NTG-context] vertical alignment in TOC

2011-07-19 Thread Hans Hagen
On 19-7-2011 8:36, Thomas A. Schmitz wrote: Hi all, for an edited volume, entries in the TOC have two lines, title, then author. Is is possible to have the page number aligned to the title, i.e. the first of these lines? i'll send you a temp hack

Re: [NTG-context] vertical alignment in TOC

2011-07-19 Thread Andreas Harder
Am 19.07.2011 um 20:36 schrieb Thomas A. Schmitz: Hi all, for an edited volume, entries in the TOC have two lines, title, then author. Is is possible to have the page number aligned to the title, i.e. the first of these lines? Example: \setuphead[chapter] [number=no]