Re: [NTG-context] side figure and typing

2004-07-23 Thread Hans Hagen Outside
Willi Egger wrote:
\startbuffer[test]
\starttyping
pack .ok .cancel .help -side top
\stoptyping
\stopbuffer
\startbuffer[test]
pack . 
\stopbuffer
\starttext
\SideFigure{right}{pack2}{figure.jpg}{0.25}
{
\getbuffer[test]
\typebuffer[test]
}
Hans
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metaobj and transparent colors with \MPcolor

2004-07-23 Thread Hans Hagen Outside
Denis Roegel wrote:
On Fri, Jul 23, 2004 at 09:53:22AM +0200, Eckhart Guthöhrlein wrote:
 

Hi,
I try to achieve transparently filled objects using the metaobj package.
However, transparency is ignored completely in the output, I just get a
normal white. Here is my test file:
   

Hi,
I have never considered transparency in metaobj, and each part of an object
is merely drawn, in some order depending on that object, and with some (opaque) color.
It seems some serious surgery would be needed to seamlessly add transparency
handling. It can certainly be done, be it only by working on an object
structure, but I don't see a quick fix.
 

no, transparency is handled by the colors themselves so if metaobj can carry along a color it's should work 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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems with left and right

2004-07-23 Thread Hans Hagen Outside
Matt Gushee wrote:
Hello--
I have noticed a couple of cases where ConTeXt macros seem to have
confused left and right sides:
1) I want to format some text in two columns, where the left column
   is right-aligned and the right column is left-aligned. I found I
   had to do this:
 \defineparagraphs
   [ingredient]
   [n=2, before={\blank[small]},after={\blank[small]}]
 \setupparagraphs
   [ingredient] [1] 
   [width=.16\textwidth,align=left,style=bold]
 

nowadays, using \starttabulate[|pl|pr|] is the prefered way
forthermore, think of right as raggedright
2) In order to format format headers for a book so that the book title
   appears on the left-hand page and the section title on the right, I
   had to do this:
 \setupheadertexts [] [section] [title] []
   ... which, as I read the documentation, is in the opposite order to
   what it should be.
Is this a bug in ConTeXt, or have I misconfigured something?
 

no, think of spreads
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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Disappearing headers

2004-07-23 Thread Matt Gushee
Hello, all--

I am trying to format a book such that the book title appears in the
header of each left-hand page, and the chapter title appears in the
header of each right-hand page. I think (though I haven't decided for
sure) that I want each chapter to start on a right-hand page. It seems
that, when chapters are forced to begin on right-hand pages, the book
title fails to appear on the first blank page inserted to move the
chapter start, and on all subsequent pages.

Here are the commands I am using related to headers:

\setuphead [title] 
[align=left,textstyle={\switchtobodyfont[BernhardModern]\bf}]
\setuphead [chapter] 
[page=right,head=nomarking,after=\blank]
\setuppagenumbering [alternative=doublesided,location=margin]
\setupheader [style=\it]
\setupheadertexts [] [chapter] [title] [] 
% reverse order, as mentioned in my earlier post

With all these commands enabled, I get the effect I want: chapters begin
on righthand pages, the title and chapter title appear, respectively, in
the left and right page headers (adjacent to the page numbers, with the
page numbers toward the outside edge of the page). But, as I said, the
book title stops appearing as soon as a blank page is inserted to move
the chapter start to the right.

If I comment out *both* the \setuphead [chapter] command and the
\setuppagenumbering command, the title continues to be displayed
throughout the text. If I enable either of the two, the title disappears
again. By the way, it appears that this \setuppagenumbering command has
a side-effect of forcing chapters to begin on the right. Is that really
a good idea? It's certainly surprising to me.

So, am I doing something wrong, or is this a bug?

-- 
Matt Gushee When a nation follows the Way,
Englewood, Colorado, USAHorses bear manure through
[EMAIL PROTECTED]   its fields;
http://www.havenrock.com/   When a nation ignores the Way,
Horses bear soldiers through
its streets.

--Lao Tzu (Peter Merel, trans.)
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metaobj and transparent colors with \MPcolor

2004-07-23 Thread Denis Roegel
On Fri, Jul 23, 2004 at 09:53:22AM +0200, Eckhart Guthöhrlein wrote:
> Hi,
> 
> I try to achieve transparently filled objects using the metaobj package.
> However, transparency is ignored completely in the output, I just get a
> normal white. Here is my test file:
>

Hi,

I have never considered transparency in metaobj, and each part of an object
is merely drawn, in some order depending on that object, and with some (opaque) color.
It seems some serious surgery would be needed to seamlessly add transparency
handling. It can certainly be done, be it only by working on an object
structure, but I don't see a quick fix.

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


Re: [NTG-context] Re: A few questions regarding ConTeXt

2004-07-23 Thread Tobias Hilbricht

> >However, judging from the documentation on your site, some features that
> >I have read about in LaTeX - such as drop caps, complex headers, cross
> >references, several series of footnotes etc (i.e. the packages
> >"lettrine", "fancyhdr", "varioref" and "ledmac") - don't seem to be
> >available in ConTeXt.

I use the packages lettrine, fancyhdr and ledmac, and from time to time
I have a look at the way ConTeXt does the things I need. 

Dropped caps (versals) is possible with ConTeXt, finetuneable and not
more difficult than with lettrine in LaTeX. Documentation for ConTeXt is
hidden in the file supp-fun.tex in the base system.

Creating complex running headers is easier in ConTeXt than in LaTeX,
because the ConTeXt marking mechanism allows more than just leftmark and
rightmark (and the two extramarks provided by the package extramarks),
as in LaTeX. Documentation is in the main manual. However, there was a
problem with the ConTeXt marking mechanism when using a two column
layout, which had to be overcome by an "email bug fix" by Hans Hagen.

I have not tried yet to create a complex critical edition with ConTeXt,
with more than one footnote apparatus, which is easy with ledmac.

Yours sincerely

Tobias Hilbricht


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


Re: [NTG-context] Problems with left and right, Part II

2004-07-23 Thread Matt Gushee
On Fri, Jul 23, 2004 at 01:19:57PM -0600, Matt Gushee wrote:
> 
> I have noticed a couple of cases where ConTeXt macros seem to have
> confused left and right sides:

Just found another:

  \setuphead [title] [align=right]

places the title on the left side, and vice versa.

I have also confirmed that this takes place on both machines where I
have ConTeXt installed, so it's unlikely to be caused by anything I did.

-- 
Matt Gushee When a nation follows the Way,
Englewood, Colorado, USAHorses bear manure through
[EMAIL PROTECTED]   its fields;
http://www.havenrock.com/   When a nation ignores the Way,
Horses bear soldiers through
its streets.

--Lao Tzu (Peter Merel, trans.)
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] more footnotes:-)

2004-07-23 Thread ishamid
Dear partners in crime,

I have come across a situation where, in a left-to-right document, I need to 
make the footnotes operate right to left: that is, the footnote numeral and 
rule should be on the right side of the page. Now when using the global 
direction changes that eomega/Gamma offers, this is trivial for a global 
right-to-left document (\pagedir TRT and \bodydir TRT are the global 
settings), but in a globally left-to-right document I have not been able to 
get this to work locally.

To explain:

\textdir TRT

and

\pardir TRT

locally switch the text and paragraph directions respectively, but not the 
footnote markers and rule. This is correct behavior of course. But I have an 
article that includes a long right-to-left extract with footnotes, and those 
footnotes need to be RL in the sense described above (numeral + rule). Is 
there any way to add a parameter option to \setupfoonotes which, 
between---say, a \start-\stop---that can locally switch the location of the 
numeral and marker to RL?

Please help: I'm supposed to send this thing to the printer next week:-))

Best
Idris

PS \pagedir TRT and \bodydir TRT don't seem to help this proble when applied 
in a local context.


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


[NTG-context] Problems with left and right

2004-07-23 Thread Matt Gushee
Hello--

I have noticed a couple of cases where ConTeXt macros seem to have
confused left and right sides:

 1) I want to format some text in two columns, where the left column
is right-aligned and the right column is left-aligned. I found I
had to do this:

  \defineparagraphs
[ingredient]
[n=2, before={\blank[small]},after={\blank[small]}]
  \setupparagraphs
[ingredient] [1] 
[width=.16\textwidth,align=left,style=bold]

 2) In order to format format headers for a book so that the book title
appears on the left-hand page and the section title on the right, I
had to do this:

  \setupheadertexts [] [section] [title] []

... which, as I read the documentation, is in the opposite order to
what it should be.

Is this a bug in ConTeXt, or have I misconfigured something?

-- 
Matt Gushee When a nation follows the Way,
Englewood, Colorado, USAHorses bear manure through
[EMAIL PROTECTED]   its fields;
http://www.havenrock.com/   When a nation ignores the Way,
Horses bear soldiers through
its streets.

--Lao Tzu (Peter Merel, trans.)
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] side figure and typing

2004-07-23 Thread Willi Egger
Hi,
If you place the 5th parameter in a buffer, it works with the following 
version of ConTeXt and pdfTeX.

pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2c 7.5.2)
ConTeXt  ver: 2004.6.30 (beta)
\startbuffer[test]
\starttyping
pack .ok .cancel .help -side top
\stoptyping
\stopbuffer
\starttext
\SideFigure{right}{pack2}{figure.jpg}{0.25}
{
\getbuffer[test]
}
\stoptext
kind regards Willi
[EMAIL PROTECTED] wrote:
Hi all !
let us imagine we have defined the following command:
\def\SideFigure#1#2#3#4#5%
  {
\placefigure[#1]{#2}{\externalfigure[#3][width=#4\makeupwidth]}
#5
  }
which can be used to put a figure aside a companion text...
but, what happens if the text is to be typed... ??
I guess this won't work:
\SideFigure{right}{pack2}{../figures/tcltk/pack2.jpg}{0.25}
{
\starttyping
pack .ok .cancel .help -side top
\stoptyping
}
How can I make it to work?
thanks !
-
Jose Ignacio Marín Alberdi
Bayes Inference, S.A.
c/ Gran Vía, Nº39, 5º, E-28013 MADRID
 Tfn (91) 532.74.40, Fax (91) 532.26.36
-
email: [EMAIL PROTECTED]
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] key=value parameters

2004-07-23 Thread Hans Hagen Outside
Vit Zyka wrote:
Great, but unfortunately it does not work with empty parameter list [].
No I have no time but I will look for better definition of 
\rawgetparameters and \rawsetparameter.
I fixed this a while ago, and not have: 

%D \macros
%D   {rawgetparameters}
%D
%D A raw and dirty alternative for \type {\getparameters}; no
%D checking is done!
% \def\rawgetparameters[#1][#2]% scheelt 5\%
%   {\def\rawparameterprefix{#1}%
%\expandafter\rawsetparameter#2,]=,}
%
% \def\rawsetparameter#1=#2,%
%   {\if]#1\else
%  \expandafter\def\csname\rawparameterprefix#1\endcsname{#2}%
%  \expandafter\rawsetparameter
%\fi}
%
% the next one handles empty #1 okay:
\def\rawgetparameters[#1][#2% some 5-10% faster
 {\ifx#2]% test is needed, else bomb on [#1][]
\expandafter\gobbleoneargument
  \else
\def\rawparameterprefix{#1}%
\expandafter\dorawgetparameters
  \fi#2}
\def\dorawgetparameters#1]%
 {\expandafter\rawsetparameter#1,]=,}
-
 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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] side figure and typing

2004-07-23 Thread Hans Hagen Outside
[EMAIL PROTECTED] wrote:
Hi all !
let us imagine we have defined the following command:
\def\SideFigure#1#2#3#4#5%
 {
   \placefigure[#1]{#2}{\externalfigure[#3][width=#4\makeupwidth]}
   #5
 }
which can be used to put a figure aside a companion text...
but, what happens if the text is to be typed... ??
I guess this won't work:
\SideFigure{right}{pack2}{../figures/tcltk/pack2.jpg}{0.25}
{
\starttyping
pack .ok .cancel .help -side top
\stoptyping
}
How can I make it to work?
 

hm, you could just omit #5 and it would probably work
otherwise you would need to do do a multi step like:
\def\XXX#1#2#3#4%
  {\begingroup
   \obeylines\doXXX{#1}{#2}{#3}{#4}}
\long\def\doXXX#1#2#3#4#5%
 {\place[]{}{}\scantokens{#5}}
or so (untested and probably not correct) 

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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metaobj and transparent colors with \MPcolor

2004-07-23 Thread Hans Hagen Outside
Vit Zyka wrote:
Sorry, I can not reproduce your example. I get only red page with 
black page number in header. No white box. And I do not known metaobj 
macro.

But I have a question. It is really needed to surround \definecolor by 
\startMPenvironment? Since \definecolor has to result to \pdfobj and 
\pdfliteral (pdftex primitives) and propagation to mpost (which is EPS 
not PDF generator) has no sence. Only reference to color is needed and 
it is done via \MPcolor. Am I right?
only things that are needed in btex ... etex or textext(..) need to be 
put into \startMPenvironment, so in your case the color def can stay 
outside the env.

Vit Zyka
I try to achieve transparently filled objects using the metaobj package.
However, transparency is ignored completely in the output, I just get a
normal white. Here is my test file:
\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=red]
\startMPenvironment[global]
  \definecolor[Durchsichtig][r=1.0,g=1.0,b=1.0,t=0.0,a=normal]
\stopMPenvironment
\startreusableMPgraphic{test}
input metaobj;
setObjectDefaultOption("Box")("fillcolor")(\MPcolor{Durchsichtig});
newBox.test(btex Transparent? etex) "filled(true)";
Obj(test).c=origin;
drawObj(test);
\stopreusableMPgraphic
\starttext
\reuseMPgraphic{test}
\stoptext
If I use the fillcolor as an argument to the object
newBox.test(btex Transparent? etex) "filled(true)"
"fillcolor(\MPcolor{Durchsichtig})";

can you try
fillcolor \MPcolor{...}
or maybe
color  ;  := \MPcolor{...} ; fillcolor() ;
I get error messages from the mpost run. So it seems that metaobj and
\MPcolor don't like each other.
Any ideas how to circumvent this problem?
Regards,
Eckhart

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

Deze e-mail is door E-mail VirusScanner van Planet Internet 
gecontroleerd op virussen.
Op http://www.planet.nl/evs staat een verwijzing naar de actuele lijst 
waar op wordt gecontroleerd.



--
-
 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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] More about that footnote problem...

2004-07-23 Thread ishamid
Dear crew,

Here is a concrete example that illustrates the footnote problem. As usual, 
just compile a ConTeXt format under eomega:

===mix-dir-foot.tex===
\input m-gamma.tex
\input type-omg.tex

\setupbodyfont[omlgc,12pt]

\starttext

\dorecurse{5}{\input knuth\footnote{test}\par}

\startarab

\dorecurse{3}{hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN
hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN
hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN\footnote{hAdhA 'iimtiHAnuN}\par}

\blank[big]

\dorecurse{3}{hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN
hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN
hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN%
\footnote{%
\startarab %
hAdhA 'iimtiHAnuN %
\stoparab}
\par}

\blank[big]

\setupfootnotes[numbercommand={\switchtobodyfont[omarb]}]

\dorecurse{3}{hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN
hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN
hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN%
\footnote{%
\startarab %
hAdhA 'iimtiHAnuN %
\stoparab}
\par}

\stoparab

\stoptext
==

Again, the document is globally left-to-right, but for right-to-left documents 
I want the footnote markers in the right margin, and the rule flush right as 
well. The relative local eomega direction commands are

\textdir TLT (LR text)
\pardir TLT (LR paragraphs)
\textdir TRT (RL text)
\pardir TRT (RL paragraphs)

though they are not really needed to create parameter options that give me 
what I want. I played around with some of the macros in core-not.tex but that 
stuff is way over my ahead and I could not make any progress:-(

NOTE: in the second set of RL footnotes, note that the footnote markers get 
pushed into the textblock. In the third set of RL fotnotes, we get Arabic 
markers using

\setupfootnotes[numbercommand={\switchtobodyfont[omarab]}]

but then we lose the default

\setupfootnotes[numbercommand=\high]

and the Arabic-script numerals are again pushed into the textblock.

I look forward to your suggestions

Best
Idris


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


Re: [NTG-context] continuous numbering over components?

2004-07-23 Thread Marko Schütz
Hi Hans,

From: Hans Hagen Outside <[EMAIL PROTECTED]>
Subject: Re: [NTG-context] continuous numbering over components?
Date: Fri, 16 Jul 2004 12:18:56 +0200

> Marko Schütz wrote:
> >I have a project containing products containing components. For one of
> >the products I want to achieve a continuous numbering (as I get when
> >`texexec`ing the product file) but I want a single pdf per component. 
> >
> >I expect that there is an elegant solution, but didn't find it yet. So
> >any hint is appreciated.
> >  
> >
> technically, if you have run the whole file, you can run a component 
> 
> \setuphead[chapter][incrementnumber=mainfilename] 
> 
> should pick up numbers from the file; can you test that? 

yes that works.

> i can extend that with setting the page number as well; 

would be fine.

> another option is to use texexec --pdfselect
> 
> (this can be automated, by picking up numbers from the tuo file;
> remind me in a few weeks)  

I took a look at the .tuo file and it seems pretty straightforward to
fetch the relevant page range from there.

Thanks for the hint

Marko


pgp2eHp3Rj3Vg.pgp
Description: PGP signature
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] more footnotes:-)

2004-07-23 Thread Idris Samawi Hamid
Dear partners in crime,
I have come across a situation where, in a left-to-right document, I need 
to make the footnotes operate right to left: that is, the footnote numeral 
and rule should be on the right side of the page. Now when using the 
global direction changes that eomega/Gamma offers, this is trivial for a 
global right-to-left document (\pagedir TRT and \bodydir TRT are the 
global settings), but in a globally left-to-right document I have not been 
able to get this to work locally.

To explain:
\textdir TRT
and
\pardir TRT
locally switch the text and paragraph directions respectively, but not the 
footnote markers and rule. This is correct behavior of course. But I have 
an article that includes a long right-to-left extract with footnotes, and 
those footnotes need to be RL in the sense described above (numeral 
+ rule). Is there any way to add a parameter option to \setupfoonotes 
which, between---say, a \start-\stop---that can locally switch the 
location of the numeral and marker to RL?

Please help: I'm supposed to send this thing to the printer next week:-))
Best
Idris
PS \pagedir TRT and \bodydir TRT don't seem to help this proble when 
applied in a local context.

--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] More about that footnote problem...

2004-07-23 Thread Idris Samawi Hamid
Dear crew,
Here is a concrete example that illustrates the footnote problem. As 
usual, just compile a ConTeXt format under eomega:

===mix-dir-foot.tex===
\input m-gamma.tex
\input type-omg.tex
\setupbodyfont[omlgc,12pt]
\starttext
\dorecurse{5}{\input knuth\footnote{test}\par}
\startarab
\dorecurse{3}{hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN
hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN
hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN\footnote{hAdhA 'iimtiHAnuN}\par}
\blank[big]
\dorecurse{3}{hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN
hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN
hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN%
\footnote{%
\startarab %
hAdhA 'iimtiHAnuN %
\stoparab}
\par}
\blank[big]
\setupfootnotes[numbercommand={\switchtobodyfont[omarb]}]
\dorecurse{3}{hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN
hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN
hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA 'iimtiHAnuN hAdhA
'iimtiHAnuN%
\footnote{%
\startarab %
hAdhA 'iimtiHAnuN %
\stoparab}
\par}
\stoparab
\stoptext
==
Again, the document is globally left-to-right, but for right-to-left 
documents I want the footnote markers in the right margin, and the rule 
flush right as well. The relative local eomega direction commands are

\textdir TLT (LR text)
\pardir TLT (LR paragraphs)
\textdir TRT (RL text)
\pardir TRT (RL paragraphs)
though they are not really needed to create parameter options that give me 
what I want. I played around with some of the macros in core-not.tex but 
that stuff is way over my ahead and I could not make any progress:-(

NOTE: in the second set of RL footnotes, note that the footnote markers 
get pushed into the textblock. In the third set of RL fotnotes, we get 
Arabic markers using

\setupfootnotes[numbercommand={\switchtobodyfont[omarab]}]
but then we lose the default
\setupfootnotes[numbercommand=\high]
and the Arabic-script numerals are again pushed into the textblock.
I look forward to your suggestions
Best
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Shading transparency / missing linear_shade variant

2004-07-23 Thread Eckhart Guthöhrlein
Hi all,

experimenting with transparencies, I have obviously come to a
limitation: color shading does not work for transparent colors. What I
have in mind is a bar filled with a color gradient, starting from a
certain (non-transparent) color and ending transparent, i.e. vanishing
into the background. However, the transparent color appears just black.

Furthermore, the shading variants for linear_shade do not correspond
with those listed in the metafun manual, page 180. Variant 2 is missing
and behaves like variant 3 should.

Example:

\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=red]

\startMPenvironment[global]
\definecolor[HeadLineColor][r=0,g=0,b=1]
  \definecolor[Transparent][r=1,g=1,b=1,t=0,a=normal]
\stopMPenvironment

\startreusableMPgraphic{test}
numeric u; u=3cm;
path p;
p := unitsquare xscaled u yscaled u cornered (u/10);
for i=0 upto 3 :
linear_shade(p 
shifted(i*u,0),i,\MPcolor{HeadLineColor},\MPcolor{Transparent});
endfor; 
\stopreusableMPgraphic

\starttext
\reuseMPgraphic{test}
\stoptext

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


Re: [NTG-context] metaobj and transparent colors with \MPcolor

2004-07-23 Thread Eckhart Guthöhrlein
On Fri, Jul 23, 2004 at 11:45:32AM +0200, Vit Zyka wrote:
> Sorry, I can not reproduce your example. I get only red page with black 
> page number in header. No white box. And I do not known metaobj macro.

The graphics won't compile without metaobj, which is a very nice macro
package for metapost, available at
CTAN/graphics/metapost/contrib/macros/metaobj/

> But I have a question. It is really needed to surround \definecolor by 
> \startMPenvironment? Since \definecolor has to result to \pdfobj and 
> \pdfliteral (pdftex primitives) and propagation to mpost (which is EPS 
> not PDF generator) has no sence. Only reference to color is needed and 
> it is done via \MPcolor. Am I right?

During a texexec run, inline MP graphics are automatically generated and
converted in case of PDF output, provided that you have configured your
texexec to do so.
Definitions enclosed in \startMPenvironment ... \stopMPenvironment are
made available not only inside MP graphics, but also for the main
document by the [global] option. In this case, I use it to maintainn
color consistency between metapost and tex.
Without \startMPenvironment, the color definition would be available in
context only, not for inline graphics.

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


Re[2]: [NTG-context] key=value parameters

2004-07-23 Thread Giuseppe Bilotta
Friday, July 23, 2004 Vit Zyka wrote:

>> Actually there is no need to define anything, you can just use \rawgetparameters
>> instead of  \getparameters.

> Great, but unfortunately it does not work with empty parameter list [].
> No I have no time but I will look for better definition of 
> \rawgetparameters and \rawsetparameter.

A common workaround to this problem (which Hans should fix,
though) is to force the list to not be empty.

Say for example that parameter #1 of your macro accepts the
user list of key=values. you would then use

\rawgetparameters[something=else,#1]

This way, even if #1 is empty it will work.

-- 
Giuseppe "Oblomov" Bilotta

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


Re: [NTG-context] key=value parameters

2004-07-23 Thread Taco Hoekwater
On Fri, 23 Jul 2004 12:53:33 +0200
Vit Zyka <[EMAIL PROTECTED]> wrote:

> That is true I was not familiar about \c!... But problem is not in 
> familiarity with ConTeXt source but Dutch language. One should write 
> \c!tekstbreedte instead of \c!textwidth. For non Dutch it means all the 
> time search at mult-*.tex. 

For me too, I have not used the dutch interface in years and have forgotten
most of the low-level dutch names. I am also eagerly awaiting a fully 
english version.

> > Actually there is no need to define anything, you can just use \rawgetparameters 
> > instead of  \getparameters.
> 
> Great, but unfortunately it does not work with empty parameter list [].

I did not know that. Too bad.

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


Re: [NTG-context] key=value parameters

2004-07-23 Thread Vit Zyka
Thank you Taco.
I can imagine next solutions:
1) Do not use predefined keys in my macros, e.g. textWidth instead of
   textwidth [=user unfriendly].
If you decide on this solution, please use Textwidth instead (at least
something that starts with a capital letter). 
OK, but I do not like this solution.
2) Use original (mostly Dutch) keys inside of my macros
   [=developer unfriendly].
In this case, the "correct" solution is to use the interfaced versions 
like \c!tekstbreedte et al. inside your macros. This is unwieldy if you 
are not very familiar with the ConTeXt source, but it allows multilingual
input (very user friendly).
That is true I was not familiar about \c!... But problem is not in 
familiarity with ConTeXt source but Dutch language. One should write 
\c!tekstbreedte instead of \c!textwidth. For non Dutch it means all the 
time search at mult-*.tex. I know, solution is to learn Dutch... Hans 
has plan to rewrite all code to English, hasn't it?
Very good idea.

Multilingual input:
- In late 90. when I met ConTeXt first time, I was very confused. Some 
macros work, something was ignored. It took several days to discover 
that I have to write (in my czech format) \nastavbarvy instead of 
\setupcolors. After that I quickly switch to english interface.
- Multilingual interface is a nice example of ConTeXt capability, but a 
bit inpractical. It keeps from source code exchange. I can imagine some 
transtlators, but...
- I think there is no many ConTeXt users (even any?) that use non 
English or non Dutch interface (languages in which reference manual is 
written).

3) Define:
 \unprotect
 \def\getparametersALL{\dogetparameters\dosetvalueALL}
Actually there is no need to define anything, you can just use \rawgetparameters 
instead of  \getparameters.
Great, but unfortunately it does not work with empty parameter list [].
No I have no time but I will look for better definition of 
\rawgetparameters and \rawsetparameter.

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


[NTG-context] side figure and typing

2004-07-23 Thread jimarin
Hi all !

let us imagine we have defined the following command:

\def\SideFigure#1#2#3#4#5%
  {
\placefigure[#1]{#2}{\externalfigure[#3][width=#4\makeupwidth]}
#5
  }

which can be used to put a figure aside a companion text...

but, what happens if the text is to be typed... ??

I guess this won't work:

\SideFigure{right}{pack2}{../figures/tcltk/pack2.jpg}{0.25}
{
\starttyping
pack .ok .cancel .help -side top
\stoptyping
}

How can I make it to work?

thanks !

-
Jose Ignacio Marín Alberdi

Bayes Inference, S.A.
c/ Gran Vía, Nº39, 5º, E-28013 MADRID
 Tfn (91) 532.74.40, Fax (91) 532.26.36
-
email: [EMAIL PROTECTED]
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metaobj and transparent colors with \MPcolor

2004-07-23 Thread Vit Zyka
Sorry, I can not reproduce your example. I get only red page with black 
page number in header. No white box. And I do not known metaobj macro.

But I have a question. It is really needed to surround \definecolor by 
\startMPenvironment? Since \definecolor has to result to \pdfobj and 
\pdfliteral (pdftex primitives) and propagation to mpost (which is EPS 
not PDF generator) has no sence. Only reference to color is needed and 
it is done via \MPcolor. Am I right?

Vit Zyka
I try to achieve transparently filled objects using the metaobj package.
However, transparency is ignored completely in the output, I just get a
normal white. Here is my test file:
\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=red]
\startMPenvironment[global]
  \definecolor[Durchsichtig][r=1.0,g=1.0,b=1.0,t=0.0,a=normal]
\stopMPenvironment
\startreusableMPgraphic{test}
input metaobj;
setObjectDefaultOption("Box")("fillcolor")(\MPcolor{Durchsichtig});
newBox.test(btex Transparent? etex) "filled(true)";
Obj(test).c=origin;
drawObj(test);
\stopreusableMPgraphic
\starttext
\reuseMPgraphic{test}
\stoptext
If I use the fillcolor as an argument to the object
newBox.test(btex Transparent? etex) "filled(true)"
"fillcolor(\MPcolor{Durchsichtig})";
I get error messages from the mpost run. So it seems that metaobj and
\MPcolor don't like each other.
Any ideas how to circumvent this problem?
Regards,
Eckhart
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] key=value parameters

2004-07-23 Thread Taco Hoekwater

Hi Vit,

On Fri, 23 Jul 2004 10:46:10 +0200, Vit wrote:
> 
> I can imagine next solutions:
> 1) Do not use predefined keys in my macros, e.g. textWidth instead of
> textwidth [=user unfriendly].

If you decide on this solution, please use Textwidth instead (at least
something that starts with a capital letter). 

> 2) Use original (mostly Dutch) keys inside of my macros
> [=developer unfriendly].

In this case, the "correct" solution is to use the interfaced versions 
like \c!tekstbreedte et al. inside your macros. This is unwieldy if you 
are not very familiar with the ConTeXt source, but it allows multilingual
input (very user friendly).

> 3) Define:
>   \unprotect
>   \def\getparametersALL{\dogetparameters\dosetvalueALL}

Actually there is no need to define anything, you can just use \rawgetparameters 
instead of  \getparameters.

-- 
groeten,

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


[NTG-context] key=value parameters

2004-07-23 Thread Vit Zyka
Hallo ConTeXters,
I am playing with defining my own macro with key=value parameters. 
Please, consider definition:

  \def\setupField[#1]#2[#3]{\getparameters[Field!#1!][#3]}
  \setupField[name][mykey=value,textwidth=2cm]
If you let ConTeXt to show the values by
  \message{


 }
you obtain
  
  
  
While 'mykey' is OK, predefined keys (like textwidth, text, style, ...) 
lead to undefined parameter, that behave like \relax.

I can imagine next solutions:
1) Do not use predefined keys in my macros, e.g. textWidth instead of
   textwidth [=user unfriendly].
2) Use original (mostly Dutch) keys inside of my macros
   [=developer unfriendly].
3) Define:
 \unprotect
 \def\getparametersALL{\dogetparameters\dosetvalueALL}
 [EMAIL PROTECTED]
 \protect
   and use:
 \def\setupField[#1]#2[#3]{\getparametersALL[Field!#1!][#3]}
 \setupField[name][mykey=value,textwidth=2cm]
 \message{
   
   
}
   it gives:
 
 
 
Is there any other (more elegant and not-so-dirty) solution?
Thankx
Vit Zyka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] metaobj and transparent colors with \MPcolor

2004-07-23 Thread Eckhart Guthöhrlein
Hi,

I try to achieve transparently filled objects using the metaobj package.
However, transparency is ignored completely in the output, I just get a
normal white. Here is my test file:

\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=red]

\startMPenvironment[global]
  \definecolor[Durchsichtig][r=1.0,g=1.0,b=1.0,t=0.0,a=normal]
\stopMPenvironment

\startreusableMPgraphic{test}
input metaobj;
setObjectDefaultOption("Box")("fillcolor")(\MPcolor{Durchsichtig});
newBox.test(btex Transparent? etex) "filled(true)";
Obj(test).c=origin;
drawObj(test);
\stopreusableMPgraphic

\starttext
\reuseMPgraphic{test}
\stoptext


If I use the fillcolor as an argument to the object

newBox.test(btex Transparent? etex) "filled(true)"
"fillcolor(\MPcolor{Durchsichtig})";

I get error messages from the mpost run. So it seems that metaobj and
\MPcolor don't like each other.
Any ideas how to circumvent this problem?

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