Re: [NTG-context] Several environments in a project?

2007-06-20 Thread Wolfgang Schuster
2007/6/18, nicola [EMAIL PROTECTED]:
 Hi,
 I have a project with a few products sharing the same layout, which is
 specified in a global environment file. Each product is in a separate
 subdirectory together with its components. Then, I want to put some
 setups and figure definitions in product-specific environments and I do
 it like this:

 \startproduct OneProduct
 \project MyProject
 \environment OneProductDir/LocalEnvironment
 ...

 The problem is that the local environment is not read when I typeset a
 particular component, but only when I typeset the whole product. How can
 I fix that?

 Nicola

Hi Nicola,

if you use the same layout for all your documents in a project you can use the
following structure.

% Project

\startproject projectname

\environment environment1
.. more environments

\product product1
.. more products

\stopproject

% Product

\startproduct product1

\project projectname

\component component1
... more components

\stopproduct

% Component

\startcomponent component1

\project projectname

Content

\stopcomponent

The important part is to use \project in your component and not \product,
if I understand the code in core-job correct product files are not read within
a component, only projects, environments and other components.

Greetings
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Howto have page size to fit with image size

2007-06-20 Thread Jean Magnan de Bornier
Hi all,
I want to produce a unique metapost image which should be alone on its
page and its file, and I want to have a page the size of the image,
whichever this size is.

I tried this:

\setupcolors[state=start]
\setuplayout[width=fit,height=fit]
\starttext
\startuseMPgraphic{dummy}
  fill fullcircle scaled 5cm withcolor red ;
\stopuseMPgraphic
\useMPgraphic{dummy}
\stoptext

But the setuplayout options don't seem to provide what I want. Thank
for any hint to have the page size automatically ajust.
-- 
Jean
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Howto have page size to fit with image size

2007-06-20 Thread Patrick Gundlach
Jean Magnan de Bornier [EMAIL PROTECTED] writes:

 Hi all,
 I want to produce a unique metapost image which should be alone on its
 page and its file, and I want to have a page the size of the image,
 whichever this size is.

use \startTEXpage:

\setupcolors[state=start]
%\setuplayout[width=fit,height=fit]
\starttext
\startTEXpage
\startuseMPgraphic{dummy}
  fill fullcircle scaled 5cm withcolor red ;
\stopuseMPgraphic
\useMPgraphic{dummy}
\stopTEXpage
\stoptext

Patrick

-- 
ConTeXt wiki and more: 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Howto have page size to fit with image size

2007-06-20 Thread Wolfgang Schuster
On Wed, 20 Jun 2007 19:22:14 +0200
Patrick Gundlach [EMAIL PROTECTED] wrote:

 Jean Magnan de Bornier [EMAIL PROTECTED] writes:
 
  Hi all,
  I want to produce a unique metapost image which should be alone on its
  page and its file, and I want to have a page the size of the image,
  whichever this size is.
 
 use \startTEXpage:
 
 \setupcolors[state=start]
 %\setuplayout[width=fit,height=fit]
 \starttext
 \startTEXpage
 \startuseMPgraphic{dummy}
   fill fullcircle scaled 5cm withcolor red ;
 \stopuseMPgraphic
 \useMPgraphic{dummy}
 \stopTEXpage
 \stoptext
 
 Patrick

we have also \startMPpage:

\setupcolors[state=start]
\starttext
\startMPpage
  fill fullcircle scaled 5cm withcolor red ;
\stopMPpage
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Howto have page size to fit with image size

2007-06-20 Thread Patrick Gundlach

 we have also \startMPpage:

 \setupcolors[state=start]
 \starttext
 \startMPpage
   fill fullcircle scaled 5cm withcolor red ;
 \stopMPpage
 \stoptext


Great! I keep forgetting those.

Patrick
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Multiline footer

2007-06-20 Thread Renaud Aubin

Hi folks,

I need to define a multiline footer for a document of mine. I have 
searched the garden without results.


Considering \input knuth as a disclaimer, here is a non working sample 
to improve:

\setupfootertexts[]
\setupfootertexts[\setups{text a}]

\startsetups[text a]
\input knuth
\stopsetups

TIA

Renaud

begin:vcard
fn:Renaud AUBIN
n:AUBIN;Renaud
email;internet:[EMAIL PROTECTED]
url:http://www.nibua-r.org
version:2.1
end:vcard

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Multiline footer

2007-06-20 Thread Aditya Mahajan
Quoting Renaud Aubin [EMAIL PROTECTED]:

 Hi folks,

 I need to define a multiline footer for a document of mine. I have 
 searched the garden without results.

 Considering \input knuth as a disclaimer, here is a non working 
 sample to improve:
 \setupfootertexts[]
 \setupfootertexts[\setups{text a}]

 \startsetups[text a]
 \input knuth
 \stopsetups

What I usually do is surround the disclaimer in a vbox or a \framed. 
For example (in s-ptj-01)

\startlocalsetups [titlefooter]
  \framed[frame=off,width=\textwidth,align=flushright,location=low]
  {\small\setupinterlinespace
  \getvariable{pracjourn}{copyright}\endgraf}
\stoplocalsetups

Aditya
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Multiline footer

2007-06-20 Thread Renaud Aubin
Thanks Aditya, I have just obtained something with framedtext but missed 
location=low ;)


Aditya Mahajan a écrit :
What I usually do is surround the disclaimer in a vbox or a \framed. 
For example (in s-ptj-01)


\startlocalsetups [titlefooter]
  \framed[frame=off,width=\textwidth,align=flushright,location=low]
  {\small\setupinterlinespace
  \getvariable{pracjourn}{copyright}\endgraf}
\stoplocalsetups

Aditya
begin:vcard
fn:Renaud AUBIN
n:AUBIN;Renaud
email;internet:[EMAIL PROTECTED]
url:http://www.nibua-r.org
version:2.1
end:vcard

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Howto have page size to fit with image size

2007-06-20 Thread Jean Magnan de Bornier
Le 20 juin à 20:11:14 Wolfgang Schuster [EMAIL PROTECTED] écrit notamment:

| On Wed, 20 Jun 2007 19:22:14 +0200
| Patrick Gundlach [EMAIL PROTECTED] wrote:

|  Jean Magnan de Bornier [EMAIL PROTECTED] writes:
|  
|   Hi all,
|   I want to produce a unique metapost image which should be alone on its
|   page and its file, and I want to have a page the size of the image,
|   whichever this size is.
|  
|  use \startTEXpage:
|  
|  \setupcolors[state=start]
|  %\setuplayout[width=fit,height=fit]
|  \starttext
|  \startTEXpage
|  \startuseMPgraphic{dummy}
|fill fullcircle scaled 5cm withcolor red ;
|  \stopuseMPgraphic
|  \useMPgraphic{dummy}
|  \stopTEXpage
|  \stoptext
|  
|  Patrick

| we have also \startMPpage:

| \setupcolors[state=start]
| \starttext
| \startMPpage
|   fill fullcircle scaled 5cm withcolor red ;
| \stopMPpage
| \stoptext

| Wolfgang


Patrick and Wolfgang, thak you much; these work fine!
-- 
Jean
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___