Re: [NTG-context] Place an annotation before it is defined

2013-01-11 Thread Marco Patzer
On 2013–01–10 Wolfgang Schuster wrote:

 You can try the beta from my bitbucket site [0] which uses a two mechanism
 for named buffers (\startannotation[NAME] … \stopannotation) which can
 be accessed with \getannotation[NAME].

It doesn't work for me:

\usemodule[annotation]
\defineannotation [myannotation]

\starttext

a
\getannotation [foo]
b

\startmyannotation [foo]
  ANNOTATION
\stopmyannotation

\stoptext

results in

a
b
ANNOTATION

Furthermore

\usemodule[annotation]
\defineannotation [myannotation]
\setupannotation  [myannotation] [alternative=paragraph]

\starttext
  \startmyannotation
  \stopmyannotation
\stoptext

results in

+ t-annotation.lua)
! Undefined control sequence.

[…]

\540:way -\sharedcounterparameter
\c!way
argument ...rparameter {\currentcounter }\c!way

Tested on: 2013.01.10 01:04


Marco


signature.asc
Description: Digital signature
___
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] References to footnotes in index

2013-01-11 Thread Robert Blackstone
Dear List,

I posted this question before, (28 december, ntg-context Digest, Vol 102, Issue 
65) but there was little activity on the list around that time and my question 
may have been overlooked.
So that is why I give it another try.

The book that I am working on has an index of authors. On some pages of the 
book an author's name only occurs in a footnote.
Is it possible in ConTeXt to mark, in the index, those occurrences in footnotes 
so that in these cases not only the page number appears in the index but also, 
preferably as superscript, the footnote number on that page?
As for example:
Arnold, Franck Th.  283indicating footnote 3 on page 28 (the 3 should 
have been superscript here but I cannot make a superscript in this mail editor)

Thanks in advance for any help.

Best regards,

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

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

Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a newbie

2013-01-11 Thread Meigen, Thomas
Thank you very much for your clarifications!

To summarize...

1. The use of additional modules may be nice (as Sietse proposed the
complex-slides module), but ConTeXt can achieve very flexible solutions
even without these modules.

2. Although the production of slides was not the main issue of my question,
I am amazed by the step-by-step guide from Aditya. This was very helpful
and I learned a lot about ConteXt by going through all the incremental changes.
Thanks!

3. I understand that some presentation styles/modules are provided by users
and that they may have to be adapted for specific applications. At this point I
was a bit surprised that the dependencies between different modules are not
documented explicitly within the modules. E. g., when I tried to use the
simpleslides module with the simpleslides-s-Boxed layout, I did not find a
required modules... command that might have helped to see the problem.
This is different from the LaTeX mechanism to load required packages.
However, the reason might be that LaTeX depends much more on these
packages, so a strict mechanism is mandatory. Anyway, after you get used
to some typical modules in ConTeXt you might not miss this kind of strict 
rule...

4. The fact that my initial example starting with

 1 \usemodule[s-pre-05]

crashed for s-pre-05 and most of the other s-pre-XX modules indicates that
such crashes have nothing to do with the decision to load modules from
other users. The s-pre-XX modules are part of the standalone ConTeXt
installation, my installation was fine, but a recent update of some mkiv
component was not compatible with luatex.

So what to do next? Load an earlier ConText version? Wait until this
problem is fixed? If the mkiv - luatex interaction is the reason for this
problem, the problems might not be restricted to some s-pre-XX
modules (that are unchanged since about two years...) ?


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

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


Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a newbie

2013-01-11 Thread Meigen, Thomas
Hi Keith,

thank you for your  open comments. You exactly understood the questions
that I am asking right now. Would it be a good idea to switch to ConTeXt?

Yes, I do not have (and I do not want to have) a deeper understanding of 
proper TeX. Well, I have Knuth's TeXbook in my shelf, but it is simply
a question of time. Life is too short anyway ;-)

But... do I really have to have a knowledge of proper TeX and Lua before
I can use ConTeXt? For me, the charme of ConTeXt had always been that
those nice documents had been prepared with rather smart code.
I dont want to write my own modules (in which case I definitely would 
need to know proper TeX and Lua). I just want to use ConTeXt and
focus on the content, not on the technical background. 

Sure, I am using MacTeX and TeXLive now for many years. 

What attracted me to ConTeXt was the project-product-component 
structure to use and re-use components. Other aspects are

- different modes (presentation, handout, manuscript)

- poster production

- nice graphics/animation via pstricks or metapost

- export to other formats (when writing articles many journals in my
field do not accept .tex-files)

- export to epub/mobi format. I enjoy reading mobile versions of
my own texts and of the texts my students give me for review. 

- import from Scrivener... When writing difficult texts I noticed that
LaTeX-typesetting is often an interruption of the writing flow. After writing
some sentences I am curious to see how the text might look like, so
I typeset the text and sooner or later I am fiddling with some LaTeX 
details instead of focussing on the writing process. One help had been
to use Scrivener during the writing process and using the LaTeX 
typesetting for the final steps only (as a reward... ;-) ).

How much of this list can be accomplished with LuaTex and ConTeXt...?


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

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


Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a newbie

2013-01-11 Thread Khaled Hosny
You can ignore everything Keith said and you will be just fine.

Regards,
Khaled

On Fri, Jan 11, 2013 at 11:32:39AM +, Meigen, Thomas wrote:
 Hi Keith,
 
 thank you for your  open comments. You exactly understood the questions
 that I am asking right now. Would it be a good idea to switch to ConTeXt?
 
 Yes, I do not have (and I do not want to have) a deeper understanding of 
 proper TeX. Well, I have Knuth's TeXbook in my shelf, but it is simply
 a question of time. Life is too short anyway ;-)
 
 But... do I really have to have a knowledge of proper TeX and Lua before
 I can use ConTeXt? For me, the charme of ConTeXt had always been that
 those nice documents had been prepared with rather smart code.
 I dont want to write my own modules (in which case I definitely would 
 need to know proper TeX and Lua). I just want to use ConTeXt and
 focus on the content, not on the technical background. 
 
 Sure, I am using MacTeX and TeXLive now for many years. 
 
 What attracted me to ConTeXt was the project-product-component 
 structure to use and re-use components. Other aspects are
 
 - different modes (presentation, handout, manuscript)
 
 - poster production
 
 - nice graphics/animation via pstricks or metapost
 
 - export to other formats (when writing articles many journals in my
 field do not accept .tex-files)
 
 - export to epub/mobi format. I enjoy reading mobile versions of
 my own texts and of the texts my students give me for review. 
 
 - import from Scrivener... When writing difficult texts I noticed that
 LaTeX-typesetting is often an interruption of the writing flow. After writing
 some sentences I am curious to see how the text might look like, so
 I typeset the text and sooner or later I am fiddling with some LaTeX 
 details instead of focussing on the writing process. One help had been
 to use Scrivener during the writing process and using the LaTeX 
 typesetting for the final steps only (as a reward... ;-) ).
 
 How much of this list can be accomplished with LuaTex and ConTeXt...?
 
 
 Best wishes
 Thomas
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a newbie

2013-01-11 Thread Hans Hagen

On 1/11/2013 11:58 AM, Meigen, Thomas wrote:


1 \usemodule[s-pre-05]


crashed for s-pre-05 and most of the other s-pre-XX modules indicates that
such crashes have nothing to do with the decision to load modules from
other users. The s-pre-XX modules are part of the standalone ConTeXt
installation, my installation was fine, but a recent update of some mkiv
component was not compatible with luatex.


Most of those presentation styles were used at tex user group meetings 
and in those cases I often use new (or experimental) functionality, i.e. 
hooking in extentions and such; in the transition from mkii to mkiv some 
of the hacks needed in traditional tex are gone but then I need to check 
all those styles too and I don't use them that often.



So what to do next? Load an earlier ConText version? Wait until this
problem is fixed? If the mkiv - luatex interaction is the reason for this
problem, the problems might not be restricted to some s-pre-XX
modules (that are unchanged since about two years...) ?


The benefits of mkiv over mkii compensate the occasional issue. Also, 
issues are often fixed quite fast and as we have a perfect update 
structure running on the garden problems never stay long. I (and 
probably others) use mkiv in (often unattended) production runs so it's 
on the average pretty useable. I haven't used mkii for years.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a newbie

2013-01-11 Thread Hans Hagen

On 1/11/2013 12:32 PM, Meigen, Thomas wrote:


But... do I really have to have a knowledge of proper TeX and Lua before
I can use ConTeXt? For me, the charme of ConTeXt had always been that
those nice documents had been prepared with rather smart code.
I dont want to write my own modules (in which case I definitely would
need to know proper TeX and Lua). I just want to use ConTeXt and
focus on the content, not on the technical background.


For most layouts no \def or whatever is needed, just some 
\setupthisorthat commands. The whole idea of context is that one uses a 
high level of abstraction while coding (although I quite often see 
violations of that). For instance, normally you will see / use no 
spacing commands in a document source but set them up in the preamble.



Sure, I am using MacTeX and TeXLive now for many years.

What attracted me to ConTeXt was the project-product-component
structure to use and re-use components. Other aspects are

- different modes (presentation, handout, manuscript)


'modes' have always been around


- poster production


A1 papersizes are supported as are layers (the way to make posters).


- nice graphics/animation via pstricks or metapost


mp is rather tightly integrated


- export to other formats (when writing articles many journals in my
field do not accept .tex-files)


depends on the format .. there is an xml export (still experimental but 
on the average good enough)



- export to epub/mobi format. I enjoy reading mobile versions of
my own texts and of the texts my students give me for review.


idem


- import from Scrivener... When writing difficult texts I noticed that
LaTeX-typesetting is often an interruption of the writing flow. After writing
some sentences I am curious to see how the text might look like, so
I typeset the text and sooner or later I am fiddling with some LaTeX
details instead of focussing on the writing process. One help had been
to use Scrivener during the writing process and using the LaTeX
typesetting for the final steps only (as a reward... ;-) ).


I have no clue what Scrivener is.


How much of this list can be accomplished with LuaTex and ConTeXt...?


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] link to component

2013-01-11 Thread Daniel Schopper

Hi,

I'm using a product/component structure with interaction but it seems 
that hyperlink targets pointing to manually set pagereferences in 
another component file do not work as they should: The line/page numbers 
on the link is correct, but the hyperlinks points to  _component.pdf_ 
(which opens, if it has been compiled by itself before, otherwise the 
link is just going nowhere) instead of the page in product.pdf


On the other hand, hyperlinks to a chapter/... head work as expected.

I haven't used interaction much until now, so I might well be missing 
something, but this seems like a bug to me.


Thanks in advance!
Daniel


Working minimal example:
---
My product.tex looks like this:


\setupinteraction[state=start]

\startproduct product

\startbodymatter
%\at and \inline - \pagereference[knuth] don't work
cf. Knuth at \at{p.}[knuthpage] \inline{line}[knuth]
% \in - \chapter[knuthchap] works
in \in{Chapter}[knuthchap].
\stopbodymatter

\startappendices
\component appendix
\stopappendices

\stopproduct


--
And my appendix.tex looks like this:

\startcomponent appendix
\product product
\chapter[knuthchap]{Knuth}
\startlinenumbering
\startline[knuth]\input knuth\stopline[knuth]
\stoplinenumbering
\page
Some problem here.\pagereference[knuthpage]
\stopcomponent
___
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] link to component

2013-01-11 Thread Daniel Schopper

Sorry, I forgot:
I'm using MkIV version 2012.12.10 23:20

Am 11.01.13 15:52, schrieb Daniel Schopper:

Hi,

I'm using a product/component structure with interaction but it seems
that hyperlink targets pointing to manually set pagereferences in
another component file do not work as they should: The line/page numbers
on the link is correct, but the hyperlinks points to  _component.pdf_
(which opens, if it has been compiled by itself before, otherwise the
link is just going nowhere) instead of the page in product.pdf

On the other hand, hyperlinks to a chapter/... head work as expected.

I haven't used interaction much until now, so I might well be missing
something, but this seems like a bug to me.

Thanks in advance!
Daniel


Working minimal example:
---
My product.tex looks like this:


\setupinteraction[state=start]

\startproduct product

\startbodymatter
 %\at and \inline - \pagereference[knuth] don't work
 cf. Knuth at \at{p.}[knuthpage] \inline{line}[knuth]
 % \in - \chapter[knuthchap] works
 in \in{Chapter}[knuthchap].
\stopbodymatter

\startappendices
 \component appendix
\stopappendices

\stopproduct


--
And my appendix.tex looks like this:

\startcomponent appendix
 \product product
 \chapter[knuthchap]{Knuth}
 \startlinenumbering
 \startline[knuth]\input knuth\stopline[knuth]
 \stoplinenumbering
 \page
 Some problem here.\pagereference[knuthpage]
\stopcomponent
___

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
___


[NTG-context] getnameinfo

2013-01-11 Thread Wolfgang Werners-Lucchini
I have to update LuaTex on a win2k machine. But I get
two errors while running mtxrun.exe and texlua.exe resp. via first-
setup.bat.

There is a call to getnameinfo in WS2_32.dll which is available in 
winxp and above.

Here is an info from ms how to deal with this:

The getnameinfo function was added to the Ws2_32.dll on Windows XP 
and later. If you want to execute an application using this function 
on earlier versions of Windows (Windows 2000, Windows NT, and Windows 
Me/98/95), then you need to include the Ws2tcpip.h file and also 
include the Wspiapi.h file. When the Wspiapi.h include file is added, 
the getnameinfo function is defined to the WspiapiGetNameInfo inline 
function in the Wspiapi.h file. At runtime, the WspiapiGetNameInfo 
function is implemented in such a way that if the Ws2_32.dll or the 
Wship6.dll (the file containing getnameinfo in the IPv6 Technology 
Preview for Windows 2000) does not include getnameinfo, then a 
version of getnameinfo is implemented inline based on code in the 
Wspiapi.h header file. This inline code will be used on older Windows 
platforms that do not natively support the getnameinfo function.

Hope this can be done.

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] Layer vs. overlay

2013-01-11 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I need to add a text to the FOREGROUND of the page.

- Layers can refer to a page (or its size) and elements in a layer are drawn 
BELLOW the (normal) page content.

- Overlays are drawn ABOVE the (normal) page content and their size is given by 
an element (often \framed) which uses the overlay.

So - I'd need a layer which would overlay the normal page content (like foreground or 
topmost layer) or an overlay which would refer to (= its size and position would depend 
on) the (current) page (instead of e.g. \framed);
it should be a somewhat combination of layers  overlays.

How to achieve this in ConTeXt?

Best regards,

Lukas



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Place an annotation before it is defined

2013-01-11 Thread Wolfgang Schuster

Am 11.01.2013 um 09:45 schrieb Marco Patzer home...@lavabit.com:

 On 2013–01–10 Wolfgang Schuster wrote:
 
 You can try the beta from my bitbucket site [0] which uses a two mechanism
 for named buffers (\startannotation[NAME] … \stopannotation) which can
 be accessed with \getannotation[NAME].
 
 It doesn't work for me:
 
 \usemodule[annotation]
 \defineannotation [myannotation]

Use

\defineannotation[myannotation][method=buffer]

to disable the output from \startmyannotation … \stopmyannotation.

 \starttext
 
 a
 \getannotation [foo]

You need \getmyannotation[foo].

 b
 
 \startmyannotation [foo]
  ANNOTATION
 \stopmyannotation
 
 \stoptext
 
 results in
 
 a
 b
 ANNOTATION
 
 Furthermore
 
 \usemodule[annotation]
 \defineannotation [myannotation]
 \setupannotation  [myannotation] [alternative=paragraph]
 
 \starttext
  \startmyannotation
  \stopmyannotation
 \stoptext
 
 results in
 
 + t-annotation.lua)
 ! Undefined control sequence.
 
 […]
 
 \540:way -\sharedcounterparameter
\c!way
 argument ...rparameter {\currentcounter }\c!way
 
 Tested on: 2013.01.10 01:04

No idea where this comes from because there is no command with this name in the 
current version of the module.

Do you have the following block at the begin of t-annoation.mkvi?

%D \module
%D   [ file=t-annotation,
%D  version=2013.01.10,
%Dtitle=\CONTEXT\ User Module,
%D subtitle=Annotations,
%D   author=Wolfgang Schuster,
%D date=\currentdate,
%Dcopyright=Wolfgang Schuster,
%D  license=GNU General Public License]

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] two problems with xml processing

2013-01-11 Thread Thomas A. Schmitz

Hi all,

I am encountering two problems with xml processing; minimal example 
below. My questions/observations:


1. How can I prevent every index term to be sorted under x (for 
\xmlflush)?


2. What is the readon that the \cite command displays this bizarre 
behavior and the list of references is empty when I use authornum as 
refcommand?


Thanks and all best!

Thomas

\setupbibtex[database=sample]

\setuppublications
[refcommand=authornum]

\starttext

\startbuffer[demo]
document
  pMadame Bovary is a novel by Gustave indextermFlaubert, 
Gustave/indextermFlaubert. This has been demonstrated in 
citationhh2010/citation in 2010./p

/document
\stopbuffer

\startxmlsetups xml:test
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{document|p|indexterm|citation}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:document
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:p
\xmlflush{#1}
\par
\stopxmlsetups

\startxmlsetups xml:indexterm
\index{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:citation
\cite[{\xmlflush{#1}}]
\stopxmlsetups

\xmlprocessbuffer{whatever}{demo}{}

\page

\placepublications[criterium=all]

\page

\placeregister[index]

\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] Place an annotation before it is defined

2013-01-11 Thread Marco Patzer
On 2013–01–11 Wolfgang Schuster wrote:

 Use
 
 \defineannotation[myannotation][method=buffer]
 
 to disable the output from \startmyannotation … \stopmyannotation.
 
  \starttext
  
  a
  \getannotation [foo]
 
 You need \getmyannotation[foo].

It works perfectly, though I don't have much to test it with, except
one document. Future will show. Thanks a lot for implementing this.

  + t-annotation.lua)
  ! Undefined control sequence.
  
  […]
  
  \540:way -\sharedcounterparameter
 \c!way
  argument ...rparameter {\currentcounter }\c!way
  
  Tested on: 2013.01.10 01:04
 
 No idea where this comes from because there is no command with this name in 
 the current version of the module.

Ignore it! For some reason mercurial said “Nothing to update” and
let me believe I was using the new version but, in fact kept using
the old one.

 Do you have the following block at the begin of t-annoation.mkvi?
 […]

Now I do, yes :)

Marco


signature.asc
Description: Digital signature
___
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] Layer vs. overlay

2013-01-11 Thread Hans Hagen

On 1/11/2013 4:32 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

I need to add a text to the FOREGROUND of the page.

- Layers can refer to a page (or its size) and elements in a layer are
drawn BELLOW the (normal) page content.

- Overlays are drawn ABOVE the (normal) page content and their size is
given by an element (often \framed) which uses the overlay.

So - I'd need a layer which would overlay the normal page content (like
foreground or topmost layer) or an overlay which would refer to (=
its size and position would depend on) the (current) page (instead of
e.g. \framed);
it should be a somewhat combination of layers  overlays.

How to achieve this in ConTeXt?


background={whaveter,another,foreground,alastone}

so 'foreground' will do it

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

2013-01-11 Thread Hans Hagen

On 1/11/2013 4:04 PM, Wolfgang Werners-Lucchini wrote:

I have to update LuaTex on a win2k machine. But I get
two errors while running mtxrun.exe and texlua.exe resp. via first-
setup.bat.

There is a call to getnameinfo in WS2_32.dll which is available in
winxp and above.

Here is an info from ms how to deal with this:

The getnameinfo function was added to the Ws2_32.dll on Windows XP
and later. If you want to execute an application using this function
on earlier versions of Windows (Windows 2000, Windows NT, and Windows
Me/98/95), then you need to include the Ws2tcpip.h file and also
include the Wspiapi.h file. When the Wspiapi.h include file is added,
the getnameinfo function is defined to the WspiapiGetNameInfo inline
function in the Wspiapi.h file. At runtime, the WspiapiGetNameInfo
function is implemented in such a way that if the Ws2_32.dll or the
Wship6.dll (the file containing getnameinfo in the IPv6 Technology
Preview for Windows 2000) does not include getnameinfo, then a
version of getnameinfo is implemented inline based on code in the
Wspiapi.h header file. This inline code will be used on older Windows
platforms that do not natively support the getnameinfo function.

Hope this can be done.


So you're using xp or win2K?

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt on the Mac (TexShop). Problem of a newbie

2013-01-11 Thread Sietse Brouwer
Hi Thomas,

You wrote, a good number of e-mails ago:
 But would it be possible
 to use ConTeXt without having to care about bugs in
 updated code or broken links between different modules...?

Thought I'd add a brief note to the conversation about updates and stability.

ConTeXt Mark II (can use XeTeX, pdfTeX, LuaTeX, and all those other
engines) is extraordinarily stable. Its development is frozen
(although I think bugfixes can still be requested). Because it is
written in TeX, a language that is also frozen, I think it is quite
likely that Mark II documents will still compile in 20 years. Mark II
is included in the Standalone distribution; use the `texexec` command
to compile a document with Mark II.

ConTeXt Mark IV is Hans's rewriting of ConTeXt in TeX + Lua, adding
lots of features along the way because Lua makes it so damn easy. It
requires LuaTeX.

* The beta version are mercurial; bugs are introduced and fixed all
the time. If you want to use a beta for a project, this is the usual
advice: make a separate Standalone installation for your project, and
don't update that unless you want/have to. That said: this is only
because the next update might contain a bug when you least need it,
it's not about compatibility. Hans, as far as I know, tries very hard
to not break backward compatibility.

* A stable version comes out once a year. They receive special
bug-checking attention, and because Hans dislikes breaking backward
compatibility I think you could hop from stable to stable and your
documents would still compile.

As for your third worry, modules dependency hell: this is very much a
LaTeX thing. 2 reasons:
1. Pretty much everything is already in ConTeXt itself, meaning less
external modules are needed. 2. ConTeXt is 10 years younger than
LaTeX, meaning that its design and architecture are 10 years more
modern. Specifically, LaTeX has an entire taxonomy of packages that
make package-writing easier -- key-value, loops, string operations --
and user-facing packages may depend on any number of these. ConTeXt
doesn't have this problem: everyone just depends on the core.

So if it's stability you worry about, you have three options:
* Use Mark II, solid as a rock.
* Follow the stable Mark IVs.
* Take a bleeding-edge beta and don't update it.

Good luck!

--Sietse
___
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] Layer vs. overlay

2013-01-11 Thread Wolfgang Schuster

Am 11.01.2013 um 16:32 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:

 Hello,
 
 I need to add a text to the FOREGROUND of the page.
 
 - Layers can refer to a page (or its size) and elements in a layer are drawn 
 BELLOW the (normal) page content.
 
 - Overlays are drawn ABOVE the (normal) page content and their size is given 
 by an element (often \framed) which uses the overlay.
 
 So - I'd need a layer which would overlay the normal page content (like 
 foreground or topmost layer) or an overlay which would refer to (= its 
 size and position would depend on) the (current) page (instead of e.g. 
 \framed);
 it should be a somewhat combination of layers  overlays.
 
 How to achieve this in ConTeXt?


Overlays and Layers are to different mechanism which are powerful when you 
combine both but first you have to know what each of them does.


1. Overlays

ConTeXt has a overlay environment which cane used in the text to stack the 
arguments on the same spot. When take a close look at the example you can see 
each new element is placed on top of the previous element, when you remove the 
\strut in the argument you would also notice that each argument is placed 
horizontal and vertical centered.

\setupbodyfont[40pt]

\starttext

\startoverlay
  {\strut\red   m}
  {\strut\green a}
  {\strut\blue  l}
\stopoverlay

\stoptext

After you do know now what overlays are I come to the real overlay mechanism.

Overlays are created with the \defineoverlay command which takes a name for the 
overlay and its content. The overlays are then applied to a \framed command or 
the background to the page the textblock, header etc.

In the next example I created two new overlays with the names “behind” and 
“before” (the name itself doesn’t matter) which I activated in the frame with 
tha background key.

\starttext

\defineoverlay[behind][{\blackrule[height=2cm,width=8cm,color=yellow]}]
\defineoverlay[before][{\blackrule[height=8cm,width=2cm,color=orange]}]

\framed
  [width=10cm,
   height=10cm,
   background={color,behind,foreground,before},
   backgroundcolor=red]
  {\blackrule[width=6cm,height=6cm,color=blue]}

\stoptext

When you look at the arguments of the background key you can used two more 
names besides my own “behind” and “before” overlays. The first name in the list 
“color” is needed when you can to use the argument of the backgroundcolor key 
which puts a color two the whole area of the frame. The second name 
“foreground” is more interesting because with this you can place overlays 
*before* the content of the frame because “foreground” is the frame text itself.

The differences between the overlay environment at the begin and the overlay 
mechanism for framed aren’t so big, only the methods to set them because in the 
first case you set the content for each level which the argument in braces 
({…}{…}) and in the second case you define them first with \defineoverlay and 
set the order in the background key.


2. Layers

When you have used layers the content of each layer was always centered in the 
frame but with layers you can put the content from each command at a certain 
horizontal and vertical position.

In the following example I created a new layer and set three texts for it which 
are afterwards placed in the page which the \flushlayer command.

\starttext

\definelayer[test]

\setlayer[test][x=3cm,y=6cm]{ONE}
\setlayer[test][x=8cm,y=2cm]{TWO}
\setlayer[test][x=2cm,y=9cm]{THREE}

\flushlayer[test]

\stoptext

When you put new some text after \flushlayer would be surprised because it 
would end put on the following page but you shouldn’t wonder about this because 
layers have nothing to do with the page background or foreground.

What makes the layer and overlay mechanism is interesting is when you combine 
them and put the \flushlayer command in a overlay which does now place the 
texts before or after the content of a frame. With my next example we’re 
finally in the process to combine them.

\setupbodyfont[30pt]

\starttext

\definelayer[behindtext]
\definelayer[beforetext]

\setupbackgrounds[text][background={behindtext,foreground,beforetext}]

\setlayer[behindtext][x=-2cm,y=.75ex]{\redBehind}
\setlayer[beforetext][x=+2cm,y=.75ex]{\yellow Before}

The Text!

\setlayer[behindtext][x=5cm,y=4cm]{\redMore background text!}
\setlayer[beforetext][x=3cm,y=8cm]{\yellow More foreground text!}

\stoptext

When you look at the example you can see that haven't created a overlay for 
layer even though I said you need it to put the layer after the text. This 
isn’t necessary because when you create a new layer context does also create a 
overlay with the same name in which the layer is placed. The other question is 
how you can place overlays on the text/page when I told before overalls can 
only be placed on frame, this is possible because all page elements (textblock, 
header, footer and even the page and paper itself) are frames. Even though 
these elements are frames they don’t