[NTG-context] math: \text does not scale properly

2012-10-04 Thread Andreas Mang
Hi there,

As Aditya mentioned in a former posting (*) that \text{ ... } should scale 
properly when used as super- or subscript, I have prepared a minimal example to 
demonstrate that it doesn't. In my document I have switched from \text{ } to 
\normal, which works.

Kind regards,
Andreas

ConTeXt  ver: 2012.09.25 21:44 MKIV  fmt: 2012.10.1

%% MINIMAL EXAMPLE
\setupbodyfont[xits]

\starttext

$f_{\text{text}_{\text{text}_{\text{text$

$f_{{\normal text}_{{\normal text}_{\normal text}}}$

\stoptext
%% MINIMAL EXAMPLE

(*) see [NTG-context] punctuation vs font switch


___
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] math: \text does not scale properly

2012-10-04 Thread Alan BRASLAU
On Thu, 4 Oct 2012 09:10:17 +0200
Andreas Mang m...@imt.uni-luebeck.de wrote:

 Hi there,
 
 As Aditya mentioned in a former posting (*) that \text{ ... }
 should scale properly when used as super- or subscript, I have
 prepared a minimal example to demonstrate that it doesn't. In my
 document I have switched from \text{ } to \normal, which works.
 
 Kind regards,
 Andreas
 
 ConTeXt  ver: 2012.09.25 21:44 MKIV  fmt: 2012.10.1
 
 %% MINIMAL EXAMPLE
 \setupbodyfont[xits]
 
 \starttext
 
 $f_{\text{text}_{\text{text}_{\text{text$
 
 $f_{{\normal text}_{{\normal text}_{\normal text}}}$
 
 \stoptext
 %% MINIMAL EXAMPLE
 
 (*) see [NTG-context] punctuation vs font switch

Hello,

I generally use \mathrm{} (maybe this is a leftover from LaTeX
practice), and this works fine.

Alan


\setupbodyfont [xits]
\starttext
$f_{\mathrm{text}_{\mathrm{text}_{\mathrm{text$

$f_{{\normal text}_{{\normal text}_{\normal text}}}$
\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] math: \text does not scale properly

2012-10-04 Thread Andreas Mang
Hi Alan,

thanks for your help. That's indeed an option, but not much of a difference to 
using \normal I suppose.

In addition, \text has the nice feature of preserving the space character, 
which makes it very useful for lazy people (of course I can add \, and 
friends but...).

Cheers,
Andreas

ConTeXt  ver: 2012.09.25 21:44 MKIV  fmt: 2012.10.1

 MINIMAL EXAMPLE  
\setupbodyfont[xits]

\starttext

$f_{\mathrm{text and text}_{\mathrm{text and text}_{\mathrm{text and text$

$f_{\text{text and text}_{\text{text and text}_{\text{text and text$

$f_{{\normal text}_{{\normal text}_{\normal text}}}$

\stoptext
 MINIMAL EXAMPLE  




Am Oct 4, 2012 um 9:27 AM schrieb Alan BRASLAU:

 On Thu, 4 Oct 2012 09:10:17 +0200
 Andreas Mang m...@imt.uni-luebeck.de wrote:
 
 Hi there,
 
 As Aditya mentioned in a former posting (*) that \text{ ... }
 should scale properly when used as super- or subscript, I have
 prepared a minimal example to demonstrate that it doesn't. In my
 document I have switched from \text{ } to \normal, which works.
 
 Kind regards,
 Andreas
 
 ConTeXt  ver: 2012.09.25 21:44 MKIV  fmt: 2012.10.1
 
 %% MINIMAL EXAMPLE
 \setupbodyfont[xits]
 
 \starttext
 
 $f_{\text{text}_{\text{text}_{\text{text$
 
 $f_{{\normal text}_{{\normal text}_{\normal text}}}$
 
 \stoptext
 %% MINIMAL EXAMPLE
 
 (*) see [NTG-context] punctuation vs font switch
 
 Hello,
 
 I generally use \mathrm{} (maybe this is a leftover from LaTeX
 practice), and this works fine.
 
 Alan
 
 
 \setupbodyfont [xits]
 \starttext
 $f_{\mathrm{text}_{\mathrm{text}_{\mathrm{text$
 
 $f_{{\normal text}_{{\normal text}_{\normal text}}}$
 \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] Math and units

2012-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

which is the most correct way to display units (here: kN) in math formula?


\starttext
  \startformula
a = 210 kN % kN is shown like a variable (here: like 'a'), which is 
unwanted
  \stopformula

  \startformula
a = 210 \unit{kN} % No unit is displayed (?!)
  \stopformula

  \startformula
a = 210 \text{~kN} % '~' required?, ugly way
  \stopformula
\stoptext


TIA.

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

t-Formula.mkiv
Description: Binary data


t-Formula.pdf
Description: Adobe PDF document
___
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] Math and units

2012-10-04 Thread Wolfgang Schuster

Am 04.10.2012 um 11:07 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:

 Hello,
 
 which is the most correct way to display units (here: kN) in math formula?
 
 
 \starttext
  \startformula
a = 210 kN % kN is shown like a variable (here: like 'a'), which is 
 unwanted
  \stopformula
 
  \startformula
a = 210 \unit{kN} % No unit is displayed (?!)
  \stopformula
 
  \startformula
a = 210 \text{~kN} % '~' required?, ugly way
  \stopformula
 \stoptext
 


The units code doesn’t know how to deal with “N” but you can use the full name 
of the unit (can also be lowercase) or “n” which is also accepted.

\starttext

\startformula
  a = \unit{210 kilo Newton}
\stopformula

\startformula
  a = 210 \unit{kilo Newton}
\stopformula

\startformula
  a = 210 \unit{k Newton}
\stopformula

\startformula
  a = 210 \unit{kn}
\stopformula

\stoptext

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] Math and units

2012-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Thu, 04 Oct 2012 11:32:20 +0200, Wolfgang Schuster 
wolfgang.schus...@gmail.com wrote:


The units code doesn’t know how to deal with “N” but you can use the full name 
of the unit (can also be lowercase) or “n” which is also accepted.

\starttext

\startformula
  a = \unit{210 kilo Newton}
\stopformula

\startformula
  a = 210 \unit{kilo Newton}
\stopformula

\startformula
  a = 210 \unit{k Newton}
\stopformula

\startformula
  a = 210 \unit{kn}
\stopformula

\stoptext

Wolfgang


Thanks, this works (I had to renew 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
___

[NTG-context] Lua in Ctx: require() fails?

2012-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I just renewed ConTeXt and new error when using require appears (it worked OK 
until the update):

 t-Req.mkiv
\startluacode
  require Test-U
\stopluacode

\starttext
  A
\stoptext



mtx-context | run 1: luatex --fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en 
--interaction=nonstopmode --jobname=t-Req 
--lua=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui --no-parse-first-line 
--c:FILE=t-Req.mkiv --c:currentrun=1 --c:fulljobname=C:/Lukas/ConTeXt/Test/t-Req.mkiv --c:halt-on-error 
--c:input=C:/Lukas/ConTeXt/Test/t-Req.mkiv --c:kindofrun=1 --c:mode=t-Req --c:nonstopm
ode cont-yes.mkiv
This is LuaTeX, Version beta-0.70.2-2012092822 (TeX Live 2012/W32TeX)
 \write18 enabled.
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2012.10.02 22:03 MKIV  fmt: 2012.10.4  int: english/english

system   cont-new.mkiv loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
fontslatin modern fonts are not preloaded
languageslanguage en is active
(C:/Lukas/ConTeXt/Test/t-Req.mkiv
! LuaTeX error main ctx instance:2: module 'Test-U' not found:
no field package.preload['Test-U']
no file 'Test-U.dll'
no file 'c:\Program Files\Lua\5.1\clibs\Test-U.dll'
no file 'C:\Lukas\Lua\Test-U.dll'
stack traceback:
[C]: in function 'require'
main ctx instance:2: in main chunk.

system   tex  error on line 3 in file 
C:/Lukas/ConTeXt/Test/t-Req.mkiv: LuaTeX error  ...

1 \startluacode
2   require Test-U
3   \stopluacode
4
5 \starttext
6   A
7 \stoptext
8

} require Test-U.erocount {

\luat_start_lua_code_indeed ...ua \zerocount {#1}}

l.3 \stopluacode
...


 Test-U.lua
print(This is Test-U.)


The Test-U.lua is located at:

c:\Lukas\Lua\Test-U.lua

And (some) environment variables are:


C:\Lukas\ConTeXt\Testset lua
LUA_CPATH=?.dll;c:\Program Files\Lua\5.1\clibs\?.dll;C:\Lukas\Lua\?.dll
LUA_DEV=C:\Program Files\Lua\5.1
LUA_PATH=?.lua;C:\Program 
Files\Lua\5.1\lua\?.luac;C:\Lukas\Lua\?.lua;C:\Lukas\Common\Statics\?.lua;C:\Lukas\Lua\3rdParty\?.lua;C:\Lukas\Lua\3rdParty\stdlib\modules\?.lua


- So the Test-U.lua should be found.

So what's wrong? What's been renewed in this matter? How to require a Lua 
file (module) correctly?

Personally - I've been using require file-name so far at many places and 
there was no problem with it.

TIA.

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

Test-U.lua
Description: Binary data


t-Req.log
Description: Binary data


t-Req.mkiv
Description: Binary data
___
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] Math and units

2012-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Thu, 04 Oct 2012 12:04:14 +0200, Alan BRASLAU alan.bras...@cea.fr wrote:


\startformula
  a = 21407 g
\stopformula

:)

The units code should certainly know how to deal with N...

Alan


- But g is shown like a variable (here: like 'a') - unwanted...

I must substitute N - Newton...

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] Lua in Ctx: require() fails?

2012-10-04 Thread Hans Hagen

On 4-10-2012 12:09, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


Personally - I've been using require file-name so far at many places
and there was no problem with it.


try with

\enabletrackers[resolvers.libraries]



-
  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] Lua in Ctx: require() fails?

2012-10-04 Thread Hans Hagen

On 4-10-2012 13:27, Hans Hagen wrote:

On 4-10-2012 12:09, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


Personally - I've been using require file-name so far at many places
and there was no problem with it.


try with

\enabletrackers[resolvers.libraries]


btw, you should adapt LUAINPUTS and not some other environment variable 
.. after all, luatex is not native lua so you need to avoid conflicts in 
case you hav einstalled both


-
  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] Issues with the legend mechanism

2012-10-04 Thread Marco Patzer
Hi,

I discovered some issues with the legend mechanism.

1) A newline after \startplacelegend fails:

\starttext
\startplacelegend

  \startcontent
Foo
  \stopcontent
  \startcaption
Bar
  \stopcaption
\stopplacelegend
\stoptext


2) location != top | bottom throws “Infinite glue shrinkage found in
   a paragraph”:

\starttext
  \startplacelegend [location=left]
\startcontent
  Foo
\stopcontent
\startcaption
  Bar
\stopcaption
  \stopplacelegend
\stoptext


3) tabulate inside the content fails when not boxed:

\starttext
  \startplacelegend [location=left]
\startcontent
  \starttabulate
\NC Alpha \NC Beta \NC\NR
  \stoptabulate
\stopcontent
\startcaption
  Bar
\stopcaption
  \stopplacelegend
\stoptext


Just reporting, nothing which needs to be fixed before EuroTeX.


Marco

___
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] Issues with the legend mechanism

2012-10-04 Thread Wolfgang Schuster

Am 04.10.2012 um 14:00 schrieb Marco Patzer home...@lavabit.com:

 Hi,
 
 I discovered some issues with the legend mechanism.
 
 1) A newline after \startplacelegend fails:
 
 \starttext
 \startplacelegend
 
  \startcontent
Foo
  \stopcontent
  \startcaption
Bar
  \stopcaption
 \stopplacelegend
 \stoptext
 
 
 2) location != top | bottom throws “Infinite glue shrinkage found in
   a paragraph”:
 
 \starttext
  \startplacelegend [location=left]
\startcontent
  Foo
\stopcontent
\startcaption
  Bar
\stopcaption
  \stopplacelegend
 \stoptext

pack-com.mkiv (replace \hss with \vss):

\setvalue{\??pairedboxalign\v!middle}% 4
  {\let\pack_pairedboxes_align_l\hss
   \let\pack_pairedboxes_align_r\hss
-  \let\pack_pairedboxes_align_t\hss
-  \let\pack_pairedboxes_align_b\hss}
+  \let\pack_pairedboxes_align_t\vss
+  \let\pack_pairedboxes_align_b\vss}


 3) tabulate inside the content fails when not boxed:
 
 \starttext
  \startplacelegend [location=left]
\startcontent
  \starttabulate
\NC Alpha \NC Beta \NC\NR
  \stoptabulate
\stopcontent
\startcaption
  Bar
\stopcaption
  \stopplacelegend
 \stoptext


You can place the tabulate environment only with the second group of the 
legend, it doesn’t
matter when you change the position of \startcaption and \startcontent because 
because
both commands are synonyms for \bgroup.

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] Lua in Ctx: require() fails?

2012-10-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Thu, 04 Oct 2012 13:27:40 +0200, Hans Hagen pra...@wxs.nl wrote:


On 4-10-2012 12:09, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


Personally - I've been using require file-name so far at many places
and there was no problem with it.


try with

\enabletrackers[resolvers.libraries]


- OK -


\enabletrackers[resolvers.libraries]

\startluacode
   require Test-U
\stopluacode

\starttext
   A
\stoptext


- I'm getting:


C:\Lukas\ConTeXt\Testt-Req.mkiv

C:\Lukas\ConTeXt\Testset PATH=c:\ConTeXt\tex\texmf-mswin\bin;C:\Program 
Files\Windows Resource 
Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program 
Files\Common Files\Autodesk 
Shared\;C:\PROGRA~1\COMMON~1\AUTODE~1\GIS\IMPORT~1\1.0;c:\Program Files\Microsoft 
SQL Server\100\DTS\Binn\;C:\Program Files\Lua\5.1;C:\Program 
Files\Lua\5.1\clibs;C:\Lukas\..\Programs.Con\Ponton;C:\Program 
Files\Pandoc\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program 
Files\Tesseract-OCR;C:\Lukas/Bat
;C:\Lukas/../Programs.Con;;C:\PROGRA~1\COMMON~1\AUTODE~1

C:\Lukas\ConTeXt\Testrem The lowercase c: if fatally necesssary!

C:\Lukas\ConTeXt\Testset TEXMFHOME=;C:\Lukas\ConTeXt\Fonts

mtx-context | run 1: luatex --fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en 
--interaction=nonstopmode --jobname=t-Req 
--lua=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui --no-parse-first-line 
--c:FILE=t-Req.mkiv --c:currentrun=1 --c:fulljobname=C:/Lukas/ConTeXt/Test/t-Req.mkiv --c:halt-on-error 
--c:input=C:/Lukas/ConTeXt/Test/t-Req.mkiv --c:kindofrun=1 --c:mode=t-Req --c:nonstopm
ode cont-yes.mkiv
This is LuaTeX, Version beta-0.70.2-2012092822 (TeX Live 2012/W32TeX)
  \write18 enabled.
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2012.10.02 22:03 MKIV  fmt: 2012.10.4  int: english/english

system   cont-new.mkiv loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
fontslatin modern fonts are not preloaded
languageslanguage en is active
(C:/Lukas/ConTeXt/Test/t-Req.mkiv
resolverslibraries  ! locating Test-U as Test-U.lua using formats 
texlua
resolverslibraries  ! checking for Test-U.lua' using format tex
resolverslibraries  ! checking for Test-U.lua' using format lua
resolverslibraries  ! locating Test-U as Test-U.dll using formats 
lib
resolverslibraries  ! checking for Test-U.dll' using format lib
resolverslibraries  ! locating Test-U as Test-U.lua on lua paths
resolverslibraries  ! checking for Test-U.lua using lua path .
resolverslibraries  ! checking for Test-U.lua using lua path 
C:/Lukas/ConTeXt/Fonts
resolverslibraries  ! checking for Test-U.lua using lua path 
c:/ConTeXt/tex/texmf-project
resolverslibraries  ! checking for Test-U.lua using lua path 
c:/ConTeXt/tex/texmf-fonts
resolverslibraries  ! checking for Test-U.lua using lua path 
c:/ConTeXt/tex/texmf-local
resolverslibraries  ! checking for Test-U.lua using lua path 
c:/ConTeXt/tex/texmf-modules
resolverslibraries  ! checking for Test-U.lua using lua path 
c:/ConTeXt/tex/texmf-context
resolverslibraries  ! checking for Test-U.lua using lua path 
c:/ConTeXt/tex/texmf-mswin
resolverslibraries  ! checking for Test-U.lua using lua path 
c:/ConTeXt/tex/texmf/tex/context/
resolverslibraries  ! checking for Test-U.lua using lua path 
/tex/plain/base/
resolverslibraries  ! checking for Test-U.lua using lua path 
/tex/generic/
resolverslibraries  ! checking for Test-U.lua using lua path 
c:/ConTeXt/tex/texmf/scripts/context/lua/
resolverslibraries  ! locating Test-U as Test-U.lua on lua paths
resolverslibraries  ! checking for Test-U.lua using lua path .
resolverslibraries  ! checking for Test-U.lua using lua path 
c:/ConTeXt/tex/texmf-mswin/bin/lib/context/lua/
resolverslibraries  ! checking for Test-U.lua using lua path 
c:/ConTeXt/tex/texmf-mswin/bin/lib/luatex/lua/
resolverslibraries  ! checking for Test-U.lua using lua path 
c:/ConTeXt/tex/texmf-mswin/bin/lib/lua/
resolverslibraries  ! locating Test-U as Test-U.dll on lib paths
resolverslibraries  ! checking for Test-U.dll using lib path .
resolverslibraries  ! checking for Test-U.dll using lib path 
c:/ConTeXt/tex/texmf-mswin/bin/lib/context/lua/
resolverslibraries  ! checking for Test-U.dll using lib path 
c:/ConTeXt/tex/texmf-mswin/bin/lib/luatex/lua/
resolverslibraries  ! checking for Test-U.dll using lib path 
c:/ConTeXt/tex/texmf-mswin/bin/lib/lua/
resolverslibraries  ! locating Test-U using normal loader
resolverslibraries  ? unable to locate library Test-U
! LuaTeX error main ctx instance:2: module 'Test-U' not found:
 no field 

Re: [NTG-context] Defining a title font.

2012-10-04 Thread john Culleton
On Wed, 3 Oct 2012 10:45:39 +0200
Wolfgang Schuster wolfgang.schus...@gmail.com wrote:

 
  
 The command ___ mkluatexfontdb___ creates a font database for LaTeX
 (or more concrete the luaotfload package) but context has always used
 it___s own font database.
 
 To update the font database for context you have to call ___mtxrun
 --script fonts --reload___ but the script searches for system fonts
 only on windows and mac machines. When you___re working on a linux
 system you have to set the ___OSFONTDIR___ variable first.
 
 Read also this:
 http://wiki.contextgarden.net/Fonts_in_LuaTeX#Building_the_font_database
 
 Wolfgang
 
 followed the advice in the wiki but with modifications. On my
Slackware single-user system the OTF fonts are in
/usr/share/fonts/OTF
So my Context script now contains just two commands:

export OSFONTDIR=/usr/share/fonts/OTF
context $1

And the title.tex file now looks like this:


\usemodule[simplefonts]
\definefont [titlefont][MyriadPro-Bold at 70bp]   
\definefont [subtitle][MyriadPro-Bold at 25bp]   
\startstandardmakeup
\titlefont 
\centerline{Scribus}
\vskip 10pt
\subtitle
\centerline {for}
\vskip 10pt
\titlefont
\centerline{Book Covers}
\subtitle

\vfil
\centerline{Free Publishing Software Series}
\vfil
\rm
\stopstandardmakeup
--

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at http://www.booklocker.com/books/4055.html
___
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] Chapters without chapter number

2012-10-04 Thread Pavel Hanák
Hi all,

I would like to ask what is the best way to achieve this:

The title line of the chapter should be without the chapter number,
but the chapter number should be on all subsequent pages in the header.

I tried this:

\setuphead
  [chapter]
  [header=empty,
   number=no
  ]

\setupheadertexts[{\getmarking[chapternumber]. \getmarking[chapter]}]
  
which makes the title of the chapter on the first page correctly without
the chapter number, but then I have no chapter number on subsequent
pages in the header. It looks like setting number=no in
\setuphead definition breaks my expected behaviour of marking.

So I tried:

\setuphead
  [chapter]
  [header=empty,
   sectionnumber=no
  ]

but id didn't work either.

So I ended by:

\def\MyChapterTitle#1#2{#2}%

\setuphead
  [chapter]
  [header=empty,
   command=\MyChapterTitle,
  ]

\setupheadertexts[{\getmarking[chapternumber]. \getmarking[chapter]}]

which is working like expected, but I wonder, why I am not able to
achieve the result using keywords number or sectionnumber.

Thanks.

Pavel

___
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] Chapters without chapter number

2012-10-04 Thread Wolfgang Schuster

Am 04.10.2012 um 19:18 schrieb Pavel Hanák pa...@hanak.name:

 Hi all,
 
 I would like to ask what is the best way to achieve this:
 
 The title line of the chapter should be without the chapter number,
 but the chapter number should be on all subsequent pages in the header.
 
 I tried this:
 
 \setuphead
  [chapter]
  [header=empty,
   number=no
  ]
 
 \setupheadertexts[{\getmarking[chapternumber]. \getmarking[chapter]}]
 
 which makes the title of the chapter on the first page correctly without
 the chapter number, but then I have no chapter number on subsequent
 pages in the header. It looks like setting number=no in
 \setuphead definition breaks my expected behaviour of marking.
 
 So I tried:
 
 \setuphead
  [chapter]
  [header=empty,
   sectionnumber=no
  ]
 
 but id didn't work either.
 
 So I ended by:
 
 \def\MyChapterTitle#1#2{#2}%
 
 \setuphead
  [chapter]
  [header=empty,
   command=\MyChapterTitle,
  ]
 
 \setupheadertexts[{\getmarking[chapternumber]. \getmarking[chapter]}]
 
 which is working like expected, but I wonder, why I am not able to
 achieve the result using keywords number or section number.

MkIV:

\setupheadertexts[{\getmarking[chapternumber]. \getmarking[chapter]}]

\setuphead[chapter][sectionset=none]

\starttext

\chapter{Test}

\stoptext

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
___