Re: [NTG-context] localfootnotes broken in latest beta?

2012-06-14 Thread Hongwen Qiu

On 06/15/2012 12:18 PM, Wolfgang Schuster wrote:

Use this for the moment:

\placelocalfootnotes[height=\textheight]

Thanks, this works fine.

___
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] localfootnotes broken in latest beta?

2012-06-14 Thread Wolfgang Schuster

Am 15.06.2012 um 05:56 schrieb Hongwen Qiu:

> Hi,
> 
> The following minimal example works fine with context version 2011.05.18 
> 18:04 and luatex version beta-0.70.1-2011061410 (rev 4277) comes along 
> texlive 2011, but gives error with latest beta (context version 2012.06.13 
> 23:46 and luatex version beta-0.70.2-2012052410 (TeX Live 2012)).
> 
> Minimal example:
> 
> \starttext
> 
> \startlocalfootnotes
> Test\footnote{test}
> \placelocalfootnotes


Use this for the moment:

\placelocalfootnotes[height=\textheight]

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] localfootnotes broken in latest beta?

2012-06-14 Thread Hongwen Qiu

Hi,

The following minimal example works fine with context version 2011.05.18 
18:04 and luatex version beta-0.70.1-2011061410 (rev 4277) comes along 
texlive 2011, but gives error with latest beta (context version 
2012.06.13 23:46 and luatex version beta-0.70.2-2012052410 (TeX Live 2012)).


Minimal example:

\starttext

\startlocalfootnotes
Test\footnote{test}
\placelocalfootnotes
\stoplocalfootnotes

\stoptext

Error emitted by latest beta:
! Missing number, treated as zero.

system  > tex > error on line 7 in file test.tex: Missing 
number, treated as zero ...


1 \starttext
2
3 \startlocalfootnotes
4 Test\footnote{test}
5 \placelocalfootnotes
6 \stoplocalfootnotes
7 >>
8 \stoptext
9


   f
\v!fit ->f
  it
\369>footnote ...dimexpr \noteparameter \c!height
*\c_strc_notes_columns \re...
\strc_notes_set_properties ..._notes_set_location
\strc_notes_set_delayed
 ...yed \strc_notes_set_properties
\strc_notes_check_locations
\strc_notes_synchronize ... \everysynchronizenote

...
l.6 \stoplocalfootnotes


___
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] Testing the changing dimensions of boxes (in cycles) via Lua

2012-06-14 Thread Jaroslav Hajtmar

Hello ConTeXist and Lua experts.

In a my Lua project I need to determine the changing dimensions of the 
TeX \vbox through Lua.
In ConTeXt cycle, it works fine, but in the Lua cycle does not change 
the dimensions of the box.

What am I doing wrong?

Thank you.

Jaroslav Hajtmar

Here is my minimal example:

\newdimen\lsize

\def\contentofvbox{\input ward }

\def\setmybox{\setbox0=\vbox{\hsize=\lsize \contentofvbox}}

\starttext

Height of box via ConTeXt (works fine):

\setmybox

\lsize=5cm
\dorecurse{3}{%
\lsize=\dimexpr(\lsize+7mm)
\setmybox
height of box: \the\ht0\par
width of box: \the\wd0\par
\box0\par
}

\page

... and Height of box via Lua (do not working):

\setmybox

\ctxlua{
tex.dimen.lsize=5*72.27*65536/25.4

for i=1, 3 do
tex.dimen.lsize=tex.dimen.lsize+7*72.27*65536/25.4
context([[\setmybox]])
local heightbox=tex.box[0].height
local widthbox=tex.box[0].width
heightbox=(heightbox*2.84527559067*25.4)/(72.27*65536)
widthbox=(widthbox*2.84527559067*25.4)/(72.27*65536)
context([[height of box:]]..heightbox.."pt\\par")
context([[width of box:]]..widthbox.."pt\\par")
context([[\box0\par]])
end
}



\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] Is it possible to generate eps files using metafun and context?

2012-06-14 Thread Hongwen Qiu

Hi,

Is it possible to typeset the label with context and generate eps output 
files using the metafun format? If yes, then how?


TIA.
___
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] vertical alignment in the header text

2012-06-14 Thread Jeong Dalyoung
Dear Hans,

Thank you for your solution.
I tried \dontleavehmode\vfill infront of the header text which invoked an error.
I didn't think about \setupheader.

Thank you again.

Best regards,

Dalyoung


2012. 6. 14., 오후 7:52, Hans Hagen 작성:

> On 14-6-2012 12:31, Jeong Dalyoung wrote:
>> \setuplayout[header=1cm, width=18cm, backspace=1.5cm]
>> \setupbackgrounds[header][text][bottomframe=on,topframe=on]
>> \setupheadertexts[][header\hfill header\hfill header]
>> \setuppagenumbering[location=footer]
>> \starttext
>> \input knuth
>> \stoptext
> 
> \setupheader[before=\vfil,after=\vfil]
> 
> 
> -- 
> 
> -
>  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] vertical alignment in the header text

2012-06-14 Thread Hans Hagen

On 14-6-2012 12:31, Jeong Dalyoung wrote:

\setuplayout[header=1cm, width=18cm, backspace=1.5cm]
\setupbackgrounds[header][text][bottomframe=on,topframe=on]
\setupheadertexts[][header\hfill header\hfill header]
\setuppagenumbering[location=footer]
\starttext
\input knuth
\stoptext


\setupheader[before=\vfil,after=\vfil]


--

-
  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] vertical alignment in the header text

2012-06-14 Thread Jeong Dalyoung
Dear all,

In the following sample, header text located at the top of the header.
But, I'd like to align the header text in vertical center. 
I tried \dontleavehmode, \vfill, top=\vss, etc, but I couldn't succeed.



\setuplayout[header=1cm, width=18cm, backspace=1.5cm]
\setupbackgrounds[header][text][bottomframe=on,topframe=on]
\setupheadertexts[][header\hfill header\hfill header]
\setuppagenumbering[location=footer]
\starttext
\input knuth
\stoptext



How to control the vertical alignment in the header?

Thank you.

Best regards,

Dalyoung


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

2012-06-14 Thread Hans Hagen

Hi,

two table mechanisms now have the textwidth (max available width) set to 
local which makes it work inside for instance text backgrounds


\starttext

\starttextbackground

\input ward

\bTABLE % [textwidth=local]
\bTR
\bTD \input ward \eTD
\bTD \input ward \eTD
\eTR
\eTABLE

\startxtable % [textwidth=local]
\startxrow
\startxcell \input ward \stopxcell
\startxcell \input ward \stopxcell
\stopxrow
\stopxtable

\stoptextbackground

\stoptext

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

2012-06-14 Thread Steffen Wolfrum

Nice feature!

Thanks,
Steffen


Am 14.06.2012 um 09:56 schrieb Hans Hagen:

> Hi,
> 
> I probably forgot to tell, but since a fee betas we have
> 
> \setupexternalfigures
>  [order={pdf,png,jpg},
>   directory={./images},
>   ..]
> 
> i.e. the order key can enforce the quality order as well as limit the amount 
> of lookups (which saves time when images are -still- missing)
> 
> 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
> ___

___
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

2012-06-14 Thread Hans Hagen

Hi,

I probably forgot to tell, but since a fee betas we have

\setupexternalfigures
  [order={pdf,png,jpg},
   directory={./images},
   ..]

i.e. the order key can enforce the quality order as well as limit the 
amount of lookups (which saves time when images are -still- missing)


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] widow and orphans in columns

2012-06-14 Thread Pavel Dohnal
Thank you! It works exactly as I need.
Pavel

2012/6/14 Philipp Gesang :
> Hi Pavel!
>
> ·
>> Hello,
>> I am trying to avoid widow and orphans in multicolumn document. My settings:
>> \clubpenalty=1
>> \widowpenalty=1
>> does not any effect, and last row of the paragraph is on the only row
>> of the second column. Column is is started by this command:
>> \startcolumns[n=2,distance=1cm,balance=no,tolerance=stretch,ntop=2]
>> Can you help me with this problem?
>
> 1. You could help too by supplying a MWE.
>
> 2. Did you try setting the penalties inside the columns
>   environment? (They are zeroed with \startcolumns.)
> ···
>  \setuplayout[height=7cm]
>  \starttext
>  \startcolumns[n=2,distance=1cm,balance=no,tolerance=stretch,ntop=2]
>    \clubpenalty1
>    \widowpenalty1
>    \dorecurse{10}{\input knuth \par}
>  \stopcolumns
>  \stoptext
> ···
>
> Regards
> Philipp
>
>
>> Thank you
>>   Pavel Dohnal
>> ___
>> 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
>> ___
>
> --
> ()  ascii ribbon campaign - against html e-mail
> /\  www.asciiribbon.org   - against proprietary attachments
>
> ___
> 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] widow and orphans in columns

2012-06-14 Thread Philipp Gesang
Hi Pavel!

·
> Hello,
> I am trying to avoid widow and orphans in multicolumn document. My settings:
> \clubpenalty=1
> \widowpenalty=1
> does not any effect, and last row of the paragraph is on the only row
> of the second column. Column is is started by this command:
> \startcolumns[n=2,distance=1cm,balance=no,tolerance=stretch,ntop=2]
> Can you help me with this problem?

1. You could help too by supplying a MWE.

2. Did you try setting the penalties inside the columns
   environment? (They are zeroed with \startcolumns.)
···
  \setuplayout[height=7cm]
  \starttext
  \startcolumns[n=2,distance=1cm,balance=no,tolerance=stretch,ntop=2]
\clubpenalty1
\widowpenalty1
\dorecurse{10}{\input knuth \par}
  \stopcolumns
  \stoptext
···

Regards
Philipp


> Thank you
>   Pavel Dohnal
> ___
> 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
> ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgp8eaEqRBdYC.pgp
Description: PGP 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] widow and orphans in columns

2012-06-14 Thread Pavel Dohnal
Hello,
I am trying to avoid widow and orphans in multicolumn document. My settings:
\clubpenalty=1
\widowpenalty=1
does not any effect, and last row of the paragraph is on the only row
of the second column. Column is is started by this command:
\startcolumns[n=2,distance=1cm,balance=no,tolerance=stretch,ntop=2]
Can you help me with this problem?
Thank you
  Pavel Dohnal
___
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
___