[NTG-context] Interactive PDFs with a PDF reader/annotator Utopia

2012-01-26 Thread Mojca Miklavec
http://getutopia.com/
http://www.scivee.tv/node/17389
http://river-valley.tv/utopia-documents-a-new-semantic-dimension/
___
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] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Wagner Macedo
According to http://wiki.contextgarden.net/Layout#Multiple_layouts, you can
do this by using the commands \setuplayout[yourcustomlayout] and
\setuplayout[reset] at the location you want to change the layout.

--
Wagner Macedo


On 25 January 2012 23:41, Peter Park Nelson wrote:

> First-page layout is an issue that I have asked about before, but
> maybe I am doing something wrong. Here is my question in an earlier
> thread:
> http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html
> .
>
> I want to define a layout for the first page of my document with
> different header and footer formatting -- specifically, no header and
> a large footer to hold publication information. Based on examples on
> Contextgarden and this list, I think my code below is correct.
> However, the first page formatting is continued on all pages of the
> document. The effect is the same when using \definelayout[first] and
> \definelayout[1].
>
> %%---
>
> setuppapersize[letter][letter]
> \setupindenting[yes, medium]
>
> \setuplayout
>  [width=middle,
>  backspace=15mm,
>  topspace=10mm,
>  height=254mm,
>  header=10mm,  % normal header
>  headerdistance=5mm,
>  footer=5mm,
>  footerdistance=5mm,
>  grid=yes]
>
> \definelayout
>  [first]
>  [width=middle,
>  backspace=15mm,
>  topspace=10mm,
>  height=254mm,
>  header=0mm,  % no header
>  headerdistance=0mm,
>  footer=25mm,  % big footer
>  footerdistance=5mm,
>  grid=yes]
>
> \definecolumnset[body][n=2,balancing=yes]
>
> \setupheadertexts
>  [This is a header]
>  [pagenumber]
>  [pagenumber]
>  [Some text]
>
> \setupfootertexts
>  [footer]
>  [footer]
>  [footer]
>  [footer]
>
> \starttext
>
> \startcolumnset[body]
>
> \dorecurse{20}{\input tufte\par}
>
> \stopcolumnset
>
> \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] 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)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
backend > export > enabling export to xml
{/usr/home/mclaus/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > 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}
fonts   > fallback modern rm 12pt is loaded
backend > xmp > using file 
'/usr/home/mclaus/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages   > flushing 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 

 \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 

 \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] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
Wagner,

Thanks for pointing this out, it works:

\definelayout
  [1]
  [first page layout...]

\definelayout
  [2]
  [reset] % call for a reset when the second page is reached

\setuplayout
  [default layout...]

But the question of why \definelayout[first] does not work correctly
remains. Perhaps the developers will look into it.

PPN

On Thu, Jan 26, 2012 at 8:18 AM, Wagner Macedo  wrote:
> According to http://wiki.contextgarden.net/Layout#Multiple_layouts, you can
> do this by using the commands \setuplayout[yourcustomlayout] and
> \setuplayout[reset] at the location you want to change the layout.
>
> --
> Wagner Macedo
>
>
> On 25 January 2012 23:41, Peter Park Nelson 
> wrote:
>>
>> First-page layout is an issue that I have asked about before, but
>> maybe I am doing something wrong. Here is my question in an earlier
>> thread:
>> http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html
>> .
>>
>> I want to define a layout for the first page of my document with
>> different header and footer formatting -- specifically, no header and
>> a large footer to hold publication information. Based on examples on
>> Contextgarden and this list, I think my code below is correct.
>> However, the first page formatting is continued on all pages of the
>> document. The effect is the same when using \definelayout[first] and
>> \definelayout[1].
>>
>> %%---
>>
>> setuppapersize[letter][letter]
>> \setupindenting[yes, medium]
>>
>> \setuplayout
>>  [width=middle,
>>  backspace=15mm,
>>  topspace=10mm,
>>  height=254mm,
>>  header=10mm,  % normal header
>>  headerdistance=5mm,
>>  footer=5mm,
>>  footerdistance=5mm,
>>  grid=yes]
>>
>> \definelayout
>>  [first]
>>  [width=middle,
>>  backspace=15mm,
>>  topspace=10mm,
>>  height=254mm,
>>  header=0mm,      % no header
>>  headerdistance=0mm,
>>  footer=25mm,      % big footer
>>  footerdistance=5mm,
>>  grid=yes]
>>
>> \definecolumnset[body][n=2,balancing=yes]
>>
>> \setupheadertexts
>>  [This is a header]
>>  [pagenumber]
>>  [pagenumber]
>>  [Some text]
>>
>> \setupfootertexts
>>  [footer]
>>  [footer]
>>  [footer]
>>  [footer]
>>
>> \starttext
>>
>> \startcolumnset[body]
>>
>> \dorecurse{20}{\input tufte\par}
>>
>> \stopcolumnset
>>
>> \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
> ___



-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
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] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
Oh crap, I thought Wagner's solution worked but it doesn't -- quite.

\showframe indicates that the page areas are defined correctly, and
the footer frame on page 2 and later is the correct size. But Context
is not filling the text columns all the way to the bottom; The body
text is still stopping short as though the larger footer was still in
effect.

Frustrating.

On Thu, Jan 26, 2012 at 8:18 AM, Wagner Macedo  wrote:
> According to http://wiki.contextgarden.net/Layout#Multiple_layouts, you can
> do this by using the commands \setuplayout[yourcustomlayout] and
> \setuplayout[reset] at the location you want to change the layout.
>
> --
> Wagner Macedo
>
>
> On 25 January 2012 23:41, Peter Park Nelson 
> wrote:
>>
>> First-page layout is an issue that I have asked about before, but
>> maybe I am doing something wrong. Here is my question in an earlier
>> thread:
>> http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html
>> .
>>
>> I want to define a layout for the first page of my document with
>> different header and footer formatting -- specifically, no header and
>> a large footer to hold publication information. Based on examples on
>> Contextgarden and this list, I think my code below is correct.
>> However, the first page formatting is continued on all pages of the
>> document. The effect is the same when using \definelayout[first] and
>> \definelayout[1].
>>
>> %%---
>>
>> setuppapersize[letter][letter]
>> \setupindenting[yes, medium]
>>
>> \setuplayout
>>  [width=middle,
>>  backspace=15mm,
>>  topspace=10mm,
>>  height=254mm,
>>  header=10mm,  % normal header
>>  headerdistance=5mm,
>>  footer=5mm,
>>  footerdistance=5mm,
>>  grid=yes]
>>
>> \definelayout
>>  [first]
>>  [width=middle,
>>  backspace=15mm,
>>  topspace=10mm,
>>  height=254mm,
>>  header=0mm,      % no header
>>  headerdistance=0mm,
>>  footer=25mm,      % big footer
>>  footerdistance=5mm,
>>  grid=yes]
>>
>> \definecolumnset[body][n=2,balancing=yes]
>>
>> \setupheadertexts
>>  [This is a header]
>>  [pagenumber]
>>  [pagenumber]
>>  [Some text]
>>
>> \setupfootertexts
>>  [footer]
>>  [footer]
>>  [footer]
>>  [footer]
>>
>> \starttext
>>
>> \startcolumnset[body]
>>
>> \dorecurse{20}{\input tufte\par}
>>
>> \stopcolumnset
>>
>> \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
> ___



-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
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] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Wagner Macedo
Well, I never need this, so I thought that information was correct.

I will do some tests when I'll have time to see if works for me.

--
Wagner Macedo


On 26 January 2012 14:40, Peter Park Nelson wrote:

> Oh crap, I thought Wagner's solution worked but it doesn't -- quite.
>
> \showframe indicates that the page areas are defined correctly, and
> the footer frame on page 2 and later is the correct size. But Context
> is not filling the text columns all the way to the bottom; The body
> text is still stopping short as though the larger footer was still in
> effect.
>
> Frustrating.
>
> On Thu, Jan 26, 2012 at 8:18 AM, Wagner Macedo 
> wrote:
> > According to http://wiki.contextgarden.net/Layout#Multiple_layouts, you
> can
> > do this by using the commands \setuplayout[yourcustomlayout] and
> > \setuplayout[reset] at the location you want to change the layout.
> >
> > --
> > Wagner Macedo
> >
> >
> > On 25 January 2012 23:41, Peter Park Nelson  >
> > wrote:
> >>
> >> First-page layout is an issue that I have asked about before, but
> >> maybe I am doing something wrong. Here is my question in an earlier
> >> thread:
> >>
> http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html
> >> .
> >>
> >> I want to define a layout for the first page of my document with
> >> different header and footer formatting -- specifically, no header and
> >> a large footer to hold publication information. Based on examples on
> >> Contextgarden and this list, I think my code below is correct.
> >> However, the first page formatting is continued on all pages of the
> >> document. The effect is the same when using \definelayout[first] and
> >> \definelayout[1].
> >>
> >> %%---
> >>
> >> setuppapersize[letter][letter]
> >> \setupindenting[yes, medium]
> >>
> >> \setuplayout
> >>  [width=middle,
> >>  backspace=15mm,
> >>  topspace=10mm,
> >>  height=254mm,
> >>  header=10mm,  % normal header
> >>  headerdistance=5mm,
> >>  footer=5mm,
> >>  footerdistance=5mm,
> >>  grid=yes]
> >>
> >> \definelayout
> >>  [first]
> >>  [width=middle,
> >>  backspace=15mm,
> >>  topspace=10mm,
> >>  height=254mm,
> >>  header=0mm,  % no header
> >>  headerdistance=0mm,
> >>  footer=25mm,  % big footer
> >>  footerdistance=5mm,
> >>  grid=yes]
> >>
> >> \definecolumnset[body][n=2,balancing=yes]
> >>
> >> \setupheadertexts
> >>  [This is a header]
> >>  [pagenumber]
> >>  [pagenumber]
> >>  [Some text]
> >>
> >> \setupfootertexts
> >>  [footer]
> >>  [footer]
> >>  [footer]
> >>  [footer]
> >>
> >> \starttext
> >>
> >> \startcolumnset[body]
> >>
> >> \dorecurse{20}{\input tufte\par}
> >>
> >> \stopcolumnset
> >>
> >> \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
> >
> ___
>
>
>
> --
> Peter Park Nelson
> peter.park.nel...@gmail.com
>
> ___
> 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] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Wolfgang Schuster

Am 26.01.2012 um 03:41 schrieb Peter Park Nelson:

> First-page layout is an issue that I have asked about before, but
> maybe I am doing something wrong. Here is my question in an earlier
> thread: 
> http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html.
> 
> I want to define a layout for the first page of my document with
> different header and footer formatting -- specifically, no header and
> a large footer to hold publication information. Based on examples on
> Contextgarden and this list, I think my code below is correct.
> However, the first page formatting is continued on all pages of the
> document. The effect is the same when using \definelayout[first] and
> \definelayout[1].

Is MkIV a option for you? The problem had been there for a while as well but 
now it’s fixed
you can decide what ConTeXt should do after the first page.

With the “state” you can control whether the layout at the second page should 
be switched
back to the global layout with \definelayout[…][state=start] (this is the 
default setting) or
it should remain with \definelayout[…][state=repeat].

> \definelayout
>  [first]
>  [width=middle,
>  backspace=15mm,
>  topspace=10mm,
>  height=254mm,
>  header=0mm,  % no header
>  headerdistance=0mm,
>  footer=25mm,  % big footer
>  footerdistance=5mm,
>  grid=yes]

You have to set only what’s different from the global layout.

\definelayout
 [first]
 [header=0mm,
  headerdistance=0mm,
  footer=25mm,
  footerdistance=5mm]

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] bug on margin data and line numbering?

2012-01-26 Thread Pablo Rodríguez
Hi there,

when I try to add margin data to a line numbered text, this line is not
counted or numbered.

See the sample with note referring to line 0:

\definelinenote[dict]
\setupnote[dict][numbercommand=,]
\definemargindata[mgch][outer][hoffset=0.3em]
\starttext
\startlinenumbering
\mgch{1}not so\dict{not}
\stoplinenumbering
\stoptext

I'm using ConTeXt stable from TL 2011.

Am I doing something wrong or have I hit a bug?

Thanks for your help,


Pablo
-- 
http://www.oudeis.tk
___
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] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
On Thu, Jan 26, 2012 at 12:18 PM, Wolfgang Schuster
 wrote:
>
> Am 26.01.2012 um 03:41 schrieb Peter Park Nelson:
>
>> First-page layout is an issue that I have asked about before, but
>> maybe I am doing something wrong. Here is my question in an earlier
>> thread: 
>> http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html.
>>
>> I want to define a layout for the first page of my document with
>> different header and footer formatting -- specifically, no header and
>> a large footer to hold publication information. Based on examples on
>> Contextgarden and this list, I think my code below is correct.
>> However, the first page formatting is continued on all pages of the
>> document. The effect is the same when using \definelayout[first] and
>> \definelayout[1].
>
> Is MkIV a option for you? The problem had been there for a while as well but 
> now it’s fixed
> you can decide what ConTeXt should do after the first page.
>
> With the “state” you can control whether the layout at the second page should 
> be switched
> back to the global layout with \definelayout[…][state=start] (this is the 
> default setting) or
> it should remain with \definelayout[…][state=repeat].
>
>> \definelayout
>>  [first]
>>  [width=middle,
>>  backspace=15mm,
>>  topspace=10mm,
>>  height=254mm,
>>  header=0mm,      % no header
>>  headerdistance=0mm,
>>  footer=25mm,      % big footer
>>  footerdistance=5mm,
>>  grid=yes]
>
> You have to set only what’s different from the global layout.
>
> \definelayout
>  [first]
>  [header=0mm,
>  headerdistance=0mm,
>  footer=25mm,
>  footerdistance=5mm]
>
> 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
> ___

Wolfgang and Wagner, thank you for taking the time to respond to this.

I am using MkIV. I just updated to the latest beta (I had been running
one beta behind). I was intentionally not using layout inheritance in
my \definelayout commands to eliminate the possibility of a problem in
the inheritance mechanism.

Interaction with columnsets also seems to be part of the problem, as I
will try to explain.

1.  In a layout with no columnset: \definelayout[first] creates a
unique layout for the first page and returns to the default layout on
page 2. BUT from page 3 onwards, the text does not go all the way to
the bottom of the text area (although \showframe indicates that the
text area is correct). A workaround is to add
\definelayout[current][...parameters that undo the first-page
parameters...].

2.  In a layout with a columnset
(\definecolumnset[body][n=2,balancing=yes]): use of
\definelayout[first] causes failure with the error message below.
Ignoring warnings and forcing Context to continue results in a pdf
with \showframe lines drawn correctly, but text not filling the whole
column height, as described previously.

#

ERROR MESSAGE:

system  > tex > error on line 70 in file J2-pagearea.tex:
Emergency stop ...

60   [footer]
61   [footer]
62
63 \starttext
64 \showframe
65 \showgrid
66
67
68 \startcolumnset[body]
69
70 >>  \dorecurse{40}{\input tufte \par }
71
72 %\input tufte \par
73
74 \stopcolumnset
75
76 \stoptext
77


\OTRSETdoifcellelse ...er #1:\number #2\endcsname
  \@EA \secondoftwoarguments...
\@@ar@@3 ...ellelse {\mofcolumns }\columnlastcell
  {\global \advance \columnl...
\redoloop ->\expandrecursecontent
  \endofloop

   {

44
\endofloop ...expr \recurselevel +\plusone \relax
  }
...
l.70 \dorecurse{40}{\input tufte \par }

End of file on the terminal!

!  ==> Fatal error occurred, no output PDF file produced!

-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
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] \setupfootnotes[margindistance=...]

2012-01-26 Thread Peter Münster
Hello,

\setupfootnotes[margindistance=...] seems to be broken.

Test file:

--8<---cut here---start->8---
\setupfootnotes[align=flushleft, margindistance=5em]
\starttext
bla\footnote{bla}
\stoptext
--8<---cut here---end--->8---

-- 
   Peter
___
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] "overscored" or "overlined" text … (or whatever it should be called)

2012-01-26 Thread Hans Hagen

On 25-1-2012 21:17, Aditya Mahajan wrote:


@Hans: Can we have \definemframed etc as well?


sure, the next beta will have ...

\starttext

\dontleavehmode test \mframed{x} test $x^{\mframed{x}}$ test 
\inmframed{x} test $x^{\inmframed{x}}$ test


\definemathframed[whatever][location=low]

\dontleavehmode test \whatever{x} test 
$x^{\whatever[framecolor=red]{x}}$ test



\definemathframed[another][whatever][background=color,backgroundcolor=blue,foregroundcolor=white]

\dontleavehmode test \another{x} test 
$x^{\another[framecolor=red]{x}}$ test


\stoptext


-
  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] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
On Thu, Jan 26, 2012 at 2:40 PM, Peter Park Nelson
 wrote:
> On Thu, Jan 26, 2012 at 12:18 PM, Wolfgang Schuster
>  wrote:
>>
>> Am 26.01.2012 um 03:41 schrieb Peter Park Nelson:
>>
>>> First-page layout is an issue that I have asked about before, but
>>> maybe I am doing something wrong. Here is my question in an earlier
>>> thread: 
>>> http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html.
>>>
>>> I want to define a layout for the first page of my document with
>>> different header and footer formatting -- specifically, no header and
>>> a large footer to hold publication information. Based on examples on
>>> Contextgarden and this list, I think my code below is correct.
>>> However, the first page formatting is continued on all pages of the
>>> document. The effect is the same when using \definelayout[first] and
>>> \definelayout[1].
>>
>> Is MkIV a option for you? The problem had been there for a while as well but 
>> now it’s fixed
>> you can decide what ConTeXt should do after the first page.
>>
>> With the “state” you can control whether the layout at the second page 
>> should be switched
>> back to the global layout with \definelayout[…][state=start] (this is the 
>> default setting) or
>> it should remain with \definelayout[…][state=repeat].
>>
>>> \definelayout
>>>  [first]
>>>  [width=middle,
>>>  backspace=15mm,
>>>  topspace=10mm,
>>>  height=254mm,
>>>  header=0mm,      % no header
>>>  headerdistance=0mm,
>>>  footer=25mm,      % big footer
>>>  footerdistance=5mm,
>>>  grid=yes]
>>
>> You have to set only what’s different from the global layout.
>>
>> \definelayout
>>  [first]
>>  [header=0mm,
>>  headerdistance=0mm,
>>  footer=25mm,
>>  footerdistance=5mm]
>>
>> 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
>> ___
>
> Wolfgang and Wagner, thank you for taking the time to respond to this.
>
> I am using MkIV. I just updated to the latest beta (I had been running
> one beta behind). I was intentionally not using layout inheritance in
> my \definelayout commands to eliminate the possibility of a problem in
> the inheritance mechanism.
>
> Interaction with columnsets also seems to be part of the problem, as I
> will try to explain.
>
> 1.  In a layout with no columnset: \definelayout[first] creates a
> unique layout for the first page and returns to the default layout on
> page 2. BUT from page 3 onwards, the text does not go all the way to
> the bottom of the text area (although \showframe indicates that the
> text area is correct). A workaround is to add
> \definelayout[current][...parameters that undo the first-page
> parameters...].
>
> 2.  In a layout with a columnset
> (\definecolumnset[body][n=2,balancing=yes]): use of
> \definelayout[first] causes failure with the error message below.
> Ignoring warnings and forcing Context to continue results in a pdf
> with \showframe lines drawn correctly, but text not filling the whole
> column height, as described previously.
>
> #
>
> ERROR MESSAGE:
>
> system          > tex > error on line 70 in file J2-pagearea.tex:
> Emergency stop ...
>
> 60       [footer]
> 61       [footer]
> 62
> 63     \starttext
> 64     \showframe
> 65     \showgrid
> 66
> 67
> 68     \startcolumnset[body]
> 69
> 70 >>  \dorecurse{40}{\input tufte \par }
> 71
> 72     %\input tufte \par
> 73
> 74     \stopcolumnset
> 75
> 76     \stoptext
> 77
>
>
> \OTRSETdoifcellelse ...er #1:\number #2\endcsname
>                                                  \@EA \secondoftwoarguments...
> \@@ar@@3 ...ellelse {\mofcolumns }\columnlastcell
>                                                  {\global \advance \columnl...
> \redoloop ->\expandrecursecontent
>                                  \endofloop
> 
>                   {
> 
>                44
> \endofloop ...expr \recurselevel +\plusone \relax
>                                                  }
> ...
> l.70 \dorecurse{40}{\input tufte \par }
>
> End of file on the terminal!
>
> !  ==> Fatal error occurred, no output PDF file produced!
>
> --
> Peter Park Nelson
> peter.park.nel...@gmail.com

More testing with the old columns mechanism instead of columnset:

\startcolumns[n=2] produces roughly the same result as no columns, the
text stops short of the bottom of the page. However, the
\definelayout[current] workaround I mentioned does not solve the
problem in this case.

I'm quite willing to abandon the columnset mechanism if I can get a
working solution with columns.

-- 
Peter Park Nelson
peter.park.nel...@gmail.com