[NTG-context] [ export to svg ]

2023-08-19 Thread vm via ntg-context

Is there a (simple) way to export the results of a
\startMPpage ... \stopMPpage
directly to a svg file?

My current route is to import the pdf into inkscape, group path objects 
by stroke color, then save the result as svg and translate that into a 
hpgl format for the pen plotter.


I guess/hope there is some hidden switch dumping the MPpage directly 
into a hpgl file ;-)


.Floris



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Export, page break markers

2020-10-14 Thread Denis Maier

Hi,

as I'm almost done with my PDFs for the first volume of our journal, I'm 
thinking about also publishing HTMLs. We have XSLTs almost ready for 
this, but I was thinking if I could use ConTeXt also for this. A very 
nice feature would be being able to add marking of page breaks in the 
resulting XML/HTML. The wiki says it's not possible, but I'm not so sure 
this page still reflects the current state of affairs. Is that possible 
by now? Other export related things that have changed in the last three 
years?


Best,
Denis
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Export to xml no longer works

2018-06-11 Thread Hans Hagen

On 6/11/2018 4:31 AM, Rik Kabel wrote:

With TL18, the following produces the expected xml and associated files.

\setupbackend [export=yes]
\starttext
\input knuth
\stoptext

With current betas, the xhtml file contains:

invalid xml file - parsed text

and the other files have similar content.

Can anyone reproduce the error or offer a workaround?

fixed in next beta



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Export to xml no longer works

2018-06-10 Thread Rik Kabel

With TL18, the following produces the expected xml and associated files.

   \setupbackend [export=yes]
   \starttext
   \input knuth
   \stoptext

With current betas, the xhtml file contains:

   invalid xml file - parsed text

and the other files have similar content.

Can anyone reproduce the error or offer a workaround?

--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] export breaks float placement

2018-03-15 Thread Henning Hraban Ramm
Am 2018-03-15 um 09:54 schrieb Hans Hagen :

> On 3/3/2018 11:07 AM, Henning Hraban Ramm wrote:
>> Am 2018-02-27 um 16:10 schrieb Alan Braslau :
 With \setupbackend[export=yes] the image is placed "here" and never
 "right" or "left".
>>> 
>>> I "reported" this a while ago. The answer is that right or left are
>>> meaningless for the export and that the export is built somehow using
>>> the generated PDF.
>>> ...
>>> I believe that Hans' workflow includes controlling the export run by
>>> viewing the export PDF (in sumatra), so he has been reluctant to change
>>> the behavior.
>> Hi! Slowly recovering from the flu...
>> So, this is already known. But if there’s indeed such reasoning behind, it 
>> really makes no sense at all!
>> Even if Hans’ workflow is not capable of right or left placement, it’s 
>> easily achievable in HTML/ePub (CSS float: left/right), so it can’t 
>> generally be meaningless.
> 
> it has nothing to do with that but more with the fact that the actual 
> placement can make the structure invalid
> 
>> And I can’t accept that the option of exporting to XML would (more or less) 
>> drastically and needlessly change the print layout!
>> At least _please_ make it an option!
> ok, i'll remove the check ... but: don't bother to complain about invalid 
> exported structured when it happens as i will not look into and/or fix 
> interferences with the actual placement, which can be elsewhere due to lack 
> of room or delayed placement due to margin locations (in that case you need 
> to make a conditional sections in your document source)

Thank you!
I’ll check and document it.

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] export breaks float placement

2018-03-15 Thread Hans Hagen

On 3/3/2018 11:07 AM, Henning Hraban Ramm wrote:

Am 2018-02-27 um 16:10 schrieb Alan Braslau :


With \setupbackend[export=yes] the image is placed "here" and never
"right" or "left".


I "reported" this a while ago. The answer is that right or left are
meaningless for the export and that the export is built somehow using
the generated PDF.
...
I believe that Hans' workflow includes controlling the export run by
viewing the export PDF (in sumatra), so he has been reluctant to change
the behavior.


Hi! Slowly recovering from the flu...

So, this is already known. But if there’s indeed such reasoning behind, it 
really makes no sense at all!

Even if Hans’ workflow is not capable of right or left placement, it’s easily 
achievable in HTML/ePub (CSS float: left/right), so it can’t generally be 
meaningless.


it has othing to do with that but more with the fact that the actual 
placement can make the structure invalid



And I can’t accept that the option of exporting to XML would (more or less) 
drastically and needlessly change the print layout!
At least _please_ make it an option!
ok, i'll remove the check ... but: don't bother to complain about 
invalid exported structured when it happens as i will not look into 
and/or fix interferences with the actual placement, which can be 
elsewhere due to lack of room or delayed placement due to margin 
locations (in that case you need to make a conditional sections in your 
document source)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] export breaks float placement

2018-03-04 Thread Hans Hagen

On 3/4/2018 4:15 PM, Alan Braslau wrote:

On Sun, 4 Mar 2018 13:51:39 +0100
Henning Hraban Ramm  wrote:


normally you will run like "context --mode=export
--result=myexport" or so where you wrap settings specific to an
export in modes


I (can) run several "results" for most of my projects, e.g. lowres,
print res, imposed (arranged) and epub.

But I insist it makes no sense that (epub) export breaks image
placement in the pdf. Why add another lengthy TeX run?


Because when one really wants a proper structured file from a source one 
should also to some respect adapt the style for that run.


Also, 'lengthy tex run' is no argument (most of my tex runs are not that 
slow ... it also depends on the efficiency of styling) ... and when 
working on a document i'd never generate an export every run (as the 
export itself adds 20% overhead!) ... if i care about an export at all, 
it's an extra run in a workflow (idem for other products).



the more features we add to mtxrun the more complex it will become
(and no one will use them then)


Hans, please, it’s not about adding features, it’s about an existing
feature that unnecessarily influences/disables an other.


In this case it's disabled because the result is a garbled export and 
you don't want that either do you? We need to play safe. I might spent 
time on if some customer would demand it and pay for it but i never ran 
into a customer who had any demand for export (of advanced pdf).



I do this (--mode=export --result=exported) and find it somewhat
awkward. I also do not understand why one should not/cannot export
systematically, thus creating multiple output, nor do I "really"
understand why exporting *has* to break the floats (and what else?).


The export is a structured export so one one has to handle rendering 
(and float placement) in a css or wherever .. turning rendered side 
float placement into something export is asking for troubles (as lots of 
- also out of sequence - shifting around etc happen, e.g they can end up 
in the margin in which case flushing happens completely different) and i 
don't look forward to a decade of answering why this or that doesn't 
work out as expected (the same is true for tables and itemize and ... : 
you get the structure as good as possible from what is basically a 
reverse engineered rendering) ... so, instead you should wonder why the 
export works at all



As a result, this is a *feature* (export) that I can but rarely use.
Normally one will have a neutrally encoded source that can become 
anything you want.


Basically the export is a side effect of tagged pdf which is also a 
lunatic feature only in pdf because publishers don't want to distribute 
a proper source which would be way more powerful to re-render and as 
said i never had to produce either tagged of exported content myself 
(which would then give me feedback about what could be done better).


Btw, try to reverse engineer a realistic picture of your house from an 
abstract painting of that same house ...


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] export breaks float placement

2018-03-04 Thread Alan Braslau
On Sun, 4 Mar 2018 13:51:39 +0100
Henning Hraban Ramm  wrote:

> > normally you will run like "context --mode=export
> > --result=myexport" or so where you wrap settings specific to an
> > export in modes  
> 
> I (can) run several "results" for most of my projects, e.g. lowres,
> print res, imposed (arranged) and epub.
> 
> But I insist it makes no sense that (epub) export breaks image
> placement in the pdf. Why add another lengthy TeX run?
> 
> > the more features we add to mtxrun the more complex it will become
> > (and no one will use them then)  
> 
> Hans, please, it’s not about adding features, it’s about an existing
> feature that unnecessarily influences/disables an other.

I do this (--mode=export --result=exported) and find it somewhat
awkward. I also do not understand why one should not/cannot export
systematically, thus creating multiple output, nor do I "really"
understand why exporting *has* to break the floats (and what else?).

As a result, this is a *feature* (export) that I can but rarely use.

Alan
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] export breaks float placement

2018-03-04 Thread Henning Hraban Ramm
Am 2018-03-04 um 10:49 schrieb Hans Hagen :

> On 3/3/2018 5:13 PM, Alan Braslau wrote:
>> On Sat, 3 Mar 2018 10:47:52 -0500 (EST)
>> Aditya Mahajan  wrote:
>>> On Sat, 3 Mar 2018, Henning Hraban Ramm wrote:
>>> 
 And I can’t accept that the option of exporting to XML would (more
 or less) drastically and needlessly change the print layout! At
 least _please_ make it an option!
>>> 
>>> In the meanwhile, you can do:
>>> 
>>> \startmode[export]
>>> \setupbackend[export=yes]
>>> \stopmode
>>> 
>>> and then run with `--mode=export` to get the export and without that
>>> option to get the print layout.
>>> 
>>> Aditya
>> And, unfortunately, this "breaks" the PDF. Of course, one can always
>> write a script that moves the PDF to a safe place, etc. but this is not
>> ideal.
> normally you will run like "context --mode=export --result=myexport" or so 
> where you wrap settings specific to an export in modes

I (can) run several "results" for most of my projects, e.g. lowres, print res, 
imposed (arranged) and epub.

But I insist it makes no sense that (epub) export breaks image placement in the 
pdf. Why add another lengthy TeX run?

> the more features we add to mtxrun the more complex it will become (and no 
> one will use them then)

Hans, please, it’s not about adding features, it’s about an existing feature 
that unnecessarily influences/disables an other.


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] export breaks float placement

2018-03-04 Thread Hans Hagen

On 3/3/2018 5:13 PM, Alan Braslau wrote:

On Sat, 3 Mar 2018 10:47:52 -0500 (EST)
Aditya Mahajan  wrote:


On Sat, 3 Mar 2018, Henning Hraban Ramm wrote:


And I can’t accept that the option of exporting to XML would (more
or less) drastically and needlessly change the print layout! At
least _please_ make it an option!


In the meanwhile, you can do:

\startmode[export]
\setupbackend[export=yes]
\stopmode

and then run with `--mode=export` to get the export and without that
option to get the print layout.

Aditya


And, unfortunately, this "breaks" the PDF. Of course, one can always
write a script that moves the PDF to a safe place, etc. but this is not
ideal.
normally you will run like "context --mode=export --result=myexport" or 
so where you wrap settings specific to an export in modes


the more features we add to mtxrun the more complex it will become (and 
no one will use them then)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] export breaks float placement

2018-03-03 Thread Henning Hraban Ramm
Am 2018-03-03 um 16:47 schrieb Aditya Mahajan :

> On Sat, 3 Mar 2018, Henning Hraban Ramm wrote:
> 
>> And I can’t accept that the option of exporting to XML would (more or less) 
>> drastically and needlessly change the print layout! At least _please_ make 
>> it an option!
> 
> In the meanwhile, you can do:
> 
> \startmode[export]
> \setupbackend[export=yes]
> \stopmode

In my case, the mode’s called "epub" and also changes a few other settings, and 
that’s how I stumbled upon this bug, because I had "--mode=epub" in my Makefile 
default.


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] export breaks float placement

2018-03-03 Thread Alan Braslau
On Sat, 3 Mar 2018 10:47:52 -0500 (EST)
Aditya Mahajan  wrote:

> On Sat, 3 Mar 2018, Henning Hraban Ramm wrote:
> 
> > And I can’t accept that the option of exporting to XML would (more
> > or less) drastically and needlessly change the print layout! At
> > least _please_ make it an option!  
> 
> In the meanwhile, you can do:
> 
> \startmode[export]
> \setupbackend[export=yes]
> \stopmode
> 
> and then run with `--mode=export` to get the export and without that 
> option to get the print layout.
> 
> Aditya

And, unfortunately, this "breaks" the PDF. Of course, one can always
write a script that moves the PDF to a safe place, etc. but this is not
ideal.

Alan
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] export breaks float placement

2018-03-03 Thread Aditya Mahajan

On Sat, 3 Mar 2018, Henning Hraban Ramm wrote:

And I can’t accept that the option of exporting to XML would (more or 
less) drastically and needlessly change the print layout! At least 
_please_ make it an option!


In the meanwhile, you can do:

\startmode[export]
\setupbackend[export=yes]
\stopmode

and then run with `--mode=export` to get the export and without that 
option to get the print layout.


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] export breaks float placement

2018-03-03 Thread Henning Hraban Ramm
Am 2018-02-27 um 16:10 schrieb Alan Braslau :

>> With \setupbackend[export=yes] the image is placed "here" and never
>> "right" or "left".
> 
> I "reported" this a while ago. The answer is that right or left are
> meaningless for the export and that the export is built somehow using
> the generated PDF.
> ...
> I believe that Hans' workflow includes controlling the export run by
> viewing the export PDF (in sumatra), so he has been reluctant to change
> the behavior.

Hi! Slowly recovering from the flu...

So, this is already known. But if there’s indeed such reasoning behind, it 
really makes no sense at all!

Even if Hans’ workflow is not capable of right or left placement, it’s easily 
achievable in HTML/ePub (CSS float: left/right), so it can’t generally be 
meaningless.

And I can’t accept that the option of exporting to XML would (more or less) 
drastically and needlessly change the print layout!
At least _please_ make it an option!


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] export breaks float p

2018-02-27 Thread Alan Braslau
On Tue, 27 Feb 2018 15:41:41 +0100
Henning Hraban Ramm  wrote:

> Try to compile this with and without the first line:
> 
> 
> \setupbackend[export=yes]
> 
> \starttext
> 
> \input tufte
> \placefigure[right]{}{%
> \externalfigure[hacker][width=.33\textwidth]%
> }%
> \input tufte
> \input tufte
> 
> \stoptext
> 
> 
> With \setupbackend[export=yes] the image is placed "here" and never
> "right" or "left".

I "reported" this a while ago. The answer is that right or left are
meaningless for the export and that the export is built somehow using
the generated PDF.

I requested that this PDF be placed in the export (sub)directory so as
not to "break" the PDF produced on a previous run without export. I can
deal with multiple runs when exporting, although ideally one could
decide to export systematically and the process would produce two PDFs
including the one used in creating the export. If this seems awkward or
clumsy then at least preserving the "production" PDF would be desirable.

I believe that Hans' workflow includes controlling the export run by
viewing the export PDF (in sumatra), so he has been reluctant to change
the behavior.

Alan
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] export breaks float p

2018-02-27 Thread Henning Hraban Ramm
Try to compile this with and without the first line:


\setupbackend[export=yes]

\starttext

\input tufte
\placefigure[right]{}{%
\externalfigure[hacker][width=.33\textwidth]%
}%
\input tufte
\input tufte

\stoptext


With \setupbackend[export=yes] the image is placed "here" and never "right" or 
"left".


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Export bugs

2015-04-24 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

 Here are two export bugs, full test suite attached:

 ==sh_ahmad-qajar-xml-test-highlight.tex===
 \setupexport[cssfile=sh_ahmad-qajar.css]
 \setupbackend[export=yes]
 \definehighlight[emphasis][style=\em]
 \definehighlight[important][style=bold]
 \starttext
 \startparagraph
 Some \emph{emphasis} and \important{important}.

 \emph{Emphasis} and \important{important}.
 \stopparagraph
 \stoptext
 ==sh_ahmad-qajar-xml-test-highlight-div.xhtml==
 div
div class=paragraphSome emphasis and div class=highlight
 importantimportant/div.  div class=break!--empty--/div
 Emphasis   div class=break!--empty--/div
 and div class=highlight importantimportant/div./div
 /div
 ==

 The exported formatting of \emph vanishes in each instance, as well as
 misbehaves in the second case; \important behaves just fine.

 It seems the export doesn't like \em. Can this be fixed? Thanks and

 Best wishes

 Idris

--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Export bugs

2015-04-24 Thread Aditya Mahajan

On Fri, 24 Apr 2015, Idris Samawi Hamid ادريس   سماوي حامد wrote:


 \definehighlight[emphasis][style=\em]
...
 Some \emph{emphasis} and \important{important}.

 The exported formatting of \emph vanishes in each instance.


You define \emphasis but use \emph.

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] Export bugs

2015-04-24 Thread Idris Samawi Hamid ادريس سماوي حامد
On Fri, 24 Apr 2015 20:13:32 -0600, Aditya Mahajan adit...@umich.edu  
wrote:



You define \emphasis but use \emph.


Indeed, that's what weeks on end without proper sleep will get you...  
Sorry for the noise and thanks!


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] export images

2015-03-21 Thread Wolfgang Schuster

 Am 21.03.2015 um 03:09 schrieb Idris Samawi Hamid ادريس سماوي حامد 
 isha...@colostate.edu:
 
 Dear gang,
 
 How do we get images in the export? Here is my sample (also attached):
 
 ==
 \setupbackend[export=yes]
 
 \starttext
 \startalignment [middle]
 \dontleavehmode
 \externalfigure[mill.png]
 \stopalignment
 \stoptext
 ==
 
 div output:
 
 ==
 div
   div class=image id=image-1!--empty--/div
 /div
 ==
 
 So it seems that \externalfigure[mill.png] is tagged in the output but the
 image itself is ignored. What am I missing here? pdf output is correct; I
 copied mill.png from the context sample folder
 
 /tex/texmf-context/tex/context/sample/mill.png

Put mill.png in the images folder which should exist in the export folder.

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
___

Re: [NTG-context] export images

2015-03-21 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 21 Mar 2015 02:55:08 -0600, Wolfgang Schuster  
schuster.wolfg...@gmail.com wrote:




Am 21.03.2015 um 03:09 schrieb Idris Samawi Hamid ادريس سماوي حامد  
isha...@colostate.edu:


Dear gang,

How do we get images in the export? Here is my sample (also attached):

==
\setupbackend[export=yes]

\starttext
\startalignment [middle]
\dontleavehmode
\externalfigure[mill.png]
\stopalignment
\stoptext
==

div output:

==
div
  div class=image id=image-1!--empty--/div
/div
==

So it seems that \externalfigure[mill.png] is tagged in the output but  
the
image itself is ignored. What am I missing here? pdf output is correct;  
I

copied mill.png from the context sample folder

/tex/texmf-context/tex/context/sample/mill.png


Put mill.png in the images folder which should exist in the export  
folder.


Thanks, Wolfgang!

One more question on this: How can I setup the images so that I don't have  
to toggle, e.g.


\externalfigure[basmalah.png][width=3in]
% \externalfigure[basmalah.pdf][width=3in]

Is there a way to tell the export to use the png option, while telling the  
pdf output to use the pdf? This is important when the image is made from a  
font (no needs scalability in the pdf). Thanks again, Wolfgang, and


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] export images

2015-03-21 Thread Wolfgang Schuster

 Am 21.03.2015 um 12:01 schrieb Idris Samawi Hamid ادريس سماوي حامد 
 isha...@colostate.edu:
 
 On Sat, 21 Mar 2015 02:55:08 -0600, Wolfgang Schuster 
 schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com wrote:
 
 
 Am 21.03.2015 um 03:09 schrieb Idris Samawi Hamid ادريس سماوي حامد 
 isha...@colostate.edu:
 
 Dear gang,
 
 How do we get images in the export? Here is my sample (also attached):
 
 ==
 \setupbackend[export=yes]
 
 \starttext
 \startalignment [middle]
 \dontleavehmode
 \externalfigure[mill.png]
 \stopalignment
 \stoptext
 ==
 
 div output:
 
 ==
 div
  div class=image id=image-1!--empty--/div
 /div
 ==
 
 So it seems that \externalfigure[mill.png] is tagged in the output but the
 image itself is ignored. What am I missing here? pdf output is correct; I
 copied mill.png from the context sample folder
 
 /tex/texmf-context/tex/context/sample/mill.png
 
 Put mill.png in the images folder which should exist in the export folder.
 
 Thanks, Wolfgang!
 
 One more question on this: How can I setup the images so that I don't have to 
 toggle, e.g.
 
 \externalfigure[basmalah.png][width=3in]
 % \externalfigure[basmalah.pdf][width=3in]
 
 Is there a way to tell the export to use the png option, while telling the 
 pdf output to use the pdf? This is important when the image is made from a 
 font (no needs scalability in the pdf).

You can try to use the *export mode to use different images for the XML and PDF 
output.


The first method is to drop the file extension and tell context to use the PNG 
files when the export is enabled.

%\setupbackend[export=yes] % uncomment to enable *export mode

\startmode[*export]
  \useexternalfigure[basmalah] [basmalah.png]
\stopmode

% possible but not necessary because ConTeXt prefers images in the PDF format
%
% \startnotmode[*export]
%   \useexternalfigure[basmalah] [basmalah.pdf]
% \stopnotmode

\starttext
\externalfigure[basmalah]
\stoptext


The second method is to specify which image should be used when the export is 
disabled/enabled.

%\setupbackend[export=yes] % uncomment to enable *export mode

\starttext

\doifmodeelse{*export}
  {\externalfigure[basmalah.png]}
  {\externalfigure[basmalah.pdf]}

\stoptext


The third method is to use two folders for the images in PDF and PNG format.

%\setupbackend[export=yes] % uncomment to enable *export mode

\doifmodeelse[*export]
  {\setupexternalfigures[directory=pngimages]}
  {\setupexternalfigures[directory=pdfimages]}

\starttext
\externalfigure[basmalah]
\stoptext


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
___

Re: [NTG-context] export images

2015-03-21 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 21 Mar 2015 06:11:24 -0600, Wolfgang Schuster  
schuster.wolfg...@gmail.com wrote:




Am 21.03.2015 um 12:01 schrieb Idris Samawi Hamid ادريس سماوي حامد  
isha...@colostate.edu:


On Sat, 21 Mar 2015 02:55:08 -0600, Wolfgang Schuster  
schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com  
wrote:




Am 21.03.2015 um 03:09 schrieb Idris Samawi Hamid ادريس سماوي حامد  
isha...@colostate.edu:


Dear gang,

How do we get images in the export? Here is my sample (also attached):

==
\setupbackend[export=yes]

\starttext
\startalignment [middle]
\dontleavehmode
\externalfigure[mill.png]
\stopalignment
\stoptext
==

div output:

==
div
 div class=image id=image-1!--empty--/div
/div
==

So it seems that \externalfigure[mill.png] is tagged in the output  
but the
image itself is ignored. What am I missing here? pdf output is  
correct; I

copied mill.png from the context sample folder

/tex/texmf-context/tex/context/sample/mill.png


Put mill.png in the images folder which should exist in the export  
folder.


Thanks, Wolfgang!

One more question on this: How can I setup the images so that I don't  
have to toggle, e.g.


\externalfigure[basmalah.png][width=3in]
% \externalfigure[basmalah.pdf][width=3in]

Is there a way to tell the export to use the png option, while telling  
the pdf output to use the pdf? This is important when the image is made  
from a font (no needs scalability in the pdf).


You can try to use the *export mode to use different images for the XML  
and PDF output.



The first method is to drop the file extension and tell context to use  
the PNG files when the export is enabled.


%\setupbackend[export=yes] % uncomment to enable *export mode

\startmode[*export]
  \useexternalfigure[basmalah] [basmalah.png]
\stopmode

% possible but not necessary because ConTeXt prefers images in the PDF  
format

%
% \startnotmode[*export]
%   \useexternalfigure[basmalah] [basmalah.pdf]
% \stopnotmode

\starttext
\externalfigure[basmalah]
\stoptext


The second method is to specify which image should be used when the  
export is disabled/enabled.


%\setupbackend[export=yes] % uncomment to enable *export mode

\starttext

\doifmodeelse{*export}
  {\externalfigure[basmalah.png]}
  {\externalfigure[basmalah.pdf]}

\stoptext


The third method is to use two folders for the images in PDF and PNG  
format.


%\setupbackend[export=yes] % uncomment to enable *export mode

\doifmodeelse[*export]
  {\setupexternalfigures[directory=pngimages]}
  {\setupexternalfigures[directory=pdfimages]}

\starttext
\externalfigure[basmalah]
\stoptext


Thank you so much or the wisdom, Wolfgang; very much appreciated!

Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] export images

2015-03-20 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

How do we get images in the export? Here is my sample (also attached):

==
\setupbackend[export=yes]

\starttext
\startalignment [middle]
\dontleavehmode
\externalfigure[mill.png]
\stopalignment
\stoptext
==

div output:

==
div
   div class=image id=image-1!--empty--/div
/div
==

So it seems that \externalfigure[mill.png] is tagged in the output but the
image itself is ignored. What am I missing here? pdf output is correct; I
copied mill.png from the context sample folder

/tex/texmf-context/tex/context/sample/mill.png

(png too big to attach here)

Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523

mill.tex
Description: TeX document
___
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] Export: \setuphemistich distance=

2015-03-19 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 18 Mar 2015 14:34:25 -0600, Wolfgang Schuster  
schuster.wolfg...@gmail.com wrote:



\unexpanded\def\dodohemistiches#1[#2]#3#4%
  {\dontleavehmode
   \begingroup
   \doifassignmentelse{#2}
 {\edef\currenthemistich{#1}%
  \setupcurrenthemistich[#2]}
 {\def\currenthemistich{#2}}%
   \doifelse{\hemistichparameter\c!width}\v!local
 {\scratchwidth\availablehsize}
 {\scratchwidth\hemistichparameter\c!width\relax}%
   \spaceskip\zeropoint\s!plus\plusone\s!fill\relax
+  \dostarttagged\t!division\currenthemistich
   \hbox to \scratchwidth\bgroup
 \scratchwidth.5\dimexpr\scratchwidth-\hemistichparameter\c!distance\relax
 \hbox to \scratchwidth\bgroup
+  \dostarttagged\t!construct\c!lefttext
   \usehemistichstyleandcolor\c!leftstyle\c!leftcolor#3%
+  \dostoptagged
 \egroup
 \hss
 \begingroup
+  \dostarttagged\t!construct\c!separator
   \usehemistichstyleandcolor\c!separatorstyle\c!separatorcolor
   \hemistichparameter\c!separator
+  \dostoptagged
 \endgroup
 \hss
 \hbox to \scratchwidth\bgroup
+  \dostarttagged\t!construct\c!righttext
   \usehemistichstyleandcolor\c!rightstyle\c!rightcolor#4%
+  \dostoptagged
 \egroup
   \egroup
+  \dostoptagged
   \endgroup}


Thank you kindly Wolfgang. This is deeply appreciated I'll study this  
carefully and


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Export: \setuphemistich distance=

2015-03-18 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

In the attached, we export hemistiches:

===
\setupexport[cssfile=sh_ahmad-qajar.css]
\setupbackend[export=yes]

\usemodule[hemistich]

\setuphemistich
  [width=local,
   distance=1\emwidth,
   separator=]

   \setuphemistich
  [leftcolor=,
   separatorcolor=,
   rightcolor=]

   \setuphemistich
  % [separator=\vl\hskip.25em\vl]
  [separator=]

%% We need separate lines in the export, so use \start|stoplines
\definestartstop[VERSES][before={\blank[medium]\startlines  
\noindentation},after={\stoplines \blank[medium]}]

\starttext
\startVERSES
\hemistiches{Become a shunner of your affairs;}{Entrust all affairs to the  
Decision.}
\hemistiches{Thus tight spaces will often widen;}{And open spaces will  
often get tight.}

\stopVERSES
\stoptext
===

In the output we get

===
div
 div class=lines
  div class=linediv class=lineBecome a shunner of your  
affairs;Entrust all affairs to the Decision./divdiv class=lineThus  
tight spaces will often widen;And open spaces will often get  
tight./div/div

 /div
/div
===

Is there anyway to tag and export the distance info:

distance=1\emwidth

so that we can get some space in the xhtml. Note that I do not expect any  
of the alignment that the hemistiches module provides. Just some  
reasonable space.


That said: How do I design a \start|stophemistiches environment that would  
get tagged in the output as such (i.e., div class=hemistiches)?


Thanks in advance and best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Export: \setuphemistich distance=

2015-03-18 Thread Wolfgang Schuster

 Am 18.03.2015 um 15:04 schrieb Idris Samawi Hamid ادريس سماوي حامد 
 isha...@colostate.edu:
 
 Dear gang,
 
 In the attached, we export hemistiches:
 
 ===
 \setupexport[cssfile=sh_ahmad-qajar.css]
 \setupbackend[export=yes]
 
 \usemodule[hemistich]
 
 \setuphemistich
  [width=local,
   distance=1\emwidth,
   separator=]
 
   \setuphemistich
  [leftcolor=,
   separatorcolor=,
   rightcolor=]
 
   \setuphemistich
  % [separator=\vl\hskip.25em\vl]
  [separator=]
 
 %% We need separate lines in the export, so use \start|stoplines
 \definestartstop[VERSES][before={\blank[medium]\startlines 
 \noindentation},after={\stoplines \blank[medium]}]
 \starttext
 \startVERSES
 \hemistiches{Become a shunner of your affairs;}{Entrust all affairs to the 
 Decision.}
 \hemistiches{Thus tight spaces will often widen;}{And open spaces will often 
 get tight.}
 \stopVERSES
 \stoptext
 ===
 
 In the output we get
 
 ===
 div
 div class=lines
  div class=linediv class=lineBecome a shunner of your affairs;Entrust 
 all affairs to the Decision./divdiv class=lineThus tight spaces will 
 often widen;And open spaces will often get tight./div/div
 /div
 /div
 ===
 
 Is there anyway to tag and export the distance info:
 
 distance=1\emwidth
 
 so that we can get some space in the xhtml. Note that I do not expect any of 
 the alignment that the hemistiches module provides. Just some reasonable 
 space.
 
 That said: How do I design a \start|stophemistiches environment that would 
 get tagged in the output as such (i.e., div class=hemistiches)?

You have to add tag commands in the source of the module to get tags in the 
exported text.

The distance between both texts in the output can be set with CSS but first you 
need tags.

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
___

Re: [NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Wolfgang Schuster

 Am 18.03.2015 um 20:45 schrieb Idris Samawi Hamid ادريس سماوي حامد 
 isha...@colostate.edu:
 
 On Wed, 18 Mar 2015 11:51:13 -0600, Wolfgang Schuster 
 schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com wrote:
 
 
 Am 18.03.2015 um 15:04 schrieb Idris Samawi Hamid ادريس سماوي حامد 
 isha...@colostate.edu:
 
 Dear gang,
 
 In the attached, we export hemistiches:
 
 ===
 \setupexport[cssfile=sh_ahmad-qajar.css]
 \setupbackend[export=yes]
 
 \usemodule[hemistich]
 
 \setuphemistich
 [width=local,
  distance=1\emwidth,
  separator=]
 
  \setuphemistich
 [leftcolor=,
  separatorcolor=,
  rightcolor=]
 
  \setuphemistich
 % [separator=\vl\hskip.25em\vl]
 [separator=]
 
 %% We need separate lines in the export, so use \start|stoplines
 \definestartstop[VERSES][before={\blank[medium]\startlines 
 \noindentation},after={\stoplines \blank[medium]}]
 \starttext
 \startVERSES
 \hemistiches{Become a shunner of your affairs;}{Entrust all affairs to the 
 Decision.}
 \hemistiches{Thus tight spaces will often widen;}{And open spaces will 
 often get tight.}
 \stopVERSES
 \stoptext
 ===
 
 In the output we get
 
 ===
 div
 div class=lines
 div class=linediv class=lineBecome a shunner of your 
 affairs;Entrust all affairs to the Decision./divdiv class=lineThus 
 tight spaces will often widen;And open spaces will often get 
 tight./div/div
 /div
 /div
 ===
 
 Is there anyway to tag and export the distance info:
 
 distance=1\emwidth
 
 so that we can get some space in the xhtml. Note that I do not expect any 
 of the alignment that the hemistiches module provides. Just some reasonable 
 space.
 
 That said: How do I design a \start|stophemistiches environment that would 
 get tagged in the output as such (i.e., div class=hemistiches)?
 
 You have to add tag commands in the source of the module to get tags in the 
 exported text.
 
 The distance between both texts in the output can be set with CSS but first 
 you need tags.
 
 Hi Wolfgang,
 
 Can you give an example of adding tag commands to a macro or to a 
 \start-stopcommand? Thanks as always for the clarity and


Something like this should do it for the hemistiches module.

\unexpanded\def\dodohemistiches#1[#2]#3#4%
  {\dontleavehmode
   \begingroup
   \doifassignmentelse{#2}
 {\edef\currenthemistich{#1}%
  \setupcurrenthemistich[#2]}
 {\def\currenthemistich{#2}}%
   \doifelse{\hemistichparameter\c!width}\v!local
 {\scratchwidth\availablehsize}
 {\scratchwidth\hemistichparameter\c!width\relax}%
   \spaceskip\zeropoint\s!plus\plusone\s!fill\relax
+  \dostarttagged\t!division\currenthemistich
   \hbox to \scratchwidth\bgroup
 \scratchwidth.5\dimexpr\scratchwidth-\hemistichparameter\c!distance\relax
 \hbox to \scratchwidth\bgroup
+  \dostarttagged\t!construct\c!lefttext
   \usehemistichstyleandcolor\c!leftstyle\c!leftcolor#3%
+  \dostoptagged
 \egroup
 \hss
 \begingroup
+  \dostarttagged\t!construct\c!separator
   \usehemistichstyleandcolor\c!separatorstyle\c!separatorcolor
   \hemistichparameter\c!separator
+  \dostoptagged
 \endgroup
 \hss
 \hbox to \scratchwidth\bgroup
+  \dostarttagged\t!construct\c!righttext
   \usehemistichstyleandcolor\c!rightstyle\c!rightcolor#4%
+  \dostoptagged
 \egroup
   \egroup
+  \dostoptagged
   \endgroup}

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
___

Re: [NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 18 Mar 2015 11:51:13 -0600, Wolfgang Schuster  
schuster.wolfg...@gmail.com wrote:




Am 18.03.2015 um 15:04 schrieb Idris Samawi Hamid ادريس سماوي حامد  
isha...@colostate.edu:


Dear gang,

In the attached, we export hemistiches:

===
\setupexport[cssfile=sh_ahmad-qajar.css]
\setupbackend[export=yes]

\usemodule[hemistich]

\setuphemistich
 [width=local,
  distance=1\emwidth,
  separator=]

  \setuphemistich
 [leftcolor=,
  separatorcolor=,
  rightcolor=]

  \setuphemistich
 % [separator=\vl\hskip.25em\vl]
 [separator=]

%% We need separate lines in the export, so use \start|stoplines
\definestartstop[VERSES][before={\blank[medium]\startlines  
\noindentation},after={\stoplines \blank[medium]}]

\starttext
\startVERSES
\hemistiches{Become a shunner of your affairs;}{Entrust all affairs to  
the Decision.}
\hemistiches{Thus tight spaces will often widen;}{And open spaces will  
often get tight.}

\stopVERSES
\stoptext
===

In the output we get

===
div
div class=lines
 div class=linediv class=lineBecome a shunner of your  
affairs;Entrust all affairs to the Decision./divdiv  
class=lineThus tight spaces will often widen;And open spaces will  
often get tight./div/div

/div
/div
===

Is there anyway to tag and export the distance info:

distance=1\emwidth

so that we can get some space in the xhtml. Note that I do not expect  
any of the alignment that the hemistiches module provides. Just some  
reasonable space.


That said: How do I design a \start|stophemistiches environment that  
would get tagged in the output as such (i.e., div  
class=hemistiches)?


You have to add tag commands in the source of the module to get tags in  
the exported text.


The distance between both texts in the output can be set with CSS but  
first you need tags.


Hi Wolfgang,

Can you give an example of adding tag commands to a macro or to a  
\start-stopcommand? Thanks as always for the clarity and


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] export hanging

2012-01-26 Thread Matthew Claus
Hi everyone,

This minimal example causes my luatex process to spin consuming 100
percent cpu (latest minimals, freebsd 9):

\setupbackend[export=yes]

\starttext
hello world
\stoptext

To rule out any issue with FreeBSD 9, which is fairly recent, I
compiled my own luatex binary from the svn trunk but still experienced
the problem.

Adding \startparagraph and \stopparagraph also produced the same result,
but with slightly different output after interrupting the compilation
process. 

I've read this list for years but rarely post and would like to thank
everyone who contributes to this amazing project.

Thanks for any suggestions,
Matt


mtx-context | current version: 2012.01.25 14:16


[/usr/home/mclaus/wk/git/personal/tex] context hello.tex

mtx-context | run 1: luatex 
--fmt=/usr/home/mclaus/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en
 
--lua=/usr/home/mclaus/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui
 --backend=pdf ./hello.tex \stoptext
This is LuaTeX, Version beta-0.70.1-2011051912 (rev 4277) 
 \write18 enabled.
(hello.tex

ConTeXt  ver: 2012.01.25 14:16 MKIV  fmt: 2012.1.26  int: english/english

system   cont-new.mkiv loaded
(/usr/home/mclaus/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   hello.top loaded
(hello.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
backend  export  enabling export to xml
{/usr/home/mclaus/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown: library 'loc'
{/usr/home/mclaus/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/home/mclaus/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsfallback modern rm 12pt is loaded
backend  xmp  using file 
'/usr/home/mclaus/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
^C! Interruption.

system   tex  error on line 1 in file hello.tex: Interruption ...

1   
2 \setu
pba[/usr/home/mclaus/wk/git/personal/tex] ckend[export=yes]
3 
4 \starttext
5 hello world
6 \stoptext
7 
8 

inserted text \dostoptagged 
  \finalizeautostructurelevels \global \everytop...
\dostoptext ...youtpage \page \the \everystoptext 
  \global \everystoptext \em...
l.1 \dostoptext
   
\ctxcommand ...\directlua \zerocount {commands.#1}
  
l.6 \stoptext
 
? 
! Emergency stop.

system   tex  error on line 1 in file hello.tex: Emergency stop ...

1   
2 \setupbackend[export=yes]
3 
4 \starttext
5 hello world
6 \stoptext
7 
8 

inserted text \dostoptagged 
  \finalizeautostructurelevels \global \everytop...
\dostoptext ...youtpage \page \the \everystoptext 
  \global \everystoptext \em...
l.1 \dostoptext
   
\ctxcommand ...\directlua \zerocount {commands.#1}
  
l.6 \stoptext
 
!  == Fatal error occurred, no output PDF file produced!




___
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] export hanging

2012-01-26 Thread Hans Hagen

On 26-1-2012 17:35, Matthew Claus wrote:

Hi everyone,

This minimal example causes my luatex process to spin consuming 100
percent cpu (latest minimals, freebsd 9):


fixed in next beta .. just a self referencing macro looping

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
___


[NTG-context] Export itemize

2011-12-18 Thread Andreas Harder
Hi Hans,

many thanks fort the itemize fixes!

I’ve found another problem with the latest beta.

\setupbackend[export=yes]
\starttext
  \startitemize
  \item test
  \stopitemize
\stoptext


Regards
Andreas
___
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] Export (table cell alignment)

2011-12-09 Thread Andreas Harder
Hi Hans,

I’ve stumbled upon another export problem, concerning (natural) tables. The 
first table exports fine but in the second table the first column is ignored. 

\startbuffer[css]
document  { display: block }
table { display: table ; width: 100% }
tablerow  { display: table-row }
tablecell { display: table-cell ; border-style: solid ; padding: 1ex }
tablecell[align=flushright] { display: table-cell ; text-align: right  }
tablecell[align=flushleft]  { display: table-cell ; text-align: left   }
tablecell[align=middle] { display: table-cell ; text-align: center }
\stopbuffer  \savebuffer[css]

\setupbackend[export=yes,xhtml=yes,css={\jobname-css.tmp}]

\starttext

\startbuffer
\bTR\bTD flush right \eTD\bTD ~  \eTD\bTD ~~ \eTD\eTR
\bTR\bTD ~ ~ \eTD\bTD flush left \eTD\bTD ~~ \eTD\eTR
\bTR\bTD ~ ~ \eTD\bTD ~  \eTD\bTD middle \eTD\eTR
\stopbuffer

\bTABLE[width=broad] \getbuffer \eTABLE % OK

\bTABLE[width=broad]
\setupTABLE [c] [1] [align=flushright]
\setupTABLE [c] [2] [align=flushleft]
\setupTABLE [c] [3] [align=middle]
\getbuffer % not OK!
\eTABLE

\stoptext


Best wishes
Andreas
___
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] Export (table cell alignment)

2011-12-09 Thread Hans Hagen

On 9-12-2011 21:58, Andreas Harder wrote:

Hi Hans,

I’ve stumbled upon another export problem, concerning (natural) tables. The 
first table exports fine but in the second table the first column is ignored.

\startbuffer[css]
document  { display: block }
table { display: table ; width: 100% }
tablerow  { display: table-row }
tablecell { display: table-cell ; border-style: solid ; padding: 1ex }
tablecell[align=flushright] { display: table-cell ; text-align: right  }
tablecell[align=flushleft]  { display: table-cell ; text-align: left   }
tablecell[align=middle] { display: table-cell ; text-align: center }
\stopbuffer  \savebuffer[css]

\setupbackend[export=yes,xhtml=yes,css={\jobname-css.tmp}]

\starttext

\startbuffer
\bTR\bTD flush right \eTD\bTD ~  \eTD\bTD ~~ \eTD\eTR
\bTR\bTD ~ ~ \eTD\bTD flush left \eTD\bTD ~~ \eTD\eTR
\bTR\bTD ~ ~ \eTD\bTD ~  \eTD\bTD middle \eTD\eTR
\stopbuffer

\bTABLE[width=broad] \getbuffer \eTABLE % OK

\bTABLE[width=broad]
\setupTABLE [c] [1] [align=flushright]
\setupTABLE [c] [2] [align=flushleft]
\setupTABLE [c] [3] [align=middle]
\getbuffer % not OK!
\eTABLE

\stoptext


tricky but fixed

-
  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] Export (table cell alignment)

2011-12-09 Thread Andreas Harder

On 10.12.2011, at 00:28, Hans Hagen wrote:

 On 9-12-2011 21:58, Andreas Harder wrote:
 Hi Hans,
 
 I’ve stumbled upon another export problem, concerning (natural) tables. The 
 first table exports fine but in the second table the first column is ignored.
 
 \startbuffer[css]
 document  { display: block }
 table { display: table ; width: 100% }
 tablerow  { display: table-row }
 tablecell { display: table-cell ; border-style: solid ; padding: 1ex }
 tablecell[align=flushright] { display: table-cell ; text-align: right  }
 tablecell[align=flushleft]  { display: table-cell ; text-align: left   }
 tablecell[align=middle] { display: table-cell ; text-align: center }
 \stopbuffer  \savebuffer[css]
 
 \setupbackend[export=yes,xhtml=yes,css={\jobname-css.tmp}]
 
 \starttext
 
 \startbuffer
 \bTR\bTD flush right \eTD\bTD ~  \eTD\bTD ~~ \eTD\eTR
 \bTR\bTD ~ ~ \eTD\bTD flush left \eTD\bTD ~~ \eTD\eTR
 \bTR\bTD ~ ~ \eTD\bTD ~  \eTD\bTD middle \eTD\eTR
 \stopbuffer
 
 \bTABLE[width=broad] \getbuffer \eTABLE % OK
 
 \bTABLE[width=broad]
 \setupTABLE [c] [1] [align=flushright]
 \setupTABLE [c] [2] [align=flushleft]
 \setupTABLE [c] [3] [align=middle]
 \getbuffer % not OK!
 \eTABLE
 
 \stoptext
 
 tricky but fixed

Thank you!

Andreas
___
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] Export to epub

2011-11-30 Thread Keith McKay

Hans

Updated Context and ran my test file.  It seems to work as I would 
expect on my computer.  The output from Scite is below.


Thanks again for your help.
Keith McKay


mtx-epub| creating paths in tree test.tree
mtx-epub| copying toc.ncx to test.tree/OPS/toc.ncx
mtx-epub| copying test-styles.css to test.tree/OPS/test-styles.css
mtx-epub| copying test-images.css to test.tree/OPS/test-images.css
mtx-epub| copying test.css to test.tree/OPS/test.css
mtx-epub| copying test.xhtml to test.tree/OPS/test.xhtml
mtx-epub| running command 'inkscape --export-plain-svg=cow.svg 
cow.pdf'


'inkscape' is not recognized as an internal or external command,
operable program or batch file.

mtx-epub| copying cow.svg to test.tree/OPS/cow.svg
mtx-epub| copying hacker.jpg to test.tree/OPS/hacker.jpg
mtx-epub| copying mill.png to test.tree/OPS/mill.png
mtx-epub| creating archive

'zip' is not recognized as an internal or external command,
operable program or batch file.
'zip' is not recognized as an internal or external command,
operable program or batch file.
'zip' is not recognized as an internal or external command,
operable program or batch file.

7-Zip 9.10 beta  Copyright (c) 1999-2009 Igor Pavlov  2009-12-22
Scanning

Creating archive test.epub

Compressing  mimetype

Everything is Ok

7-Zip 9.10 beta  Copyright (c) 1999-2009 Igor Pavlov  2009-12-22

Scanning

Updating archive test.epub

Compressing  META-INF\container.xml

Everything is Ok

7-Zip 9.10 beta  Copyright (c) 1999-2009 Igor Pavlov  2009-12-22

Scanning

Updating archive test.epub

Compressing  OPS\cow.svg
Compressing  OPS\hacker.jpg
Compressing  OPS\mill.png
Compressing  OPS\test-images.css
Compressing  OPS\test-styles.css
Compressing  OPS\test.css
Compressing  OPS\test.opf
Compressing  OPS\test.xhtml
Compressing  OPS\toc.ncx

Everything is Ok

mtx-epub| epub archive made using 7zip (7z): 
test.tree/test.epubExit code: 0


On 30/11/2011 07:05, Keith McKay wrote:

Hans

I'll update and try it tonight.

Thanks for your help

Keith

On 29/11/2011 18:07, Hans Hagen wrote:

On 27-11-2011 23:27, Keith McKay wrote:

Hans
Thanks for the hints.

I downloaded inkscape but but still get the same error message. I'm not
too concerned about that just now. Unfortunately I couldn't find zip so
I played about with 7-Zip and managed to get the script to work. It's
still work in progress since I'm not sure I have the switches right but
I edited the epub generation part of mtx-epub.lua to look like this:

os.execute(format(7z a -tzip -mx0 %s %s,epubfile,mimetype))
os.execute(format(7z a -tzip %s %s,epubfile,META-INF))
os.execute(format(7z a -tzip %s %s,epubfile,OPS))

and using a simple css file I can view the test epub in Adobe Digital
Editions.

I'm used to using Sigil to edit ePubs and Context but luatex is all new
territory for me.


I've added this method too, so when zip is not found, 7z is tried ... 
I didn't test it.


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] Export to epub

2011-11-29 Thread Hans Hagen

On 27-11-2011 23:27, Keith McKay wrote:

Hans
Thanks for the hints.

I downloaded inkscape but but still get the same error message. I'm not
too concerned about that just now. Unfortunately I couldn't find zip so
I played about with 7-Zip and managed to get the script to work. It's
still work in progress since I'm not sure I have the switches right but
I edited the epub generation part of mtx-epub.lua to look like this:

os.execute(format(7z a -tzip -mx0 %s %s,epubfile,mimetype))
os.execute(format(7z a -tzip %s %s,epubfile,META-INF))
os.execute(format(7z a -tzip %s %s,epubfile,OPS))

and using a simple css file I can view the test epub in Adobe Digital
Editions.

I'm used to using Sigil to edit ePubs and Context but luatex is all new
territory for me.


I've added this method too, so when zip is not found, 7z is tried ... I 
didn't test it.


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] Export to epub

2011-11-29 Thread Keith McKay

Hans

I'll update and try it tonight.

Thanks for your help

Keith

On 29/11/2011 18:07, Hans Hagen wrote:

On 27-11-2011 23:27, Keith McKay wrote:

Hans
Thanks for the hints.

I downloaded inkscape but but still get the same error message. I'm not
too concerned about that just now. Unfortunately I couldn't find zip so
I played about with 7-Zip and managed to get the script to work. It's
still work in progress since I'm not sure I have the switches right but
I edited the epub generation part of mtx-epub.lua to look like this:

os.execute(format(7z a -tzip -mx0 %s %s,epubfile,mimetype))
os.execute(format(7z a -tzip %s %s,epubfile,META-INF))
os.execute(format(7z a -tzip %s %s,epubfile,OPS))

and using a simple css file I can view the test epub in Adobe Digital
Editions.

I'm used to using Sigil to edit ePubs and Context but luatex is all new
territory for me.


I've added this method too, so when zip is not found, 7z is tried ... 
I didn't test it.


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
___


[NTG-context] Export to epub

2011-11-27 Thread Keith McKay

Hi

I've been playing about with Export in Context with a view to producing 
ePubs.


When I run the script:

/mtxrun --script epub --make test.specification

/the test.tree is prepared but no epub file.  The output shown below has 
a couple or 'error' messages which are probably due to the way my text 
editor is set up (Scite Version 2.02).  If anyone is using Scite and 
producing ePubs I be grateful for some hints on how to set this up so 
that inkscape and zip works.


%%Script Output

mtx-epub| creating paths in tree test.tree
mtx-epub| copying toc.ncx to test.tree/OPS/toc.ncx
mtx-epub| copying test-styles.css to test.tree/OPS/test-styles.css
mtx-epub| copying test-images.css to test.tree/OPS/test-images.css
mtx-epub| copying test.css to test.tree/OPS/test.css
mtx-epub| copying test.xhtml to test.tree/OPS/test.xhtml
mtx-epub| running command 'inkscape --export-plain-svg=cow.svg 
cow.pdf'


'inkscape' is not recognized as an internal or external command,
operable program or batch file.

mtx-epub| copying cow.svg to test.tree/OPS/cow.svg
mtx-epub| copying hacker.jpg to test.tree/OPS/hacker.jpg
mtx-epub| copying mill.png to test.tree/OPS/mill.png
mtx-epub| creating archive

'zip' is not recognized as an internal or external command,
operable program or batch file.
'zip' is not recognized as an internal or external command,
operable program or batch file.
'zip' is not recognized as an internal or external command,
operable program or batch file.

mtx-epub| epub archive: test.tree/test.epubExit code: 0

%%End Script Output

I'm using Minimals ConTeXt  ver: 2011.09.27 20:05 MKIV  fmt: 2011.11.19  
int: english/english on a Windows 7 machine and the test.tex file is the 
|export-example.tex file renamed from the Minimals distribution|.


Thanks
Keith McKay

___
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] Export to epub

2011-11-27 Thread Hans Hagen

On 27-11-2011 14:03, Keith McKay wrote:

Hi

I've been playing about with Export in Context with a view to producing
ePubs.

When I run the script:

/mtxrun --script epub --make test.specification

/the test.tree is prepared but no epub file. The output shown below has
a couple or 'error' messages which are probably due to the way my text
editor is set up (Scite Version 2.02). If anyone is using Scite and
producing ePubs I be grateful for some hints on how to set this up so
that inkscape and zip works.


This is unrelated to scite (btw, you run a pretty old scite).


%%Script Output

mtx-epub | creating paths in tree test.tree
mtx-epub | copying toc.ncx to test.tree/OPS/toc.ncx
mtx-epub | copying test-styles.css to test.tree/OPS/test-styles.css
mtx-epub | copying test-images.css to test.tree/OPS/test-images.css
mtx-epub | copying test.css to test.tree/OPS/test.css
mtx-epub | copying test.xhtml to test.tree/OPS/test.xhtml
mtx-epub | running command 'inkscape --export-plain-svg=cow.svg cow.pdf'

'inkscape' is not recognized as an internal or external command,
operable program or batch file.
'zip' is not recognized as an internal or external command,
operable program or batch file.


you need to install inkscape (just google for it) as well as zip (often 
part of gnu binutils)


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] Export to epub

2011-11-27 Thread Keith McKay

Hans
Thanks for the hints.

I downloaded inkscape but but still get the same error message.  I'm not 
too concerned about that just now.  Unfortunately I couldn't find zip so 
I played about with 7-Zip and managed to get the script to work.  It's 
still work in progress since I'm not sure I have the switches right but 
I edited the epub generation part of mtx-epub.lua to look like this:


os.execute(format(7z a -tzip -mx0 %s %s,epubfile,mimetype))
os.execute(format(7z a -tzip %s %s,epubfile,META-INF))
os.execute(format(7z a -tzip %s %s,epubfile,OPS))

and using a simple css file I can view the test epub in Adobe Digital 
Editions.


I'm used to using Sigil to edit ePubs and Context but luatex is all new 
territory for me.


Thanks
Keith

On 27/11/2011 14:43, Hans Hagen wrote:

On 27-11-2011 14:03, Keith McKay wrote:

Hi

I've been playing about with Export in Context with a view to producing
ePubs.

When I run the script:

/mtxrun --script epub --make test.specification

/the test.tree is prepared but no epub file. The output shown below has
a couple or 'error' messages which are probably due to the way my text
editor is set up (Scite Version 2.02). If anyone is using Scite and
producing ePubs I be grateful for some hints on how to set this up so
that inkscape and zip works.


This is unrelated to scite (btw, you run a pretty old scite).


%%Script Output

mtx-epub | creating paths in tree test.tree
mtx-epub | copying toc.ncx to test.tree/OPS/toc.ncx
mtx-epub | copying test-styles.css to test.tree/OPS/test-styles.css
mtx-epub | copying test-images.css to test.tree/OPS/test-images.css
mtx-epub | copying test.css to test.tree/OPS/test.css
mtx-epub | copying test.xhtml to test.tree/OPS/test.xhtml
mtx-epub | running command 'inkscape --export-plain-svg=cow.svg cow.pdf'

'inkscape' is not recognized as an internal or external command,
operable program or batch file.
'zip' is not recognized as an internal or external command,
operable program or batch file.


you need to install inkscape (just google for it) as well as zip 
(often part of gnu binutils)


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
___


[NTG-context] Export \thinspace

2011-11-07 Thread Andreas Harder
Hi Hans!

If one uses the HZ-algorithm the behavior of (the exported) \thinspace depends 
on the line break.

\definefontfeature[default][default][expansion=quality] \setupalign[hz]
\setupbackend[export=yes,css=yes,xhtml=yes]

\starttext
  \startbuffer
narrow\,nonbreaking\,space 
  \stopbuffer
  \getbuffer \par \dorecurse{10}{\getbuffer}
\stoptext

exports to:

narrownonbreakingspace
  break/
narrow nonbreaking …

Would it be possible to export \, to #x202F;?


Regards
Andreas
___
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] Export \thinspace

2011-11-07 Thread Hans Hagen

On 7-11-2011 14:19, Andreas Harder wrote:

Hi Hans!

If one uses the HZ-algorithm the behavior of (the exported) \thinspace depends 
on the line break.

\definefontfeature[default][default][expansion=quality] \setupalign[hz]
\setupbackend[export=yes,css=yes,xhtml=yes]

\starttext
   \startbuffer
 narrow\,nonbreaking\,space
   \stopbuffer
   \getbuffer \par \dorecurse{10}{\getbuffer}
\stoptext

exports to:

narrownonbreakingspace
   break/
narrow nonbreaking …


i redid some of that code and will make a new beta later


Would it be possible to export \, to#x202F;?


\unexpanded\def\,{\mathortext{\mskip\thinmuskip}\narrownobreakspace}



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


[NTG-context] export kills hyphen symbol

2011-09-14 Thread Aditya Mahajan
I have an extremely strange bug. If I use Fontin font[1] with simplefonts 
module and enable export and protrusion, the hyphenation symbol is gone! 
Below is a minimal example that illustrates this.

\showframe

\usemodule  [simplefonts][size=10pt]
\setmainfont[Fontin][expansion=quality,protrusion=quality]
\setupbackend [export=yes]
\setuppapersize[A7]
\starttext
\input ward
\stoptext


See the attached pdf for output. On the fifth line the word presence is 
hyphenated but the hyphen symbol is missing!! I am using ConTeXt 
2011.08.26.


[1]: http://www.exljbris.com/fontin.html

Aditya

test.pdf
Description: Adobe PDF document
___
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] Export and itemize

2011-08-25 Thread Aditya Mahajan

Hi,

I sometimes misuse the command key of itemize like this:

\definehighlight[important][style=italic, color=red]

\starttext
\startitemize[command=\important]
 \item {Term}: definition
\stopitemize
\stoptext

However when I try this with

\setupbackend[export=yes]

I get the following error:

! LuaTeX error bad argument #3 to '?' (value expected).

system   tex  error on line 0 in file : LuaTeX error  ...

empty file

* ./export.tex
 \stoptext

Bug or I am just doing this wrong?

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] Export and itemize

2011-08-25 Thread Aditya Mahajan

On Thu, 25 Aug 2011, Aditya Mahajan wrote:


Hi,

I sometimes misuse the command key of itemize like this:

\definehighlight[important][style=italic, color=red]

\starttext
\startitemize[command=\important]
\item {Term}: definition
\stopitemize
\stoptext

However when I try this with

\setupbackend[export=yes]

I get the following error:

! LuaTeX error bad argument #3 to '?' (value expected).

system   tex  error on line 0 in file : LuaTeX error  ...

empty file

* ./export.tex
\stoptext

Bug or I am just doing this wrong?


The same error occurs with

\startitemize
\item \important{Term}: definition
\stopitemize

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] Export and itemize

2011-08-25 Thread Aditya Mahajan

On Thu, 25 Aug 2011, Aditya Mahajan wrote:


I sometimes misuse the command key of itemize like this:

\definehighlight[important][style=italic, color=red]


Sorry...this works. My test file had

\definehighlight[important][style=em, color=red]

which fails even for

\important{A}

For pdf outout, style=em gives the expected result.

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] Export to xhtml and useurl

2011-07-18 Thread Hans Hagen

On 16-7-2011 12:32, Cecil Westerhof wrote:

I need to export my document. For this I use:
 \setupbackend[export=yes,xhtml=yes,css=yes]

I have update my document with start and stop for chapter, section and
subsection, but I have one problem. I have:
\useURL
   [UUID]
   [http://en.wikipedia.org/wiki/Uuid]
   []
   [universally unique identifier]
and when I also have:
\from[UUID]

I get:
system  end file documentatie.tex at line 3398
  
)/home/cecil/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bolditalic.otf{/home/cecil/ConTeXt/tex/texmf/fonts/enc/dvips/lm/lm-mathsy.enc}/home/cecil/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bold.otf/home/cecil/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf/home/cecil/ConTeXt/tex/texmf/fonts/type1/public/lm/lmsy10.pfb
backend  export  finalizing
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/back-exp.lua:328:
bad argument #2 to 'write' (string expected, got nil).


a real small test file is needed

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] Export to xhtml and useurl

2011-07-18 Thread Cecil Westerhof
2011/7/18 Hans Hagen pra...@wxs.nl

 On 16-7-2011 12:32, Cecil Westerhof wrote:

 I need to export my document. For this I use:
 \setupbackend[export=yes,**xhtml=yes,css=yes]

 I have update my document with start and stop for chapter, section and
 subsection, but I have one problem. I have:
 \useURL
   [UUID]
   [http://en.wikipedia.org/wiki/**Uuidhttp://en.wikipedia.org/wiki/Uuid
 ]
   []
   [universally unique identifier]
 and when I also have:
 \from[UUID]

 I get:
 system  end file documentatie.tex at line 3398
  )/home/cecil/ConTeXt/tex/**texmf/fonts/opentype/public/**
 tex-gyre/texgyreheros-**bolditalic.otf{/home/cecil/**
 ConTeXt/tex/texmf/fonts/enc/**dvips/lm/lm-mathsy.enc}/home/**
 cecil/ConTeXt/tex/texmf/fonts/**opentype/public/tex-gyre/**
 texgyreheros-bold.otf/home/**cecil/ConTeXt/tex/texmf/fonts/**
 opentype/public/tex-gyre/**texgyreheros-regular.otf/**
 home/cecil/ConTeXt/tex/texmf/**fonts/type1/public/lm/lmsy10.**pfb
 backend  export  finalizing
 ! LuaTeX error ...TeXt/tex/texmf-context/tex/**
 context/base/back-exp.lua:328:
 bad argument #2 to 'write' (string expected, got nil).


 a real small test file is needed


This works:
\setupinteraction[
  color=blue,
  contrastcolor=red,
  focus=standard,
  state=start,
]

%\setupbackend[export=yes,xhtml=yes,css=yes]

\useURL
  [UUID]
  [http://en.wikipedia.org/wiki/Uuid]
  []
  [universally unique identifier]

\starttext

This new id is generated much like an \from[UUID]. The reason for the
change was that in this way a client number could be generated offline
and/or different databases could be merged without the risk that id's
would clash.

\stoptext

But when the \setupbackend is taken out of comment, it goes wrong.

-- 
Cecil Westerhof
___
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] Export to xhtml and useurl

2011-07-18 Thread Hans Hagen



But when the \setupbackend is taken out of comment, it goes wrong.


no error on my machine so probably ok in next beta

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


[NTG-context] Export to xhtml and useurl

2011-07-16 Thread Cecil Westerhof
I need to export my document. For this I use:
\setupbackend[export=yes,xhtml=yes,css=yes]

I have update my document with start and stop for chapter, section and
subsection, but I have one problem. I have:
\useURL
  [UUID]
  [http://en.wikipedia.org/wiki/Uuid]
  []
  [universally unique identifier]
and when I also have:
\from[UUID]

I get:
system   end file documentatie.tex at line 3398
 
)/home/cecil/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bolditalic.otf{/home/cecil/ConTeXt/tex/texmf/fonts/enc/dvips/lm/lm-mathsy.enc}/home/cecil/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bold.otf/home/cecil/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf/home/cecil/ConTeXt/tex/texmf/fonts/type1/public/lm/lmsy10.pfb
backend  export  finalizing
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/back-exp.lua:328:
bad argument #2 to 'write' (string expected, got nil).

system   tex  error on line 0 in file : LuaTeX error  ...

empty file

* ./documentatie.tex

So properly I need to change something. But what?

-- 
Cecil Westerhof
___
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] Export problems

2011-07-14 Thread Andreas Harder
Hi,

I played a little with the export feature. It's really fun.

So far I've two questions/problems.

1.
\setupbackend[export=yes,xhtml=yes,css=yes]
\starttext
  before \quotation{test \quote{test}} after
\stoptext

exports to: before “test ‘test’ ” after
-^
(space between ’ and ”)
But sometimes there is no space between the closing quote symbol and the 
following word. (I‘m trying to make an example).

2. Is there a possibility to “ignore” content the other way round? Something 
like:
\startmode[export]
  …
\stopmode
Concrete it‘s problematic to export texts with onum- and pnum-features enabled.

Greeting
Andreas
___
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] export: graphic within table (error)

2011-07-05 Thread Hans Hagen

On 4-7-2011 9:26, Christian wrote:


\def\dotagfigure{\iftrialtypesetting\else\ctxcommand{...)}\fi}


fixed



I just discovered that it was not fixed for my Windows-Minimals (ConTeXt  ver: 
2011.06.18 14:13 MKIV).
Adding the above line makes it work. This is fixed with my Ubuntu-Minimals. I'm 
confused. Did I miss something in the update-process?


hm, fixed on my machine, but I cannot upload now as project structure 
code has been rewritten and needs testing first


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] export: graphic within table (error)

2011-07-04 Thread Christian
 
 \def\dotagfigure{\iftrialtypesetting\else\ctxcommand{...)}\fi}
 
 fixed
 

I just discovered that it was not fixed for my Windows-Minimals (ConTeXt  ver: 
2011.06.18 14:13 MKIV).
Adding the above line makes it work. This is fixed with my Ubuntu-Minimals. I'm 
confused. Did I miss something in the update-process?
-run first-setup.bat
Even did run
-mtxrun --generate
-context --generate
to be sure (although I admit that I have no clue what making formats means :D 
)

Example:
\starttext
\externalfigure[cow]
\stoptext

snip---
! Undefined control sequence.

system   tex  error on line 3 in file bla.mkiv: Undefined control 
sequence ...

1 \starttext
2 \externalfigure[cow]
3   \stoptext


\dodoplaceexternalfigure ...][#4][#5]\dotagfigure 
  \naturalvbox attr \imageat...
\doexternalfigure ...value {\??ef \??ef #1}[#3]}}}
  \globallet \currentresourc...
\dotripleemptytwospaced #1#2-#1[{#2}][][]
   
to be read again 
   \stoptext 
l.3 \stoptext

___
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] export: tilde problems

2011-06-20 Thread luigi scarso
On Mon, Jun 20, 2011 at 7:22 AM, Reviczky, Adam adam.revic...@kcl.ac.uk wrote:
 Hi

 The following minimal example gives a broken xml:
 ---
 \setupinteraction[state=start]
 \setupbackend[export=test.xml]
 \starttext
 \goto{projects.dcs.kcl.ac.uk/~reviczky}[url(http://projects.dcs.kcl.ac.uk/~reviczky/)]
 \stoptext
 ---

 XML Parsing Error: not well-formed
 Location: file:///home/reviczky/Downloads/test/test.xml
 Line Number 10, Column 139:
This is ok, but it' low level.
\setupinteraction[state=start]
\setupbackend[export=test.xml]
\starttext
\bgroup
\catcode`\~=11
\goto{projects.dcs.kcl.ac.uk/~reviczky}[url(http://projects.dcs.kcl.ac.uk/~reviczky/)]
\egroup
\stoptext


The right way should be something like
\startcatacodetable table identifier
\goto{projects.dcs.kcl.ac.uk/~reviczky}[url(http://projects.dcs.kcl.ac.uk/~reviczky/)]
\stopcatcodetable

but I'n not able to find the right table identifier




 The tilde sign has a #A0; value in the xml, shouldn't that be a #126;?
yes, I think so.

-- 
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] export: tilde problems

2011-06-20 Thread Hans Hagen

On 20-6-2011 7:22, Reviczky, Adam wrote:


The tilde sign has a #A0; value in the xml, shouldn't that be a #126;?


better is #xA0;


Also the tilde in the destination= and url= properties for link have a 
space(?) instead.


no, it's the utf character

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] export: tilde problems

2011-06-20 Thread Reviczky, Adam
 better is #xA0;

I see, I should've used the \lettertilde instead then, sorry.

 no, it's the utf character

So what would be the correct way to do this then?

---
\setupinteraction[state=start]
\setupbackend[export=test.xml]
\starttext
\bgroup
\catcode`\~=11
\goto{projects.dcs.kcl.ac.uk/\lettertilde 
reviczky}[url(http://projects.dcs.kcl.ac.uk/~reviczky/)]
\egroup
\stoptext
---

The above solution works (as suggested by luigi), but it doesn't look that good.
How can I pass on the tilde in the url without the catcode?

Adam
___
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] export: tilde problems

2011-06-20 Thread Reviczky, Adam
 So what would be the correct way to do this then?

Right, so is this ok, or is there a better way?

---
\setupinteraction[state=start]
\setupbackend[export=test.xml]
\starttext
\goto{projects.dcs.kcl.ac.uk/\lettertilde 
reviczky}[url(http://projects.dcs.kcl.ac.uk/\string~reviczky/)]
\stoptext
---

Adam
___
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] export: tilde problems

2011-06-20 Thread luigi scarso
On Mon, Jun 20, 2011 at 3:47 PM, Reviczky, Adam adam.revic...@kcl.ac.uk wrote:
 So what would be the correct way to do this then?

 Right, so is this ok, or is there a better way?

 ---
 \setupinteraction[state=start]
 \setupbackend[export=test.xml]
 \starttext
 \goto{projects.dcs.kcl.ac.uk/\lettertilde 
 reviczky}[url(http://projects.dcs.kcl.ac.uk/\string~reviczky/)]
 \stoptext
 ---
at least for simmetry...
\setupinteraction[state=start]
\setupbackend[export=test.xml]
\starttext
\goto{projects.dcs.kcl.ac.uk/\string~reviczky}[url(http://projects.dcs.kcl.ac.uk/\string~reviczky/)]
\stoptext

-- 
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] export: tilde problems

2011-06-20 Thread Wolfgang Schuster

Am 20.06.2011 um 15:47 schrieb Reviczky, Adam:

 So what would be the correct way to do this then?
 
 Right, so is this ok, or is there a better way?

\asciimode but you’re no longer able to add comments to your document
and for inline math you need \formula{…}.

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
___


Re: [NTG-context] export: graphic url (special chars?)

2011-06-20 Thread Aditya Mahajan

On Mon, 20 Jun 2011, Reviczky, Adam wrote:


Further, if the url has a % symbol then the name property stops at that, see:
---
\setupbackend[export=test.xml]
\enabledirectives[schemes.cleanmethod=md5]
\def\googlechart
{\begingroup
 \setcatcodetable\vrbcatcodes
 \dodoubleempty\dogooglechart}
\def\dogooglechart[#1][#2]%
 {\endgroup
  \externalfigure[#1][method=png,#2]}


You could try (untested)

\def\googlechart[#1][#2]%
  {\externalfigure[#1][...]%
   \endgroup}

or

\def\dogooglechart[#1][#2]%
  {\useexternalfigure[googlechart][#1]%
   \endgroup
   \externalfigure[googlechart][...]}


\starttext
\googlechart[http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1chdlp=bchp=0.1chl=fsharp|gettext|gettext-base|Others%20%2824%29chma=95,95chtt=Launchpad+Statistics+for+%7Ereviczky+-+ppachts=676767,13.5][factor=max]
\stoptext
---

gives:
name='http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1chdlp=bchp=0.1chl=fsharp|gettext|gettext-base|Others'


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] export: graphic url (special chars?)

2011-06-20 Thread Reviczky, Adam
 You could try (untested)
 
 \def\googlechart[#1][#2]%
{\externalfigure[#1][...]%
 \endgroup}

Thanks, but it has the same result.

 \def\dogooglechart[#1][#2]%
{\useexternalfigure[googlechart][#1]%
 \endgroup
 \externalfigure[googlechart][...]}

That screws up the url in the css (gives a url(googlechart) in the css).

Btw. this is not really about google charts, I just took that as an example.

Adam
___
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] export: tilde problems

2011-06-20 Thread Hans Hagen

On 20-6-2011 3:47, Reviczky, Adam wrote:

So what would be the correct way to do this then?


Right, so is this ok, or is there a better way?

---
\setupinteraction[state=start]
\setupbackend[export=test.xml]
\starttext
\goto{projects.dcs.kcl.ac.uk/\lettertilde 
reviczky}[url(http://projects.dcs..kcl.ac.uk/\string~reviczky/)]
\stoptext


It's a side effect of ~ becoming a utf character for nbsp. I'll change 
the definition to:


\unexpanded\edef~{\utfchar{00A0}}

Then you get this:

\goto{a.c.d/~reviczky}[url(http://a.c.d/~reviczky)]

\goto{\hyphenatedurl{a.c.d/~reviczky}}[url(http://a.c.d/~reviczky)]

Which is what one can expect.

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] export: tilde problems

2011-06-20 Thread Reviczky, Adam
 It's a side effect of ~ becoming a utf character for nbsp. I'll change

Yeah, I completely forgot about that, because it was natural in an url.

 the definition to:
 
 \unexpanded\edef~{\utfchar{00A0}}
 
 Then you get this:
 
 \goto{a.c.d/~reviczky}[url(http://a.c.d/~reviczky)]
 
 \goto{\hyphenatedurl{a.c.d/~reviczky}}[url(http://a.c.d/~reviczky)]
 
 Which is what one can expect.

Cheers.

Adam
___
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] export: graphic within table (error)

2011-06-19 Thread Reviczky, Adam
Hans,

I'm getting this error if I put an image within a table using the export 
backend:
! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad argument 
#3 to 'format' (string expected, got boolean).

Minimal example:
---
\setupbackend[export=yes]
\starttext
% \externalfigure[mill] % -- fine
\bTABLE
% \bTR \bTD test \eTD \eTR % -- fine
\bTR \bTD \externalfigure[mill] \eTD \eTR % -- error
\eTABLE
\stoptext
---

Log attached.

Adam
(test.tex

ConTeXt  ver: 2011.06.18 14:13 MKIV  fmt: 2011.6.19  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   test.tex,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=test.tex]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(test.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
backend  export  enabling export to xml
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file test.tex at line 4
backend  xmp  using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
 /usr/share/texmf/tex/context/sample/mill.png
pagesflushing realpage 1, userpage 1, subpage 1
system   end file test.tex at line 10
 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
backend  export  saving xml data in 'test.export
backend  export  saving css image definitions in 'test-images.css
! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad argument #3 to 'format' (string expected, got boolean).

system   tex  error on line 0 in file : LuaTeX error  ...

empty file

* ./test.tex
  
? 

___
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] export: graphic within table (error)

2011-06-19 Thread Wolfgang Schuster

Am 19.06.2011 um 12:46 schrieb Reviczky, Adam:

 Hans,
 
 I'm getting this error if I put an image within a table using the export 
 backend:
 ! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad 
 argument #3 to 'format' (string expected, got boolean).

You have to wait till Hans uploads a new version, there are more commands
which lacks a trialtypesetting check, e.g.

  \def\dotagfigure{\iftrialtypesetting\else\ctxcommand{...)}\fi}

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
___


Re: [NTG-context] export: graphic within table (error)

2011-06-19 Thread Hans Hagen

On 19-6-2011 1:13, Wolfgang Schuster wrote:


Am 19.06.2011 um 12:46 schrieb Reviczky, Adam:


Hans,

I'm getting this error if I put an image within a table using the export 
backend:
! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad argument 
#3 to 'format' (string expected, got boolean).


You have to wait till Hans uploads a new version, there are more commands
which lacks a trialtypesetting check, e.g.

   \def\dotagfigure{\iftrialtypesetting\else\ctxcommand{...)}\fi}


fixed

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


[NTG-context] export: graphic url (special chars?)

2011-06-19 Thread Reviczky, Adam
Hi

The following example results in a broken xml as well:
--
\setupbackend[export=test.xml]
\starttext
\externalfigure[https://chart.googleapis.com/chart?cht=p3chs=250x100chd=t:60,40chl=Hello\letterbar
 World][method=png,scale=4000]
\stoptext
---

XML Parsing Error: not well-formed
Location: file:///home/reviczky/Downloads/test/test.xml
Line Number 10, Column 74:

The problem is with the name property:
name='https://chart.googleapis.com/chart?cht=p3chs=250x100chd=t:60,40chl=Hello|World'

Further, if the url has a % symbol then the name property stops at that, see:
---
\setupbackend[export=test.xml]
\enabledirectives[schemes.cleanmethod=md5]
\def\googlechart
 {\begingroup
  \setcatcodetable\vrbcatcodes
  \dodoubleempty\dogooglechart}
\def\dogooglechart[#1][#2]%
  {\endgroup
   \externalfigure[#1][method=png,#2]}
\starttext
\googlechart[http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1chdlp=bchp=0.1chl=fsharp|gettext|gettext-base|Others%20%2824%29chma=95,95chtt=Launchpad+Statistics+for+%7Ereviczky+-+ppachts=676767,13.5][factor=max]
\stoptext
---

gives:
name='http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1chdlp=bchp=0.1chl=fsharp|gettext|gettext-base|Others'

Though I guess this is not really a problem.

Adam
___
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] export: tilde problems

2011-06-19 Thread Reviczky, Adam
Hi

The following minimal example gives a broken xml:
---
\setupinteraction[state=start]
\setupbackend[export=test.xml]
\starttext
\goto{projects.dcs.kcl.ac.uk/~reviczky}[url(http://projects.dcs.kcl.ac.uk/~reviczky/)]
\stoptext
---

XML Parsing Error: not well-formed
Location: file:///home/reviczky/Downloads/test/test.xml
Line Number 10, Column 139:

The tilde sign has a #A0; value in the xml, shouldn't that be a #126;?
Also the tilde in the destination= and url= properties for link have a 
space(?) instead.

Adam
___
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] export and pagebreak

2011-01-03 Thread Achim Jander

Am 02.01.2011 15:57, schrieb Hans Hagen:

On 31-12-2010 7:22, Achim Jander wrote:

is it possible to get a pagebreak/ into the exported XML?


I'll send you a small patch to play wit


Hello Hans,
many thanks! I've tested a bit and it seems to work great!
Two little suggestions for improvement:
- would it possible to switch both (spaces and pagebreak) to on? It 
seems that in the Moment only one of them can be enabled.

- would it be possible to include the pagenumber as attribute?

During my tests i found a strange behaviour of the export-function (not 
related to pagebreak-export).
With certain combinations of \setupalign[hz,hanging] and body-font-size 
most of the text gets eaten:


\setupbackend [export=yes]

\enabledirectives[structures.export.pagebreaks]

\definefontfeature[default][default][%
expansion=quality,
protrusion=quality,
]

\setupbodyfont[rm,8.5pt]
%\setupbodyfont[rm,11pt] %does not work either
%\setupbodyfont[rm,12pt] %this is ok

\definebodyfontenvironment[8.5pt][%
text=8.5pt,
script=8.5pt,
scriptscript=6pt,
x=6pt,
xx=5pt,
big=28pt,
small=17.3pt]

\setupalign[hz,hanging] %without everything ok



\starttext
\input tufte
\stoptext

that gives the export:
?xml version='1.0' standalone='yes' ?

!-- input filename   : xml_test_export   --
!-- processing date  : 01/03/11 12:43:00 --
!-- context version  : 2010.12.31 08:59  --
!-- exporter version : 0.10  --

document language='en' file='xml_test_export' date='01/03/11 12:43:01' 
context='2010.12.31 08:59' version='0.10'
--fiflfiglean, synopsize, winnow the wheat from the chaff and separate 
the sheep from the goats.

/document

Either switching the body-font-size to 12pt or disable the \align gives 
the full export as expected. Very confusing.

Greetings,
Achim




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





___
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] export and pagebreak

2011-01-03 Thread Hans Hagen

On 3-1-2011 12:54, Achim Jander wrote:


- would it possible to switch both (spaces and pagebreak) to on? It
seems that in the Moment only one of them can be enabled.


does not make much sense as /S0 equals /pagebreak anyway (the 
default is a space)



- would it be possible to include the pagenumber as attribute?


maybe, keep in mind that we cannot really structure by page as elements 
can span page boundaries



During my tests i found a strange behaviour of the export-function (not
related to pagebreak-export).
With certain combinations of \setupalign[hz,hanging] and body-font-size
most of the text gets eaten:


maybe some attributes gets lost in the hz machinery ... needs checking

(in most cases doing a special export run makes sense, in which case 
some functionality can be turned off)


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] export and pagebreak

2011-01-03 Thread Achim Jander

Am 03.01.2011 15:43, schrieb Hans Hagen:

On 3-1-2011 12:54, Achim Jander wrote:


- would it possible to switch both (spaces and pagebreak) to on? It
seems that in the Moment only one of them can be enabled.


does not make much sense as /S0 equals /pagebreak anyway (the 
default is a space)



Hi Hans,
maybe i got something wrong, but in the given example I have now
filter, lump,pagebreak/skip,
My intent is, to convert the XML eg to  EPUB and use the pagebreak / 
to give the desired Metadata.

So it would be more convenient to have
filter, lump, pagebreak/skip,
but that could be also done in the postprocessing.


- would it be possible to include the pagenumber as attribute?


maybe, keep in mind that we cannot really structure by page as 
elements can span page boundaries


of course, its only a nice-to have, it could get calculated in the 
postprocessing



maybe some attributes gets lost in the hz machinery ... needs checking

(in most cases doing a special export run makes sense, in which case 
some functionality can be turned off)


yes, i see. In my case it is of interest to have the same breaking in 
that run, so i wonder if disabling the hz feature

doesn't change the line-breaking ?

Thanks,
Achim

___
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] export and pagebreak

2011-01-03 Thread Hans Hagen

On 3-1-2011 4:11, Achim Jander wrote:


So it would be more convenient to have
filter, lump, pagebreak/skip,
but that could be also done in the postprocessing.


indeed this belongs to postprocessing (if only because there is no space 
at a pagebreak) .. similar would be: abclinebreak/def where is no 
linebreak is needed it can become a space)



yes, i see. In my case it is of interest to have the same breaking in
that run, so i wonder if disabling the hz feature
doesn't change the line-breaking ?


it does

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] export and pagebreak

2011-01-03 Thread Achim Jander

Hi Hans,
thanks again. At least the first tests of the new version give me the 
expected result. Great!!


Achim

Am 03.01.2011 16:19, schrieb Hans Hagen:

On 3-1-2011 4:11, Achim Jander wrote:


So it would be more convenient to have
filter, lump, pagebreak/skip,
but that could be also done in the postprocessing.


indeed this belongs to postprocessing (if only because there is no 
space at a pagebreak) .. similar would be: abclinebreak/def where is 
no linebreak is needed it can become a space)



yes, i see. In my case it is of interest to have the same breaking in
that run, so i wonder if disabling the hz feature
doesn't change the line-breaking ?


it does

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] export and pagebreak

2011-01-02 Thread Hans Hagen

On 31-12-2010 7:22, Achim Jander wrote:

Hi all,
first I wish a very happy new year to everybody! I think, this will be
my last post for this year, but as i have tasted blood, the next year I
will post a lot of further questions I think :-)
Now I have Christmas holidays and can play the whole day with ConTeXt. I
tested a little the export function. There is one thing I have on my
wishlist:
is it possible to get a pagebreak/ into the exported XML? The
background is that I have often the requirement to include
pagebreak-info in online-productions (for citation reasons) and that
could be a very good starting point. In fact, in the moment at the
position where a pagebreak occurs, the space (if it occurs at a space)
is eaten up. Minimal example:
\setupbackend [export=yes]

\starttext

\startchapter [title=Tufte Example]

\startparagraph
\dorecurse{10}{\input tufte}
\stopparagraph

\stopchapter

\stoptext

At the break of pg 2 to pg 3 you will find lump,skip (without the space)
in the exported file. Having the pagebreaks would be a great thing for me.


I'll send you a small patch to play with.

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


[NTG-context] export and pagebreak

2010-12-31 Thread Achim Jander

Hi all,
first I wish a very happy new year to everybody! I think, this will be 
my last post for this year, but as i have tasted blood, the next year I 
will post a lot of further questions I think :-)
Now I have Christmas holidays and can play the whole day with ConTeXt. I 
tested a little the export function. There is one thing I have on my 
wishlist:
is it possible to get a pagebreak/ into the exported XML? The 
background is that I have often the requirement to include 
pagebreak-info in online-productions (for citation reasons) and that 
could be a very good starting point. In fact, in the moment at the 
position where a pagebreak occurs, the space (if it occurs at a space) 
is eaten up. Minimal example:

\setupbackend [export=yes]

\starttext

\startchapter [title=Tufte Example]

\startparagraph
\dorecurse{10}{\input tufte}
\stopparagraph

\stopchapter

\stoptext

At the break of pg 2 to pg 3 you will find lump,skip (without the space) 
in the exported file. Having the pagebreaks would be a great thing for me.


Greetings
Achim
___
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] Export-backend and Ligatures

2010-11-19 Thread Andreas Harder
Hi all,

can someone confirm the weird result of this example

\setupbackend[export=yes]
\starttext
ff ff fi fi
\stoptext

In the .export-file I see fififi (without space)!

Greeting
Andreas
___
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] Export-backend and Ligatures

2010-11-19 Thread Taco Hoekwater

On 11/19/2010 11:40 AM, Andreas Harder wrote:

Hi all,

can someone confirm the weird result of this example

\setupbackend[export=yes]
\starttext
ff ff fi fi
\stoptext

In the .export-file I see fififi (without space)!


I noticed a similar thing in Paul's article (-- for emdash).

Best wishes,
Taco
___
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] Export-backend and Ligatures

2010-11-19 Thread Jano Kula

On 11/19/2010 11:40 AM, Andreas Harder wrote:

Hi all,

can someone confirm the weird result of this example


Confirmed.

!-- context version  : 2010.10.29 18:15  --
!-- exporter version : 0.10  --


J.


\setupbackend[export=yes]
\starttext
ff ff fi fi
\stoptext

In the .export-file I see fififi (without space)!

Greeting
Andreas
___
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] Export-backend and Ligatures

2010-11-19 Thread Hans Hagen

On 19-11-2010 11:40, Andreas Harder wrote:

Hi all,

can someone confirm the weird result of this example

\setupbackend[export=yes]
\starttext
ff ff fi fi
\stoptext

In the .export-file I see fififi (without space)!


has to do with space injection and copying a node without getting rid of 
components ... fixed in upcoming beta



-
  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] export

2010-09-25 Thread Vyatcheslav Yatskovsky

Hi Patric,

Can you (or someone else in charge) can fix the link?

http://wiki.contextgarden.net/Reference/en/setupbackeds


There is a typo in the link: it should be setupbackends and not
setupbackeds. The command is fine though.


--
Best Regards,
Vyatcheslav Yatskovsky
___
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] export

2010-09-23 Thread Henning Hraban Ramm

Am 2010-09-23 um 01:26 schrieb Vyatcheslav Yatskovsky:

Please tell an (really) unlucky person who didn't visited the  
conference (like me), what \setupbackeds[export=yes] should do at all?


You get the contents of your (well-structured) ConTeXt document as XML  
ouput, extension .export, intended for tagged PDF use (e.g. PDF/A),  
but of course usable for XML transformations.




Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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

2010-09-23 Thread Vyatcheslav Yatskovsky

Please tell an (really) unlucky person who didn't visited the
conference (like me), what \setupbackeds[export=yes] should do at all?


You get the contents of your (well-structured) ConTeXt document as XML
ouput, extension .export, intended for tagged PDF use (e.g. PDF/A),
but of course usable for XML transformations.


Thank you, Hraban! Wikified, please check at
http://wiki.contextgarden.net/Reference/en/setupbackeds

--
Best Regards,
Vyatcheslav Yatskovsky
___
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] export

2010-09-23 Thread Cedric Mauclair
Hi,

There is a typo in the link: it should be setupbackends and not
setupbackeds. The command is fine though.

Regards.

-- Cédric



On Thu, Sep 23, 2010 at 15:00, Vyatcheslav Yatskovsky
yatskov...@gmail.com wrote:
 Please tell an (really) unlucky person who didn't visited the
 conference (like me), what \setupbackeds[export=yes] should do at all?

 You get the contents of your (well-structured) ConTeXt document as XML
 ouput, extension .export, intended for tagged PDF use (e.g. PDF/A),
 but of course usable for XML transformations.

 Thank you, Hraban! Wikified, please check at
 http://wiki.contextgarden.net/Reference/en/setupbackeds

 --
 Best Regards,
 Vyatcheslav Yatskovsky
 ___
 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] export

2010-09-23 Thread Jelle Huisman

On 22/09/10 06:45, Hans Hagen wrote:


\setupbackeds[export=yes]

You will also get a file called jobname.export which represents the
document in xml format. You can postprocess such an export to for
instance html. It's still somewhat experimental but also fun.



Hi Hans,

Thanks! this is a useful step in the direction of ctx2odt support. Are 
you planning to provide (basic) (x)html export too? (I'm thinking about 
this workflow: write in ctx - make pdf/make html - open html in 
OpenOffice - save as odt/doc.)


Jelle
___
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] export

2010-09-23 Thread Hans Hagen

On 23-9-2010 3:55, Jelle Huisman wrote:

On 22/09/10 06:45, Hans Hagen wrote:


\setupbackeds[export=yes]

You will also get a file called jobname.export which represents the
document in xml format. You can postprocess such an export to for
instance html. It's still somewhat experimental but also fun.



Hi Hans,

Thanks! this is a useful step in the direction of ctx2odt support. Are
you planning to provide (basic) (x)html export too? (I'm thinking about
this workflow: write in ctx - make pdf/make html - open html in
OpenOffice - save as odt/doc.)


As xhtml is just xml converted to other tags, I suppose that at some day 
there will be additional converters. I would only come up with one in 
the perspective of a project as I have no need for it.


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] export

2010-09-23 Thread Aditya Mahajan

On Thu, 23 Sep 2010, Hans Hagen wrote:


On 23-9-2010 3:55, Jelle Huisman wrote:

On 22/09/10 06:45, Hans Hagen wrote:


\setupbackeds[export=yes]

You will also get a file called jobname.export which represents the
document in xml format. You can postprocess such an export to for
instance html. It's still somewhat experimental but also fun.



Hi Hans,

Thanks! this is a useful step in the direction of ctx2odt support. Are
you planning to provide (basic) (x)html export too? (I'm thinking about
this workflow: write in ctx - make pdf/make html - open html in
OpenOffice - save as odt/doc.)


As xhtml is just xml converted to other tags, I suppose that at some day 
there will be additional converters. I would only come up with one in the 
perspective of a project as I have no need for it.


There cannot be a universal one-to-one mapping between context generate 
xml and xhtml. For example, in a book, I may want \chapter to map to h1 
while in an article, I may want \section to map to h1. Nonetheless, 
having a specialized xml to xhtml converter should not be too difficult 
(using the verbose XSLT transformations). Targetting html5 is another 
option.


On the otherhand, a ConTeXt module that can read context generated xml 
will be nice... then the context xml can be the target input form for an 
automated tool trying to generate context source.


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] export

2010-09-23 Thread Hans Hagen

On 23-9-2010 5:01, Aditya Mahajan wrote:

On Thu, 23 Sep 2010, Hans Hagen wrote:


On 23-9-2010 3:55, Jelle Huisman wrote:

On 22/09/10 06:45, Hans Hagen wrote:


\setupbackeds[export=yes]

You will also get a file called jobname.export which represents the
document in xml format. You can postprocess such an export to for
instance html. It's still somewhat experimental but also fun.



Hi Hans,

Thanks! this is a useful step in the direction of ctx2odt support. Are
you planning to provide (basic) (x)html export too? (I'm thinking about
this workflow: write in ctx - make pdf/make html - open html in
OpenOffice - save as odt/doc.)


As xhtml is just xml converted to other tags, I suppose that at some
day there will be additional converters. I would only come up with one
in the perspective of a project as I have no need for it.


There cannot be a universal one-to-one mapping between context generate
xml and xhtml. For example, in a book, I may want \chapter to map to
h1 while in an article, I may want \section to map to h1.
Nonetheless, having a specialized xml to xhtml converter should not be
too difficult (using the verbose XSLT transformations). Targetting html5
is another option.


indeed


On the otherhand, a ConTeXt module that can read context generated xml
will be nice... then the context xml can be the target input form for an
automated tool trying to generate context source.


it's on my list to make such a roundtrip style

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] export

2010-09-23 Thread Jelle Huisman

On 23/09/10 11:12, Hans Hagen wrote:


As xhtml is just xml converted to other tags, I suppose that at some
day there will be additional converters. I would only come up with one
in the perspective of a project as I have no need for it.


There cannot be a universal one-to-one mapping between context generate
xml and xhtml. For example, in a book, I may want \chapter to map to
h1 while in an article, I may want \section to map to h1.
Nonetheless, having a specialized xml to xhtml converter should not be
too difficult (using the verbose XSLT transformations). Targetting html5
is another option.


indeed


Sounds like it's time to learn some xslt ;-)

Jelle
___
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] export

2010-09-23 Thread Peter Münster
On Thu, Sep 23 2010, Cedric Mauclair wrote:
 
 There is a typo in the link: it should be setupbackends and not
 setupbackeds. The command is fine though.

All right, yet another redirect:
http://wiki.contextgarden.net/Reference/en/setupbackends ;))

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

2010-09-23 Thread Steffen Wolfrum

Am 23.09.2010 um 17:12 schrieb Hans Hagen:

 On 23-9-2010 5:01, Aditya Mahajan wrote:
 On Thu, 23 Sep 2010, Hans Hagen wrote:
 
 On 23-9-2010 3:55, Jelle Huisman wrote:
 On 22/09/10 06:45, Hans Hagen wrote:
 
 \setupbackeds[export=yes]
 
 You will also get a file called jobname.export which represents the
 document in xml format. You can postprocess such an export to for
 instance html. It's still somewhat experimental but also fun.
 
 
 Hi Hans,
 
 Thanks! this is a useful step in the direction of ctx2odt support. Are
 you planning to provide (basic) (x)html export too? (I'm thinking about
 this workflow: write in ctx - make pdf/make html - open html in
 OpenOffice - save as odt/doc.)
 
 As xhtml is just xml converted to other tags, I suppose that at some
 day there will be additional converters. I would only come up with one
 in the perspective of a project as I have no need for it.
 
 There cannot be a universal one-to-one mapping between context generate
 xml and xhtml. For example, in a book, I may want \chapter to map to
 h1 while in an article, I may want \section to map to h1.
 Nonetheless, having a specialized xml to xhtml converter should not be
 too difficult (using the verbose XSLT transformations). Targetting html5
 is another option.
 
 indeed
 
 On the otherhand, a ConTeXt module that can read context generated xml
 will be nice... then the context xml can be the target input form for an
 automated tool trying to generate context source.
 
 it's on my list to make such a roundtrip style



=:o)


st.
___
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] export

2010-09-22 Thread Hans Hagen

Hi,

For those who were not at the ctx conference (where it was demonstrated) 
.. there is a new feature. When you say:


\setupbackeds[export=yes]

You will also get a file called jobname.export which represents the 
document in xml format. You can postprocess such an export to for 
instance html. It's still somewhat experimental but also fun.


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] export

2010-09-22 Thread Yury G. Kudryashov
Otared Kavian wrote:

 Hi Hans,
 
 Thanks for giving the information to those unlucky people who were not at
 the ConTeXt conference: Since I am interested in the feature you mention,
 I just tried with the latest beta you uploaded today, but the command
 \setupbackeds[export=yes] is unknown. Maybe there is a typo in what you
 said: could you please give a hint?
Try \setupbackends.
 
 Many thanks in advance: OK


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

2010-09-22 Thread Otared Kavian

On 22 sept. 2010, at 14:06, Yury G. Kudryashov wrote:

 […]
 Try \setupbackends.

Thanks Yuri for your attention, but this suggestion doesn't work: I get 

  error on line 3 in file test-export.tex: Undefined control sequence ...
   \setupbackends[export=yes]

Best regards: OK
___
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] export

2010-09-22 Thread Hans Hagen

On 22-9-2010 2:18, Otared Kavian wrote:


On 22 sept. 2010, at 14:06, Yury G. Kudryashov wrote:


[…]

Try \setupbackends.


Thanks Yuri for your attention, but this suggestion doesn't work: I get

error on line 3 in file test-export.tex: Undefined control sequence ...
 \setupbackends[export=yes]


there is only one backend ...

\setupbackend
  [export=yes]

and this command is only available in post tex live 2010 versions (with 
export only being supported with versions uploaded during and after the 
conference)


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] export

2010-09-22 Thread Alan BRASLAU
Minimal example (given at the workshop):

\setupbackend [export=yes]

\starttext

\startchapter [title=First chapter]

\startparagraph
\input ward
\stopparagraph

\stopchapter

\stoptext


On Wednesday 22 September 2010 14:18:18 Otared Kavian wrote:
 On 22 sept. 2010, at 14:06, Yury G. Kudryashov wrote:
  […]
  
  Try \setupbackends.
 
 Thanks Yuri for your attention, but this suggestion doesn't work: I get
 
   error on line 3 in file test-export.tex: Undefined control sequence ...
   
\setupbackends[export=yes]
 
 Best regards: OK
 ___
  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
 ___
 

-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr

http://www-dna2009.cea.fr/

 .''`.
: :'  :
`. `'`
  `-
___
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] export

2010-09-22 Thread Andreas Harder

Am 22.09.2010 um 14:25 schrieb Alan BRASLAU:

 \setupbackend [export=yes]
 
 \starttext
 
 \startchapter [title=First chapter]
 
 \startparagraph
   \input ward
 \stopparagraph
 
 \stopchapter
 
 \stoptext

Results in Undefined control sequence. \setupbackend (newest beta; OS X) …

Greeting
Andreas
___
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] export

2010-09-22 Thread Alan BRASLAU
On Wednesday 22 September 2010 14:29:08 Andreas Harder wrote:
 Am 22.09.2010 um 14:25 schrieb Alan BRASLAU:
  \setupbackend [export=yes]
  
  \starttext
  
  \startchapter [title=First chapter]
  
  \startparagraph
  
  \input ward
  
  \stopparagraph
  
  \stopchapter
  
  \stoptext
 
 Results in Undefined control sequence. \setupbackend (newest beta; OS X)
 …
 
 Greeting
   Andreas

Works here - latest beta - linux x86_64
(see attached)

Alan


xml.export
Description: XML document
\setupbackend [export=yes]

\starttext

\startchapter [title=First chapter]

\startparagraph
	\input ward
\stopparagraph

\stopchapter

\startchapter [title=Second chapter]

\startparagraph
	\input tufte
\stopparagraph

\stopchapter

\stoptext
___
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] export

2010-09-22 Thread Henning Hraban Ramm

Am 2010-09-22 um 14:29 schrieb Andreas Harder:

Am 22.09.2010 um 14:25 schrieb Alan BRASLAU:
Results in Undefined control sequence. \setupbackend (newest beta;  
OS X) …



Works for me on OSX-Intel.

You didn't try texexec (MkII), did you?

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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

2010-09-22 Thread Vyatcheslav Yatskovsky

Hi,

Please tell an (really) unlucky person who didn't visited the conference 
(like me), what \setupbackeds[export=yes] should do at all?


:)

Regards,
Vyatcheslav
___
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
___


  1   2   >