[NTG-context] ConTeXt and cmyk

2006-07-21 Thread Renaud AUBIN




Hi all,

I have reproduced a logo http://www.uvsq.fr/guide/charte/index.html
(see attachment for the resulting metapost code).
What's the best method to define colors according to this web page ?
My understanding is:
- for printing, the use of
\setupcolors[cmyk=yes,mpcmyk=no,conversion=no] is the best,
- for display rendering, the use of
\setupcolors[cmyk=yes,mpcmyk=yes,conversion=yes] is the best.

Am I right ?

Renaud





%D
%D   file=logouvsq_mp,
%Dversion=2006.07.20,
%D  title=UVSQ logo,
%D author=Renaud Aubin,
%D  copyright=Public Domain
%C
%C Donated to the public domain.

\setupcolors[state=start]

\setupcolors[cmyk=yes,mpcmyk=no,conversion=no]  %% printer
%\setupcolors[cmyk=yes,mpcmyk=no,conversion=yes] %% printer
%\setupcolors[cmyk=yes,mpcmyk=yes,conversion=no] %% display
%\setupcolors[cmyk=yes,mpcmyk=yes,conversion=yes] %% display

% cmyk definitions
\definecolor[uvsqdarkgreen][c=.1,m=.0,y=.45,k=.4]
\definecolor[uvsqgreen][c=.76,m=.0,y=.91,k=.0]
\definecolor[uvsqblue][c=.87,m=.18,y=.0,k=.0]

\starttext

\startbuffer[uvsqlogo]
numeric u; u:= 1mm;

% width  height
numeric w; w:=85.8u;
numeric h; h:=51.2u;

% explicit ? ;)
path mainframe; mainframe:= (-.5w,-.5h)--(.5w,-.5h)--(.5w,.5h)--(-.5w,.5h)--cycle;

% blue line properties
numeric bluew; bluew:=.075h;

% green curve properties
numeric greenw; greenw:=.072h;

pair pts[];
pts[0] := (-.2625w,-.342h);
pts[1] := (-.305w,-.085h);
pts[2] := (-.13w,-.085h);
pts[3] := (-.025w,.2h);
pts[4] := (.01w,-.12h);
pts[5] := (.08w,-.11h);
pts[6] := (.123w,-.188h);
pts[7] := (.2625w,-.085h);
pts[8] := (.2625w,-.342h);

% sun properties
pair suncenter; suncenter := (-.184w,.125h);
pair raycenter; raycenter := (-.184w,.13h);
numeric sunradius; sunradius := 19.5u;
numeric sunw; sunw:=.7u;

% the blue bottom line
interim linecap:=squared;
drawoptions(withpen pencircle scaled bluew withcolor \MPcolor{uvsqblue});
draw (-.5w+.0375h,-.4625h)--(.5w-.0375h,-.4625h);

% sunrays
drawoptions(withpen pencircle scaled sunw withcolor \MPcolor{uvsqdarkgreen});
for i=-5 upto 12:
draw ((origin--(0,2h)) rotated (11.25i)) shifted raycenter;
endfor;
draw ((origin--(0,2h)) rotated (-65)) shifted raycenter;
draw ((origin--(0,2h)) rotated (-72)) shifted raycenter;
draw ((origin--(0,2h)) rotated (-80)) shifted raycenter;
draw ((origin--(0,2h)) rotated (-87)) shifted raycenter;
draw ((origin--(0,2h)) rotated (-95)) shifted raycenter;
draw ((origin--(0,2h)) rotated (-102)) shifted raycenter;

% white circle
drawoptions(withpen pencircle scaled 0u withcolor white);
fill fullcircle scaled sunradius shifted suncenter;

% sun
drawoptions(withpen pencircle scaled sunw withcolor \MPcolor{uvsqdarkgreen});
draw fullcircle scaled sunradius shifted suncenter;

% white circle
drawoptions(withpen pencircle scaled 0u withcolor white);
fill fullcircle scaled 30 shifted (-.05w,.03h);

% white curves ? ;)
interim linecap:=squared;
drawoptions(withpen pencircle scaled 2.5greenw withcolor white);
draw (-.5w+.036h,-.332h)--(xpart pts[0]-.036h, -.332h);
draw (.5w-.036h,-.332h)--(xpart pts[8]+.036h, -.332h);
interim linecap:=butt;
for i=0 upto 3:
draw pts[2i]..pts[2i+1]..pts[2i+2];
endfor;

% the green curve
interim linecap:=squared;
drawoptions(withpen pencircle scaled greenw withcolor \MPcolor{uvsqgreen});
draw (-.5w+.036h,-.342h)--(xpart pts[0]-.036h, ypart pts[0]);
draw (.5w-.036h,-.342h)--(xpart pts[8]+.036h, ypart pts[8]);
interim linecap:=rounded;
for i=0 upto 3:
draw pts[2i]..pts[2i+1]..pts[2i+2];
endfor;

setbounds currentpicture to mainframe;
clip currentpicture to mainframe;

\stopbuffer %% end of buffer[uvsqlogo]

\placefigure[here]{none}{\processMPbuffer[uvsqlogo]}

\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] placefigure

2006-07-21 Thread Taco Hoekwater


Hans van der Meer wrote:
 
 Is this known behaviour?

 Can it perhaps be massaged with parameter settings or is ConText here 
 taking just somewhat oversized vertical space?


You can try to do \setupfloats[after=] to remove the whitespace
below the image.

Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] quote and quotation

2006-07-21 Thread Hans van der Meer
The \quote and \quotation macros surround text with quotation marks. These are made language dependent.In dutch the old way was an opening mark at the baseline and closing at the top of the letters; ConTeXt has been programmed this way.However, the lower quotation mark is less and less used in Dutch (vide Jan Renkema, Schrijfwijzer, 2002, p.382) and the English variants are now commonly used.This leads to two questions:1. is there a setup-macro that can be used? (switching language around before quote and changing back inside is a bit awkward);	\setupdelimitedtext[..][..]  is not documented in the manual, is this the one to use, and how?	I tried this but could not effect a change and from the code I could not deduce what to change.2. is this a case for changing ConTeXt's default for Dutch?Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] base/tex.rb comments

2006-07-21 Thread Richard Gabriel




Hello Hans and others,I'd have two comments to the texmf/scripts/context/ruby/base/tex.rb script.1. I find quite impractical that the formats (cont-en, cont-nl etc.) are hardcoded in the scripts. When one wants to add a new format, then he must add it on 4 or 5 places in the script, and do it again and again everytime when upgrading ConTeXt. :-(2. Maybe this is an OS and TeX distribution specific issue...I use TeXLive 2005 on Windows XP.The TeX formats are located in C:\TeXLive\texmf-var\web2c. [the "kpsewhich --show-path=fmt" command also shows this path].When generating a format using "texmfstart texexec --make en", the generated format is placed into C:\TeXLive\texmf-var\web2c\pdfetex. Then, when trying to use the format, it is not found...This is done on line 547 of tex.rb:texformatpath = if getvariable('local') then '.' else Kpse.formatpath(texengine,true) endSo I've changed it to "Kpse.formatpath(texengine,false)" and everything is fine.But I don't understand why it is set so by default and why it doesn't work for me. Does anybody experience the same problem?-Richard___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] quote and quotation

2006-07-21 Thread Hans Hagen
Hans van der Meer wrote:
 The \quote and \quotation macros surround text with quotation marks. 
 These are made language dependent.
 In dutch the old way was an opening mark at the baseline and closing 
 at the top of the letters; ConTeXt has been programmed this way.
 However, the lower quotation mark is less and less used in Dutch (vide 
 Jan Renkema, Schrijfwijzer, 2002, p.382) and the English variants are 
 now commonly used.

 This leads to two questions:
 1. is there a setup-macro that can be used? (switching language around 
 before quote and changing back inside is a bit awkward);
 \setupdelimitedtext[..][..]� is not documented in the manual, is this 
 the one to use, and how?
 I tried this but could not effect a change and from the code I could 
 not deduce what to change.
you can put this in your cont-sys.tex file:

\setuplanguage
  [nl]
  [\c!leftquote=\upperleftsinglesixquote,
   \c!leftquotation=\upperleftdoublesixquote,
   \c!rightquote=\upperrightsingleninequote,
   \c!rightquotation=\upperrightdoubleninequote]

(of in some mine-def.tex and then do a \readfile{mine-def}{}{})

 2. is this a case for changing ConTeXt's default for Dutch?
no, those defaults are kind of frozen 

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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] quote and quotation

2006-07-21 Thread Mojca Miklavec
On 7/21/06, Hans van der Meer wrote:

 The \quote and \quotation macros surround text with quotation marks. These
 are made language dependent.
 In dutch the old way was an opening mark at the baseline and closing at the
 top of the letters; ConTeXt has been programmed this way.
 However, the lower quotation mark is less and less used in Dutch (vide Jan
 Renkema, Schrijfwijzer, 2002, p.382) and the English variants are now
 commonly used.

 This leads to two questions:
 1. is there a setup-macro that can be used? (switching language around
 before quote and changing back inside is a bit awkward);
  \setupdelimitedtext[..][..]  is not documented in the manual, is this the
 one to use, and how?
  I tried this but could not effect a change and from the code I could not
 deduce what to change.

\installlanguage
  [nl]
  [leftquote=\upperleftsinglesixquote,
   rightquote=\upperrightsingleninequote,
   leftquotation=\upperleftdoublesixquote,
   rightquotation=\upperrightdoubleninequote,
  ]

We also use two variants of quotation marks. I thought that having a
single option to switch between the two variants would be handy (and
easy to implement), but I don't know how to call it. If I need the
other variant of quotation marks I use the definition above.

 2. is this a case for changing ConTeXt's default for Dutch?

I doubt. There were too many texts written already and I guess that
people would get confused if the quotation marks would be changed at
once.

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] base/tex.rb comments

2006-07-21 Thread Vit Zyka
Hans Hagen wrote:
 Richard Gabriel wrote:
 Hello Hans and others,

 I'd have two comments to the texmf/scripts/context/ruby/base/tex.rb 
 script.

 1. I find quite impractical that the formats (cont-en, cont-nl etc.) 
 are hardcoded in the scripts. When one wants to add a new format, then 
 he must add it on 4 or 5 places in the script, and do it again and 
 again everytime when upgrading ConTeXt. :-(
 well, we can use:
 
 def validsomething(str,something)
 if str then
 list = [str].flatten.collect do |s|
 something[s] || s # || s added
 end .compact.uniq
 if list.length0 then
 if str.class == String then list.first else list end
 else
 false
 end
 else
 false
 end
 end
 
 and then you can say
 
 texexec --all --make --texformats=cont-xx
 
 given that you have cont-xx.tex
 
 2. Maybe this is an OS and TeX distribution specific issue...
 I use TeXLive 2005 on Windows XP.
 The TeX formats are located in C:\TeXLive\texmf-var\web2c. [the 
 kpsewhich --show-path=fmt command also shows this path].
 When generating a format using texmfstart texexec --make en, the 
 generated format is placed into C:\TeXLive\texmf-var\web2c\pdfetex. 
 Then, when trying to use the format, it is not found...

 This is done on line 547 of tex.rb:

 texformatpath = if getvariable('local') then '.' else 
 Kpse.formatpath(texengine,true) end

 So I've changed it to Kpse.formatpath(texengine,false) and 
 everything is fine.

 But I don't understand why it is set so by default and why it doesn't 
 work for me.
 Does anybody experience the same problem?
 we really need the engine path so i wonder why the format
  is not found; maybe an error in the cnf file (should recursively
  search the web2c path for formats)

I have the same observation. The TeXLive 2005 definition is

   TEXFORMATS = .;$TEXMF/web2c/{$engine,}

but it seems to me tex binaries do not set $engine variable. If so, it 
can be locally solved (without changing binaries and supposing not using 
xetex or another engine) by

   TEXFORMATS = .;$TEXMF/web2c//

Vit

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] base/tex.rb comments

2006-07-21 Thread Taco Hoekwater


Richard Gabriel wrote:
 
 I'm attaching the complete context.cnf file for reference.

context.cnf is not actually used by any programs. It is only
provided as a sample of how texmf.cnf could be set up.

Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] document structure

2006-07-21 Thread Taco Hoekwater


Hans van der Meer wrote:
 Must I understand that \startlocalenvironment[abc] within an 
 environment file means that this codeblock is used only for typesetting 
 product/component abc and excluded automatically when another 
 product/component is typeset?

I believe so.

 How does this relate to the above question about setup-file structure?

\localenvironment is sort of an alias of  \environment.

Differences: there is a but less bookkeeping done, and the file
is loaded only once in a run, never repeatedly (so that the command
can safely be used in a number of components). The files' name
(== the argument) is unimportant.

Cheers,
Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] base/tex.rb comments

2006-07-21 Thread Richard Gabriel




OH SO!There was onlyTEXFORMATS = .;$TEXMF/web2c in my texmf-var/web2c/texmf.cnfI changed it into TEXFORMATS = .;$TEXMF/web2c/{$engine,}(as suggested in context.cnf) and IT WORKS!Many thanks for the hint, Taco!-RichardFrom: Taco Hoekwater [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 21 Jul 2006 14:49:34 +0200Subject: Re: [NTG-context] base/tex.rb comments

Richard Gabriel wrote:
 
 I'm attaching the complete context.cnf file for reference.

context.cnf is not actually used by any programs. It is only
provided as a sample of how texmf.cnf could be set up.

Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] base/tex.rb comments

2006-07-21 Thread Richard Gabriel




 well, we can use:
  def validsomething(str,something) if str then list = [str].flatten.collect do |s| something[s] || s # || s addedExcellent! Could you please add it to the distribution?Many thanks!-RichardP.S. I'll probably have to learn at basics of Ruby... I'm familiar with Perl, PHP, shell scripts... but the Ruby code is totally cryptic for me! :-(((From: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 21 Jul 2006 13:12:23 +0200Subject: Re: [NTG-context] base/tex.rb commentsRichard Gabriel wrote:
 Hello Hans and others,

 I'd have two comments to the texmf/scripts/context/ruby/base/tex.rb 
 script.

 1. I find quite impractical that the formats (cont-en, cont-nl etc.) 
 are hardcoded in the scripts. When one wants to add a new format, then 
 he must add it on 4 or 5 places in the script, and do it again and 
 again everytime when upgrading ConTeXt. :-(
well, we can use:

def validsomething(str,something)
if str then
list = [str].flatten.collect do |s|
something[s] || s # || s added
end .compact.uniq
if list.length0 then
if str.class == String then list.first else list end
else
false
end
else
false
end
end

and then you can say

texexec --all --make --texformats=cont-xx

given that you have cont-xx.tex


 2. Maybe this is an OS and TeX distribution specific issue...
 I use TeXLive 2005 on Windows XP.
 The TeX formats are located in C:\TeXLive\texmf-var\web2c. [the 
 "kpsewhich --show-path=fmt" command also shows this path].
 When generating a format using "texmfstart texexec --make en", the 
 generated format is placed into C:\TeXLive\texmf-var\web2c\pdfetex. 
 Then, when trying to use the format, it is not found...

 This is done on line 547 of tex.rb:

 texformatpath = if getvariable('local') then '.' else 
 Kpse.formatpath(texengine,true) end

 So I've changed it to "Kpse.formatpath(texengine,false)" and 
 everything is fine.

 But I don't understand why it is set so by default and why it doesn't 
 work for me.
 Does anybody experience the same problem?
we really need the engine path so i wonder why the format is not found; maybe an error in the cnf file (should recursively search the web2c path for formats) 

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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] staticMPfigure fonts

2006-07-21 Thread Aditya Mahajan
On Tue, 18 Jul 2006, Aditya Mahajan wrote:

 On Tue, 18 Jul 2006, Hans Hagen wrote:

 Renaud AUBIN wrote:

 Hi all,

 Considering the test http://renojrl.lrv.uvsq.fr/testbed/
 I have some problems using lucida:

 texexec gives some warnings:
 kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+420/600 --dpi
 420 texnansi-raw-lbr
 mktexpk: don't know how to create bitmap font for texnansi-raw-lbr.
 kpathsea: Appending font creation commands to missfont.log.

 and the resulting pdf leads to Could not find a font in the Resources
 dictionary...

 Moreover, I don't want to use pk...

 How to solve this problem to embed lucida into
 test-3d_kin_foreground.pdf ?
 Another point: I am affraid that test.pdf embed lucida twice once one
 can embed the font into the staticMPfigure's pdf...

 May I have to continue with my old MPgraphics or I'd rather replace
 them by staticMPfigure ?
 the statics don't work well with text, i need to figure out why


 Something very strange is happening here. Looks like a typescript
 loading problem.

The statics are working with the alpha. The maps seem to be correctly 
identified in the tests taht I made.

 I can not test with lucida (do not have them) but the
 same problem appears with palatino also.

 This does not work

 \startMPenvironment
   \usetypescript[palatino][ec]
   \setupbodyfont[palatino,10pt]
 \stopMPenvironment

This still does not work, but as Hans explained, one should have a 
[global] with MPenvironments anyway.


 \starttext
 \startMPpage
   label.top(btex $a$ first etex,origin) ;
 \stopMPpage
 \stoptext


 While this works.

   \usetypescript[palatino][ec]
   \setupbodyfont[palatino,10pt]
 \startMPenvironment
   \usetypescript[palatino][ec]
   \setupbodyfont[palatino,10pt]
 \stopMPenvironment

 \starttext
 \startMPpage
   label.top(btex $a$ first etex,origin) ;
 \stopMPpage

 \stoptext


 The same thing happens in

The temp file that is created has \loadmapfile[...] in the begining, 
and with that the following works correctly.

 \starttext
 \setupoutput[pdftex]
 \setupcolors[state=start]
 \startTEXpage
   \convertMPtoPDF{t1-mpgraph.1}{1}{1}
 \stopTEXpage
 \stoptext

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] staticMPfigure fonts

2006-07-21 Thread Renaud AUBIN
Where is the alpha release please ;)

Renaud
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] staticMPfigure fonts

2006-07-21 Thread Hans Hagen
Aditya Mahajan wrote:
 On Tue, 18 Jul 2006, Aditya Mahajan wrote:

   
 On Tue, 18 Jul 2006, Hans Hagen wrote:

 
 Renaud AUBIN wrote:
   
 Hi all,

 Considering the test http://renojrl.lrv.uvsq.fr/testbed/
 I have some problems using lucida:

 texexec gives some warnings:
 kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+420/600 --dpi
 420 texnansi-raw-lbr
 mktexpk: don't know how to create bitmap font for texnansi-raw-lbr.
 kpathsea: Appending font creation commands to missfont.log.

 and the resulting pdf leads to Could not find a font in the Resources
 dictionary...

 Moreover, I don't want to use pk...

 How to solve this problem to embed lucida into
 test-3d_kin_foreground.pdf ?
 Another point: I am affraid that test.pdf embed lucida twice once one
 can embed the font into the staticMPfigure's pdf...

 May I have to continue with my old MPgraphics or I'd rather replace
 them by staticMPfigure ?
 
 the statics don't work well with text, i need to figure out why
   
 Something very strange is happening here. Looks like a typescript
 loading problem.
 

 The statics are working with the alpha. The maps seem to be correctly 
 identified in the tests taht I made.

   
 I can not test with lucida (do not have them) but the
 same problem appears with palatino also.

 This does not work

 \startMPenvironment
   \usetypescript[palatino][ec]
   \setupbodyfont[palatino,10pt]
 \stopMPenvironment
 

 This still does not work, but as Hans explained, one should have a 
 [global] with MPenvironments anyway.


   
 \starttext
 \startMPpage
   label.top(btex $a$ first etex,origin) ;
 \stopMPpage
 \stoptext


 While this works.

   \usetypescript[palatino][ec]
   \setupbodyfont[palatino,10pt]
 \startMPenvironment
   \usetypescript[palatino][ec]
   \setupbodyfont[palatino,10pt]
 \stopMPenvironment

 \starttext
 \startMPpage
   label.top(btex $a$ first etex,origin) ;
 \stopMPpage

 \stoptext


 The same thing happens in
 

 The temp file that is created has \loadmapfile[...] in the begining, 
 and with that the following works correctly.
   
indeed i added some code to texexec (scans the intermediate tui for map 
entries)

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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] staticMPfigure fonts

2006-07-21 Thread Renaud AUBIN
Sorry, I've just found it !


Renaud AUBIN a écrit :

Where is the alpha release please ;)

Renaud
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Charts, Graphs, Tufte, and ConTeXt

2006-07-21 Thread David Wooten
Greetings all,

I've been itching to stop using Illustrator and other programs to make 
the charts and graphs I wish to include in my ConTeXt-generated 
documents, and would like to get some advice on the matter.

There is a special (albeit not well furnished) place in my heart for 
Tufte's /Visual Display of Quantitative Information/, so I suppose I 
am always leaning towards that philosophy of chart-making. I came across 
Jean-luc Doumont's article /Drawing effective (and beautiful) graphs 
with TeX* [1]/, in which he refers to his macro package called 
JLdraw---and shows some pretty examples. JLdraw was in fact never 
generally released, although when I contacted him he was happy to send 
along the macro package. In beginning to tinker with them, I have not 
had much luck getting them to work within ConTeXt, undoubtedly due to my 
persistent naiveté.

Thus I'm curious as to what others use... is R an efficient method to 
produce elegant charts? Is straight MetaPost preferable?

Many thanks,
David

[1] http://www.tug.org/TUG99-web/pdf/doumont2.pdf
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] New MyWay on arrowas

2006-07-21 Thread Aditya Mahajan
Hi all,

  Thanks to Hans and Taco, we now have extensible arrows in context. To 
see how to use them, have a look at

http://dl.contextgarden.net/myway/matharrows.pdf

Aditya

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] document structure

2006-07-21 Thread Hans van der Meer

On Jul 21, 2006, at 14:58, Taco Hoekwater wrote:



 Hans van der Meer wrote:
 Must I understand that \startlocalenvironment[abc] within an
 environment file means that this codeblock is used only for  
 typesetting
 product/component abc and excluded automatically when another
 product/component is typeset?

 I believe so.

 How does this relate to the above question about setup-file  
 structure?

 \localenvironment is sort of an alias of  \environment.

 Differences: there is a but less bookkeeping done, and the file
 is loaded only once in a run, never repeatedly (so that the command
 can safely be used in a number of components). The files' name
 (== the argument) is unimportant.


Sorry, but I think I do not yet understand and I do not get it right.
Next is in a nutshell my setup of the environments, the relevant  
projects are syllabus-s and syllabus-p

% calls up the product, file syllabus-s.tex
\startproduct syllabus-s
\project onderwijs
\environment syllabus-setup
...
\stopproduct

% common initializations, file syllabus-setup.tex
\startenvironment syllabus-setup
\writestring{LOADED ENVIRONMENT SYLLABUS-SETUP}\writeline
\startlocalenvironment[syllabus-s]
\localenvironment syllabus-s-setup
\stoplocalenvironment   
\startlocalenvironment[syllabus-p]
\localenvironment syllabus-p-setup
\stoplocalenvironment   

% setups local to p-version, file syllabus-p-setup.tex
\startlocalenvironment[syllabus-p-setup]
\writestring{LOADED ENVIRONMENT SYLLABUS-P-SETUP}\writeline
\stoplocalenvironment

% setups local to s-version, file syllabus-s-setup.tex
\startlocalenvironment[syllabus-s-setup]
\writestring{LOADED ENVIRONMENT SYLLABUS-S-SETUP}\writeline
\stoplocalenvironment

Running from product syllabus-s.tex I get this in the log:
systems : begin file syllabus-setup at line 10
(./syllabus-setup.tex
LOADED ENVIRONMENT SYLLABUS-SETUP

systems : begin file syllabus-s-setup at line 6
(./syllabus-s-setup.tex
LOADED ENVIRONMENT SYLLABUS-S-SETUP

)
systems : end file syllabus-s-setup at line 6
systems : begin file syllabus-p-setup at line 10
(./syllabus-p-setup.tex
LOADED ENVIRONMENT SYLLABUS-P-SETUP

)
systems : end file syllabus-p-setup at line 10

And this shows that running the product syllabus-s still loads both  
localenvironments and goes inside both \startlocalenvironments!
What I am doing wrong here?


Hans van der Meer



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Charts, Graphs, Tufte, and ConTeXt

2006-07-21 Thread David Wooten
Mojca Miklavec wrote:
 Thus I'm curious as to what others use... is R an efficient method to
 produce elegant charts? Is straight MetaPost preferable?
 

 With metapost you can surely achive most beautiful results and it is
 not as difficult to learn as TeX-programming. Of course you might need
 more time to draw what you need or to write your own set of macros,
 but if you have high demands about quality this might be the way to
 go.

 However, if you prefer doing it quicly using the existing tools (be
 aware that you have to learn how to use those tools as well), R or
 gnuplot might be an interesting choice. You'll be limited by the power
 of those two tools, but in most cases they should suffice for the
 normal usage.

 The gnuplot module is still in development (I've been just begging
 Hans for help a few hours ago ;). Take a look at the demo section of
 gnuplot (http://gnuplot.sourceforge.net/demo_4.1/) to see if it can
 offer you what you want to do. In that case ask on the list again,
 I'll give you further pointers how to use it with ConTeXt
 (http://pub.mojca.org/gnuplot).

 But basically you can take any program to draw graphs and include the
 resulting PDFs. I'm afraid that the macros from the paper which you
 pointed to, use some PostScript code that cannot be handled as-is (you
 need some conversion to PDF first) and I'm affraid that the effort put
 into making it work woudn't pay off now that you have a great varienty
 of other plotting programs, including metapost itself (esp. if the
 package has never been released - you'll probably hardly get any
 support for it).

 Mojca
   
Thanks very much for your reply. Your advice seems strong, and in truth 
I have been intrigued by MetaPost for many years. This certainly seems a 
valid excuse to delve into it ;)

David
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to update ConTeXt

2006-07-21 Thread Arkady Shraer
Hello,

I just downloaded file cont-tmf.zip from pragma-ade site.
Can I update my ConTeXt with the contents of the archive or I have to
do other manipulations?
I'm using tetex distribution in Ubuntu 6.06.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] XY and papersize

2006-07-21 Thread Claus, Matt - eSpeed
Hello - I recently discovered Context so let me first of all say a big
thank you to Hans for creating such an amazing piece of software and
making it available.

Now, the question - this works exactly as I expect:

\setupcolors[state=start]
\setuppagenumbering[state=stop]
\setuppapersize [XY][A4]
\setuppaper[nx=3,ny=10,dx=0mm,dy=0mm,topspace=5mm,backspace=5mm]
\setuplayout [location=middle]
\setuparranging [XY]
\showframe
\starttext \dorecurse{15}{test \recurselevel \page} \stoptext

However, when I change A4 to letter the output seems to introduce some
dy.  I experimented with some other paper sizes including defining my
own and see inconsistent results.  Can anyone point out what I'm doing
incorrectly?

Thank you very much for any assistance,
Matt


\setupcolors[state=start]
\setuppagenumbering[state=stop]
\setuppapersize [XY][letter]
\setuppaper[nx=3,ny=10,dx=0mm,dy=0mm,topspace=5mm,backspace=5mm]
\setuplayout [location=middle]
\setuparranging [XY]
\showframe
\starttext \dorecurse{15}{test \recurselevel \page} \stoptext 


CONFIDENTIAL: This e-mail, including its contents and attachments, if any, are 
confidential. If you are not the named recipient please notify the sender and 
immediately delete it. You may not disseminate, distribute, or forward this 
e-mail message or disclose its contents to anybody else. Copyright and any 
other intellectual property rights in its contents are the sole property of 
eSpeed, Inc.
 E-mail transmission cannot be guaranteed to be secure or error-free. The 
sender therefore does not accept liability for any errors or omissions in the 
contents of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.
 Although we routinely screen for viruses, addressees should check this 
e-mail and any attachments for viruses. We make no representation or warranty 
as to the absence of viruses in this e-mail or any attachments. Please note 
that to ensure regulatory compliance and for the protection of our customers 
and business, we may monitor and read e-mails sent to and from our server(s). 

For further important information, please see 
http://www.espeed.com/full-disclaimer.html

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \bar missing in euler

2006-07-21 Thread Aditya Mahajan
On Tue, 11 Jul 2006, Hans Hagen wrote:

 Adam Lindsay wrote:
 Makes sense. I'll look at the new definitions you just sent.

 On the user side, what do you imagine it would look like:
 \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]


 ^^^ this one (actually it listens to the outer encoding)

I am missing something. I tried the following (with the alpha, 
cont-new.tex contains the new definitions), but get not accent with 
the following code.

\startmathcollection[euler:texnansi]
 \definemathsymbol [breve] [accent] [tf] [15]
\stopmathcollection
\startmathcollection[euler:ec]
 \definemathsymbol [breve] [accent] [tf] [08]
\stopmathcollection


\definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
\setupbodyfont[e,10pt]

\starttext
$\breve e$
\stoptext

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] staticMPfigure fonts

2006-07-21 Thread Renaud AUBIN





I have updated to the alpha but the results doesn't need comments
http://renojrl.lrv.uvsq.fr/testbed/static

(
comments ;) :
- the static-test.mp is generated
- the call \usestaticMPfigure does not work as seen in the pdf because
the mptopdf processing is apparently missing
)

Hans Hagen a crit:

  Aditya Mahajan wrote:
  
  
On Tue, 18 Jul 2006, Aditya Mahajan wrote:

  


  On Tue, 18 Jul 2006, Hans Hagen wrote:


  
  
Renaud AUBIN wrote:
  


  Hi all,

Considering the test http://renojrl.lrv.uvsq.fr/testbed/
I have some problems using lucida:

texexec gives some warnings:
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+420/600 --dpi
420 texnansi-raw-lbr
mktexpk: don't know how to create bitmap font for texnansi-raw-lbr.
kpathsea: Appending font creation commands to missfont.log.

and the resulting pdf leads to "Could not find a font in the Resources
dictionary"...

Moreover, I don't want to use pk...

How to solve this problem to embed lucida into
test-3d_kin_foreground.pdf ?
Another point: I am affraid that test.pdf embed lucida twice once one
can embed the font into the staticMPfigure's pdf...

May I have to continue with my old MPgraphics or I'd rather replace
them by staticMPfigure ?

  

the statics don't work well with text, i need to figure out why
  

  
  Something very strange is happening here. Looks like a typescript
loading problem.

  

The statics are working with the alpha. The maps seem to be correctly 
identified in the tests taht I made.

  


  I can not test with lucida (do not have them) but the
same problem appears with palatino also.

This does not work

\startMPenvironment
  \usetypescript[palatino][ec]
  \setupbodyfont[palatino,10pt]
\stopMPenvironment

  

This still does not work, but as Hans explained, one should have a 
[global] with MPenvironments anyway.


  


  \starttext
\startMPpage
  label.top(btex $a$ first etex,origin) ;
\stopMPpage
\stoptext


While this works.

  \usetypescript[palatino][ec]
  \setupbodyfont[palatino,10pt]
\startMPenvironment
  \usetypescript[palatino][ec]
  \setupbodyfont[palatino,10pt]
\stopMPenvironment

\starttext
\startMPpage
  label.top(btex $a$ first etex,origin) ;
\stopMPpage

\stoptext


The same thing happens in

  

The temp file that is created has \loadmapfile[...] in the begining, 
and with that the following works correctly.
  

  
  indeed i added some code to texexec (scans the intermediate tui for map 
entries)

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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Slightly OT: Adobe push 3D into Acroread 7.0.8... more things to do with ConTeXt ?

2006-07-21 Thread Renaud AUBIN





Hi all,

http://blogs.adobe.com/arena/2006/07/new_version_of_reader_availabl.html

Cheers,

Renaud




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Slightly OT: Adobe push 3D into Acroread 7.0.8... more things to do with ConTeXt ?

2006-07-21 Thread Renaud AUBIN




I must precise: for linux !!!

Renaud AUBIN a crit:

  
  
  
Hi all,
  
  http://blogs.adobe.com/arena/2006/07/new_version_of_reader_availabl.html
  
Cheers,
  
Renaud
  
  
  

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
  




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] U3D (embedded 3D objects)

2006-07-21 Thread Renaud AUBIN




Hi all,

What's new on this topic ?
Since 3D is now supported by acroread linux, I would know if we can do
that with ConTeXt... I'll take a look at
https://sourceforge.net/projects/u3d in order to try to provide some
samples...

Renaud


Hans Hagen a crit:

  Matthias Weber wrote:
  
  
Can you expand?  Doesn't it TeX, open, crash?
I don't think it runs on Linux yet, but OS X and Windows should be  
supported.
  

  
  I took a look at the pdf specs and it does not look too complex to support this; do you have a bunch of decent 3d example files? (Your own -)

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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context