Re: [NTG-context] Heros Condensed

2009-11-23 Thread Wolfgang Murth
 

Hello all,


After fetching the simplefonts module with first-setup.bat 
--extras=t-simplefonts

And now I get a luatex error

loading : ConTeXt User Module / Simplefonts
)
! LuaTeX error 
...text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to call 
field 'data_state' (a nil value) stack traceback:
   ...text/tex/texmf-context/tex/context/base/font-syn.lua:666: in 
 function 'resetdata'
   ...text/tex/texmf-context/tex/context/base/font-syn.lua:671: in 
 function 'identify'
   ...text/tex/texmf-context/tex/context/base/font-syn.lua:696: in 
 function 'load'
   ...text/tex/texmf-context/tex/context/base/font-syn.lua:707: in 
 function 'load'
   ...text/tex/texmf-context/tex/context/base/font-syn.lua:844: in 
 function 'resolve'
   ...text/tex/texmf-context/tex/context/base/font-syn.lua:1235: in 
 function 'exists'
   ...text/tex/context/third/simplefonts/t-simplefonts.lua:183: in 
 function 'selectfont'
   main ctx instance:1: in main chunk.
\currentcommalistcommand ...arameter \c!weight )}
  
\next1 #1,-\currentcommalistcommand {#1}
 \doprocesscommaitem argument 
\relax regular,
  italic,slanted,bold,bolditalic,boldslanted,caps, i...
\doprocesscommalist ...aitem \gobbleoneargument #1
  ,]\relax \global \advance ...
\simplefo...@definetextfont ...rocesscommacommand 
  \simplefo...@typescript {\...
l.3 \setmainfont[TeX Gyre Heros][weight=condensed]


kind regards 

Wolfgang Murth

___
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] Heros condensed and Font switching

2009-11-23 Thread Wolfgang Murth
 

Hi all,

Sorry for popping up that question again, but has anybody a hint for me how to 
solve it or where I can read more about it?

I'm working on converting my lecture papers from latex to ConTeXt, where I also 
use a condended font, but only for Excel formulas
and not as main body font .
For example 
   {
   \changefont{cmss}{sbc}{n}\small%
   \begin{tabbing}%
   \hspace{1cm}\=\$E\$9:\$E\$13 =\$D\$9:\$D\$13\\
   \ {\$F\$18:\$H\$18 =0}\\
   \end{tabbing}
   }%

My question is how I can change a font only for a particular text. Not only 
normal-condensed, even change the complete font like
using Zapf for a special markup in a Helvetica/Heros text.

Thanks for you help.

Wolfgang Murth

___
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] MetaPost integration: default parameters

2009-11-23 Thread Mojca Miklavec
On Sun, Nov 22, 2009 at 20:16, Oliver Buerschaper wrote:
 I know there used to be a TeX - PS - pstoedit - MetaPost workflow. Does 
 this still work with MkIV?

 If you manage to extend dvips to handle OpenType fonts then maybe ...

 So does this mean that outline fonts in MetaPost are currently dead with MkIV?

I just said that pstoedit workflow is not likely to work with OpenType
fonts, nothing else.

You can still use something like (copy-pasting Wolfgang's example
without testing):
textext({\blue\tfd Fun\llap{\red\property[outer]{\tfd Fun}}})
or you can use non-OpenType font in MKIV to access the exact path of text.

But I'm really impressed about Taco's answer :)

Mojca
___
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] hz off?

2009-11-23 Thread Steffen Wolfrum
Hi,

I am running the current stable MkIV (ConTeXt  ver: 2009.10.27 16:35 MKIV) but 
can't get hz/hanging with the old method (see below).

Do we have some other way today?


Steffen

---

\showframe

\definefontfeature[default][default][mode=node,expansion=quality]

\usetypescript[palatino]
\setupbodyfont[palatino]

\setupalign[hz,hanging]

\starttext

\input knuth

\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] Heros condensed and Font switching

2009-11-23 Thread Thomas A. Schmitz

On Nov 23, 2009, at 10:07 AM, Wolfgang Murth wrote:

 
 
 Hi all,
 
 Sorry for popping up that question again, but has anybody a hint for me how 
 to solve it or where I can read more about it?
 
 I'm working on converting my lecture papers from latex to ConTeXt, where I 
 also use a condended font, but only for Excel formulas
 and not as main body font .
 For example 
  {
  \changefont{cmss}{sbc}{n}\small%
  \begin{tabbing}%
  \hspace{1cm}\=\$E\$9:\$E\$13 =\$D\$9:\$D\$13\\
  \ {\$F\$18:\$H\$18 =0}\\
  \end{tabbing}
  }%
 
 My question is how I can change a font only for a particular text. Not only 
 normal-condensed, even change the complete font like
 using Zapf for a special markup in a Helvetica/Heros text.

I'm afraid your question is just too vague to allow for meaningful answers. The 
LaTeX snippet doesn't help because we use ConTeXt. And the answer to how can I 
change a font only for a particular text is 
\bgroup\switchtobodyfont[something] text \egroup, but I'm sure you know this 
command. So unless you give us meaningful details or better yet an example, it 
will be difficult to help you.

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] hz off?

2009-11-23 Thread Thomas A. Schmitz

On Nov 23, 2009, at 10:31 AM, Steffen Wolfrum wrote:

 Hi,
 
 I am running the current stable MkIV (ConTeXt  ver: 2009.10.27 16:35 MKIV) 
 but can't get hz/hanging with the old method (see below).
 
 Do we have some other way today?
 
 
 Steffen
 
 ---
 
 \showframe
 
 \definefontfeature[default][default][mode=node,expansion=quality]

\definefontfeature[default][default][mode=node,expansion=quality,protrusion=pure]


 
 \usetypescript[palatino]
 \setupbodyfont[palatino]
 


\enableprotruding
\enableadjusting


 \starttext
 
 \input knuth
 
 \stoptext

Best

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] hz off?

2009-11-23 Thread Hans Hagen

Thomas A. Schmitz wrote:


\enableprotruding
\enableadjusting


\setupaling[hanging]
\setupaling[hz]

also works with the align={..,..}

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] MetaPost integration: default parameters

2009-11-23 Thread Hans Hagen

Mojca Miklavec wrote:

On Sun, Nov 22, 2009 at 20:16, Oliver Buerschaper wrote:

I know there used to be a TeX - PS - pstoedit - MetaPost workflow. Does this 
still work with MkIV?

If you manage to extend dvips to handle OpenType fonts then maybe ...

So does this mean that outline fonts in MetaPost are currently dead with MkIV?


I just said that pstoedit workflow is not likely to work with OpenType
fonts, nothing else.


why not? it uses gs for converting the shapes to outlines ... works ok

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] Heros condensed and Font switching

2009-11-23 Thread Willi Egger

Hi,

Load the necessary typescripts at the beginning of the document.

For longer pieces:
\switchtobodyfont[][...]

For short pieces:
\definedfont[fontname at 12pt]

Kind regards

Willi



On Nov 21, 2009, at 4:06 PM, Wolfgang Murth wrote:



Hi Wolfgang, Hi all,

My last post regarding Heros Condensed leads me to another unsolved  
mystery. I'm working on converting my lecture papers from latex
to ConTeXt, where I also use a condended font, but only for Excel  
formulas and not as main body font .

For example

{
\changefont{cmss}{sbc}{n}\small%
\begin{tabbing}%
\hspace{1cm}\=\$E\$9:\$E\$13 =\$D\$9:\$D\$13\\
\ {\$F\$18:\$H\$18 =0}\\
\end{tabbing}
}%


My question is how I can change a font only for a particular text.  
Not only normal-condensed, even change the complete font like

using Zapf for a special markup in a Helvetica/Heros text.

Thanks for you help.

Wolfgang Murth

__ 
_
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] hz off?

2009-11-23 Thread Steffen Wolfrum
And what's the way to define your own protrusion?

Shouldn't it go like this?


\showframe

\startluacode
fonts.protrusions.vectors['MyVector'] = {

[0x2044] = { 0, 0.50}, -- fraction slash
[0x002f] = { 0, 0.50}, -- solidus slash
[0x002C] = { 0, 0.50}, -- comma
[0x002E] = { 0, 0.50}, -- period
[0x003A] = { 0, 0.50}, -- colon
[0x003B] = { 0, 0.50}, -- semicolon
[0x002D] = { 0, 0.50}, -- hyphen
[0x2013] = { 0, 0.25 }, -- endash
[0x201C] = { 0, -1.25}, -- quotedblleft

}
fonts.protrusions.classes['Mypure'] = {
vector = 'MyVector', factor = 1
}

fonts.expansions.classes['Myquality'] = {
stretch = 1, shrink = 1, step = .5, vector = 'default', factor = 1
}
\stopluacode


\definefontfeature[default][default][mode=node,expansion=Myquality,protrusion=Mypure]

\usetypescript[palatino]
\setupbodyfont[palatino]

\setupalign[hz,hanging]

\enableprotruding
\enableadjusting


\starttext

\input knuth

\stoptext




Steffen



___
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] MetaPost integration: default parameters

2009-11-23 Thread luigi scarso
On Mon, Nov 23, 2009 at 10:47 AM, Hans Hagen pra...@wxs.nl wrote:
 why not? it uses gs for converting the shapes to outlines ... works ok

 Hans
I will check it with Symbola
http://users.teilar.gr/~g1951d/Symbola.zip
-- 
luigi
___
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] hz off?

2009-11-23 Thread Hans Hagen

Steffen Wolfrum wrote:

And what's the way to define your own protrusion?

Shouldn't it go like this?


\showframe

\startluacode
fonts.protrusions.vectors['MyVector'] = {

[0x2044] = { 0, 0.50}, -- fraction slash
[0x002f] = { 0, 0.50}, -- solidus slash
[0x002C] = { 0, 0.50}, -- comma
[0x002E] = { 0, 0.50}, -- period
[0x003A] = { 0, 0.50}, -- colon
[0x003B] = { 0, 0.50}, -- semicolon
[0x002D] = { 0, 0.50}, -- hyphen
[0x2013] = { 0, 0.25 }, -- endash
[0x201C] = { 0, -1.25}, -- quotedblleft

}
fonts.protrusions.classes['Mypure'] = {
vector = 'MyVector', factor = 1
}

fonts.expansions.classes['Myquality'] = {
stretch = 1, shrink = 1, step = .5, vector = 'default', factor = 1
}
\stopluacode


something like that yes



\definefontfeature[default][default][mode=node,expansion=Myquality,protrusion=Mypure]

\usetypescript[palatino]
\setupbodyfont[palatino]

\setupalign[hz,hanging]

\enableprotruding
\enableadjusting


the last two are redundant and not needed

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] Heros Condensed

2009-11-23 Thread Hans Hagen

Wolfgang Murth wrote:


After fetching the simplefonts module with first-setup.bat 
--extras=t-simplefonts


can you test with todays beta?



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] Heros condensed and Font switching

2009-11-23 Thread Wolfgang Schuster

Am 23.11.2009 um 10:51 schrieb Willi Egger:

 Hi,
 
 Load the necessary typescripts at the beginning of the document.
 
 For longer pieces:
 \switchtobodyfont[][...]
 
 For short pieces:
 \definedfont[fontname at 12pt]

And for table: \setuptables[bodyfont=...]

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] hz off?

2009-11-23 Thread Steffen Wolfrum

Am 23.11.2009 um 11:07 schrieb Hans Hagen:

 Steffen Wolfrum wrote:
 And what's the way to define your own protrusion?
 Shouldn't it go like this?
 \showframe
 \startluacode
 fonts.protrusions.vectors['MyVector'] = {
[0x2044] = { 0, 0.50}, -- fraction slash
[0x002f] = { 0, 0.50}, -- solidus slash
[0x002C] = { 0, 0.50}, -- comma
[0x002E] = { 0, 0.50}, -- period
[0x003A] = { 0, 0.50}, -- colon
[0x003B] = { 0, 0.50}, -- semicolon
[0x002D] = { 0, 0.50}, -- hyphen
[0x2013] = { 0, 0.25 }, -- endash
[0x201C] = { 0, -1.25}, -- quotedblleft
 }
 fonts.protrusions.classes['Mypure'] = {
vector = 'MyVector', factor = 1
 }
 fonts.expansions.classes['Myquality'] = {
stretch = 1, shrink = 1, step = .5, vector = 'default', factor = 1
 }
 \stopluacode
 
 something like that yes


but, that doesn't work anymore!

just tested it with ConTeXt  ver: 2009.10.27 16:35 MKIV: no protrusion at all 
...


Steffen
___
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] \vspace

2009-11-23 Thread Hans Hagen

Wolfgang Schuster wrote:

Hi Hans,

can you add a \vspace command which behaves like \hspace but for vertical mode,
there are some cases where \blank is not so well suited (i know the \??vs 
namespace
is already used by \blank)

\def\definevspace
  {\dotripleempty\dodefinevspace}

\def\dodefinevspace[#1][#2][#3]%
  {\ifthirdargument
 \setvalue{\??vs#1:#2}{#3}%
   \else
 \setvalue{\??vs:#1}{#2}%
   \fi}

\unexpanded\def\vspace
  {\dodoubleempty\dohspace}


hm, untested ...   ^


\def\dovspace[#1][#2]%
  {\ifsecondargument
 \dodovspace[#1][#2]%
   \else\iffirstargument
 \vspace[][#1]%
   \else
 \vspace[][\s!default]%
   \fi\fi}

\def\dodovspace[#1][#2]%
  {\vskip\vspaceamount{#1}{#2}}

\def\vspaceamount#1#2%
  {\executeifdefined{\??vs#1:#2}{\executeifdefined{\??vs:#2}\zeropoint}}


i'm always a bit relucate to let users mess with vertical spacing ... 
anyhow, in \hspace we clean up preceding space so vspace should behave 
the same i.e. there should be a \removelastskip before the vskip


\def\dodovspace[#1][#2]%
  {\par
   \ifvmode
 \removelastskip
 \vskip\vspaceamount{#1}{#2}\relax
   \fi}

i'll add it but we should not encourage too much in using it, that is, 
i'm *not* going to look into spacing related bug reports that use this 
command


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] \vspace

2009-11-23 Thread Wolfgang Schuster

Am 23.11.2009 um 11:21 schrieb Hans Hagen:

 \unexpanded\def\vspace
  {\dodoubleempty\dohspace}
 
 hm, untested ...   ^

D’oh

 i'm always a bit relucate to let users mess with vertical spacing ... anyhow, 
 in \hspace we clean up preceding space so vspace should behave the same i.e. 
 there should be a \removelastskip before the vskip
 
 \def\dodovspace[#1][#2]%
  {\par
   \ifvmode
 \removelastskip
 \vskip\vspaceamount{#1}{#2}\relax
   \fi}
 
 i'll add it but we should not encourage too much in using it, that is, i'm 
 *not* going to look into spacing related bug reports that use this command

add a note to source nobody else than me should use it :)

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] hz off?

2009-11-23 Thread Hans Hagen

Steffen Wolfrum wrote:

Am 23.11.2009 um 11:07 schrieb Hans Hagen:


Steffen Wolfrum wrote:

And what's the way to define your own protrusion?
Shouldn't it go like this?
\showframe
\startluacode
fonts.protrusions.vectors['MyVector'] = {
   [0x2044] = { 0, 0.50}, -- fraction slash
   [0x002f] = { 0, 0.50}, -- solidus slash
   [0x002C] = { 0, 0.50}, -- comma
   [0x002E] = { 0, 0.50}, -- period
   [0x003A] = { 0, 0.50}, -- colon
   [0x003B] = { 0, 0.50}, -- semicolon
   [0x002D] = { 0, 0.50}, -- hyphen
   [0x2013] = { 0, 0.25 }, -- endash
   [0x201C] = { 0, -1.25}, -- quotedblleft
}
fonts.protrusions.classes['Mypure'] = {
   vector = 'MyVector', factor = 1
}
fonts.expansions.classes['Myquality'] = {
   stretch = 1, shrink = 1, step = .5, vector = 'default', factor = 1
}
\stopluacode

something like that yes



but, that doesn't work anymore!

just tested it with ConTeXt  ver: 2009.10.27 16:35 MKIV: no protrusion at all 
...


use lowercase vector names

a next beta will provide

\enabletrackers[fonts.expansion]
\enabletrackers[fonts.protrusion]

which shows such problems

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] \vspace

2009-11-23 Thread Hans Hagen

Wolfgang Schuster wrote:


add a note to source nobody else than me should use it :)


actually i wanted to say something like that but noticed that you'd 
posted to the list, probably in order to create a larger momentum -)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] texshow-web parameters

2009-11-23 Thread richard . stephens

Hello,

On the texshow-web Help page it says
that the page for a specific command can be invoked using a parameter for
the url, e.g. http://texshow.contextgarden.net/about.
I have tried this but all I get is a page saying Error
message: Cannot recognize URL.

I have tried with a space before the
command and without a space. Is this functionality broken or am I doing
something wrong?

Thanks,

Richard


UKACC
International Conference on CONTROL 2010 





Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registration
Number: 2416188

Registered in England and Wales.

Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.



CONFIDENTIALITY : This e-mail and any attachments are confidential and
may be privileged. If you are not a named recipient, please notify the
sender immediately and do not disclose the contents to another person,
use it for any purpose or store or copy the information in any medium.



Please consider the environment before printing this e-mail




___
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] \vspace

2009-11-23 Thread Alan BRASLAU
On Monday 23 November 2009 11:52:14 Hans Hagen wrote:
 Wolfgang Schuster wrote:
  add a note to source nobody else than me should use it :)
 
 actually i wanted to say something like that but noticed that you'd
 posted to the list, probably in order to create a larger momentum -)

Yes, the cat is out of the box now!

Alan
___
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] Fields and JS Calculations

2009-11-23 Thread Hans Hagen

jeroen muskee wrote:
OK, I started off with a simpler example, just an addition of 2 
numbers.. I know this should be pretty close to the correct setup by 
looking at other Javascript examples, but it just does not work jet. Any 
suggestions


\startJSpreamble {Calculate} used now
function Calculate () {
v = getField(textC) ;
v.value = 0 ;
v.value += AFMakeNumber(getField(textA).value) ;
v.value += AFMakeNumber(getField(textB).value) ;
v.value =  ;
}
\stopJSpreamble

\setupinteraction[state=start]

\setupfield
  [lineABC]
  [label,frame,horizontal]
  [frame=off]
  [height=18pt,width=15em,align=middle,frame=off]
  [height=18pt,width=20em,align=right,style=\tfx,frame=on]

\definefield[textA] [line] [lineABC] [] []

\definefield[textB] [line] [lineABC] [] []

\definefield[textC] [line] [lineABC] [] []

\starttext
Calculate the addition: A + B = C\par
\field[textA][Please enter A]\par
\field[textB][Please enter B]\par
\goto{Calculate the Result}[JS(Calculate)]\par
\field[textC][The Calculation Result C = ]\par
\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] Heros Condensed

2009-11-23 Thread Wolfgang Murth


Hi Hans,

can you test with todays beta? 
I'll give it a try.

kind regards

Wolfgang Murth

___
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] Heros Condensed

2009-11-23 Thread Wolfgang Murth

Hi Hans,

can you test with todays beta?
Tested with following sample from Wolfgang Schuster and it worked. Thanks!


kind regards
Wolfgang Murth


\usemodule[simplefonts]

\setmainfont[TeX Gyre Heros][weight=condensed]

\starttext

\rm\tf roman \it italic \bf bold \bi bolditalic \sc smallcaps

\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] Notepad++ calltips

2009-11-23 Thread richard . stephens

Idris,

Thanks for this, it works fine.

I am adding calltips very slowly to
my file, and I will post it to the Wiki when I have a useful number done.

Best regards,

Richard

UKACC
International Conference on CONTROL 2010 

ntg-context-boun...@ntg.nl wrote on 20/11/2009 20:34:33:

 Hi,
 
 Change the name of the attached to end in .zip . I can confirm that
the
 context calltips work for this version of context.xml in Npp 5.5.1.
 
 OTOH, the ignoreCase=no used to work, and that is something that the
Npp
 developers will hopefully take care of.
 
 Richard, if you make additional calltips to context.xml, can you post
your
 updates to the wiki? Maybe we can start a project to eventually add
 calltips to all commands. I have a few other ideas as well to make
these
 calltips more useful, and to serve a certain book project ;-)
 
 Best wishes
 Idris
 
 On Fri, 20 Nov 2009 13:03:19 -0700, Idris Samawi Hamid ادريس
 سماوي حامد
 isha...@colostate.edu wrote:
 
 
  On Fri, 20 Nov 2009 09:21:34 -0700, richard.steph...@converteam.com

  wrote:
 
  After some experiments, I think the problem is that Notepad++
is 
  ignoring the case of the commands when searching for calltips.
By 
  re-sorting the list I was able to get calltips to work. However,
with 
  this new sorting the auto-complete no longer works! This
is definitely 
  one for the Notepad++ developers.
 
  I experimented a bit and I think you are exactly right. If I
comment out 
  the commands that contain upper-case letters, the calltip mechanism

  works. If I resort just those commands, viz, move them to the
bottom of 
  the file, autocompletion does not work for the upper-case commands
but 
  it does work for all others.
 
  Workaround:
 
  in context.xml go to
 
  Environment ignoreCase=no startFunc=[
stopFunc=] /br/
 
  change ignoreCase
 
  ignoreCase=yes
 
  resort according to ignorecase
 
  I did this for one command and it works, let me try some more.
 
 -- 
 Professor Idris Samawi Hamid, Editor-in-Chief
 International Journal of Shi`i Studies
 Department of Philosophy
 Colorado State University
 Fort Collins, CO 80523[attachment context_xml_zip deleted
by 
 Richard STEPHENS/GBRUG03/APC] [attachment attachment130.txt

 deleted by Richard STEPHENS/GBRUG03/APC] 





Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registration
Number: 2416188

Registered in England and Wales.

Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.



CONFIDENTIALITY : This e-mail and any attachments are confidential and
may be privileged. If you are not a named recipient, please notify the
sender immediately and do not disclose the contents to another person,
use it for any purpose or store or copy the information in any medium.



Please consider the environment before printing this e-mail




___
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] Heros condensed and Font switching

2009-11-23 Thread Wolfgang Murth


Thank you all for your input at suggestions. Before I posted my question I did 
a search in the Wiki and the mailinglist archive but
didn't find a clue. 

Finaly I got a working minimal example. The with \definedfont[file:...] I found 
out that I can use every Font that ist installed on
my Windows System.

Is this a correct way for font switching for a special markup or is there a 
better or more correct way?

kind regards
Wolfgang Murth




%

%
%
% Define language
\language[de]
\mainlanguage[de]

%
%
% Bodyfont Helvetica
\usetypescript[helvetica][texnansi]
\setupbodyfont[helvetica,ss,10pt]

%
%
% Excel Funcions and Formulas
\def\xlf#1{{\definedfont[file:texgyreheroscn-bold*regular at 10pt]#1}}

\starttext
\chapter{Excel Time and Date}

When using Time and Date calculations with Excel important functions are 
\xlf{DATUM} and \xlf{ZEIT}.

\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] Heros condensed and Font switching

2009-11-23 Thread Hans Hagen

Wolfgang Murth wrote:


Thank you all for your input at suggestions. Before I posted my question I did 
a search in the Wiki and the mailinglist archive but
didn't find a clue. 


Finaly I got a working minimal example. The with \definedfont[file:...] I found 
out that I can use every Font that ist installed on
my Windows System.

Is this a correct way for font switching for a special markup or is there a 
better or more correct way?


depends on your need,


% Define language
\language[de]
\mainlanguage[de]


no need for \language as you already use \mainlanguage


%
%
% Bodyfont Helvetica
\usetypescript[helvetica][texnansi]
\setupbodyfont[helvetica,ss,10pt]

%
%
% Excel Funcions and Formulas
\def\xlf#1{{\definedfont[file:texgyreheroscn-bold*regular at 10pt]#1}}


\def\xlf#1{{\definedfont[SansBold sa 1]#1}}

(current SansBold at bodyfontsize)

\def\xlf#1{{\definedfont[Bold sa 1]#1}}

(current Bold at bodyfontsize)


\starttext
\chapter{Excel Time and Date}

When using Time and Date calculations with Excel important functions are 
\xlf{DATUM} and \xlf{ZEIT}.


best use some uppercase in yoru own names as \xlf can be a pretty 
important low level command some day


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] Heros condensed and Font switching

2009-11-23 Thread Wolfgang Murth

Hi Hans,

depends on your need,
Main text in one font (Helvetica), Excel Formulas in another font (Heros 
Condensed).

no need for \language as you already use \mainlanguage
ok

\def\xlf#1{{\definedfont[Bold sa 1]#1}}
With that I just use the bold style of the current font and not the condensed 
font or have I seen that wrong?

kind regards

Wolfgang Murth

___
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] Heros condensed and Font switching

2009-11-23 Thread Hans Hagen

Wolfgang Murth wrote:

Hi Hans,


depends on your need,

Main text in one font (Helvetica), Excel Formulas in another font (Heros 
Condensed).


no need for \language as you already use \mainlanguage

ok


\def\xlf#1{{\definedfont[Bold sa 1]#1}}

With that I just use the bold style of the current font and not the condensed 
font or have I seen that wrong?


current bodyfont, and depend on what you've set

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] Heros condensed and Font switching

2009-11-23 Thread Wolfgang Schuster

Am 23.11.2009 um 18:34 schrieb Wolfgang Murth:

 depends on your need,
 Main text in one font (Helvetica), Excel Formulas in another font (Heros 
 Condensed).

With simplefonts you can say (untested):

\mainlanguage[de]

\usemodule[simplefonts][size=10pt]

\setmainfont[Tex Gyre Heros]

\definesimplefonttypeface[excelfont][TeX Gyre Heros][weight=condensed] % will 
be width=condensed in the next release

\definesimplefont[excelformat][TeX Gyre 
Heros][weight=condensed,alternative=bold]

\define[1]\XLF{\groupedcommand{\excelformat}{}}

\setuptables[bodyfont=excelfont]

\starttext

\chapter{Excel Time and Date}

When using Time and Date calculations with Excel important functions are 
\XLF{DATUM} and {\XLF ZEIT}.

\starttable[|l|l|]
\NC text   \NC more text \NC\AR
\NC other text \NC fill the rest \NC\AR
\stoptable

\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] Heros Condensed

2009-11-23 Thread Wolfgang Murth

Hi Hans,

 After fetching the simplefonts module with first-setup.bat 
 --extras=t-simplefonts
can you test with todays beta?

I'm sorry to tell you, that with this beta in other documents I only get a 
titlepage with text and graphics on it. All the other
pages are plain white with no text.

Enclosed find the tuc and log file of the successful and failing compile. The 
document is named 07_Access.

successful: ConTeXt  ver: 2009.11.02 21:31 MKIV  fmt: 2009.11.7  int: 
english/english
failing:ConTeXt  ver: 2009.11.23 11:49 MKIV  fmt: 2009.11.23  int: 
english/english

kind regards
Wolfgang Murth

 


07_Access_works.log
Description: Binary data


07_Access_works.tuc
Description: Binary data


07_Access_fails.log
Description: Binary data


07_Access_fails.tuc
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] Heros Condensed

2009-11-23 Thread Wolfgang Schuster

Am 23.11.2009 um 19:11 schrieb Wolfgang Murth:

 I'm sorry to tell you, that with this beta in other documents I only get a 
 titlepage with text and graphics on it. All the other
 pages are plain white with no text.

Can you try to compile it without the images, the following message looks 
suspicious:

structure   : chapter @ level 2 : 0.4 - Daten eingeben
[6.5
LuaTeX warning: arithmetic: number too big
 images/tabellenanzeigen.png (PNG copy) images/alletabellen.png (PNG copy) 
images/beziehungenbearbeiten.png (PNG copy) images/bfblverbindung.png (PNG 
copy)]

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] Heros Condensed

2009-11-23 Thread Wolfgang Murth


Hi Wolfgang,

 Can you try to compile it without the images, the following message looks 
 suspicious:
I found the problem.
 
The lines 187 and 188 are the troublemakers.

\setupbackgrounds[header][text][background=nicetop]
\setupbackgrounds[footer][text][background=nicebottom]

With commenting them out the document is ok.

Wolfgang Murth


07_Access.tex
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] local footnote (Tables) problem

2009-11-23 Thread Bowen Alan C.
Wolfgang—

Using tabulate does seem, to help: I still get odd labeling and a no page break.

\showframe

\starttext

\dorecurse{3}{\input knuth\par}

\start

\setuptabulate
[bodyfont=9pt,
width=\textwidth,
rulethickness=0.03em,
distance=big,
split=yes,
header=repeat]

\placetable
[split, top,nonumber]
[tab:Table03]
{Table 3}
{\startlocalfootnotes[conversion=character,bodyfont=9pt]
\placelegend
{\startframedtext[frame=off,offset=none,width=fit]
  \starttabulatehead
   \HL
   \NC {Column A} \NC {Column B} \NC\SR
   \HL
   \stoptabulatehead
   \starttabulate[|p(11.5pc)|p(11.5pc)|]
   \NC {1[4].341||345 [= F21.82||86]} \NC{6.29.3||4} \NC\SR
   \NC Text A\note[a]\NC Text B\note[b]\NC\SR
  \NC \input knuth\NC   \NC\AR
 \NC \NC \input knuth   \NC\AR
 \NC \input knuth\NC\NC\AR
   \stoptabulate
   \stopframedtext}
  {\footnotetext[a]{A local footnote.}
   \footnotetext[b]{Another local footnote.}
   \hskip2pc\mbox{\placelocalfootnotes}
}
\stoplocalfootnotes}

\stop

\stoptext

On Nov 23, 2009, at 02;51,46 , Wolfgang Schuster wrote:

 
 Am 23.11.2009 um 08:49 schrieb Taco Hoekwater:
 
 it seems that TaBlE does not support splitting p() columns and
 (iirc) TABLE does.
 
 TABLE doesn't (each cell is a \framed) but tabulate does
 
 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
 ___

___
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] local footnote (Tables) problem

2009-11-23 Thread Bowen Alan C .
Wolfgang—

I have switched the minimal example to tabulate. The problem is that this 
entails little progress because I can find no documentation that explains
(a) how to format (e.g., center) the content of specific cells---\REF does not 
seem to work any more.
(b) how to get weighted rules---\HL[3] no longer works
(c) how to avoid getting the label for the table on the first page
(d) how to get a decent page break.
I have checked Hans' MAPs article as we all as the wiki. There is reference to 
a new tabulate module that you were working on, but the link goes nowhere.

I can work around (a) and (b) if I have to, but (c) and (d) are crucial.

Alan


\showframe

\starttext

\dorecurse{3}{\input knuth\par}

\start

\setuptabulate
[bodyfont=9pt,
width=\textwidth,
rulethickness=0.03em,
distance=big,
split=yes
header=repeat]

\placetable
[split, top,nonumber]
[tab:Table03]
{Table 3}
{\startlocalfootnotes[conversion=character,bodyfont=9pt]
\placelegend
{\startframedtext[frame=off,offset=none,width=fit]
  \starttabulatehead
   \HL
   \NC {Column A} \NC {Column B} \NC\SR
   \HL
   \stoptabulatehead
   \starttabulate[|p(11.5pc)|p(11.5pc)|]
   \NC {1[4].341||345 [= F21.82||86]} \NC{6.29.3||4} \NC\SR
   \NC Text A\note[a]\NC Text B\note[b]\NC\SR
  \NC \input knuth\NC   \NC\AR
 \NC \NC \input knuth   \NC\AR
 \NC \input knuth\NC\NC\AR
   \stoptabulate
   \stopframedtext}
  {\footnotetext[a]{A local footnote.}
   \footnotetext[b]{Another local footnote.}
   \hskip2pc\mbox{\placelocalfootnotes}}
\stoplocalfootnotes}

\stop

\stoptext

On Nov 23, 2009, at 02;51,46 , Wolfgang Schuster wrote:

 
 Am 23.11.2009 um 08:49 schrieb Taco Hoekwater:
 
 it seems that TaBlE does not support splitting p() columns and
 (iirc) TABLE does.
 
 TABLE doesn't (each cell is a \framed) but tabulate does
 
 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
 ___

___
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] local footnote (Tables) problem

2009-11-23 Thread Bowen Alan C .
Wolfgang—

Using tabulate does seem, to help: I still get odd labeling and a no page break.

\showframe

\starttext

\dorecurse{3}{\input knuth\par}

\start

\setuptabulate
[bodyfont=9pt,
width=\textwidth,
rulethickness=0.03em,
distance=big,
split=yes,
header=repeat]

\placetable
[split, top,nonumber]
[tab:Table03]
{Table 3}
{\startlocalfootnotes[conversion=character,bodyfont=9pt]
\placelegend
{\startframedtext[frame=off,offset=none,width=fit]
 \starttabulatehead
  \HL
  \NC {Column A} \NC {Column B} \NC\SR
  \HL
  \stoptabulatehead
  \starttabulate[|p(11.5pc)|p(11.5pc)|]
  \NC {1[4].341||345 [= F21.82||86]} \NC{6.29.3||4} \NC\SR
  \NC Text A\note[a]\NC Text B\note[b]\NC\SR
 \NC \input knuth\NC\NC\AR
\NC \NC \input knuth\NC\AR
\NC \input knuth\NC \NC\AR
  \stoptabulate
  \stopframedtext}
 {\footnotetext[a]{A local footnote.}
  \footnotetext[b]{Another local footnote.}
  \hskip2pc\mbox{\placelocalfootnotes}
}
\stoplocalfootnotes}

\stop

\stoptext

On Nov 23, 2009, at 02;51,46 , Wolfgang Schuster wrote:

 
 Am 23.11.2009 um 08:49 schrieb Taco Hoekwater:
 
 it seems that TaBlE does not support splitting p() columns and
 (iirc) TABLE does.
 
 TABLE doesn't (each cell is a \framed) but tabulate does
 
 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
 ___

___
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] Fwd: local footnote (Tables) problem

2009-11-23 Thread Bowen Alan C.
I apologize to the list for the second message. My keyboard and trackpad have 
gone sticky and unpredictable, and I misfired.

The message below (the first message) is the one that I wanted to send. Please 
ignore the second.

A.

Begin forwarded message:

 From: Bowen Alan C. acbo...@princeton.edu
 Date: 11 23, 2009 17:26:37 EST
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] local footnote (Tables) problem
 
 Wolfgang—
 
 I have switched the minimal example to tabulate. The problem is that this 
 entails little progress because I can find no documentation that explains
 (a) how to format (e.g., center) the content of specific cells---\REF does 
 not seem to work any more.
 (b) how to get weighted rules---\HL[3] no longer works
 (c) how to avoid getting the label for the table on the first page
 (d) how to get a decent page break.
 I have checked Hans' MAPs article as we all as the wiki. There is reference 
 to a new tabulate module that you were working on, but the link goes nowhere.
 
 I can work around (a) and (b) if I have to, but (c) and (d) are crucial.
 
 Alan
 
 
 \showframe
 
 \starttext
 
 \dorecurse{3}{\input knuth\par}
 
 \start
 
 \setuptabulate
 [bodyfont=9pt,
 width=\textwidth,
 rulethickness=0.03em,
 distance=big,
 split=yes
 header=repeat]
 
 \placetable
 [split, top,nonumber]
 [tab:Table03]
 {Table 3}
 {\startlocalfootnotes[conversion=character,bodyfont=9pt]
 \placelegend
 {\startframedtext[frame=off,offset=none,width=fit]
  \starttabulatehead
   \HL
   \NC {Column A} \NC {Column B} \NC\SR
   \HL
   \stoptabulatehead
   \starttabulate[|p(11.5pc)|p(11.5pc)|]
   \NC {1[4].341||345 [= F21.82||86]} \NC{6.29.3||4} \NC\SR
   \NC Text A\note[a]\NC Text B\note[b]\NC\SR
  \NC \input knuth\NC  \NC\AR
 \NC \NC \input knuth  \NC\AR
 \NC \input knuth\NC   \NC\AR
   \stoptabulate
   \stopframedtext}
  {\footnotetext[a]{A local footnote.}
   \footnotetext[b]{Another local footnote.}
   \hskip2pc\mbox{\placelocalfootnotes}}
 \stoplocalfootnotes}
 
 \stop
 
 \stoptext
 
 On Nov 23, 2009, at 02;51,46 , Wolfgang Schuster wrote:
 
 
 Am 23.11.2009 um 08:49 schrieb Taco Hoekwater:
 
 it seems that TaBlE does not support splitting p() columns and
 (iirc) TABLE does.
 
 TABLE doesn't (each cell is a \framed) but tabulate does
 
 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
 ___
 

___
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] bib module problem with mkiv

2009-11-23 Thread Chen Shen
Hi all,

I tried digging mailing list and the source file. I am afraid that the
bibl-tra module has a few problems:

==
\usemodule[bibl-tra]
\setupbibtex[database=xampl]
\starttext

\section{aaa}
\cite[a]
\placepublications

\section{bbb}
\cite[b]
\placepublications

\stoptext
===

1. Documentation says that without a criterium option, only bibl cited in
local section is included in the list, but actually all cited bibl are
listed.

2. In MkII, the solutioin to problem 1 is to use [criterium=section] in
\placepublications, but this does not work in MkIV.

3. \placepublications only works once in the document, the second time you
call this macro, it outputs nothing.

I wonder if there is a chance to see this fixed in the forthcoming beta.
Otherwise, I will need to revert to some (very) old version, as I need
per-chapter reference lists. Thanks a lot~

regards,
shenchen
___
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
___