[NTG-context] Hans, why don't you...

2003-09-24 Thread Pawel Jackowski na Onet
Hi Hans!

I found the following XML tabulate environment implementation in
xcont-ml.tex file:

...
\defineXMLsingular [context:tcell] [align=]
  {\appendtoks|\to\XMLtabtoks
   \processaction
 [\XMLop{align}]
 [left=>\appendtoks l\to\XMLtabtoks,
  right=>\appendtoks r\to\XMLtabtoks,
  center=>\appendtoks c\to\XMLtabtoks,
  middle=>\appendtoks c\to\XMLtabtoks]}
...


How about

para=>\appendtoks p\to\XMLtabtoks

It makes it a little bit more flexible. Is there any reason You didn't add
'p' template token to the \processaction list?



Regards, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ref: \defineenumeration

2003-09-24 Thread Willi Egger
Hans,

thanks for the updated version. It works no perfectly!

Willi
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Three basic questions on alignment

2003-09-24 Thread Steffen Wolfrum
May I add something to the previous "Alignment" thread?

I have 3 cases where the usual command "align=left|right|... doesn't work:


1) \setuppagenumbering [alternative=doublesided,location={header,inmargin}]

The page number is aligned left on a right page and vice versa. 
How can I change this to align left on left pages and right on right pages?
(So the page number doesn't rag when flipping from page 1 to 100)


2) \setupheader[style=\MyStyle] \setupheadertexts[section][][][chapter]

The chapter title behaves like the pagenumber. How can I change the alignment from 
inner to outer here?


3) \setupfootnotedefinition[location=inleft]

The footnote's numbers here are aligned left, both on the left and the right page.
What would be the command to align them right, with a constant distant to the note's 
text?



In all cases I couldn't use align=left|right|..., so I guess there must be the same 
other syntax suitable for all three?

Does anybody has an idea?

Grazie, Steffen



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texfont bugs

2003-09-24 Thread Adam Lindsay
That still didn't work, but it was a lot clearer to figure out what to do.

So with a little help from the Camel book, I figured out how to wrap the
conditional 'use' in a way that works (well, compiles) on my (non-Win32)
system at least:

my $IsWin32;

BEGIN {
  $IsWin32 = ($^O =~ /MSWin32/i);

  if ($IsWin32) {
require Win32::API; import Win32::API;
  } 
}

I'm sure there are Perl wizards out there who know how to do this sort of
thing much more elegantly.

Cheers,
adam

Next up: how to use this to steal the Lucida fonts from Java on Mac OS X...

Hans Hagen said this at Wed, 24 Sep 2003 17:17:08 +0200:

>At 14:45 24/09/2003 +0100, you wrote:
>
>>Looks like the current texfont is a bit broken right now. I believe it's
>>the introduction of the "if ($IsWin32) " block: the pragma "use
>>Win32::API" doesn't seem to work within the conditional block.
>
>can you try the attached version?
>
>Hans
>-
>   Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
>-
>information: http://www.pragma-ade.com/roadmap.pdf
> documentation: http://www.pragma-ade.com/showcase.pdf
>-

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay  [EMAIL PROTECTED]
 Computing Dept, Lancaster University   +44(0)1524/594.537
 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

texfont-atl.zip
Description: Zip archive


Re: [NTG-context] texfont bugs

2003-09-24 Thread Hans Hagen
At 14:45 24/09/2003 +0100, you wrote:

Looks like the current texfont is a bit broken right now. I believe it's
the introduction of the "if ($IsWin32) " block: the pragma "use
Win32::API" doesn't seem to work within the conditional block.
can you try the attached version?

Hans


texfont.zip
Description: Zip archive
-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-
   information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-


[NTG-context] (solved) Re: How to adress footnote's numbers in main text?

2003-09-24 Thread Steffen Wolfrum
Found the answer hidden in the archiv. 

For examples:

\defineconversion[HowAboutIt][\ss]
\setupfootnotes[conversion=HowAboutIt]

Can't be smoother.

Steffen


>Dear colisters,
>
>as I typeset my text with oldstyle figures I also have the footnote's numbers in 
>oldstyle.
>But those figures look quite strange when set superscript in the text.
>
>Changing the footnote's numbers in the footnote area (bottom) was possible by:
>\definefont [MajuskelFNfont][OldStyle at 8.5pt]
>\setupfootnotes[numbercommand=\MajuskelFNfont,rule=\MyRule]
>
>
>But how can I adress the superscript footnote's numbers in the main text??
>
>
>Happy for any reply,
>Steffen
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Aligment?

2003-09-24 Thread Giuseppe Bilotta
Wednesday, September 24, 2003 ^Nitram^ wrote:

> Hi,

> When I trying with new commands I noticed that:
> \framed[align=left,width=broad]{left}
> \framed[align=right,width=broad]{right}

> produced:
> |---|
> |   left|
> |---|
> |---|
> |right  |
> |---|

> Why ?... ;)

Because Hans made a BAD decitions at the beginning of ConTeXt,
in which the left/right alignments actually mean ragged
left/right. IIRC there was some switch to trigger the "proper"
behavior, but I forgot which was it.

-- 
Giuseppe "Oblomov" Bilotta


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] texfont bugs

2003-09-24 Thread Adam Lindsay
Hi folks.

Looks like the current texfont is a bit broken right now. I believe it's
the introduction of the "if ($IsWin32) " block: the pragma "use
Win32::API" doesn't seem to work within the conditional block.

Furthermore, I'm not sure the else block that follows comes to a sane
ending, so I was unsure of the fix.

I take it the change was to address embedded spaces on windows systems?
I'm all in favour of tying up loose x-platform ends (esp those I may have
left in my wake), but I think there's been a step backwards.

Cheers,
adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay  [EMAIL PROTECTED]
 Computing Dept, Lancaster University   +44(0)1524/594.537
 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Aligment?

2003-09-24 Thread Steffen Wolfrum
>"^Nitram^" <[EMAIL PROTECTED]> writes:
>
>Hi Martin,
>
>> When I trying with new commands I noticed that:
>> \framed[align=left,width=broad]{left}
>> \framed[align=right,width=broad]{right}
>>
>> produced:
>> |---|
>> |   left|
>> |---|
>> |---|
>> |right  |
>> |---|
>>
>> Why ?... ;)
>
>I bet you are concerned about the alignment.
>
>Think of it as "raggedleft" and "raggedright" instead of 
>"flushleft" and "flushright"
>
>Patrick
>-- 
>You are your own rainbow!


My I add three more questions on alignment - very basic:

1) \setuppagenumbering [alternative=doublesided,location={header,inmargin}]
The page number is aligned left on a right page and right on a left page. How can I 
change this to align left on left pages and right on right pages? -> so the page 
number doens't rag outside when flipping from page 1 to 100

2) \setupheader[style=\MyStyle] \setupheadertexts[section][][][chapter]
Also in this case align=xx doesn't work. The chapter title behaves like the 
pagenumber. How can I change the alignment from inner to outer here?

3) \setupfootnotedefinition[location=inleft]
The footnote's numbers here are aligned left, both on the left and the right page.
What would be the command to align them right?


In all cases I couldn't use align=left/right/..  So I guess there must be a very 
silimar solution for all three of them.

Does anybody has an idea?

Grazie, Steffen



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Aligment?

2003-09-24 Thread Patrick Gundlach
"^Nitram^" <[EMAIL PROTECTED]> writes:

Hi Martin,

> When I trying with new commands I noticed that:
> \framed[align=left,width=broad]{left}
> \framed[align=right,width=broad]{right}
>
> produced:
> |---|
> |   left|
> |---|
> |---|
> |right  |
> |---|
>
> Why ?... ;)

I bet you are concerned about the alignment.

Think of it as "raggedleft" and "raggedright" instead of 
"flushleft" and "flushright"

Patrick
-- 
You are your own rainbow!
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: italic correction

2003-09-24 Thread Hans Hagen
At 09:36 24/09/2003 +0200, you wrote:
Hi,

> Of course:
>
> \def\MyIt{\groupedcommand\it\/}
I came across \groupedcommand some time ago and I wondered why it is
in there (and not in supp-fun.tex for example...). OK, I still don't
understand \HandleGroup ... completely, but the day just began and
coffee is almost ready.
it's a clever command, since it supports \something{grouped} as well as 
{\something ...}

Hans

-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-
   information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Typing in new command problems

2003-09-24 Thread ^Nitram^
Hi,

> > Is it impossible?
> Is this a real question?

No ;) But the real should be '... for newbie' :)

[cut]

Thank you very much. I did it in this way:

\defineframedtext[Frame][width=broad,bodyfont=9pt,align=right] 
%but align is a little strange = see new post Aligment?

\def\Command#1#2
{\setuptyping[before=\startFrame,after=\stopFrame]
\setupTABLE[frame=off]\bTABLE\bTR\bTD[width=.2\textwidth,align=left]
%align again
\bfx #2\eTD\bTD \typebuffer[#1] \eTD\eTR\eTABLE
\setuptyping[before=,after=]}

And now it is what I want ;) Probably there is another way to do this
but I'm in ConTeXt since 1-2 months ;)

-- 
Best regards
Martin

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Aligment?

2003-09-24 Thread ^Nitram^
Hi,

When I trying with new commands I noticed that:
\framed[align=left,width=broad]{left}
\framed[align=right,width=broad]{right}

produced:
|---|
|   left|
|---|
|---|
|right  |
|---|

Why ?... ;)

-- 
Best regards
Martin




___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to adress footnote's numbers in main text?

2003-09-24 Thread Steffen Wolfrum
Dear colisters,

as I typeset my text with oldstyle figures I also have the footnote's numbers in 
oldstyle.
But those figures look quite strange when set superscript in the text.

Changing the footnote's numbers in the footnote area (bottom) was possible by:
\definefont [MajuskelFNfont][OldStyle at 8.5pt]
\setupfootnotes[numbercommand=\MajuskelFNfont,rule=\MyRule]


But how can I adress the superscript footnote's numbers in the main text??


Happy for any reply,
Steffen
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Odp: ntg-context digest, Vol 1 #484 - 13 msgs

2003-09-24 Thread Patrick Gundlach

Hi,

> It works but if I use
> \startnitram
> \getbuffer
> \stopnitram
>
> I have as result:
> \getbuffer 
> ;)

right, that is verbatim mode :)


> I would like to define some code in buffer and use it
> as example (typing this code) and show how it works (use this code).
> I can use \getbuffer and \typebuffer, but I would like to put code 
> into a 'nice' frame ;)

I wasn't able to notice what you want in the first mail. Sorry.

> I can do it by \framed[number of options]{\typebuffer}, but I would
> like to do it in better way - by defining own command and use 
> \Command{\getbuffer}.


> Is it impossible?

Is this a real question?



\setuptyping[before=\startMyFrame,after=\stopMyFrame]

\defineframedtext
   [MyFrame]
   [width=fit]

\starttext
\startbuffer [nitram]
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  Nam a
sapien.  Fusce commodo.  Nunc eleifend leo vitae magna.
\stopbuffer
\getbuffer [nitram]
\typebuffer[nitram]

\stoptext

If you really want your \Command:

\define[1]\Command%
{\typebuffer[#1]}
\Command{nitram}


Patrick
-- 
Silent is the goldfish in its bowl
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Odp: ntg-context digest, Vol 1 #484 - 13 msgs

2003-09-24 Thread ^Nitram^
Hi,

> > I try to define new command with typing in this way:
> Don't mess with verbatim stuff in commands. Don't ask why, just don't
> do it ;-)
> \definetyping
>   [nitram]
>   [before=\startframedtext,
>after=\stopframedtext]
> \starttext
> \startnitram
> crazy
> \stopnitram
> \stoptext

It works but if I use
\startnitram
\getbuffer
\stopnitram

I have as result:
\getbuffer 
;)

I would like to define some code in buffer and use it
as example (typing this code) and show how it works (use this code).
I can use \getbuffer and \typebuffer, but I would like to put code 
into a 'nice' frame ;)

I can do it by \framed[number of options]{\typebuffer}, but I would
like to do it in better way - by defining own command and use 
\Command{\getbuffer}.
Is it impossible?

-- 
Best regards
Martin

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Again: \indenting[*hang*] ?!

2003-09-24 Thread Patrick Gundlach
Hans Hagen <[EMAIL PROTECTED]> writes:

Hi,

> so ... write a one page YourWay doc with experiences (using the
> portal) and post it -)

you mean that I should actually *use* ConTeXt? Not just playing with
it? Hmm, sounds ok to me.

Patrick
-- 
Silent is the goldfish in its bowl
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: italic correction

2003-09-24 Thread Patrick Gundlach
Hi,

> Of course:
>
> \def\MyIt{\groupedcommand\it\/}

I came across \groupedcommand some time ago and I wondered why it is
in there (and not in supp-fun.tex for example...). OK, I still don't
understand \HandleGroup ... completely, but the day just began and
coffee is almost ready.

Patrick
-- 
Silent is the goldfish in its bowl
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context