[NTG-context] Changing typeface for non-body text, using XeTeX -- how?

2010-02-21 Thread James Fisher
Hi all,


I'm new to TeX, ConTeXt, and XeTeX.
I'm progressing fine except for in one area: even though I'm told I'm using
the best possible software for easy typeface use in TeX, I'm finding this
area (i.e., fonts) confusing and badly documented.
This is all the more surprising as what I want to do seems entirely
bog-standard: set some basic brand identity by using a body typeface and
heading typeface.
There's the \setupbodyfont command for, obviously, the body font -- but I
can't identify any equivalent command like "\setupheadingfont".
I can see other commands for *ad hoc* use of other fonts, but I want to
stick with as much semantic markup as possible and apply style elsewhere.
Presumably this is possible!  Could someone explain to me how to do this?


Best wishes


James Fisher


(p.s. -- I'm coming from HTML+CSS-ish paradigms here, if that would help
someone explain to me how I should reorganise my mind.)
___
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] Floats broken under some circumstances

2010-02-21 Thread Wolfgang Schuster

Am 21.02.10 21:37, schrieb Vyatcheslav Yatskovsky:

Hi,

Weird, but when I use rather big linespace
\setupinterlinespace[line=28pt]
and set \setupfloats[spaceafter=medium], then the error rises.

With less interlinespace value or without spaceafter all works ok.

Found the culprit.

From strc-flt.mkiv:

\def\betweenfloatblanko% assumes that spaceafter is present
  {\bgroup
   \setbox0\vbox{\strut\blank[\floatsharedparameter\c!spacebefore]\strut}%
   \setbox2\vbox{\strut\blank[\floatsharedparameter\c!spaceafter]\strut}%
   \ifdim\ht0>\ht2
 
\blank[-\floatsharedparameter\c!spaceafter,\floatsharedparameter\c!spacebefore]%

   \fi
   \egroup}

The float commands tries to perform \blank[-medium] in Vyatcheslav example
but this fails in MkIV because '-medium' is not a valid keyword for \blank.

As a temporary solution you can add

  \definevspacingamount [-medium] [-\medskipamount] 
[-0.50\bodyfontlineheight]


to your file till Hans fix this in the core. I guess the best is to 
check for

a hyphen in keyword (analyze funtion in spac-ver.lua) and set amount to -1
or something similar.

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] linetables broken?

2010-02-21 Thread Wolfgang Schuster

Am 21.02.10 23:42, schrieb Hans Hagen:
Does that mean nothing is broken, but linetables need to be processed 
in buffers?


indeed, as they are processed in several passes
But why can't tabulate grab the content, was this a memory problem in 
MkII? TABLE and tabulate use also several passes and don't need this.


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] linetables broken?

2010-02-21 Thread Hans Hagen

On 21-2-2010 23:34, Thomas A. Schmitz wrote:


On Feb 21, 2010, at 11:31 PM, Wolfgang Schuster wrote:


You can use the buffer method for linetables

\startbuffer[test]
\NC[background=color,backgroundcolor=darkred] xxx \NC yy \NC d \NC  \NC 
ff \NC\NR
\stopbuffer

\processlinetablebuffer[test]

Wolfgang


Wolfgang, thank you, this does work! Does that mean nothing is broken, but 
linetables need to be processed in buffers?


indeed, as they are processed in several passes

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] linetables broken?

2010-02-21 Thread Thomas A. Schmitz

On Feb 21, 2010, at 11:31 PM, Wolfgang Schuster wrote:

> You can use the buffer method for linetables
> 
> \startbuffer[test]
> \NC[background=color,backgroundcolor=darkred] xxx \NC yy \NC d \NC  
> \NC ff \NC\NR
> \stopbuffer
> 
> \processlinetablebuffer[test]
> 
> Wolfgang

Wolfgang, thank you, this does work! Does that mean nothing is broken, but 
linetables need to be processed in buffers? 

All 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] linetables broken?

2010-02-21 Thread Wolfgang Schuster

Am 21.02.10 23:14, schrieb Thomas A. Schmitz:

Hi all,

when I played a bit with linetables today, I found out that something's broken 
here. Minimal example (simplified from tabl-ltb.mkiv):

\startlinetable
\NC[background=color,backgroundcolor=darkred] xxx
  \NC yy \NC d \NC  \NC ff \NC \NR
\stoplinetable
   

You can use the buffer method for linetables

\startbuffer[test]
\NC[background=color,backgroundcolor=darkred] xxx \NC yy \NC d \NC 
 \NC ff \NC\NR

\stopbuffer

\processlinetablebuffer[test]

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] doifmode with a buffer following this command

2010-02-21 Thread Willi Egger

Thanks, does works fine!

Willi
On Feb 21, 2010, at 6:50 PM, Hans Hagen wrote:


On 21-2-2010 17:59, Willi Egger wrote:

Hi,

If I use multiple modes I need to use also \doifmode{}{}.
Now it appears that it is nomore possible to have \start/stopbuffer
inside the second pair of braces of \doifmode. This results in an  
error

in MKIV and in no output in MKII

Runaway argument?
\bfc Text \stopbuffer \getbuffer [Test] \stoptext
! File ended while scanning use of \dododowithbuffer.

\par

Please refer to the attached minimal test file.


best use

\startmode[definedwithin]
\startbuffer[Test]
\bfc Text
\stopbuffer
\getbuffer[Test]
\stopmode

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
__ 
_


___
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] linetables broken?

2010-02-21 Thread Thomas A. Schmitz
Hi all, 

when I played a bit with linetables today, I found out that something's broken 
here. Minimal example (simplified from tabl-ltb.mkiv):


\starttext


\startlinetable
\NC[background=color,backgroundcolor=darkred] xxx
 \NC yy \NC d \NC  \NC ff \NC \NR
\stoplinetable

\stoptext

I get 
! Missing number, treated as zero.
 
   d
\!!depth ->d
epth
\domakeblackrule ...!!height \@@bjheight \!!depth 
  \@@bjdepth \stopcolor 
\complexblackrule ...[\??bj ][#1]\domakeblackrule 
  \egroup 
 ...depth }, \c!width =\wd \scratchbox ]
  \hskip -\wd \scratchbox \b...
\firstoftwoarguments #1#2->#1
 
...
l.8  \NC
 yy \NC d \NC  \NC ff \NC \NR

All 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] ConTeXt minimal Win32 : kpathsea510.dll can not found !!!

2010-02-21 Thread Mojca Miklavec
On Sun, Feb 21, 2010 at 21:09, Vnpenguin wrote:
> Hi all,
> Just download http://minimals.contextgarden.net/setup/context-setup-mswin.zip
> and run first-setup.bat and I see the error about :
> texlua.exe looks for kpathsea510.dll but this file was not found in
> the distribution !!! I see only file kpathsearch510.dll so I make a
> copy of this and rename to kpathsea510.dll. Now texlua.exe goes
> without error.
>
> After installation, when I run "context --version" I see again the
> error about "texlua.exe can not found kpathsea510.dll". Hm
> I have to copy kpathsea510.dll (renamed early) into
> context\tex\texmf-mswin\bin\ folder to work.
>
> There is some things changed for librarie file name ?
>
> I'm working with Windows XP SP3 32bit.

I'm sorry for that. I have asked a few people and they claimed that it
worked OK, but that might have been due to the fact that they already
had kpathsea510.dll on their machines.

I'm confused. Apparetly we need at least three different libraries
then (kpathsea500, kpathsea510 and kpathsearch510).

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
___


Re: [NTG-context] ConTeXt minimal Win32 : kpathsea510.dll can not found !!!

2010-02-21 Thread Vnpenguin
On Sun, Feb 21, 2010 at 21:55, Hans Hagen  wrote:
>
> use the minimals from the garden instead
>

In this page http://wiki.contextgarden.net/ConTeXt_Minimals , all
links are on server minimals.contextgarden.net. Is there another
server with fixed distro ?

Thanks,
___
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] Floats broken under some circumstances

2010-02-21 Thread Wolfgang Schuster

Am 21.02.10 21:37, schrieb Vyatcheslav Yatskovsky:

Hi,

Weird, but when I use rather big linespace
\setupinterlinespace[line=28pt]
and set \setupfloats[spaceafter=medium], then the error rises.

With less interlinespace value or without spaceafter all works ok.

Can you send a example.

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] ConTeXt minimal Win32 : kpathsea510.dll can not found !!!

2010-02-21 Thread Hans Hagen

On 21-2-2010 21:09, Vnpenguin wrote:

Hi all,
Just download http://minimals.contextgarden.net/setup/context-setup-mswin.zip
and run first-setup.bat and I see the error about :
texlua.exe looks for kpathsea510.dll but this file was not found in
the distribution !!! I see only file kpathsearch510.dll so I make a
copy of this and rename to kpathsea510.dll. Now texlua.exe goes
without error.

After installation, when I run "context --version" I see again the
error about "texlua.exe can not found kpathsea510.dll". Hm
I have to copy kpathsea510.dll (renamed early) into
context\tex\texmf-mswin\bin\ folder to work.

There is some things changed for librarie file name ?

I'm working with Windows XP SP3 32bit.


use the minimals from the garden instead

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] Floats broken under some circumstances

2010-02-21 Thread Vyatcheslav Yatskovsky

Hi,

Weird, but when I use rather big linespace
\setupinterlinespace[line=28pt]
and set \setupfloats[spaceafter=medium], then the error rises.

With less interlinespace value or without spaceafter all works ok.


!pages : flushing realpage 1, userpage 1, subpage 1

floatblocks : 1 moved

! Missing number, treated as zero.



m

 -m

edium

\addaskedblankskip ...nce \blankskip #1\dimexpr #2

\relax

l.6 }

\dovspacingyes ...ument #1\else \s!default \fi ")}

\fi

\betweenfloatblanko ...dparameter \c!spacebefore ]

\fi \egroup

...

l.25


B.R.
Vyatcheslav


___
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] ConTeXt minimal Win32 : kpathsea510.dll can not found !!!

2010-02-21 Thread Vnpenguin
Hi all,
Just download http://minimals.contextgarden.net/setup/context-setup-mswin.zip
and run first-setup.bat and I see the error about :
texlua.exe looks for kpathsea510.dll but this file was not found in
the distribution !!! I see only file kpathsearch510.dll so I make a
copy of this and rename to kpathsea510.dll. Now texlua.exe goes
without error.

After installation, when I run "context --version" I see again the
error about "texlua.exe can not found kpathsea510.dll". Hm
I have to copy kpathsea510.dll (renamed early) into
context\tex\texmf-mswin\bin\ folder to work.

There is some things changed for librarie file name ?

I'm working with Windows XP SP3 32bit.

Thanks
___
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] doifmode with a buffer following this command

2010-02-21 Thread Hans Hagen

On 21-2-2010 17:59, Willi Egger wrote:

Hi,

If I use multiple modes I need to use also \doifmode{}{}.
Now it appears that it is nomore possible to have \start/stopbuffer
inside the second pair of braces of \doifmode. This results in an error
in MKIV and in no output in MKII

Runaway argument?
\bfc Text \stopbuffer \getbuffer [Test] \stoptext
! File ended while scanning use of \dododowithbuffer.

\par

Please refer to the attached minimal test file.


best use

\startmode[definedwithin]
\startbuffer[Test]
\bfc Text
\stopbuffer
\getbuffer[Test]
\stopmode

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] doifmode with a buffer following this command

2010-02-21 Thread Peter Münster
On Sun, 21 Feb 2010, Willi Egger wrote:

> If I use multiple modes I need to use also \doifmode{}{}.

\startmode[...]
...
\stopmode

is better in this case.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] dorecurse...

2010-02-21 Thread Willi Egger

No! Even with a comment on my own account ;-( very bad!

Thanks

Willi
On Feb 21, 2010, at 5:57 PM, Wolfgang Schuster wrote:


Am 21.02.10 17:51, schrieb Willi Egger:


Hm, that I see your answer I think I have seen this earlier :-(
http://randomdeterminism.wordpress.com/2009/03/05/tex-programming- 
the-past-the-present-and-the-future/


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] ConTeXt update

2010-02-21 Thread Hans Hagen

On 21-2-2010 17:44, Mojca Miklavec wrote:

On Sun, Feb 21, 2010 at 15:11, Troy Henderson wrote:

Mojca,

This is great news.  Perhaps this page should be updated

http://wiki.contextgarden.net/Lucida


Not yet. It needs to start working in the first place. Math is still
pretty broken (some basic commands work, but all the rest doesn't).


Also, I've noted (as previously stated in another feed) that there
appears to be some kerning issues in the math as well.  For example,
$\sin(x)\cos(y)$ have the "n" in "sin" and the "s" in "cos" too close
to the following "(".


You are talking about MKIV, right (since I don't even get parenthesis
in MKII, but harpoons instead; I know the reason, I just didn't write
the cure yet).


you need a more recen tversion then i guess ... older attempts still 
used the traditional lucida math vectors



Bold math is a separate issue that I have never really understood.
There is \mathbf, \bf, \bfm, \bfmath, switching the complete typeface
to a bolder variant etc.



I really really really really wish that somebody would explain and
document how bold math is supposed to work (there are several variants
- some should also influence operators and some should only influence
numbers).


there is some about it in the mk.pdf document (math chapter)

this is what i think happened ...

- in math there are cases where you use bold or sans or whatever letters

- in traditional tex, this was dealt with by assigning bold, sans .. 
fonts to families (16 families max with already some taken by symbols 
and extensible characters)


- so, there we're taking of a mix of regular (non bold) math with an 
occasional bold letter; in plain that could be achieved by \bf which 
simply does a family change


- in addition, for instance for titles, full bold math is needed but for 
that one needs all math symbols etc to be available


- also, one needs to make sure that all families then are associated 
with bold shapes


- however, as tex only applies the fonts related to families at the end 
of reading a formula, mid time reassigning fonts to families will not work


- so, we end up with (1) mixed normal/bold/etc, (2) full bold, (3) 
compromises due to lack of families and fonts


- in unicode however, the bold etc letters (and a few symbols) have 
their oen place and  we have several alphabets


- this means that a proper math font now has all relevant symbols, 
letters (in multiple lphabets) in one set


- so, as the occasional bold character now is no longer associated with 
a family, we can d with two families: regular (with also a bold 
alphabet) and bold and this iexactly what context mkiv does


- now, as users are unlikely to use the proper unicode bold letters, we 
still need to support switching to (say) a bold alphabet and (again in 
mkiv) this means some sort of remapping on the fly and no family 
trickery any more


So, to summarize, mkiv:

(1) implements unicode math
(2) for traditional tex fonts it makes virtual math unicode fonts
(3) supports traditional input using wel known font switching commands
(4) has an implementation that deviates from the traditional way (but in 
my opinion is more modern)


Of course, in the process we need to do a lot of testing esp because we 
cannot rely on other sources (to many errors so we started from 
scratch). Also, all math related data is collected in tables in such a 
way that we can at some point add more advanced support, like domain 
specific rendering (and symbols) which is currently seldom part of tex 
math implementations.


Feel free to ask for all you have been missing in math so far. We're not 
that bound to traditional approaches.


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] doifmode with a buffer following this command

2010-02-21 Thread Willi Egger

Hi,

If I use multiple modes I need to use also \doifmode{}{}.
Now it appears that it is nomore possible to have \start/stopbuffer  
inside the second pair of braces of \doifmode. This results in an  
error in MKIV and in no output in MKII


Runaway argument?
   \bfc Text \stopbuffer \getbuffer [Test] \stoptext
  ! File ended while scanning use of \dododowithbuffer.
  
\par

Please refer to the attached minimal test file.

Willi



test-doifmode-buffer.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] dorecurse...

2010-02-21 Thread Wolfgang Schuster

Am 21.02.10 17:51, schrieb Willi Egger:

Hm, that I see your answer I think I have seen this earlier :-(

http://randomdeterminism.wordpress.com/2009/03/05/tex-programming-the-past-the-present-and-the-future/

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] dorecurse...

2010-02-21 Thread Willi Egger

Hello Wolfgang,

Thank yo very much, indeed!

Hm, that I see your answer I think I have seen this earlier :-(


Willi
On Feb 21, 2010, at 12:07 PM, Wolfgang Schuster wrote:


Am 21.02.10 11:37, schrieb Willi Egger:

Hello,

I was busy to build a larger table with a lot of empty but  
numbered rows. So I thought to use the \dorecurse macro to help me.


Now I can't recall the actual value of \recurselevel.  
Interestingly it fails only when calling for preparing whole rows  
in the table. When the \recurselevel is retrieved in normal text  
it works as expected.


Please refer to the attached minimal example-file.

Is there something changed in calling for the \recurselevel value?

No, that's normal for TABLE and tabulate.

\starttext

\bTABLE
\dorecurse{3}{\expanded{\bTR\bTD\recurselevel\eTD\eTR}}
\eTABLE

\starttabulate[|l|]
\dorecurse{3}{\expanded{\NC\recurselevel\NC\NR}}
\stoptabulate

\starttabulate[|p|]
\NC\dorecurse{5}{\recurselevel\par}\NC\NR
\stoptabulate

\page

\bTABLE
\dorecurse{3}{\bTR\bTD#1\eTD\eTR}
\eTABLE

\starttabulate[|l|]
\dorecurse{3}{\NC##1\NC\NR}
\stoptabulate

\starttabulate[|p|]
\NC\dorecurse{5}{##1\par}\NC\NR
\stoptabulate

\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
__ 
_


___
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] error with footnotes blackrule

2010-02-21 Thread Hans Hagen

On 21-2-2010 13:16, Steffen Wolfrum wrote:

\def\MyRule{\blackrule[width=18mm,height=0.4pt]\blank[2mm]}


\unexpanded\def


\setupfootnotes
  [rule=\MyRule]

This harmless vertical space did it up to now.


this is because we now can say

rule={on,r2l}

which idris needed desparately


-
  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] error with footnotes blackrule

2010-02-21 Thread Wolfgang Schuster

Am 21.02.10 13:16, schrieb Steffen Wolfrum:

Hi,

todays minimal gives an error:

Runaway argument?
\letvalue {\??vn \c!rule :c:\currentnote }\normalnoterule , \v!normal \ETC.
! File ended while scanning use of \p!compareprocessactionD.

 \par
<*>  ./notetext.tex

?



The cause is "\blank[2mm]" in this example:

\def\MyRule{\blackrule[width=18mm,height=0.4pt]\blank[2mm]}

\setupfootnotes
  [rule=\MyRule]

This harmless vertical space did it up to now.
   

\def\MyRule{{...}}

or

\unexpanded\def\MyRule{...}?

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] minimals: kfreebsd-i686 (debian)

2010-02-21 Thread Mojca Miklavec
2010/2/21 Vedran Miletić :
> 2010/2/19 Mojca Miklavec :
>> Eem ... while trying to add the architecture, I noticed that we
>> don't have the basic TeX Live binaries (which has never been the case
>> before).
>>
>> Alan - you'll need to compile TeX Live tree as well, sorry for that
>> ... (and put it somewhere online where I can fetch it; if you don't
>> have any other option, let me know).
>>
>> http://www.tug.org/texlive/svn/
>>
>> You may also try to ask if it makes sense to add the architecture(s)
>> to TeX Live, but in that case you need to find a maintainer as well
>> (you?).
>>
>> Mojca
>
> AFAIK, Debian provides complete TeX Live on all platforms. Can't he
> just copy the binaries over?

No, because Debian has Debian-specific dependencies.

But Alan already compiled the binaries and sent the link to TL
(building) mailing list. I took them for minimals, but it depends on
TL team whether they will add the platform or not.

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] error with footnotes blackrule

2010-02-21 Thread Steffen Wolfrum
Hi,

todays minimal gives an error:

Runaway argument?
\letvalue {\??vn \c!rule :c:\currentnote }\normalnoterule , \v!normal \ETC.
! File ended while scanning use of \p!compareprocessactionD.
 
\par 
<*> ./notetext.tex
  
? 



The cause is "\blank[2mm]" in this example:

\def\MyRule{\blackrule[width=18mm,height=0.4pt]\blank[2mm]}

\setupfootnotes
 [rule=\MyRule]
  
This harmless vertical space did it up to now.


What's the phrase that should be chosen instead?

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] minimals: kfreebsd-i686 (debian)

2010-02-21 Thread Vedran Miletić
2010/2/19 Mojca Miklavec :
> Eem ... while trying to add the architecture, I noticed that we
> don't have the basic TeX Live binaries (which has never been the case
> before).
>
> Alan - you'll need to compile TeX Live tree as well, sorry for that
> ... (and put it somewhere online where I can fetch it; if you don't
> have any other option, let me know).
>
> http://www.tug.org/texlive/svn/
>
> You may also try to ask if it makes sense to add the architecture(s)
> to TeX Live, but in that case you need to find a maintainer as well
> (you?).
>
> Mojca

AFAIK, Debian provides complete TeX Live on all platforms. Can't he
just copy the binaries over?

-- 
Vedran Miletić
___
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] dorecurse...

2010-02-21 Thread Wolfgang Schuster

Am 21.02.10 11:37, schrieb Willi Egger:

Hello,

I was busy to build a larger table with a lot of empty but numbered 
rows. So I thought to use the \dorecurse macro to help me.


Now I can't recall the actual value of \recurselevel. Interestingly it 
fails only when calling for preparing whole rows in the table. When 
the \recurselevel is retrieved in normal text it works as expected.


Please refer to the attached minimal example-file.

Is there something changed in calling for the \recurselevel value?

No, that's normal for TABLE and tabulate.

\starttext

\bTABLE
\dorecurse{3}{\expanded{\bTR\bTD\recurselevel\eTD\eTR}}
\eTABLE

\starttabulate[|l|]
\dorecurse{3}{\expanded{\NC\recurselevel\NC\NR}}
\stoptabulate

\starttabulate[|p|]
\NC\dorecurse{5}{\recurselevel\par}\NC\NR
\stoptabulate

\page

\bTABLE
\dorecurse{3}{\bTR\bTD#1\eTD\eTR}
\eTABLE

\starttabulate[|l|]
\dorecurse{3}{\NC##1\NC\NR}
\stoptabulate

\starttabulate[|p|]
\NC\dorecurse{5}{##1\par}\NC\NR
\stoptabulate

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


[NTG-context] dorecurse...

2010-02-21 Thread Willi Egger

Hello,

I was busy to build a larger table with a lot of empty but numbered  
rows. So I thought to use the \dorecurse macro to help me.


Now I can't recall the actual value of \recurselevel. Interestingly  
it fails only when calling for preparing whole rows in the table.  
When the \recurselevel is retrieved in normal text it works as expected.


Please refer to the attached minimal example-file.

Is there something changed in calling for the \recurselevel value?

Kind regards

Willi



test-recurselevel.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] Left, right, top, bottom margins in a \framed box

2010-02-21 Thread Bernhard Rosensteiner


liebe Grüße
Bernhard Rosensteiner
- brosenstei...@gmail.com -




Am 21.02.2010 um 09:54 schrieb Wolfgang Schuster:

> Am 20.02.10 22:15, schrieb Bernhard Rosensteiner:
 I'm wondering how I can get different margins between the contents of a 
 framed box and its left, right, top or bottom border. Somehow "offset" 
 affects all margins simultaneously
   
>>> MkIV only:
>>> 
>>> (l|r|t|b)offset
>>> 
>> sorry for opening an old thread but with boffset key setting to a value, 
>> nothing happens.  (\(l|r|t)offset) works.
>>   
> pack-rul.mkiv
> 
> \def\setextraframedoffsets
>  {\boxhasextraoffsetfalse
>   \!!framedloffset\framedparameter\c!loffset
>   \!!framedroffset\framedparameter\c!roffset
>   \!!framedtoffset\framedparameter\c!toffset
>   \!!framedboffset\framedparameter\c!boffset\relax % <-- add \relax here
>   \ifzeropt\!!framedloffset\else \advance\!!framedwidth -\!!framedloffset 
> \boxhasextraoffsettrue \fi
>   \ifzeropt\!!framedroffset\else \advance\!!framedwidth -\!!framedroffset 
> \boxhasextraoffsettrue \fi
>   \ifzeropt\!!framedtoffset\else \advance\!!framedheight-\!!framedtoffset 
> \boxhasextraoffsettrue \fi
>   \ifzeropt\!!framedboffset\else \advance\!!framedheight-\!!framedboffset 
> \boxhasextraoffsettrue \fi}
> 
> Wolfgang

thanks - now it works

Bernhard

___
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] Left, right, top, bottom margins in a \framed box

2010-02-21 Thread Wolfgang Schuster

Am 20.02.10 22:15, schrieb Bernhard Rosensteiner:

I'm wondering how I can get different margins between the contents of a framed box and 
its left, right, top or bottom border. Somehow "offset" affects all margins 
simultaneously
   

MkIV only:

(l|r|t|b)offset
 

sorry for opening an old thread but with boffset key setting to a value, 
nothing happens.  (\(l|r|t)offset) works.
   

pack-rul.mkiv

\def\setextraframedoffsets
  {\boxhasextraoffsetfalse
   \!!framedloffset\framedparameter\c!loffset
   \!!framedroffset\framedparameter\c!roffset
   \!!framedtoffset\framedparameter\c!toffset
   \!!framedboffset\framedparameter\c!boffset\relax % <-- add \relax here
   \ifzeropt\!!framedloffset\else \advance\!!framedwidth 
-\!!framedloffset \boxhasextraoffsettrue \fi
   \ifzeropt\!!framedroffset\else \advance\!!framedwidth 
-\!!framedroffset \boxhasextraoffsettrue \fi
   \ifzeropt\!!framedtoffset\else 
\advance\!!framedheight-\!!framedtoffset \boxhasextraoffsettrue \fi
   \ifzeropt\!!framedboffset\else 
\advance\!!framedheight-\!!framedboffset \boxhasextraoffsettrue \fi}


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
___