[NTG-context] Request to help categorizing commands on wiki

2012-03-20 Thread Mojca Miklavec
Dear ConTeXters,

Jan Heinen did some heaving wiki editing in order to achieve better
categorization of different topics on the wiki.

One particular part where your help would be welcome is a big number
of different commands listed here:
http://wiki.contextgarden.net/Category:Commands
It would be great to assign one or more categories to each command.

Sure, many commands are (still) missing, but once commands are
categorized, it will be a lot easier to concentrate on - say -
describing just interaction/color/font commands at once, and also to
keep adding missing commands. The list of all commands together will
be assembled later (once commands are categorized).

All uncategorized commands are on top category Commands. Please
replace that one with [[Category:Command/Some Category|commandname]]
(or more than that) and in case that you need to create a new
category, please add at least [[Category:Commands|Some Category]] to
that Category page.

Thanks a lot for help,
Mojca

PS: Text to the right of "|" in Category:*|  is used for sorting (else
all commands would end up under "C" for "Command/Whatevercommand").
___
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] Referencing a Document within the same Project

2012-03-20 Thread Malte Stien
Hi all,

I am designing a document suite consisting of two dozen or so documents that 
are all interrelated. I was wondering whether there is a way that I can define 
a reference point for an entire document within a project and then refer to 
that from another document, like

  \document{global-definitions-document} % This is fictitious syntax

...in one document and then refer to that in another document:

  For global definitions, please see \about{global-definitions-document}.

...or something along those lines.

Regards,
Malte.

___
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] PDF Digital Signatures

2012-03-20 Thread Martin Schröder
2012/3/20 Mojca Miklavec :
> If qpdf exists it is probably not a legal issue to do password protection 
> then.

Of course.

> But from the same perspective ... one first needs PDF to be (almost)
> finished before being able to sign it. One needs to read as-good-as
> the whole PDF, read the certificate from somewhere on the disk and
> then sign with that certificate. If certificate is password-protected,
> one also needs to provide the password somehow.

You can technically sign only parts (IIRC streams) of a PDF.

> government. On the other hand they could just as well have used some
> standard tool and it would work out of the box. So much about signing
> ...

gpg is free. So is jpdfsign.
See also http://wiki.cacert.org/PdfSigning

Best
   Martin
___
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] Itemize without page break

2012-03-20 Thread Aditya Mahajan

On Tue, 20 Mar 2012, Kip Warner wrote:


On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:

You can’t have a assignment in both parameters because this would lead
to the same problem as before,
combine both settings in one argument and it works.


I must not be doing it right because the item numbers are gone now and
replaced with hyphens:

   \startitemize[R,2*broad,before=\startlinecorrection,after=
\stoplinecorrection,start=11]
   \setupitemize[left=(, right=)]
   \item foo.
   \item foo.
   \stopitemize


You are back to square one :)

You cannot mix options (R, 2*broad, anything without an = sign) with 
assignments (before=..., after=..., anything with an = sign). The format 
of \startitemize is


\startitemize[options][assignments]

or

\startitemize[options]

or

\startitemize[assignments]

Anything else will leave to undersirable behaviour (or segfaults :) ) As I 
had said in one of my earlier emails, this is the case for ALL context 
macros that take both options and assignments.


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] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:
> You can’t have a assignment in both parameters because this would lead
> to the same problem as before,
> combine both settings in one argument and it works. 

I must not be doing it right because the item numbers are gone now and
replaced with hyphens:

\startitemize[R,2*broad,before=\startlinecorrection,after=
\stoplinecorrection,start=11]
\setupitemize[left=(, right=)]
\item foo.
\item foo.
\stopitemize

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] [luatex] Itemize without page break

2012-03-20 Thread luigi scarso
On Tue, Mar 20, 2012 at 10:24 PM, Kip Warner  wrote:
> On Tue, 2012-03-20 at 21:39 +0100, luigi scarso wrote:
>> When  TeX says
>> ! TeX capacity exceeded, sorry [token memory size=<...>]
>> it is its graceful way to exit from  an irreversible situation.
>> It can be caused by luatex or ConTeXt mkiv
>> but it's *not* a segmentation fault, as you said early:
>> >Actually highly probably, since the seg fault is raised in luatex and
>> >not context. Even if context is feeding it malformed input, luatex
>> >should not ever crash.
>> Only luatex can do a segmentation fault -- of course due a tex macro
>> /lua function possibly called  from ConTeXt.
>> What happen for me (linux ubuntu 10lts 32bit)  and Hans (windows (7
>> professional 64bit ?) )  is a "TeX capacity exceeded," , not a seg.
>> fault, and sometime happen if one calls a macro in a wrong way.
>> So, do you have a segmentation fault or a TeX capacity exceeded on you
>> linux 64bit box ?
>
> As I said earlier, I get a segmentation fault if I leave it to run, but
> I always have to kill it before it takes down the entire operating
> system with it (apparently this is normal). I don't get the TeX capacity
> exceeded error message, as you saw from my earlier console output.
Ok, this is not normal and I suspect that it's linux 64bit issue --
can be bug of luatex then.
Can anyone confirm that on  linux 64bit the following
\starttext

\startitemize[before=\startlinecorrection,after=\stoplinecorrection][]
\item foo
\stopitemize
\stoptext
gives a segmentation fault ?
-- 
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
___

[NTG-context] getting xml instead of context

2012-03-20 Thread Meer, H. van der
In the processing of incoming xml-data this is typeset as is, not as processed 
text.
Thus for example: with \xmlflush{#1} the incoming data: 
"its_content" is not typeset as: "its_content", but as: 
its_content.
Substitution of \xmlcontext{#1}{.} for \xmlflush{#1} makes everything go away.

Allthough my program is a bit too long to present here, a minimal example is 
the application of \xmlstripped{#1}{.} instead of \xmlflush{#1}; it has the 
same result.
The output below shows how things looks and clarifies the issue; see the second 
answer of the multiple choice.

How to process these data to neatly typeset material?

Hans van der Meer




xm-test-exam.pdf
Description: xm-test-exam.pdf
___
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] [luatex] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 21:44 +0100, Hans Hagen wrote:
> sure, but mu experience is that browsers of email clients are way more 
> demanding than tex when it comes to memory usage

I've never had either take down the entire operating system. There is a
different from intended memory usage and unintended anyways. In this
case, we are talking about the latter.

> for tex it depends how much memory is permitted (there are some maxima 
> that can be set in configuration files) ... i must say that I never run 
> out of memory, although with doing extreme torture tests with many fonts 
> one can come pretty close

Well, you saw what happened with my sample minimal.

Anyways, if this is normal behaviour, that's fine, I just wanted to
bring it to the list's attention. That's all.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] PDF Digital Signatures

2012-03-20 Thread Michael Hallgren
Le mardi 20 mars 2012 à 20:23 +0100, Mojca Miklavec a écrit :
> On Mon, Mar 19, 2012 at 23:12, Hans Hagen wrote:
> > On 19-3-2012 22:08, Mojca Miklavec wrote:
> >>
> >> Out of curiosity: is inability to create password-protected PDF files
> >> with pdfTeX/LuaTeX due to legal issues or due to nobody caring enough
> >> to implement it?
> >
> > it's not worth the trouble. Afaik it's a second pass issue and would
> > complicate the code much.
> >
> > Just use qpdf to do it ... pretty fast.
> 
> If qpdf exists it is probably not a legal issue to do password protection 
> then.

You mean strong encryption? Some countries, regimes I should rather say,
are not in favour of such... Sad fact, IMHO.

Signing a document digitally, should never be much of an issue, in your
mentioned legal context, though. Well, needs to be honoured by the
receiving party... but... hey, make regimes modern ! :)

Cheers,
mh

> 
> But from the same perspective ... one first needs PDF to be (almost)
> finished before being able to sign it. One needs to read as-good-as
> the whole PDF, read the certificate from somewhere on the disk and
> then sign with that certificate. If certificate is password-protected,
> one also needs to provide the password somehow.
> 
> The usecase would be sending documents to officials (proving that the
> document really comes from the person claiming the ownership). But it
> is also true that in principle one can sign emails with PDF
> attachments. It is not the same, but it comes close. Another usecase
> could be, say, sending invoices to clients.
> 
> 
> We have a company that sells crappy software for signing PDFs and XML
> for over 1000 EUR per version per browser per OS (each new version for
> each supported browser on a single OS costs that much; and they have a
> lot of clients). And of course it never works since of course it only
> supports Mac OS X 10.6 (10.7 still doesn't work), on Windows only IE 7
> or Firefox 3.6 (latest Firefox won't work and it is awfully difficult
> to find the old versions), on Linux probably a similar story (never
> tried). And that is the only possible way to send any document to the
> government. On the other hand they could just as well have used some
> standard tool and it would work out of the box. So much about signing
> ...
> 
> Mojca
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___



signature.asc
Description: This is a digitally signed message part
___
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] [luatex] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 21:39 +0100, luigi scarso wrote:
> When  TeX says
> ! TeX capacity exceeded, sorry [token memory size=<...>]
> it is its graceful way to exit from  an irreversible situation.
> It can be caused by luatex or ConTeXt mkiv
> but it's *not* a segmentation fault, as you said early:
> >Actually highly probably, since the seg fault is raised in luatex and
> >not context. Even if context is feeding it malformed input, luatex
> >should not ever crash.
> Only luatex can do a segmentation fault -- of course due a tex macro
> /lua function possibly called  from ConTeXt.
> What happen for me (linux ubuntu 10lts 32bit)  and Hans (windows (7
> professional 64bit ?) )  is a "TeX capacity exceeded," , not a seg.
> fault, and sometime happen if one calls a macro in a wrong way.
> So, do you have a segmentation fault or a TeX capacity exceeded on you
> linux 64bit box ?

As I said earlier, I get a segmentation fault if I leave it to run, but
I always have to kill it before it takes down the entire operating
system with it (apparently this is normal). I don't get the TeX capacity
exceeded error message, as you saw from my earlier console output.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] [luatex] Itemize without page break

2012-03-20 Thread Hans Hagen

On 20-3-2012 20:59, Kip Warner wrote:

On Tue, 2012-03-20 at 20:26 +0100, Hans Hagen wrote:

well you can try what happens if you run stock lua:

local t = { }
while true do
  t[#t+1] = "just a bogus string: " .. (#t+1)
end

at some point your system will run out of (virtual) memory or lua will
run out of whatever its limits are


Of course. And the same could be done in C, C++, or really any language
that supports dynamic memory allocation. We just hope that programs that
are built from them won't do that.


sure, but mu experience is that browsers of email clients are way more 
demanding than tex when it comes to memory usage


for tex it depends how much memory is permitted (there are some maxima 
that can be set in configuration files) ... i must say that I never run 
out of memory, although with doing extreme torture tests with many fonts 
one can come pretty close


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] [luatex] Itemize without page break

2012-03-20 Thread luigi scarso
On Tue, Mar 20, 2012 at 8:59 PM, Kip Warner  wrote:
> On Tue, 2012-03-20 at 20:26 +0100, Hans Hagen wrote:
>> well you can try what happens if you run stock lua:
>>
>> local t = { }
>> while true do
>>      t[#t+1] = "just a bogus string: " .. (#t+1)
>> end
>>
>> at some point your system will run out of (virtual) memory or lua will
>> run out of whatever its limits are
>
> Of course. And the same could be done in C, C++, or really any language
> that supports dynamic memory allocation. We just hope that programs that
> are built from them won't do that.
When  TeX says
! TeX capacity exceeded, sorry [token memory size=<...>]
it is its graceful way to exit from  an irreversible situation.
It can be caused by luatex or ConTeXt mkiv
but it's *not* a segmentation fault, as you said early:
>Actually highly probably, since the seg fault is raised in luatex and
>not context. Even if context is feeding it malformed input, luatex
>should not ever crash.
Only luatex can do a segmentation fault -- of course due a tex macro
/lua function possibly called  from ConTeXt.
What happen for me (linux ubuntu 10lts 32bit)  and Hans (windows (7
professional 64bit ?) )  is a "TeX capacity exceeded," , not a seg.
fault, and sometime happen if one calls a macro in a wrong way.
So, do you have a segmentation fault or a TeX capacity exceeded on you
linux 64bit box ?

-- 
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] [luatex] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 20:26 +0100, Hans Hagen wrote:
> well you can try what happens if you run stock lua:
> 
> local t = { }
> while true do
>  t[#t+1] = "just a bogus string: " .. (#t+1)
> end
> 
> at some point your system will run out of (virtual) memory or lua will 
> run out of whatever its limits are

Of course. And the same could be done in C, C++, or really any language
that supports dynamic memory allocation. We just hope that programs that
are built from them won't do that.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] [***SPAM***] Re: howto define MyRule ?

2012-03-20 Thread Steffen Wolfrum

Am 20.03.2012 um 19:49 schrieb Hans Hagen:

> On 20-3-2012 18:59, Steffen Wolfrum wrote:
> 
>> But nevertheless, isn't that already implied if I use "rulecommand=\MyRule"?
>> To me this already means exactly this: "tell context it should use my rule".
> 
> Then we need double checking and I'm pretty sure that you would run into 
> expansion mess again and ask for another hack.
> 
> Hans

Convinced ;o)

Steffen
___
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] PDF Digital Signatures

2012-03-20 Thread Hans Hagen

On 20-3-2012 20:23, Mojca Miklavec wrote:

On Mon, Mar 19, 2012 at 23:12, Hans Hagen wrote:

On 19-3-2012 22:08, Mojca Miklavec wrote:


Out of curiosity: is inability to create password-protected PDF files
with pdfTeX/LuaTeX due to legal issues or due to nobody caring enough
to implement it?


it's not worth the trouble. Afaik it's a second pass issue and would
complicate the code much.

Just use qpdf to do it ... pretty fast.


If qpdf exists it is probably not a legal issue to do password protection then.


Why?

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] [luatex] Itemize without page break

2012-03-20 Thread Hans Hagen

On 20-3-2012 19:59, Kip Warner wrote:

On Tue, 2012-03-20 at 16:57 +0200, Khaled Hosny wrote:

Older TeX engines had hard memory limit, so in case of such
"syntactical" errors the engine would consume all its allocated memory
and die (with a misleading error message), LuaTeX dynamically allocates
memory (for good reasons) so it won't stop before consuming all your
available memory, its the responsibility of an operating system to
prevent such a faulty application from taking the whole system down.


I'd be very interested in seeing the operating system memory manager's
algorithm that could do such a remarkable thing.


well you can try what happens if you run stock lua:

local t = { }
while true do
t[#t+1] = "just a bogus string: " .. (#t+1)
end

at some point your system will run out of (virtual) memory or lua will 
run out of whatever its limits are


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] PDF Digital Signatures

2012-03-20 Thread Mojca Miklavec
On Mon, Mar 19, 2012 at 23:12, Hans Hagen wrote:
> On 19-3-2012 22:08, Mojca Miklavec wrote:
>>
>> Out of curiosity: is inability to create password-protected PDF files
>> with pdfTeX/LuaTeX due to legal issues or due to nobody caring enough
>> to implement it?
>
> it's not worth the trouble. Afaik it's a second pass issue and would
> complicate the code much.
>
> Just use qpdf to do it ... pretty fast.

If qpdf exists it is probably not a legal issue to do password protection then.

But from the same perspective ... one first needs PDF to be (almost)
finished before being able to sign it. One needs to read as-good-as
the whole PDF, read the certificate from somewhere on the disk and
then sign with that certificate. If certificate is password-protected,
one also needs to provide the password somehow.

The usecase would be sending documents to officials (proving that the
document really comes from the person claiming the ownership). But it
is also true that in principle one can sign emails with PDF
attachments. It is not the same, but it comes close. Another usecase
could be, say, sending invoices to clients.


We have a company that sells crappy software for signing PDFs and XML
for over 1000 EUR per version per browser per OS (each new version for
each supported browser on a single OS costs that much; and they have a
lot of clients). And of course it never works since of course it only
supports Mac OS X 10.6 (10.7 still doesn't work), on Windows only IE 7
or Firefox 3.6 (latest Firefox won't work and it is awfully difficult
to find the old versions), on Linux probably a similar story (never
tried). And that is the only possible way to send any document to the
government. On the other hand they could just as well have used some
standard tool and it would work out of the box. So much about signing
...

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] xmlinclude

2012-03-20 Thread Meer, H. van der
Can someone tell me what \xmlinclude is supposed to do? I have experimented a 
lot but didn't come further to an understanding.

I have called it through:
\startxmlsetups xam:include
\xmlinclude{#1}{include}{file}
\stopxmlsetups
from a node include in: 


and indeed \enabletrackers[lxml.loading]gives me in the log: 
xml > tex > loading file './xm-test-problem.xml' as 'problem'

But then nothing seemed to have happened. The xml-node in that file is never 
seen. I checked that by listing all these nodes in the log 
(\xmlcommand{\xmldocument}..)
The  and others are listed, but not the contents of the file I thought 
I had included.

Clearly I have some misunderstanding here as to what the manual implicates. It 
states:
"\xmlinclude{node}{lpath}{attribute} includes the file specified by attribute 
of the element located by lpath at node node."
I take this 'node' ast the node from where the lpath is rooted, but I might be 
mistaken.

And most of all: what happens to the included file and how can I approach/use 
its contents?

I would appreciate an enlightment. Thanks in advance.

Hans van der Meer



___
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] [luatex] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 16:57 +0200, Khaled Hosny wrote:
> Older TeX engines had hard memory limit, so in case of such
> "syntactical" errors the engine would consume all its allocated memory
> and die (with a misleading error message), LuaTeX dynamically allocates
> memory (for good reasons) so it won't stop before consuming all your
> available memory, its the responsibility of an operating system to
> prevent such a faulty application from taking the whole system down.

I'd be very interested in seeing the operating system memory manager's
algorithm that could do such a remarkable thing.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 09:17 +0100, Hans Hagen wrote:
> which is not really a crash of my operating system; there is not much
> I 
> can do about this issue I fear. 

Totally up to you. I just wanted to bring it to your attention.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] [***SPAM***] Re: howto define MyRule ?

2012-03-20 Thread Hans Hagen

On 20-3-2012 18:59, Steffen Wolfrum wrote:


But nevertheless, isn't that already implied if I use "rulecommand=\MyRule"?
To me this already means exactly this: "tell context it should use my rule".


Then we need double checking and I'm pretty sure that you would run into 
expansion mess again and ask for another hack.


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] [***SPAM***] Re: howto define MyRule ?

2012-03-20 Thread Steffen Wolfrum

Am 20.03.2012 um 17:45 schrieb Wolfgang Schuster:

> 
> Am 20.03.2012 um 17:35 schrieb Steffen Wolfrum:
> 
>> 
>> Am 20.03.2012 um 14:42 schrieb Wolfgang Schuster:
>> 
>>> You have to enable you own command with “rule=command” but then you have to 
>>> set rulecolor and rule thickness in your own definition (best us \blackrule 
>>> for this).
>> 
>> 
>> rule=command,rulecommand=\MyRule
>> 
>> instead of
>> 
>> rulecommand=\MyRule
>> 
>> hm ... this logic I didn't not yet internalize.
> 
> You have to tell context it should use your own rule instead of the default 
> rule, it’s like “alternative=command” for other setups.


Sure, I know what you mean.
But nevertheless, isn't that already implied if I use "rulecommand=\MyRule"?
To me this already means exactly this: "tell context it should use my rule".

Steffen
___
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] [OT] WinEDT with Unicode support

2012-03-20 Thread luigi scarso
On Tue, Mar 20, 2012 at 6:16 PM, Mojca Miklavec
 wrote:
> Hello,
>
> WinEDT finally has Unicode support and the screenshot shows ConTeXt in
> typesetting menu as well (no idea if that runs texexec or context).
Maybe "T" means pdftex engine, "L"  luatex.

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


[NTG-context] [OT] WinEDT with Unicode support

2012-03-20 Thread Mojca Miklavec
Hello,

WinEDT finally has Unicode support and the screenshot shows ConTeXt in
typesetting menu as well (no idea if that runs texexec or context).
http://winedt.com

It has been my first TeX editor and I liked it a lot because of
newbie-friendliness (lots of tex characters in menu, so no need to
remember all commands, no need to deal with command line). I'm not
sure how well it is adapted for ConTeXt users and it is windows only,
but it has always been my nearly favourite editor. It supports both
TeX Live 2011 and latest MikTeX. (Maybe I could ask Alex for
additional support for ConTeXt distribution :)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] howto define MyRule ?

2012-03-20 Thread Wolfgang Schuster

Am 20.03.2012 um 17:35 schrieb Steffen Wolfrum:

> 
> Am 20.03.2012 um 14:42 schrieb Wolfgang Schuster:
> 
>> You have to enable you own command with “rule=command” but then you have to 
>> set rulecolor and rule thickness in your own definition (best us \blackrule 
>> for this).
> 
> 
> rule=command,rulecommand=\MyRule
> 
> instead of
> 
> rulecommand=\MyRule
> 
> hm ... this logic I didn't not yet internalize.

You have to tell context it should use your own rule instead of the default 
rule, it’s like “alternative=command” for other setups.

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] how to \setnumber[footnote]

2012-03-20 Thread Steffen Wolfrum

Am 20.03.2012 um 17:01 schrieb Wolfgang Schuster:

> 
> Am 20.03.2012 um 09:16 schrieb Steffen Wolfrum:
> 
>> 
>> ... and what is the new syntax for \setnumber[footnote]?
>> 
>> (the old notation \setnumber[footnote]{123} now results in printing the 
>> figures "123")
> 
> You need brackets for both arguments (i.e. \setnumber[footnote][123]), this 
> was changed because
> braces are used for arguments which are printed (e.g. \startdescription{…}).

yes, great decision to change this. this way context gets more and more 
stringent.

thank you! 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
___


Re: [NTG-context] howto define MyRule ?

2012-03-20 Thread Steffen Wolfrum

Am 20.03.2012 um 14:42 schrieb Wolfgang Schuster:

> You have to enable you own command with “rule=command” but then you have to 
> set rulecolor and rule thickness in your own definition (best us \blackrule 
> for this).


rule=command,rulecommand=\MyRule

instead of

rulecommand=\MyRule


hm ... this logic I didn't not yet internalize.


Thanks, Steffen
___
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] how to \setnumber[footnote]

2012-03-20 Thread Wolfgang Schuster

Am 20.03.2012 um 09:16 schrieb Steffen Wolfrum:

> 
> ... and what is the new syntax for \setnumber[footnote]?
> 
> (the old notation \setnumber[footnote]{123} now results in printing the 
> figures "123")

You need brackets for both arguments (i.e. \setnumber[footnote][123]), this was 
changed because
braces are used for arguments which are printed (e.g. \startdescription{…}).

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] [luatex] Itemize without page break

2012-03-20 Thread Khaled Hosny
On Tue, Mar 20, 2012 at 08:21:35AM +0100, Patrick Gundlach wrote:
> 
> Am 20.03.2012 um 06:49 schrieb Kip Warner:
> 
> > On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:
> >> TeX has it’s problem with certain errors, accept it.
> > 
> > It is not a problem with the program raising an error, it was how it
> > went about doing it. It should not have to take down the entire
> > operating system to indicate to the user that there was a non-intuitive
> > syntactical error in typesetting.
> 
> 
> I also agree that a segfault is not an acceptable behavior of a
> program, regardless of the input (unless you are doing low level
> stuff). But it is not clear if this is a problem on the ConTeXt side
> or the LuaTeX side.

It did not segfault, it just consumed all available memory :) A sane
operating system wouldn't allow any program to do this (mine is not
sane, I know, but luatex is hardly the only program that does this to
me).

Regards,
 Khaled
___
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] [luatex] Itemize without page break

2012-03-20 Thread Khaled Hosny
On Mon, Mar 19, 2012 at 10:49:48PM -0700, Kip Warner wrote:
> On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:
> > TeX has it’s problem with certain errors, accept it.
> 
> It is not a problem with the program raising an error, it was how it
> went about doing it. It should not have to take down the entire
> operating system to indicate to the user that there was a non-intuitive
> syntactical error in typesetting.

Older TeX engines had hard memory limit, so in case of such
"syntactical" errors the engine would consume all its allocated memory
and die (with a misleading error message), LuaTeX dynamically allocates
memory (for good reasons) so it won't stop before consuming all your
available memory, its the responsibility of an operating system to
prevent such a faulty application from taking the whole system down.

Regards,
 Khaled
___
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] howto define MyRule ?

2012-03-20 Thread Wolfgang Schuster

Am 20.03.2012 um 10:10 schrieb Steffen Wolfrum:

> Hi,
> 
> how can I define the length of footnote's rule and the distance below it?
> "rulecommand" doesn't seem to take these values (see below).

You have to enable you own command with “rule=command” but then you have to set 
rulecolor and rule thickness in your own definition (best us \blackrule for 
this).

The distance between the rule and the notes has to be added (you use \blank) in 
the rule definition but a “inbetween” key would be more convenient.

\def\strc_notes_place_inserts_indeed
  {\relax
   \ifdim\ht\currentnoteins>\zeropoint
 \endgraf
 \ifvmode
   \whitespace
   \noteparameter\c!before
 \fi
  %\bgroup
  %\setupalign[\noteparameter\c!align]%
 \placenoterule  % alleen in ..mode
  %\par
  %\egroup
+\ifvmode
+  \noteparameter\c!inbetween
+\fi
 \bgroup
 \strc_notes_set_bodyfont
 \setbox\scratchbox\hbox
   {\strc_notes_flush_inserts}%
 \setbox\scratchbox\hbox
   {\setupcurrentnote
  [\c!location=,
   \c!width=\v!fit,
   \c!height=\v!fit,
   \c!strut=\v!no,
   \c!offset=\v!overlay]%
\inheritednoteframed
  {\ifdim\dp\scratchbox=\zeropoint % this hack is needed 
because \vadjust
 \hbox{\lower\strutdp\box\scratchbox}% % in margin number placement
   \else   % hides the (always) present 
depth
 \box\scratchbox
   \fi}}%
 \setbox\scratchbox\hbox{\lower\strutdepth\box\scratchbox}%
 \dp\scratchbox\strutdepth % so we know that it has the note bodyfont depth
 \box\scratchbox
 \egroup
 \endgraf
 \ifvmode
   \noteparameter\c!after
 \fi
   \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
___


[NTG-context] figures' captions

2012-03-20 Thread Honza Hejzl
Hi,

this is continuing of my last question.

Please, what is wrong with this?

\enableregime[utf]
\mainlanguage[en]
\setuppapersize[A5][A5]
\definefloat[figure][figures]
\setupcaption[figure][align=left]

\starttext
\input tufte
\placefigure[left]{sdf}{\externalfigure[none][width=5cm]}
\input tufte
 \stoptext

It seems align parameter is always ignored. I have the caption centered all
the time (nothing helps, align right, flushleft...)

Thanks, Honza
___
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] Itemize without page break

2012-03-20 Thread luigi scarso
On Tue, Mar 20, 2012 at 9:17 AM, Hans Hagen  wrote:
> On 20-3-2012 06:49, Kip Warner wrote:
>>
>> On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:
>>>
>>> TeX has it’s problem with certain errors, accept it.
>>
>>
>> It is not a problem with the program raising an error, it was how it
>> went about doing it. It should not have to take down the entire
>> operating system to indicate to the user that there was a non-intuitive
>> syntactical error in typesetting.
>
>
> tex is a macro language and that has benefits but also drawbacks; as soon as
> you end up in unwanted expansion things can get nasty; anyhow, I get
>
> Runaway argument?
> {before=\startlinecorrection ,after= \stoplinecorrection
> }]{\dodoubleemptyYESone \ETC.
> ! TeX capacity exceeded, sorry [token memory size=90996078].
>
> which is not really a crash of my operating system; there is not much I can
> do about this issue I fear.
>
Even here
Runaway argument?
{before=\startlinecorrection ,after=\stoplinecorrection
}]{\dodoubleemptyYESone \ETC.
! TeX capacity exceeded, sorry [token memory size=188689465].

on Linux  32bit kernel (on a 64bit processor) -- is  the example on a
64bit kernel ?

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

[NTG-context] placefigure vs grid problem

2012-03-20 Thread Honza Hejzl
Hello,

I have found that placing figures in grid mode does problems with
[left,right...] parameters. The figure brokes the text flow. (It suffice to
turn grid=yes.)

Any solution, please?

Thanks, Honza

\enableregime[utf]
\mainlanguage[cz]

\setuppapersize[A5][A5]
\setuplayout[
*grid=yes*
]
\setupindenting[1em]
\indenting[yes]

\setupexternalfigures[]
\setupfloats[spaceafter=none]
\setupcaptions[location={bottom,left}]
\setuptolerance[tolerant]

\starttext


\chapter{{Předmluva}}

Za výstup projektu je také možno považovat i fakt, že ze studií vznikly a
byly úspěšně obhájeny dvě diplomové práce a před dokončením jsou i dvě
práce doktorské.\footnote{Jedná se o~diplomové práce K. Kukanové a M.
Wagnera (na katedře právních dějin) a doktorské dizertace J. Pleskota a T.
Jablonického (na katedeře právních dějin a na Ústavu právních dějin
Právnické fakulty UK).}

\placefigure[left]{}{\externalfigure[none][width=3.5cm]}

Problematika různých forem majetkových perzekucí a zásadních změn
v majetkových vztazích v historické retrospektivě je nejen čistě historicko
právní otázkou, ale má i řadu přesahů do platného práva, do dalších oborů a
do současných celospolečenských diskuzí. Vlastnické právo a jeho ochrana
patří k základním atributům demokratického právního státu budovaného u~nás
po roce 1989 a ochrana soukromoprávních vztahů v oblasti věcných práv je
spojena i se šířeji pojatou svobodou jednotlivce a jejím zajištění proti
zásahům státní (veřejné) moci.
 \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
___

[NTG-context] howto define MyRule ?

2012-03-20 Thread Steffen Wolfrum
Hi,

how can I define the length of footnote's rule and the distance below it?
"rulecommand" doesn't seem to take these values (see below).

Steffen
---

\setupnote[footnote]
[rulecolor=orange,% OK
 rulecommand={\vrule width10mm\vskip10mm},% ???
 rulethickness=5pt]% OK
   
 \starttext
 
 text\footnote{test}.
 
 \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] Itemize without page break

2012-03-20 Thread Hans Hagen

On 20-3-2012 06:49, Kip Warner wrote:

On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:

TeX has it’s problem with certain errors, accept it.


It is not a problem with the program raising an error, it was how it
went about doing it. It should not have to take down the entire
operating system to indicate to the user that there was a non-intuitive
syntactical error in typesetting.


tex is a macro language and that has benefits but also drawbacks; as 
soon as you end up in unwanted expansion things can get nasty; anyhow, I get


Runaway argument?
{before=\startlinecorrection ,after= \stoplinecorrection 
}]{\dodoubleemptyYESone \ETC.

! TeX capacity exceeded, sorry [token memory size=90996078].

which is not really a crash of my operating system; there is not much I 
can do about this issue I fear.


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] how to \setnumber[footnote]

2012-03-20 Thread Steffen Wolfrum

... and what is the new syntax for \setnumber[footnote]?

(the old notation \setnumber[footnote]{123} now results in printing the figures 
"123")


Steffen
___
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] Itemize without page break

2012-03-20 Thread Hans Hagen

On 20-3-2012 01:43, Kip Warner wrote:

On Mon, 2012-03-19 at 22:49 +0100, Hans Hagen wrote:

On 19-3-2012 00:29, Kip Warner wrote:


I've cc'd the luatex user mailing list since this is probably, I
suppose, a luatex issue more than a ConTeXt one.


not that probable


Actually highly probably, since the seg fault is raised in luatex and
not context. Even if context is feeding it malformed input, luatex
should not ever crash.


it depends ... if some node list juggling happens in macros/lua code and 
something is done wrong there, one can run out of memory (for instance)


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] [***SPAM***] Re: subfootnote with wrong structureconversionset

2012-03-20 Thread Steffen Wolfrum

Am 20.03.2012 um 06:17 schrieb Wolfgang Schuster:

> 
> Am 19.03.2012 um 22:27 schrieb Steffen Wolfrum:
> 
>> Hi,
>> 
>> are subfootnotes not yet rewritten, or did the syntax change?
>> 
>> The following example expects 2.a but gives 2.1:
>> 
>> \definestructureseparatorset [footnote][][]
>> \definestructureconversionset[footnote][numbers,characters][numbers]
>> \setupenumerations[footnote][numberconversionset=footnote,numberseparatorset=footnote]
> 
> Use \setupnotation[footnote][…].



Right, thank you!

The new footnote structure seems to tidy up and settle things neatly in 
\setupnote and \setupnotation.
(eg. numbercommand now looks indeed more reasonable to me in setupnotation than 
it did before on setupnote)

As it grows older ConTeXt gets more and more beautiful ;o)

Steffen
___
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] overprinting of black text – solved

2012-03-20 Thread Honza Hejzl
Hello,

I have solved my old question connected with preflight and overprinting of
pure text. Now I am able to have clean output, the last warning (just info)
is about the fact context files have fonts embedded like CID Type 1 fonts.

I am using this colors setup:

\definecolor[cmykblack][c=0,m=0,y=0,k=1]
\setupcolors[rgb=no,cmyk=yes,spot=yes,textcolor=cmykblack,intent=overprint]

This works well for the body. For footnotes I need to use this:

\def\numfoo#1{\startcolorintent[overprint] #1 \stopcolorintent}
\setupnotation[footnote][numbercommand=\numfoo,before={\startcolorintent[overprint]},after={\stopcolorintent}]

Just want to share that.

Honza
___
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] [luatex] Itemize without page break

2012-03-20 Thread Patrick Gundlach

Am 20.03.2012 um 06:49 schrieb Kip Warner:

> On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:
>> TeX has it’s problem with certain errors, accept it.
> 
> It is not a problem with the program raising an error, it was how it
> went about doing it. It should not have to take down the entire
> operating system to indicate to the user that there was a non-intuitive
> syntactical error in typesetting.


I also agree that a segfault is not an acceptable behavior of a program, 
regardless of the input (unless you are doing low level stuff). But it is not 
clear if this is a problem on the ConTeXt side or the LuaTeX side.

Patrick

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