Re: [NTG-context] Interlinespace in layers

2011-12-05 Thread Hans Hagen

On 5-12-2011 01:39, Jan Heinen wrote:

I solved the problem myself:

First I used \showstruts to se struts - and only before and after the
first line there were struts.

Then I added the following argument into the \setlayerframed:
strut=no

\setlayerframed [Kontaktdaten]
[
width=80mm,
height=180mm,
hoffset=50mm,
voffset=50mm,
frame=on,
align=right,
strut=no]
{\FontKlein\setupinterlinespace[8pt] Ich bin Blindtext ...}


I don't understand this problem with the strut but I solved it :-)


just run with \showstruts and you see what happens



-
  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] Bad linebreak in ToC

2011-12-05 Thread Markus Finke

Hello,

I don’t understand the behaviour in the second line – this line is not 
really filled, but there is a linebreak (in case of some hyphenations 
quite ugly too)


Any solution?

Markus





\usemodule [simplefonts]
\definefontfeature [default] [default] [mode=node, script=latn]
\setupbodyfont [12pt]

\definefontsize [g]
\setupbodyfontenvironment [default] [g=0.95]

\setuplist [section]
   [alternative=b,
  width=1.2em,
  style=\tt\tfg]

\usemodule [typearea] \setupTypeArea [alphabets=1.8]

\starttext
\completelist

\startsection [title={Sectiontitle},
list={Sectiontitle abc abc abc abc abc abc abc abc abc 
abc abc abc abc abc abc abc abc abc abc abc abc abc}]

\stopsection

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

2011-12-05 Thread Andreas Harder
Hi Hans,

it seems that tabulate environments are not exported correctly. Here is an 
example.

\setupbackend[export=yes]

\starttext
  \starttabulate[|l|c|r|]
  \NC left \NC center \NC right \NC \NR
  \NC l\NC c  \NC r \NC \NR
  \stoptabulate
\stoptext

exports to:  tabulate /tabulate


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

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


[NTG-context] Passing TeX parameters to the lua functions

2011-12-05 Thread Jaroslav Hajtmar

Hello ConTeXist.
Sorry for the beginner question, more for Lua(TeX) experts.
Can somehow be achieved that the parameter of TeX macro get to 
luafunction unchanged?

In the debug.txt file is the result obtained.

Thanx Jaroslav

\startluacode
debug=io.open(debug.txt,w+)

function testfun(param)
debug:write(param)
-- tex.print(param)
end

\stopluacode


\def\testmac#1{\directlua{testfun('#1')}}

\starttext

$\frac{x_\alpha+y_\beta}{z_\gamma}$

\testmac{\frac{x_\alpha+y_\beta}{z_\gamma}}

\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] Passing TeX parameters to the lua functions

2011-12-05 Thread Wolfgang Schuster

Am 05.12.2011 um 21:22 schrieb Jaroslav Hajtmar:

 Hello ConTeXist.
 Sorry for the beginner question, more for Lua(TeX) experts.
 Can somehow be achieved that the parameter of TeX macro get to luafunction 
 unchanged?
 In the debug.txt file is the result obtained.
 
 Thanx Jaroslav
 
 \startluacode
 debug=io.open(debug.txt,w+)
 
 function testfun(param)

Use the thirddata or userdata namespace for for functions.

debug:write(param)
-- tex.print(param)
 end
 
 \stopluacode
 
 
 \def\testmac#1{\directlua{testfun('#1')}}

\unprotect
\def\testmac#1{\ctxlua{testfun(\!!bs\detokenize{#1}\!!es)}}
\protect

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] Passing TeX parameters to the lua functions

2011-12-05 Thread Jaroslav Hajtmar

Thanx Wolfgang.
In ConTeXt this solution works well.
Exist any similar solution in pure LuaTeX? I need solve one problem in 
pure LuaTeX.


But solutions in Context I will also throw - thanx.

Jaroslav



Dne 5.12.2011 21:33, Wolfgang Schuster napsal(a):

Am 05.12.2011 um 21:22 schrieb Jaroslav Hajtmar:

   

Hello ConTeXist.
Sorry for the beginner question, more for Lua(TeX) experts.
Can somehow be achieved that the parameter of TeX macro get to luafunction 
unchanged?
In the debug.txt file is the result obtained.

Thanx Jaroslav

\startluacode
debug=io.open(debug.txt,w+)

function testfun(param)
 

Use the thirddata or userdata namespace for for functions.

   

debug:write(param)
-- tex.print(param)
end

\stopluacode


\def\testmac#1{\directlua{testfun('#1')}}
 

\unprotect
\def\testmac#1{\ctxlua{testfun(\!!bs\detokenize{#1}\!!es)}}
\protect

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] Passing TeX parameters to the lua functions

2011-12-05 Thread Wolfgang Schuster

Am 05.12.2011 um 22:06 schrieb Jaroslav Hajtmar:

 Thanx Wolfgang.
 In ConTeXt this solution works well.
 Exist any similar solution in pure LuaTeX? I need solve one problem in pure 
 LuaTeX.

\def\…#1{\directlua{…([==[\detokenize{#1}]==])}}

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] Passing TeX parameters to the lua functions

2011-12-05 Thread Jaroslav Hajtmar

Great, great, great...
It works very well
Thanx very much...

Jaroslav

Dne 5.12.2011 22:08, Wolfgang Schuster napsal(a):

Am 05.12.2011 um 22:06 schrieb Jaroslav Hajtmar:

   

Thanx Wolfgang.
In ConTeXt this solution works well.
Exist any similar solution in pure LuaTeX? I need solve one problem in pure 
LuaTeX.
 

\def\…#1{\directlua{…([==[\detokenize{#1}]==])}}

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] Preserving Output Files

2011-12-05 Thread Kip Warner
Hey list,

I've searched the list, but couldn't seem to dig up anything that I
thought was relevant.

How do I get ConTeXt to preserve all files necessary to run the same
invocation of LuaTeX it executed when it was run. As an example, when I
run the following...

$ context Source/Handbook.tex --result=Handbook.pdf

...it says that it ran the following...

luatex
--fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en
 
--lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
 --backend=pdf Handbook.tex

If I run the same luatex command on its own, it cannot find the
temporary working files passed to it in its parameters. I tried running
ConTeXt with the --keep argument, but those temporary files were still
not preserved.

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

[NTG-context] GenBasR.ttf and GenBasRI.ttf are missing from minimals

2011-12-05 Thread Khaled Hosny
Other Gentium files are present, but those 2 are missing.

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
___