Re: [NTG-context] luatex

2007-10-26 Thread Renaud Aubin

Hi,

For my particular case:
1. embed u3d models within a pdf without piping to an external script to 
compute the view (see http://www.nibua-r.org/ConTeXt/devel/new3dartwork/),
2. the ability to use lua script leads to potential interaction with 
MySQL (it could be great for me but I need to verify it's possible).

...

Cheers


John Culleton a écrit :
What will a luatex based Context do for us that the current stable Context 
doesn't?
  


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
___


[NTG-context] typo or bug report in type-buy.tex

2008-05-01 Thread Renaud AUBIN
Hi folks,

 From line 199 to 206 :
\starttypescript [lucida,lucidabfm] [texnansi,ec,8r,uc]
\definetypeface [lucida] [rm] [serif]   [lucida] [default] 
[encoding=\typescripttwo]
\definetypeface [lucida] [ss] [sans][lucida] [default] 
[encoding=\typescripttwo]
\definetypeface [lucida] [tt] [mono][lucida] [default] 
[encoding=\typescripttwo]
\definetypeface [lucida] [hw] [handwriting] [lucida] [default] 
[encoding=\typescripttwo]
\definetypeface [lucida] [cg] [calligraphy] [lucida] [default] 
[encoding=\typescripttwo]
\loadmapfile [\typescriptthree-bh-lucida.map]
\stoptypescript

I assume it should be :
\starttypescript [lucida,lucidabfm] [texnansi,ec,8r,uc]
\definetypeface [lucida] [rm] [serif]   [lucida] [default] 
[encoding=\typescripttwo]
\definetypeface [lucida] [ss] [sans][lucida] [default] 
[encoding=\typescripttwo]
\definetypeface [lucida] [tt] [mono][lucida] [default] 
[encoding=\typescripttwo]
\definetypeface [lucida] [hw] [handwriting] [lucida] [default] 
[encoding=\typescripttwo]
\definetypeface [lucida] [cg] [calligraphy] [lucida] [default] 
[encoding=\typescripttwo]
\loadmapfile [\typescripttwo-bh-lucida.map]
\stoptypescript


Cheers,

Renaud
___
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] Lucida (from a newbie) question

2008-08-03 Thread Renaud Aubin

 Compilation says  ! I can't find file `texnansi-raw-lbf' 
 It's better than before : it didn't do anything :-)

Hi Eric,

It may help us if you give us more details:
- the texfont command used,
- did your pfb files are in a single directory or not ? ...
- ...

A good test is:
\startMPenvironment[global] % use lucida for metapost too
\usetypescript[lucida][texnansi]
\usetypescript[lucidabfm][texnansi] % for bold math
\usetypescript[lucidaboldmath][texnansi] % for bold math
\setupbodyfont[lucida,10pt]
\definebodyfont[17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt][rm][bc=SerifBoldCaps
 
sa 1,
bca=SerifBoldCaps sa a,
bcb=SerifBoldCaps sa b,
bcc=SerifBoldCaps sa c,
bcd=SerifBoldCaps sa d,
bcx=SerifBoldCaps sa x,
bcxx=SerifBoldCaps sa xx] % dunno if required from now
\stopMPenvironment


\starttext
\input knuth

\setupbodyfont[lucida,10pt,cg]
\input knuth

\setupbodyfont[lucida,10pt,hw]
\input knuth

\setupbodyfont[lucida,10pt,sans]
\input knuth

\setupbodyfont[lucida,10pt,mono]
\input knuth
\stoptext

as provided by http://wiki.contextgarden.net/Lucida


Best regards,

Renaud
___
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] Lucida (from a newbie) question

2008-08-03 Thread Renaud Aubin
Eric DÉTREZ a écrit :

 I don't use texfont
 I compile files from texshop
Ok, I have no knowledge at all regarding texshop, sorry...

 - did your pfb files are in a single directory or not ? ...
 yes they are with names lbc.pfb and so on
This one was only relevant using texfont...

 I had to had the line  \usetypescriptfile[type-buy]  to the test
Ok (as you may already know), you can modify (your TeX 
root)/tex/texmf-context/tex/context/user/cont-sys.tex to add 
\usetypescriptfile[type-buy] permanently
 A good test is:
 \startMPenvironment[global] % use lucida for metapost too
 [couic]
 \setupbodyfont[lucida,10pt,mono]
 \input knuth
 \stoptext

 and it gives the same error   I can't find file `texnansi-raw-lbr 
How did you install ConTeXt? Is it included in texshop? Could you try 
with texfont?


Renaud

___
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] new lucida font

2012-03-23 Thread Renaud AUBIN
Le 19/03/2012 11:36, Wolfgang Schuster a écrit :
 Can you try to attached typescript file, I replaced the files for italic and 
 bolditalic fonts for the sans style with the names from the latex example 
 document. The slanted and boldslanted alternatives for the sans style are 
 also 
 fixed.

 Wolfgang

+Small Caps support:
38,42d37
 \starttypescript [\s!serif] [lucidanova,lucidaot,otlucida]
 \definefontsynonym [\s!SerifCaps][\s!Serif]
[\s!features=smallcaps]
 %definefontsynonym [\s!SerifBoldCaps][\s!SerifBold]
[\s!features=smallcaps]
 \stoptypescript


The SerifBoldCaps line is commented out since I get an error at
processing… and can't figure why…

Renaud
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Checksum mismatch for lucida

2006-07-05 Thread Renaud AUBIN




Sorry for this post = redundant .vf files !!! 

Renaud AUBIN a crit:

  Hi all,

I have lucida fonts installed and the resulting pdf is ok but I obtained
with texexec the following warning:
DVItoMP warning: Checksum mismatch for texnansi-lbr (...or another
lucida font)

I assume it is a problem with .map files on my installation but...
Maybe one of you has already dealt with this problem ?

(I use debian testing + tetex + context in ~/texmf)

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] How ConTeXt manages section's label at the bottom of a page ?

2006-07-11 Thread Renaud AUBIN





Hi all,

Considering this piece of code:
\section{A title of section}
Here we have some texts

resulting to the following theoretical situation before correction:
at the bottom of the page 1: A title of section
at the top of the page 2: Here we have some texts

Is ConTeXt smart enough to apply this kind of correction during
processing:
page 1: whatever before \section call
page 2:
A title of section
Here we have some
texts

Apparently, Taco told me on #context that this is the case... But in
fact, I have this kind on problem with a \subsubsection call.
If it is implemented, can we fine-tune the behaviour of the correction.
For example, Considering a section label followed by only two lines of
text, can we push this label+text to the newt page ?

Cheers,

Renaud





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


[NTG-context] A page for figures ?

2006-07-11 Thread Renaud AUBIN





Hi all,

I would reserve a page for several figure (i.e. \placefigure).
\placefigure[page] reserve ONE page for ONE figure...
Can \placefigure reserve a page for several figures with an option I
don't know yet ???

Since I assume \placefigure can do that for me, I don't want to use
\placefigure[page]{none}{\startcombination...\stopcombination}... ;)

TIA

Renaud



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


Re: [NTG-context] Context 2006.07.13 released

2006-07-18 Thread Renaud AUBIN
Minimal test:

\useencoding[ffr]
\mainlanguage[fr]

\starttext

Un essai, de ponctuation; un autre.

\startuseMPgraphic{testMP}
draw origin--(1cm,1cm);
draw (origin--(1cm,1cm)) rotated 180;
\stopuseMPgraphic

\placefigure[here]{none}{\useMPgraphic{testMP}}

\stoptext


texexec returns:

This is MetaPost, Version 0.901 (Web2C 7.5.3)
(test-mpgraph.mp
 currentpen.directdiscretionary
! Improper type.
to be read again
   {
l.145 draw origin--(1cm,1cm)\directdiscretionary {
  ;}



Renaud AUBIN a écrit :

Hi,

I'have updated my local ConTeXt to rel. 2006.07.14 and I obtain :

to be read again
   directdiscretionary
l.71 enddef \directdiscretionary
 {;}

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


[NTG-context] 2006.07.13 release notes (MP-related)

2006-07-18 Thread Renaud AUBIN




Hi all,


First, I don't understand this part of the release notes:

"supp-mps.tex:


   \startuseMPgraphic and \startusableMPgraphic no longer have an
argument"

Does it mean that we don't have to use \startuseMPgraphic{myMPgrapharg}
... \stopMPgraphic with any myMPgrapharg ?

I assume I've missed something... 
:-\ 


Second, what's the difference between staticMPfigure and
staticMPgraphic and how (and where) can we use it ? Some advice are
welcome in this part because I use a lot of MPgraphic and I'm really
interested to use staticMPXXX if I can save some processing time... ;)

Last but not least:
I've posted some days ago a thread "[NTG-context] A page for figures
?"... This problem is always topical...

Cheers,

Renaud



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


Re: [NTG-context] Context 2006.07.13 released

2006-07-18 Thread Renaud AUBIN






Hans Hagen a crit:

  Renaud AUBIN wrote:
  
  
Hi,

I'have updated my local ConTeXt to rel. 2006.07.14 and I obtain :

to be read again
   directdiscretionary
l.71 enddef \directdiscretionary
 {;}

Cheers,
  

  
  anything funny in your cont-loc/cont-sys or so? 
  


Hi Hans,

The problem is apparently due to
\useencoding[ffr]
\mainlanguage[fr]

without it works well...

All I can say is: It was working well before updating (ConTeXt
2006.06.09 + bib beta 5)... I have just updated cont-tmf...
It's maybe due to \scanurl-related modifications ???

My cont-sys.tex:

%D \module
%D [ file=cont-sys,
%D version=1995.10.10,
%D title=\CONTEXT\ Miscellaneous Macros,
%D subtitle=System Specific Setups,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA / Hans Hagen \ Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\unprotect

% Speed up typescript loading, but at the cost of much memory:
%
\preloadtypescripts

% If you want another default font:
%
% \let\preloadfonts\relax
% \usetypescript[palatino][\defaultencoding]
% \setupbodyfont[palatino,rm,12pt]
%
% Please make sure that this defines rm, ss, tt and mm.

% Occasionally we will support both A4 and letter in
% styles. If you want letter size paper to be the default,
% uncomment:
%
% \enablemode[\systemmodeprefix letter]
%
% If you always want to default to letter, you may uncomment
% the following line, but beware: it makes your documents less
% portable:
%
% \setuppapersize[letter][letter]

% If you want some extras, just uncomment the following
% line:
%
% \usemodule[plus] % experimental code
%
% Here you can take care of overloading some (style)
% defaults. What goes here, depends on your local system.

% The following commands sets the default font encoding:
%
\setupencoding [\s!default=texnansi]
%
% or:

%\setupencoding [\s!default=ec]

% If you want the default berry names:
%
% \usetypescript [berry] [\defaultencoding]
%
% or, if you also want other encodings:

\usetypescript [berry] [ec,t5,8r] % texnansi is never present

% If you run into missing font metrics kind of problems,
% you may want to uncomment:
%
% \usetypescript[adobekb] [\defaultencoding]

% You can let \CONTEXT\ load the map files for \PDFTEX.

\autoloadmapfilestrue

% (1) you can prevent loading with:
%
% \preloadmapfile[...somenamemap]
%
% (2) otherwise, use this if you have a fast machine
%
%\resetmapfiles \usetypescript [map] [base] [all]
%
% (3) or this if it's a slow one:

\resetmapfiles

\donefalse \ifx\pdftexversion\undefined \else
\ifnum\number\pdftexversion119
 \donetrue
\fi \fi \ifdone

\loadmapfile[original-base.map]
\loadmapfile[original-ams-base.map]
\loadmapfile[original-public-lm.map]

\else

 \loadmapfile[original-base.map]
 \loadmapfile[texnansi-base.map]
 \loadmapfile[ec-base.map]
 \loadmapfile[qx-base.map]
 \loadmapfile[t5-base.map]
 %loadmapfile[il2-base.map]
 %loadmapfile[pl0-base.map]
 \loadmapfile[8r-base.map]

 \loadmapfile[original-ams-base.map]
 \loadmapfile[original-ams-euler.map]

 \loadmapfile[original-public-lm.map]
 \loadmapfile[texnansi-public-lm.map]
 \loadmapfile[ec-public-lm.map]
 \loadmapfile[qx-public-lm.map]
 \loadmapfile[t5-public-lm.map]
 %loadmapfile[pl0-public-lm.map]
 %loadmapfile[il2-public-lm.map]

\fi

% When you have your own fonts installed, you may want to predefine:
%
\usetypescriptfile[type-buy]

% Some styles default to Lucida Bright. You can overload
% Lucida by Times cum suis. Watch out, the pos collection
% is not scaled relatively.
%
% \definetypescriptsynonym [lbr] [pos]

% Compensate for missing files:
%
% \definefontsynonym [gbhei] [gbsong]
% \definefontsynonym [gbheisl] [gbsong]
% \definefontsynonym [gbheisl] [gbsong]

% Setting up a global figure path
%
% \setupexternalfigures [\c!directory={e:/fig/eps,t:/mine/figs}]
%
% Loading a specific special driver:
%
% \setupoutput [dviwindo]

% Changing language defaults
%
% \setuplanguage
% [nl]
% [\c!leftquote=\upperleftsinglesixquote,
% \c!leftquotation=\upperleftdoublesixquote]

% Loading local preferences, for example
%
% \input prag-gen % company styles
% \input prag-log % more company styles
%
% Enabling run time \METAPOST\ (also enable \write18 in
% texmf.cnf):

\runMPgraphicstrue
\runMPTEXgraphicstrue

% This saves some runtime, but needs a format, which you can
% make with 'texexec --make --alone metafun'. Make sure that
% the mem files are moved to the used web2c path (locate with
% 'kpsewhich plain.mem').

\useMETAFUNformattrue

% This can be a way to get things working on system with
% name clashes. (Some \TeX's tend do search system wide.)

\protectbufferstrue

% You can enable a more extensive figure searching, but
% normally this is not really needed and even annoying.
%
% \runutilityfiletrue

% So far.

\protect \endinput


___
ntg-context mailing list

[NTG-context] staticMPfigure fonts

2006-07-18 Thread Renaud AUBIN





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 ?

Cheers,

Renaud





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


Re: [NTG-context] A page for figures ?

2006-07-18 Thread Renaud AUBIN




Ok, I find it... Sorry for this dumb post

The solution is given in texshow:
\placefigure
   [none]
   {}
   {\startcombination
  {\externalfigure[cow][width=4cm]} {\placefloatcaption[figure]{one}}
  {\externalfigure[cow][width=4cm]} {\placefloatcaption[figure]{two}}
\stopcombination}


Renaud

You don't know: READ THE MANUAL OR CHECK THE WIKI !!! ;)


Renaud AUBIN a crit:

  
  
  
Hi all,
  
I would reserve a page for several figure (i.e. \placefigure).
\placefigure[page] reserve ONE page for ONE figure...
Can \placefigure reserve a page for several figures with an option I
don't know yet ???
  
Since I assume \placefigure can do that for me, I don't want to use
\placefigure[page]{none}{\startcombination...\stopcombination}... ;)
  
TIA
  
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] 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] 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 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


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


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

2006-07-22 Thread Renaud AUBIN




Hans Hagen a crit:

  Renaud AUBIN wrote:
  
  
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...

R

  
  in principle context can support those things (given that pdftex provides access to the relevant structures but we can always extend that)

as usual, the problem is ... specs ... and in thsi case sample 3d files 

so, if you want this and are willing to filter/provide the info ... 

Hans 
  


Hi,

I have converted a CATIA 3D model of mine to u3d (the nice Mitsubishi
PA10 remodelled from a 2D drawing ;) ).
For test, I have try to embed it to a LaTeX document with movie15, here
is the source and the result
http://renojrl.lrv.uvsq.fr/testbed/u3d/pa10-movie15.tgz
(I have to get a better understanding of the views defs but it's not
the main problem)

Maybe this package and its doc can be a good startpoint ?

Renaud


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


Re: [NTG-context] staticMPfigure fonts

2006-07-22 Thread Renaud AUBIN
Hans Hagen a écrit :

ah, i introduced so the name gets lost (btw, in your test file, the 
label is wrong (i think)

\def\dostartstaticMPfigure#1#2\stopstaticMPfigure
  {\startstaticMPgraphic{\jobname-#1}#2\stopstaticMPgraphic
   \def\MPgraphicfile{\jobname-#1}%
   \doifmode{*\v!first}{\executesystemcommand
 {texmfstart --ifchanged=\MPgraphicfile.mp texexec --mpgraphic 
 \MPgraphicfile.mp}}%
   \endgroup}
  

Works great (fonts + static)... Thanks

Renaud
___
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-24 Thread Renaud AUBIN




done see Re: [NTG-context] U3D (embedded 3D objects) 23.07.2006 02:27

Hans Hagen a crit:

  [EMAIL PROTECTED] wrote:
  
  
I'm just working on this... I have succeeded in compiling U3D
viewer/converter/etc. for linux... I'll try to provide some custom made sample
from CAD program (windows or linux).

  

  
  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
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-24 Thread Renaud AUBIN




Hans Hagen a crit:

  my guess is that trying to reverse engineer latex code will cost me more 
time that doing it directly the context way; the only thing that i need 
is the relevant annotation specs (someplace in the pdf manual)

(in context such code ends up in the drivers and it needs to work well 
with the more complex annot stuff)

Hans
  

See page 747 of PDFReference.pdf (1.6)

Should I use \pdfannot ? I've never done that before so can you link me
to an example (of the ConTeXt way) ?

Renaud



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


[NTG-context] Indentation bug ?

2006-07-25 Thread Renaud AUBIN




Hi all,

Considering the following example:
%%%
\setupindenting[medium,yes]
\setupformulas[indentnext=yes]
\setupheads[indentnext=yes]
\setupfloats[indentnext=yes]

\starttext

\startuseMPgraphic{mympgraph}
numeric u; u:=2cm;
draw (-u,-u)--(u,u);
draw ((-u,-u)--(u,u)) rotated 90;
\stopuseMPgraphic

\section{A section}
La liaison inter-modulaire conue par TDA pour le prototype
est une liaison pivot d'axe vertical. En effet, mme si elle dispose
de possibilits de dbattements angulaires, ces dbattements
admissibles sont relativement faibles. De plus, seul la rotation
suivant l'axe de la liaison pivot peut tre actionn et, en l'tat,
les dbattements ne peuvent en aucun cas tre pilots. Nanmoins, le
problme pos par cette articulation ne se pose pas si l'on se
restreint  des dplacements sur des surfaces planes ou rgulires
relativement aux grandeurs du robot. Nous ne prsenterons pas ici la
conception mcanique de cette liaison.

\placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}

La liaison inter-modulaire conue par TDA pour le prototype
est une liaison pivot d'axe vertical. En effet, mme si elle dispose
de possibilits de dbattements angulaires, ces dbattements
admissibles sont relativement faibles. De plus, seul la rotation
suivant l'axe de la liaison pivot peut tre actionn et, en l'tat,
les dbattements ne peuvent en aucun cas tre pilots. Nanmoins, le
problme pos par cette articulation ne se pose pas si l'on se
restreint  des dplacements sur des surfaces planes ou rgulires
relativement aux grandeurs du robot. Nous ne prsenterons pas ici la
conception mcanique de cette liaison.

\page
\section{A second section}
\input knuth

\placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}

\input knuth

\stoptext
%%

Paragraphs next to \placefigure calls are not indented when [bottom] is
used. They are indented correctly when one use [top] or [here].

Strange... ;)


Cheers,

Renaud

PS to Hans: U3D ?





___
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-25 Thread Renaud AUBIN




Hans Hagen a écrit :

  indeed pdfannot is what we need; however, the first thing is to figure out what kind of control we want (probably best from within _javascript_); in your sampe i see pretty raw pdf code in the key/val pairs, which is something alien to context 

- what features make sense
- what features do we expect to be stable 

Hans 
  


Hi Hans,

At first time, we can try to embed the u3d data as a "stream"  by
setting up the recquired (not the optional) keys (Subtype, 3DD) + 3DI
at true to obtain an interactive 3D model without any js programming...
With 3DI at true, I assume we can verify if the "3D artwork" is
correctly parsed and rendered...

Then, when can go to _javascript_ to include setups of (mainly):
- camera-to-world transformation matrix
- artwork-to-world transformation matrix
- background color settings

I have to learn about pdfmark and pdfannot...

Sorry if these remarks calls obvious answer...

Renaud


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


Re: [NTG-context] Indentation bug ?

2006-07-25 Thread Renaud AUBIN
Peter Münster a écrit :

On Tue, 25 Jul 2006, Renaud AUBIN wrote:
  

Perhaps related to http://context.literatesolutions.com/collector/65 ?
Cheers, Peter
  

Maybe, but dunno... These problems are probably due to the same bug...

Renaud
___
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-25 Thread Renaud AUBIN




Hans Hagen a écrit :

  indeed pdfannot is what we need; however, the first thing is to figure out what kind of control we want (probably best from within _javascript_); in your sampe i see pretty raw pdf code in the key/val pairs, which is something alien to context 

- what features make sense
- what features do we expect to be stable 

Hans 
  

How to do that in the ConTeXt way ? ;) I have read spec-tpd.tex but
didn't know much...

Take care of the heart attack (I've done it the rookie way,
reversed from movie15)

\starttext

\xdef\uthreedfilename{pa10}

\pdfobj {/Subtype/P/FOV 30/PS/Min}%
  \pdfrefobj\pdflastobj%
  %
  \pdfobj {%
    /MS/M% define the view as C2W matrix
    /CO 1200% orbital radius
    /P \the\pdflastobj\space 0 R%
    /C2W [-1.0 0.0 0.0 0.0 -1.0 0.0 0.0 0.0 1.0
0.00 -600.00 -3200.00]%
    /XN(Default)% name of the view appearing in the drop down list
    /BG/CS/DeviceRGB/C[1 1 1]%
  }\pdfrefobj\pdflastobj%
\xdef\defaultview{/3DV  /N \the\pdflastobj\space 0 R }

\pdfobj stream %
attr {%
  /Subtype/U3D/VA [\the\pdflastobj\space0 R] /DV/F%
}%
file {\uthreedfilename.u3d}%
\pdfrefobj\pdflastobj%
\xdef\iiidstream{\the\pdflastobj}

\pdfobj stream {}\pdfrefobj\pdflastobj%
\xdef\apdict{/AP  /N \the\pdflastobj\space 0 R }

\pdfannot width 200pt height 200pt depth 200pt {% don't know how to
deal with w,h and d !!!
  /Subtype/3D%
  /F 4% we cannot put F 5 here; bug in Reader; 3D annot would be
  /T (\uthreedfilename.u3d)%    disabled even if plugin were
available
  /Contents (3D Object (model/u3d))% mime type
  /NM (pa10)% label
  /P 0 0 R%
  \apdict%
  \defaultview%
  /3DI true%
  /3DD \iiidstream\space 0 R% 3D stream object
  /3DA  /A/PV/AIS/I/D/PI/DIS/I %
    }%

\stoptext


___
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-25 Thread Renaud AUBIN




Renaud AUBIN a écrit :
How to
do that in the ConTeXt way ? ;) I have read spec-tpd.tex but
didn't know much...
  
Take care of the heart attack (I've done it the rookie way,
reversed from movie15)
  
\starttext
  
\xdef\uthreedfilename{pa10}
  
\pdfobj {/Subtype/P/FOV 30/PS/Min}%
  \pdfrefobj\pdflastobj%
  %
  \pdfobj {%
    /MS/M% define the view as C2W matrix
    /CO 1200% orbital radius
    /P \the\pdflastobj\space 0 R%
    /C2W [-1.0 0.0 0.0 0.0 -1.0 0.0 0.0 0.0 1.0
0.00 -600.00 -3200.00]%
    /XN(Default)% name of the view appearing in the drop down list
    /BG/CS/DeviceRGB/C[1 1 1]%
  }\pdfrefobj\pdflastobj%
\xdef\defaultview{/3DV  /N \the\pdflastobj\space 0 R }
  

We need to be able to define some views... Variables are in facts CO,
C2W, XN and BG needs to be annotation-wide...
I need more time to manage coordinates possibilities...
\pdfobj
stream %
attr {%
  /Subtype/U3D/VA [\the\pdflastobj\space0 R] /DV/F%
}%
file {\uthreedfilename.u3d}%
\pdfrefobj\pdflastobj%
\xdef\iiidstream{\the\pdflastobj}
"pretty raw pdf code in the key/val pairs, which is something alien to
context" ;)

\pdfobj
stream {}\pdfrefobj\pdflastobj%
\xdef\apdict{/AP  /N \the\pdflastobj\space 0 R }
  
\pdfannot width 200pt height 200pt depth 200pt {% don't know how to
deal with w,h and d !!!
  /Subtype/3D%
  /F 4% we cannot put F 5 here; bug in Reader; 3D annot would be
  /T (\uthreedfilename.u3d)%    disabled even if plugin were
available
  /Contents (3D Object (model/u3d))% mime type
  /NM (pa10)% label
  /P 0 0 R%
  \apdict%
  \defaultview%
  /3DI true%
  /3DD \iiidstream\space 0 R% 3D stream object
  /3DA  /A/PV/AIS/I/D/PI/DIS/I %
    }%
  

Variables here are mainly 3DI, NM, mime type ?
\stoptext
  

___
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] gnuplot in ConTeXt

2006-07-27 Thread Renaud AUBIN




Hi,

The ConTeXt term is now in development.
You have at least two or three alternatives (with one prefered
but in dev):
- use postscript term and include the resulting graphics with
externalfigure
- use mp term and process the MP buffer with metafun
- last but not least, use directly the context terminal...

For this one, you have to:
- compile and install gnuplot from source by adding context.trm in
gnuplot/term/ and adding context.trm to term.h (if you are on linux,
else on windows you can use the wiki's patched binary gnuplot
http://pub.mojca.org/gnuplot/bin/)
- get mp-gnuplot.mp and t-gnuplot.tex and copy these two files into
your current document directory
- use \usemodule[t-gnuplot] to bypass the gnuplot module distributed
with the ConTeXt release

Then, you can try:
\usemodule[t-gnuplot]

\starttext
\startGNUPLOTscript{abc}
plot sin(x)
\stopGNUPLOTscript

\useGNUPLOTgraphic[abc]
\useGNUPLOTgraphic[abc][width=\textwidth]
\stoptext

If you have any questions...

Cheers,

Renaud

Dalyoung Jeong a crit:

  Dear all,

I have installed gnuplot and others(aqua term, x11).
I tested the minimal sample file in ConTeXt Wiki.
In the wiki page, there is a command like

\startGNUPLOTgraphics{sin}
plot sin(x)
\stopGNUPLOTgraphics

but there is an error message like

l.6 \startGNUPLOTgraphics
  {sin}
? x

If I changed \startGNUPLOTgraphics{sin} to \startGNUPLOTgraphic{sin},  
then the error is disappeared but the output showed only texts but  
not graph. Only a grey box is appeared.

Would you please show me an example in detail?

Thank you for reading.

Dalyoung 
___
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] setupitemize confusion

2006-07-27 Thread Renaud AUBIN




Steffen Wolfrum a crit:

  The bib module won't help (I assume): the bibliography is already  
typed, not generated.

Steffen
  


Hi Steffen, Aditya,

I'm agree with Aditya, Taco can surely help on this point...
I'm also interested by this feature (to Taco: since IEEE bib formatting
follows it ;) )


Cheers,

Renaud



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


Re: [NTG-context] setupitemize confusion

2006-07-27 Thread Renaud AUBIN




Hi Steffen,

Can you provide some working sample code (two or three typical entries
+ wrap with \start/stopitemize) ?
Is your bibliography big ? I assume your this work is urgent and you
can't make a .bib, right ?

Renaud

Steffen Wolfrum a crit:

  Am 27.07.2006 um 08:05 schrieb Aditya Mahajan:

  
  
On Thu, 27 Jul 2006, Steffen Wolfrum wrote:



  Am 27.07.2006 um 07:32 schrieb Aditya Mahajan:

  
  
On Wed, 26 Jul 2006, Steffen Wolfrum wrote:



  Hi,

both paragraph should be indented 12 pt. But there are different:

\starttext

\startitemize[width=12pt]
\sym{\endash}\input tufte
\stopitemize

\setupitemize[width=12pt]
\sym{\endash}\input tufte

\stoptext


How do I make the second the same as the first?
  

Shouldn't you wrap the second one with \startstop itemize?

\setupitemize[width=12pt]
\startitemize
\sym{\endash}\input tufte
\stopitemize

Aditya

  
  

Well, I hope not!

As far as I understood the manual (cont-eni) one can use \item and
\sym also without the start-stop environment: in cases where it is
just needed as one entry (not a list).
This works, somehow. But is there no setup possible?

I need it in a bibliography: the normal entries "author, title etc.
maybe two lines" are hangindented with \hangafter=1\hangindent=12pt.
But when a author has two or more titles it is written "- title etc.
maybe two lines". And here the "- " must be the same space as the
hangindent (12pt), as one can imagine easily.
That's why I used a \item res. \sym for this. And a start/stop each
would make the code quite chaotic.

But maybe there is even another solution for this construction, even
better?
  

Ask Taco to implement this in the bib module :-)

  
  

The bib module won't help (I assume): the bibliography is already  
typed, not generated.

Steffen

___
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] setupitemize confusion

2006-07-27 Thread Renaud AUBIN
Taco Hoekwater a écrit :

It would not be very hard to add this feature to the module,
but that will probably not help Steffen in this case.

Taco
  

Yes, but you're also a ConTeXt guru, no ? ;)

PS to Taco: No more time for #context ?
Renaud
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Indentation bug ?

2006-08-01 Thread Renaud AUBIN




Hi all,

Same problem when \placefigure[auto] is used...

Is there a chance that this bug will be corrected before the beginning
of september ? ;)
(if this is a bug...)

Renaud AUBIN a crit:

  
  
  Hi all,
  
Considering the following example:
%%%
\setupindenting[medium,yes]
\setupformulas[indentnext=yes]
\setupheads[indentnext=yes]
\setupfloats[indentnext=yes]
  
\starttext
  
\startuseMPgraphic{mympgraph}
numeric u; u:=2cm;
draw (-u,-u)--(u,u);
draw ((-u,-u)--(u,u)) rotated 90;
\stopuseMPgraphic
  
\section{A section}
La liaison inter-modulaire conue par TDA pour le prototype
est une liaison pivot d'axe vertical. En effet, mme si elle dispose
de possibilits de dbattements angulaires, ces dbattements
admissibles sont relativement faibles. De plus, seul la rotation
suivant l'axe de la liaison pivot peut tre actionn et, en l'tat,
les dbattements ne peuvent en aucun cas tre pilots. Nanmoins, le
problme pos par cette articulation ne se pose pas si l'on se
restreint  des dplacements sur des surfaces planes ou rgulires
relativement aux grandeurs du robot. Nous ne prsenterons pas ici la
conception mcanique de cette liaison.
  
\placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}
  
La liaison inter-modulaire conue par TDA pour le prototype
est une liaison pivot d'axe vertical. En effet, mme si elle dispose
de possibilits de dbattements angulaires, ces dbattements
admissibles sont relativement faibles. De plus, seul la rotation
suivant l'axe de la liaison pivot peut tre actionn et, en l'tat,
les dbattements ne peuvent en aucun cas tre pilots. Nanmoins, le
problme pos par cette articulation ne se pose pas si l'on se
restreint  des dplacements sur des surfaces planes ou rgulires
relativement aux grandeurs du robot. Nous ne prsenterons pas ici la
conception mcanique de cette liaison.
  
\page
\section{A second section}
\input knuth
  
\placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}
  
\input knuth
  
\stoptext
%%
  
Paragraphs next to \placefigure calls are not indented when [bottom] is
used. They are indented correctly when one use [top] or [here].
  
Strange... ;)
  
  
Cheers,
  
Renaud
  
PS to Hans: U3D ?
  
  
  
  

___
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] Indentation bug ? Sample

2006-08-02 Thread Renaud AUBIN
Hi all,

Here is a test document with french indentation (placefigure and
placetable are tested with bottom, here, top and auto options):

\setupindenting[medium,yes]
\setupformulas[indentnext=yes]
\setupheads[indentnext=yes]
\setupfloats[indentnext=yes]

\starttext

\startuseMPgraphic{dummygraph}
numeric u; u:=2cm;
draw (-u,-u)--(u,u);
draw ((-u,-u)--(u,u)) rotated 90;
\stopuseMPgraphic

\chapter{placefigure}
\section{bottom option}

\input knuth

\placefigure[bottom]{none}{\useMPgraphic{dummygraph}}

\input knuth

\page

\section{top option}

\input knuth

\placefigure[top]{none}{\useMPgraphic{dummygraph}}

\input knuth

\page

\section{here option}

\input knuth

\placefigure[here]{none}{\useMPgraphic{dummygraph}}

\input knuth

\page

\section{here, force, nonumber option}

\input knuth

\placefigure[here,force,nonumber]{none}{\useMPgraphic{dummygraph}}

\input knuth

\page

\section{auto option}

\input knuth

\placefigure[auto]{none}{\useMPgraphic{dummygraph}}

\input knuth

\chapter{placetable}

\startbuffer
\setupTABLE[row][odd][background=color,backgroundcolor=red,
width=.2\textwidth]
\bTABLE[split=yes]
\bTR \bTD[nr=3] 1 \eTD \bTD[nc=2] 2/3 \eTD \bTD[nr=3] 4 \eTD \eTR
\bTR \bTD 2 \eTD \bTD 3 \eTD \eTR
\bTR \bTD 2 \eTD \bTD 3 \eTD \eTR
\bTR \bTD[nc=3] 1/2/3 \eTD \bTD 4 \eTD \eTR
\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR
\eTABLE
\stopbuffer

\section{bottom option}

\input knuth

\placetable[bottom]{none}{\getbuffer}

\input knuth

\page

\section{here option}

\input knuth

\placetable[here]{none}{\getbuffer}

\input knuth

\page

\section{top option}

\input knuth

\placetable[top]{none}{\getbuffer}

\input knuth

\page

\section{auto option}

\input knuth

\placetable[auto]{none}{\getbuffer}

\input knuth

\stoptext


Alan, I cannot reproduce the problem you described, maybe I
misunderstood... Please, try with my sample file and repost if you
obtain a bug...
You can see the result: http://renojrl.lrv.uvsq.fr/testbed/indent.pdf

texexec --check gives:

TeXExec | runtime: 0.509941
TeXExec | end of analysis
TeXExec |
TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD
TeXExec |
TeXExec | testing interface en
TeXExec | pdfeTeX Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
TeXExec | ConTeXt ver: 2006.07.28 23:56 fmt: 2006.8.1 int: english mes:
english
TeXExec |
TeXExec | testing interface fr
TeXExec | pdfeTeX Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
TeXExec | ConTeXt ver: 2006.07.28 23:56 fmt: 2006.8.1 int: french mes:
french
TeXExec |
TeXExec | testing interface nl
TeXExec | pdfeTeX Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
TeXExec | ConTeXt ver: 2006.07.28 23:56 fmt: 2006.8.1 int: dutch mes: dutch

Cheers,


Renaud

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


[NTG-context] setuppublicationlist

2006-08-03 Thread Renaud AUBIN




Hi all,

How to control vertical spaces between references ?
(\setuplist options ? I have tried some but nothing happened...)

Renaud



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


Re: [NTG-context] setuppublicationlist

2006-08-03 Thread Renaud AUBIN




Hi Taco,

An extra line was due to
\def\setuppublicationlayout[#1]#2%
 {\setvalue{@@pvdata#1}{#2\unskip\unskip\vadjust{\kern 12pt}}}
in my bibl-aub.tex

;)

Cheers,

Renaud

Taco Hoekwater a crit:

  
Renaud AUBIN wrote:
  
  
Hi all,

How to control vertical spaces between references ?
(\setuplist options ? I have tried some but nothing happened...)

  
  
This should work:

   \setuppublicationlist[before=\blank]

Cheers, 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


[NTG-context] Mixed Normal and Bold Math -- Problem with Lucida

2006-08-03 Thread Renaud AUBIN





Hi all,

I use lucida for a document and now I need some bold math fonts so I
have followed the instructions given in "This Way - Mixed Normal and
Bold Math". The resulting test file is:

\starttext
\usetypescript[lucida] [texnansi]
\usetypescript[lucidabfm] [texnansi]
\usetypescript[lucidaboldmath][texnansi]
\setupformulas[method=bold]
\startformula[lucida] 1 \Gamma \alpha x \stopformula
\startformula[lucida] 1 \Gamma {\bfm \alpha x} \stopformula
\startformula[lucidaboldmath] 1 \Gamma \alpha x \stopformula
\startformula[lucidaboldmath] 1 \Gamma {\bfm \alpha x} \stopformula
\stoptext

I have installed lucida with texfont and added some .tfm (lucida.zip
from Hans). Since I'm on debian, I've done some modifications to
/etc/updmap.d/10tetex-base (I use tetex + latest ConTeXt in ~/texmf) +
sudo update-updmap + sudo updmap-sys...
\loadmapfile[texnansi-bh-lucida.map] is in my cont-sys.tex

texexec gives:


TeXExec | processing document 'lucidabfm.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file lucidabfm.top
TeXExec | using randomseed 1128
TeXExec | tex engine: pdfetex
TeXExec | tex format: cont-en
TeXExec | progname: context
This is pdfeTeX, Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
\write18 enabled.
(/home/renaud/texmf/web2c/natural.tcx)
entering extended mode
(./lucidabfm.tex

ConTeXt ver: 2006.07.28 23:56 fmt: 2006.8.1 int: english mes:
english

language : language en is active
protectionstate 0
system : cont-new loaded
(/home/renaud/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
color : palette rollover is available
)
system : cont-old loaded
(/home/renaud/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(/home/renaud/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys loaded
(/home/renaud/texmf/tex/context/user/cont-sys.tex
(/home/renaud/texmf/tex/context/base/type-exa.tex)
(/home/renaud/texmf/tex/context/base/type-syn.tex)
(/home/renaud/texmf/tex/context/base/type-enc.tex)
(/home/renaud/texmf/tex/context/base/type-siz.tex)
(/home/renaud/texmf/tex/context/base/type-map.tex)
(/home/renaud/texmf/tex/context/base/type-spe.tex)
(/home/renaud/texmf/tex/context/base/type-akb.tex))
bodyfont : 12pt rm is loaded
language : patterns nl-texnansi:texnansi-1-2:3
nl-ec:ec-2-2:3 fr-
texnansi:texnansi-3-2:3 fr-ec:ec-4-2:3
de-texnansi:texnansi-5-2:3 de-e
c:ec-6-2:3 it-texnansi:texnansi-7-2:3
it-ec:ec-8-2:3 pt-texnansi:texna
nsi-9-2:3 pt-ec:ec-10-2:3
hr-ec:ec-11-2:3 pl-pl0:pl0-12-2:3 pl-ec:e
c-13-2:3 pl-qx:qx-14-2:3
cz-il2:il2-15-2:3 cz-ec:ec-16-2:3 sk-il2:i
l2-17-2:3 sk-ec:ec-18-2:3
sl-ec:ec-19-2:3 en-ec:ec-21-2:3 uk-ec:ec-
22-2:3 us-ec:ec-23-2:3
agr-agr:agr-24-2:3 da-ec:ec-25-2:3 sv-ec:ec-
26-2:3 af-ec:ec-27-2:3 no-ec:ec-28-2:3
deo-ec:ec-29-2:3 es-ec:ec-3
0-2:3 ca-ec:ec-31-2:3 la-ec:ec-32-2:3
ro-ec:ec-33-2:3 tr-ec:ec-34-
2:3 fi-ec:ec-36-2:3 hu-ec:ec-37-2:3 loaded
specials : tex,postscript,rokicki loaded
system : lucidabfm.top loaded
(./lucidabfm.top
specials : loading definition file tpd
(/home/renaud/texmf/tex/context/base/spec-tpd.tex
specials : loading definition file fdf
(/home/renaud/texmf/tex/context/base/spec-fdf.tex)
specials : fdf loaded
)
specials : fdf,tpd loaded
)
systems : system commands are enabled
(/home/renaud/texmf/tex/context/base/sort-def.tex)
(/home/renaud/texmf/tex/context/base/sort-lan.tex)
systems : begin file lucidabfm at line 1
(/home/renaud/texmf/tex/context/base/type-buy.tex)
(/home/renaud/texmf/tex/context/base/math-lbr.tex)kpathsea: Running
mktextfm LucidaNewMath-Demibold
/usr/share/texmf/web2c/mktexnam: Could not map source abbreviation L
for LucidaNewMath-Demibold.
/usr/share/texmf/web2c/mktexnam: Need to update
/usr/share/texmf-tetex/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;
nonstopmode; input LucidaNewMath-Demibold
This is METAFONT, Version 2.71828 (Web2C 7.5.4)

kpathsea: Running mktexmf LucidaNewMath-Demibold
! I can't find file `LucidaNewMath-Demibold'.
* ...; nonstopmode; input LucidaNewMath-Demibold

Please type another input file name
! Emergency stop.
* ...; nonstopmode; input LucidaNewMath-Demibold

Transcript written on mfput.log.
grep: LucidaNewMath-Demibold.log: Aucun fichier ou rpertoire de ce type
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
input LucidaNewMath-Demibold' failed to make LucidaNewMath-Demibold.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font \*lucida7ptmmmrbfrm*:=LucidaNewMath-Demibold at 7.0pt not
loadable: Metr
ic (TFM) file not found.
to be read again
 \relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
 \let
\localrelativefontsiz...

\dodosetmathfamilyB ...amily \fontsize \endcsname
 \else \ifcsname
\fontclass...

\dosetmathfamily ...athfamily \scriptscriptfont #1
 \let \fontbody
#3\dodosetm...
inserted text ...scriptface \c!mrbf \mrfallback
 

Re: [NTG-context] Mixed Normal and Bold Math -- Problem with Lucida

2006-08-04 Thread Renaud AUBIN





Good Morning Taco,

It works, thanks...

Taco Hoekwater a crit:

  Renaud AUBIN wrote:
  
  
Hi all,

I use lucida for a document and now I need some bold math fonts so I 
have followed the instructions given in "This Way - Mixed Normal and 
Bold Math". The resulting test file is:

  
  
There is a typo in type-buy.tex. There is one line that contains

   \definefontsynonym [MathRomanBold] [LucidaNewMath-Demibold]

but it should be:

   \definefontsynonym [MathRomanBold] [LucidaNewMath-DemiBold]

(capital B on the last Bold)


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] Mixed Normal and Bold Math -- Problem with Lucida

2006-08-04 Thread Renaud AUBIN




But there is a problem with \startformula[lucida] 1 \Gamma {\bfm \alpha
x} \stopformula i.e. the "x" is not in bold rm...

Renaud AUBIN a crit:

  
  
  
Good Morning Taco,
  
It works, thanks...
  



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


Re: [NTG-context] Mixed Normal and Bold Math -- Problem with Lucida

2006-08-04 Thread Renaud AUBIN




texfont prints out the typo error too (LucidaNewMath-Demibold)... How
can we change this ? (this font entry in texnansi-bh-lucida.map is
LucidaNewMath-Demibold)

Renaud AUBIN a crit:

  
  
But there is a problem with \startformula[lucida] 1 \Gamma {\bfm \alpha
x} \stopformula i.e. the "x" is not in bold rm...
  
Renaud AUBIN a crit:
  



Good Morning Taco,

It works, thanks...

  
  

___
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] custom itemize

2006-08-04 Thread Renaud AUBIN





Hi all,

Some times ago, Taco helps me to define a custom itemize:
\setbox0=\hbox{--~}
\def\indenteddash#1{\hskip\parindent--~}
\definesymbol[indentdash][\indenteddash]
\setupitemize[each][indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr
\parindent + \wd0 \relax]

The result of, for example:
\startitemize
\item first paragraph ... with a lot of text (multiline),
\item second paragraph
... with a lot of text (multiline).
\stopitemize

is:
 -- first paragraph ..
 with a lot of text (multiline),
 -- second paragraph ..
 with a lot of text
(multiline).

Now, I would a new custom itemize with numbered items:

 1. first paragraph ..
 with a lot of text (multiline),
 2. second paragraph ..
 with a lot of text
(multiline).

How to do that ?

TIA


Renaud



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


Re: [NTG-context] Mixed Normal and Bold Math -- Problem with Lucida

2006-08-04 Thread Renaud AUBIN

Hans, can you help on this one ?

After checking the lucida's afm, it appears that the correct name of
type-buy.tex's LucidaNewMath-DemiBold is LucidaNewMath-Demibold...
I have corrected type-buy.tex but \startformula {\bfm R} \stopformula is
LucidaNewMath-AltItalic... I have understood Mixed Normal ... Math, I
should have LucidaNewMath-DemiBold... Right ?

As far as I understand, \bfm bolds the current math font... So, I have a
beginner's question, what's the best method to apply when one would
switch from bf to bi for example ?

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


Re: [NTG-context] custom itemize

2006-08-04 Thread Renaud AUBIN

% frenchitemize
\setbox0=\hbox{--~}
\def\indenteddash#1{\hskip\parindent--~}
\definesymbol[indentdash][\indenteddash]
\def\startfrenchitemize{\startitemize[indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr
\parindent + \wd0 \relax]}
\def\stopfrenchitemize{\stopitemize}

% frenchenumerate
\setbox1=\hbox{0.~}
\def\indentedfrenchnumber#1{\hskip\parindent#1.~}
\defineconversion[frenchnumber][\indentedfrenchnumber]
\def\startfrenchenumerate{\startitemize[frenchnumber,packed,joinedup,intext][stopper={},indentnext=yes,width=\dimexpr
\parindent + \wd1 \relax]}
\def\stopfrenchenumerate{\stopitemize}

% default behavior of itemize (frenchitemize)
\setupitemize[each][indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr
\parindent + \wd0 \relax]


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


Re: [NTG-context] Context 2006.08.04 released

2006-08-07 Thread Renaud AUBIN

Hi,

A suggestion for the next release:

diff type-buy.tex type-buy.tex.20060804
114c114
   \definefontsynonym [MathBeta]  [LucidaNewMath-Demibold]
---
   \definefontsynonym [MathBeta]  [LucidaNewMath-DemiBold]
123c123
   \definefontsynonym [MathBetaBold]  [LucidaNewMath-Demibold] % ??
---
   \definefontsynonym [MathBetaBold]  [LucidaNewMath-DemiBold] % ??
175c175
   \definefontsynonym [LucidaNewMath-Demibold]  [lbmd]
---
   \definefontsynonym [LucidaNewMath-DemiBold]  [lbmd]


DemiBold causes problems here... Demibold seems to work cleanly...

Renaud

Taco Hoekwater a écrit :

Hello all,

I am pleased to announce that the new ConTeXt release from Hans Hagen
can be downloaded as of now from the Pragma ADE website or one of its
mirrors.

   http://www.pragma-ade.com/context/current/cont-tmf.zip
   http://context.aanhet.net/context/current/cont-tmf.zip
   http://mirror.contextgarden.net/context/current/cont-tmf.zip

The current release has version 2006.08.04

A very short list of changes is given below. As usual, there is an
html page with more detailed release notes available on the Wiki, see:

   http://wiki.contextgarden.net/Release_Notes

New features since  2006.07.28:

* \framed (and -text) now support an [indenting=] key
* support for russian hyphenation
* new version of the bib module
* \[lL]commaaccent character definitions

Bugfixes:
* column alignment in natural tables
* image inclusion:
   * bounding box discovery using rli files fixed
   * fix for Aleph in global TRT documents
   * some still-needed definitions from former supp-pdf re-instated
* disappearing subtextblocks
* unicode table 002 fix
* some identation problems removed

Happy TeXing,

Taco Hoekwater

___
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] Context 2006.08.04 released

2006-08-07 Thread Renaud AUBIN




See http://renojrl.lrv.uvsq.fr/testbed/character_alignment_bug.pdf,
freshly processed...

Taco Hoekwater a crit:

  
Nicolas Grilly wrote:
  
  Hereunder is the output of texexec --check on
my computer. Everything

seems okay. Can you send me your test file in order I launch it on my

computer?

  
  
Your own file (attached). Can someone else try this, please?
  
  
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] Context 2006.08.04 released

2006-08-08 Thread Renaud AUBIN




Ok, works with Demi"B"old

lbd.afm gives
FontName LucidaBright-Demi
FullName Lucida Bright Demibold
FamilyName LucidaBright
Weight DemiBold

So, afaiu, you use the Weight to suffix the font's name...
But I don't understand why Demibold works ? Strange ? Could you explain
?

The result of
\placeformula
\startformula[lucida]
 1 \Gamma \alpha x
\stopformula

\placeformula
\startformula[lucida]
 1 \Gamma {\bfm \alpha x}
\stopformula

\placeformula
\startformula[lucidaboldmath]
 1 \Gamma \alpha x
\stopformula

\placeformula
\startformula[lucidaboldmath]
 1 \Gamma {\bfm \alpha x}
\stopformula
doesn't match the one displayed in "This Way" (\startformula[lucida] 1
\Gamma {\bfm \alpha x} \stopformula returns Demi in "This Way" and
Math-AltItalic in my test file)... Odd or not ?

Renaud

Hans Hagen a crit:

  Renaud AUBIN wrote:
  
  

DemiBold causes problems here... Demibold seems to work cleanly...
  

  
  all should be DemiBold; fixed 


-
  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] Context 2006.08.04 released

2006-08-08 Thread Renaud AUBIN




I'm agree to use Demibold ;) (my type-buy is ready)

Can you test:

\placeformula
\startformula[lucida]
 1 \Gamma \alpha x
\stopformula

\placeformula
\startformula[lucida]
 1 \Gamma {\bfm \alpha x}
\stopformula

\placeformula
\startformula[lucidaboldmath]
 1 \Gamma \alpha x
\stopformula

\placeformula
\startformula[lucidaboldmath]
 1 \Gamma {\bfm \alpha x}
\stopformula

please and compare with
http://www.pragma-ade.com/general/magazines/mag-0005.pdf where you say
"For Lucida lovers, we prepared some typescripts that provide (mixed)
bold math." page 5

Hans Hagen a crit:

  Renaud AUBIN wrote:
  
  
Ok, works with Demi"B"old

lbd.afm gives
FontName LucidaBright-Demi
FullName Lucida Bright Demibold
FamilyName LucidaBright
  

  
  
ah, i see, so we should use Demibold
  
  
Weight DemiBold

So, afaiu, you use the Weight to suffix the font's name...
But I don't understand why Demibold works ? Strange ? Could you explain ?
  

  
  this are internal names, so in principle you could use then in \definefont

hm, so maybe we should use just LucidaBright-Demi

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] Context 2006.08.08 released

2006-08-08 Thread Renaud AUBIN




Same thing happens here... (Aditya was faster... ;) )

Renaud

Aditya Mahajan a crit:

  
Something broke with formula numbering, and it is due to the numbering 
changes. \preparethenumber is commented from core-sec.tex, 
dododoformulanumber in core-mat.tex still uses it. As a result even 
the simple


\placeformula \startformula a = b \stopformula

fails with

! Undefined control sequence.
\dododoformulanumber [EMAIL PROTECTED] \preparethenumber
   \??fm 
\composedsectionnumb...
argument \normalreqno {\doformulanumber [][][]{}
   }
\secondoftwoarguments #1#2-#2

\dostopformula -\doplaceformulanumber
\getvalue {\e!stop 
\formulaparameter ...
l.3 \placeformula \startformula a = b \stopformula


Changing preparethenumber in dododoformula by preparefullnumber gets 
rid of the problem.

Aditya
___
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] Context 2006.08.08 released

2006-08-08 Thread Renaud AUBIN
What's the meaning of automatically calls bibtex now.

We don't have to call:
texexec --once mydoc
bibtex mydoc
texexec mydoc
anymore ?

Renaud

Taco Hoekwater a écrit :

Hello all,

I am pleased to announce that the new ConTeXt release from Hans Hagen
can be downloaded as of now from the Pragma ADE website or one of its
mirrors.

http://www.pragma-ade.com/context/current/cont-tmf.zip
http://context.aanhet.net/context/current/cont-tmf.zip
http://mirror.contextgarden.net/context/current/cont-tmf.zip

The current release has version 2006.08.08

A very short list of changes is given below. As usual, there is an
html page with more detailed release notes available on the Wiki, see:

http://wiki.contextgarden.net/Release_Notes

New features:
* The first release of the cow font
* Support for strikethrough text using metapost
* Macros can register temporary files that are automatically cleaned up
* A few small math extensions:
   * matrix option style=\textstyle|\displaystyle so that each entry
 is in that style
   * matrix option location=low|lohi|high for the baseline placement
 of the matrix
   * macro \intertext added
* Sorting of alphabetic commalists (\sortalphacommacommand) is
   now possible
* Included metapost figures start out using black instead of the text
   color now, and \MPcolor{currentcolor} can be used for selecting the
   current text color outside figure
* Page ranges in registers can optionally be compressed using
   \setupregister[compress=yes]
* The bib module automatically runs bibtex now
* SciTE on Windows now uses ComSpec instead of calling cmd.exe directly

Bugfixes:
* A bugfix in defined (named) buffer handling
* Some french messages fixed
* Some fixes for character alignment errors in natural tables
* In grid mode, \displaywidowpenalty and \brokenpenalty are now set
   to zero
* Figure numbers in captions fixed (separator, stopper, suffix)
* LucidaNewMath-Demi (bold) font fixed

Happy TeXing,

Taco Hoekwater
___
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] Context 2006.08.08 released

2006-08-08 Thread Renaud AUBIN
I have finally read bibmode-doc... (Sorry to pollute the ML with dumb
post...)

Renaud AUBIN a écrit :

What's the meaning of automatically calls bibtex now.

We don't have to call:
texexec --once mydoc
bibtex mydoc
texexec mydoc
anymore ?

Renaud
  

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


[NTG-context] lucida bold and startalign

2006-08-09 Thread Renaud AUBIN




Hi all,

Considering the following example, there is a problem with \bfm \omega
in the align environment... I observed the same problem with the matrix
environment... Any idea how to solve the problem ?

\starttext
\usetypescript[lucida] [texnansi]
\usetypescript[lucidabfm] [texnansi]
\usetypescript[lucidaboldmath][texnansi]
\setupformulas[method=bold]

\startformula[lucida]
\tilde{\bfm \omega}
\stopformula

\startformula[lucida]
\startalign[n=2, align={right,left}]
\NC \tilde{\bfm \omega} \NC = a \NR
\stopalign
\stopformula
\stoptext

Renaud



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


Re: [NTG-context] lucida bold and startalign

2006-08-09 Thread Renaud AUBIN




Correction: the problem occurs only with align

Renaud AUBIN a crit:

  
  
  Hi all,
  
Considering the following example, there is a problem with \bfm \omega
in the align environment... I observed the same problem with the matrix
environment... Any idea how to solve the problem ?
  
\starttext
\usetypescript[lucida] [texnansi]
\usetypescript[lucidabfm] [texnansi]
\usetypescript[lucidaboldmath][texnansi]
\setupformulas[method=bold]
  
\startformula[lucida]
\tilde{\bfm \omega}
\stopformula
  
\startformula[lucida]
\startalign[n=2, align={right,left}]
\NC \tilde{\bfm \omega} \NC = a \NR
\stopalign
\stopformula
\stoptext
  
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] lucida bold and startalign

2006-08-09 Thread Renaud AUBIN
ok, but then omega is not bold anymore...

Taco Hoekwater a écrit :

  

Adding this redefinition of \bfm helps

   \def\bfm{\noexpand\boldfacemath} % \noexpand added

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] lucida bold and startalign

2006-08-09 Thread Renaud AUBIN
\define\tildedomega{\hbox{$\tilde{\bfm \omega}$}} and use \tildedomega
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problem with external graphics

2006-08-09 Thread Renaud AUBIN
What happens with \placefigure[here]{none}{\externalfigure[Figure1]} ?

Renaud

The Wizard a écrit :

All -
I am experiencing some strange behavior with external graphics. I 
use one file to setup all the graphics for later inclusion. All that is 
in the file is a bunch of \useexternalgraphics statements, so I can 
reference the graphics by name later. The problem comes when I try to 
use \placefigure instead of \externalfigure. Here is an example:

Figure setup:

\useexternalfigure[Figure 1][Figure1][scale=520,type=pdf,factr=broad]
% This sets up the file 'Figure1.pdf' for later inclusion

If I then reference it using

\externalfigure[Figure 1]

the figure is included at the spot following the text, and fits on the 
remainder of the page, which is what I want. But if I try to add a 
caption to it by using

\placefigure
[force][]
{}
{\externalfigure[Figure 1][Figure 1]}

the figure gets the caption, but always is placed on the top of the 
following page. Why is this?

  


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


Re: [NTG-context] Problem with external graphics

2006-08-10 Thread Renaud AUBIN
The Wizard a écrit :

I also tried the answer offered by Renaud, 
\placefigure[here]{none}{\externalfigure[Figure1]}, which results in 
no figure at all.

  

adapt Figure1 - Figure 1 according to your useexternalfigure declaration...

\placefigure[here]{none}{\externalfigure[Figure1]

An example from a document of mine:

\useexternalfigure[largeur][nofile][width=.5\textwidth]
\useexternalfigure[slime][src/images/slime][largeur]

\placefigure[here][fig:ssrI]{Robot \SSR-I ({\sc
Hirose})}{\externalfigure[slime]}

Cheers,

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


[NTG-context] Another editor for (La)TeX

2006-08-10 Thread Renaud AUBIN





Hi all,

A friend of mine pointed out TeXmaker:
http://www.xm1math.net/texmaker/index.html
Since I have not tried it, I can't say if one could use it with
ConTeXt... For those who liked graphical editor: give it a try

Cheers,

Renaud





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


[NTG-context] combination + externalfigure = feature request ?

2006-08-17 Thread Renaud AUBIN





Hi all,

I often use placefigure like the following example:

\useexternalfigure[robhaz-iraq][src/images/robhaz_iraq_06][height=4cm]
\useexternalfigure[robhaz-rescue][src/images/robhaz_rescue_06][height=4cm]

\placefigure[here][fig:robhaz]{ROBHAZ-DT3}{
 \startcombination[2*1]
 {\externalfigure[robhaz-rescue]}{Rescue 2006}
 {\externalfigure[robhaz-iraq]}{Version militaire (Irak)}
 \stopcombination
}

As you can see, with this construct, one have to adapt the height by
hand.

It's sometime boring to find a good value... As a result:
Considering two png files with w1*h1 and w2*h2, is it possible to
constrain the total width of the figure as:
1. scalefactor1*h1 = scalefactor2*h2
2. scalefactor1*w1 + scalefactor2*w2 = .8\textwidth

Two equations and two variables (scalefactor1 and scalefactor2) ? Dunno
if ConTeXt can solve this kind of calculation straightforwardly...
I assume here we're able to get wi and hi and one give an explicit
"totalwidth" value...
Moreover, one can use it for i externalfigure on a single row... but
with [N*M], it's more complicated (we can use a reference row and
proceed) and I don't need it for the moment ;)

Cheers,

Renaud



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


[NTG-context] LucidaBrightSmallcaps-Demi

2006-08-18 Thread Renaud AUBIN




Hi all,

Considering {\bf Renaud {\sc Aubin}} with lucida, I assume that "Aubin"
will be typesetted using LucidaBrightSmallcaps-Demi. I was one more
time wrong... I have check type-buy and there is no SerifBoldCaps
defined for lucida... \bc doesn't seem to work either.
Is it possible to add support to \bc in type-buy ?

Renaud






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


[NTG-context] meta-FLOWcharts or ... ?

2006-08-24 Thread Renaud AUBIN





Hi all,

I would try to design a figure like
http://www.nibua-r.org/ConTeXt/sample.png
FLOWcharts seems to be a good tool to do that, but I have some troubles
to get "Simulation" and "Colision Detection" frames...

First, I thought of a meta-flowchart but I'm not sure that's possible.

Any idea ?

TIA

Renaud



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


Re: [NTG-context] meta-FLOWcharts or ... ?

2006-08-24 Thread Renaud AUBIN




Renaud AUBIN a crit:

  
  
  I would try to design a
figure like
  http://www.nibua-r.org/ConTeXt/sample.png
FLOWcharts seems to be a good tool to do that, but I have some troubles
to get "Simulation" and "Colision Detection" frames...
  

I have done a first sample: http://www.nibua-r.org/ConTeXt/testbed/flow/
As you can see, "Simulation" and "Collision Detection" frames are
missing since I don't know how to draw them.
Moreover:
- \connection[b-l]{sim_constraint} in cd_stc returns a strange result,
- Hans, any comments about "Crossing lines, which are often forbidden
in charts, can be made less confusing by adding a gap in the lines to
be crossed. This is one of the features that are already implemented
but not yet accessible by the ConTEXt user interface." in mcharts.pdf
since I have a problem with crossing lines ;)
- Is there a way to add horizontal distance between vertical parts of
\connection[b-l]{sim_time} in cd_stc and \connection[+lt]{cd_broad} in
sim_constraint ?

Renaud


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


[NTG-context] Problem with \placefloatcaption

2006-08-25 Thread Renaud AUBIN




Hi all,

\placefigure
 [none]
 {}
 {\startcombination
 {\externalfigure[hylos]}{\placefloatcaption[figure]{Hylos}}
 {\externalfigure[shrimp]}{\placefloatcaption[figure]{Shrimp III}}
 \stopcombination}

returns

./src/images/hylos.jpg
figures : dimensions of ./src/images/hylos.jpg loaded from
figurefile i
tself
(./prd_phd.tuo)
! Undefined control sequence.
argument \preparednumber

\preparefullnumber #1#2#3-\analyzenumber {#1}#2#3
 \ifx \numberseparator
\emp...

[EMAIL PROTECTED]@[EMAIL PROTECTED] ...e [EMAIL PROTECTED]@[EMAIL PROTECTED]
 \doattributes {\??kj
figur...

\doplacefloatcaption ...placefloatcaptiontext [#1]

\placefloatcaptionreferenc...
l.107 ...hylos]}{\placefloatcaption[figure]{Hylos}
 }
?

Is there a bug or a misuse of \placefloatcaption ?

Renaud



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


Re: [NTG-context] Problem with \placefloatcaption

2006-08-25 Thread Renaud AUBIN




Renaud AUBIN a crit:

  
  
  Hi all,
  
\placefigure
 [none]
 {}
 {\startcombination
 {\externalfigure[hylos]}{\placefloatcaption[figure]{Hylos}}
 {\externalfigure[shrimp]}{\placefloatcaption[figure]{Shrimp III}}
 \stopcombination}
  
returns
  
./src/images/hylos.jpg
figures : dimensions of ./src/images/hylos.jpg loaded from
figurefile i
tself
(./prd_phd.tuo)
! Undefined control sequence.
argument \preparednumber
  
\preparefullnumber #1#2#3-\analyzenumber {#1}#2#3
 \ifx \numberseparator
\emp...
  
[EMAIL PROTECTED]@[EMAIL PROTECTED] ...e [EMAIL PROTECTED]@[EMAIL PROTECTED]
 \doattributes {\??kj
figur...
  
\doplacefloatcaption ...placefloatcaptiontext [#1]

\placefloatcaptionreferenc...
l.107 ...hylos]}{\placefloatcaption[figure]{Hylos}
 }
?
  
Is there a bug or a misuse of \placefloatcaption ?
  
Renaud
  
  

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

Problem solved in the beta release




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


Re: [NTG-context] new beta

2006-08-29 Thread Renaud AUBIN
Hi Hans,

! I can't find file `core-trf.tex'.
l.381 \input core-trf.tex

Cheers,

Renaud

Hans Hagen a écrit :

Hi,

I uploaded a new beta. There is not so much new functionality (if so, 
taco will report that when there is a new release), but

- some reshuffling of code (in order to solve some dependency ugliness 
in the load order)
- this is also a bit of a preparation for replacing parts by lua 
enhanced code
- a reimplementation (cleanup) of the core-fig module (with a split off 
core-trf)
- a related simplification of some of the driver code
- a (not times) speed up of graphic inclusions

So, the big question here is does graphic inclusion work as expected

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] new beta

2006-08-29 Thread Renaud AUBIN
Hans, do you agree to add
\definefontsynonym [SerifBoldCaps]   [LucidaBrightSmallcaps-Demi]
to type-buy.tex (\starttypescript [serif] [lucida] [name]) ?

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


Re: [NTG-context] new beta

2006-08-29 Thread Renaud AUBIN
Hans Hagen a écrit :

So, the big question here is does graphic inclusion work as expected
  


Hans,

\scale seems to be broken...

\starttext
\startuseMPgraphic{dummygraph}
numeric u; u:=2cm;
draw (-u,-u)--(u,u);
draw ((-u,-u)--(u,u)) rotated 90;
\stopuseMPgraphic

\placefigure[here]{none}{\useMPgraphic{dummygraph}}

\placefigure[here]{none}{\scale[sx=1,sy=1]{\useMPgraphic{dummygraph}}}

\stoptext

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


Re: [NTG-context] new beta

2006-08-29 Thread Renaud AUBIN
\starttext

\startuseMPgraphic{dummygraph}
numeric u; u:=2cm;
draw (-u,-u)--(u,u);
draw ((-u,-u)--(u,u)) rotated 90;
\stopuseMPgraphic

\placefigure[here]{none}{\useMPgraphic{dummygraph}} - euh... work ;)

\placefigure[here]{none}{\scale[sx=.5,sy=.5]{\useMPgraphic{dummygraph}}}
- doesn't work !

\placefigure[here]{none}{\scale[width=10cm]{\useMPgraphic{dummygraph}}}
- work !

\stoptext

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


[NTG-context] Homogeneous captions for figures

2006-09-08 Thread Renaud AUBIN




Hi all,

I wanted to obtain to obtain an homogeneous formatting for my captions
whenever I use \placefigure or \placefloatcaption within combination,
so I've tried \setupcaption and \setupcaptions but

\starttext

\setupcaptions[align=left] % or \setupcaption[figure][align=left]

\startuseMPgraphic{dummy}
 numeric u; u := 5cm;
 draw origin--(1u,1u);
 draw (0,1u)--(1u,0);
\stopuseMPgraphic

\placefigure[here]{A \dorecurse{20}{very\ } long
caption}{\useMPgraphic{dummy}}

\startbuffer
 \startcombination[1*2]
 {\useMPgraphic{dummy}}{\placefloatcaption[figure]{A
\dorecurse{20}{very\ } long caption}}
 {\useMPgraphic{dummy}}{\placefloatcaption[figure]{A
\dorecurse{20}{very\ } long caption}}
 \stopcombination
\stopbuffer

\placefigure[page]{none}{\getbuffer}

\stoptext

leads to

1 output file written: caption-mpgraph.1
Transcript written on caption-mpgraph.log.
[MP to PDF] (./caption-mpgraph.1)
(/home/renaud/texmf/tex/context/base/pdfr-ec.tex)
! Argument of \floatcaptionparameter has an extra }.
inserted text
 \par
to be read again
 }
\p!doifinsetelse ...onefalse \edef \!!stringa {#3}
 \ifx \!!stringa
\empty \el...
argument ...le \floatcaptionparameter }\c!align
 {\let
\captionovershoot \!...

\firstofoneargument #1-#1

\dopreparestackcaptionaut ...shoot \!!zeropoint }}
 \edef \captionhsize
{\the ...
...
l.11 ...ery\ } long caption}{\useMPgraphic{dummy}}

Bug ? BTW, I need a quick solution for my PhD dissertation... so any
suggestions are welcome. I've also tried \setupcombinations with
various align values but failed to find a good solution... I use
ConTeXt ver: 2006.09.07 17:50 MK II fmt: 2006.9.9

Cheers,

Renaud




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


Re: [NTG-context] Homogeneous captions for figures

2006-09-08 Thread Renaud AUBIN




Renaud AUBIN a crit:

  
  
  Hi all,
  
I wanted to obtain to obtain an homogeneous formatting for my captions
whenever I use \placefigure or \placefloatcaption within combination,
so I've tried \setupcaption and \setupcaptions but
...
Bug ? BTW, I need a quick solution for my PhD dissertation... so any
suggestions are welcome. I've also tried \setupcombinations with
various align values but failed to find a good solution... I use
ConTeXt ver: 2006.09.07 17:50 MK II fmt: 2006.9.9
  

I've just digged out the Peter Mnster's thread "[NTG-context]
table-caption: centred or not??"... I quote Peter:
"My goal: one-line captions centred, but multi-line captions justified normally."

That's exactly what I want for all my captions (even when I use combination + placefloatcaption)... Is there a solution to this problem ? (I didn't see this "bug" (?) in the collector)

Renaud



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


[NTG-context] How to make \placelistoffigures separate figures by chapter

2006-09-19 Thread Renaud AUBIN




Hi all,

Considering the following sample:

\starttext
\placelistoffigures[alternative=c,criterium=all,interaction=all,partnumber=no]
\useexternalfigure[testfig][cow][width=.5\textwidth]

\startbuffer
 \placefigure[here]{test 1}{\externalfigure[testfig]}
 \placefigure[here]{test 2}{\externalfigure[testfig]}
 \placefigure[here]{test 3}{\externalfigure[testfig]}
\stopbuffer

\dorecurse{3}{
 \chapter{A Chapter}
 \getbuffer
}

\stoptext

I want to obtain:

1.1 test 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 test 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 test 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

2.1 test 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 test 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.3 test 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

3.1 test 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.2 test 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.3 test 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Any idea ?


Renaud





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


Re: [NTG-context] How to make \placelistoffigures separate figures by chapter

2006-09-19 Thread Renaud AUBIN
Wolfgang Schuster a écrit :

Can you send a PDF of your file, I have no problems with your example
an get the result you wanted.

ConTeXt  ver: 2006.08.08 21:51  fmt: 2006.9.5  int: english  mes: english
ConTeXt  ver: 2006.09.07 17:50 MK II  fmt: 2006.9.8  int: english/english

Which ConTeXt version do you use.

Wolfgang
  


Hi Wolfgang,

See http://renojrl.lrv.uvsq.fr/lof.pdf

TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD
TeXExec |
TeXExec | testing interface en
TeXExec | pdfeTeX Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
TeXExec | ConTeXt ver: 2006.09.11 14:37 MK II fmt: 2006.9.12 int:
english/english

Renaud

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


Re: [NTG-context] How to make \placelistoffigures separate figures by chapter

2006-09-20 Thread Renaud AUBIN

Can you send a PDF of your file, I have no problems with your example
an get the result you wanted.

ConTeXt  ver: 2006.08.08 21:51  fmt: 2006.9.5  int: english  mes: english
ConTeXt  ver: 2006.09.07 17:50 MK II  fmt: 2006.9.8  int: english/english

Which ConTeXt version do you use.

Wolfgang
  

Did you noticed the blank line between 1.3/2.1 and 2.3/3.1 ?

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


Re: [NTG-context] How to make \placelistoffigures separate figures by chapter

2006-09-20 Thread Renaud AUBIN
Wolfgang Schuster a écrit :

\setuphead[chapter][after=\dowritebetweenlist{figure}{\blank[big]}] % the magic
  

Hi Wolfgang,

the magic is ... magic and do the trick...

Thank you very much... (I send my PhD dissertation tomorrow ;) )

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


[NTG-context] run a ruby script and use the standard output ???

2006-09-27 Thread Renaud AUBIN




Hi all,

Is it possible to run a ruby script from a context document during its
processing (I already know how to do that using \write18 but there is
maybe a better way...) then get the output of the script to display or
use it into the document. It's a little bit hard to describe so I have
a simple example:

\starttext
\def\vartest{3.124325234543523452435}
\write18{ruby ./myscript.rb \vartest
X}
\stoptext

with myscript.rb:

temp = ARGV[0]
puts "\nX " + (Math::sqrt(temp.to_f)).to_s + "
X\n"

I would store the result of puts into a variable usable within
ConTeXt...


Renaud



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


[NTG-context] 3D Artwork with ConTeXt

2006-09-28 Thread Renaud AUBIN





Hi all,

I'm now playing with u3d and since I'm at rookie level in ConTeXt dev,
I have (a lot?) of questions for you.
First, download http://www.nibua-r.org/ConTeXt/devel/3dartwork.tgz
and "texexec test-3dartwork". Since I use \externalfigure and u3d mean
nothing to ConTeXt, I obtain

TeXUtil | running texmfstart rlxtools --identify ./context.u3d
identify: no decode delegate for this image format `./context.u3d'.
RlxTools | unable to identify ./context.u3d

Ok, this is normal... I used \placefigure and \externalfigure for
convenience for the moment since I found natural to use them... How to
bypass RlxTools ?

Now, see t-3dartwork. There is a lot of work. The main idea is to split
\doPDFinsertiiidartwork into several macros ;) . I need help on:
1. What's the best way to define the following macro

\defineiiidartworkprojection[name][type=perspective|orthographic ,
nf=automatic|explicit , near=number, far=number, fov=number.]

You're welcome to give your opinion on naming convention ;)

2. Same question for
\defineiiidartworkview[name][bgr=number, bgg=number, bgb=number (or 3
floats for bgcol), projection=name, camera= 3 floats (but how?),
target= idem, up=idem]

I'll use ruby and a magic | (see [NTG-context] run a ruby script and
use the standard output ???) to calculate C2W and CO...

3. ... I need to define a macro to setup the 3D annot before to use it
by \externalfigure or with another brand new macro...

That's it for the moment...


Renaud



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


Re: [NTG-context] 3D Artwork with ConTeXt

2006-09-29 Thread Renaud AUBIN




Hi Hans,

Hans Hagen a crit:

  
Ok, this is normal... I used \placefigure and \externalfigure for 
convenience for the moment since I found natural to use them... How to 
bypass RlxTools ?

  
  hm, maybe we need a  feature to mark a  category as non-rlx-able

for the moment use  \chardef\figurerlxmode\zerocount
  

ok

  it's comparable to movies and so, as long as some kind of dimensions are 
known ... i'll look into that later
  

Dimensions are not known explicitly from the 3D Artwork.
\useexternalfigure allows us to set height and width as desired.
Moreover, for a given width, different height doesn't affect the
aspect of the 3D Artwork.

  
\defineiiidartworkprojection[name][type=perspective|orthographic , 
nf=automatic|explicit , near=number, far=number, fov=number.]

  
  try to use existing ones: auto instead of automatic
  

ok

  
I'll use ruby and a magic | (see [NTG-context] run a ruby script and 
use the standard output ???) to calculate C2W and CO...

  
  best is to make that pluggable, so that we can optimize such computations
  

What do you mean by "pluggable" ? Do you mean that we can turn this
"feature" on or off ? (for the moment, it's definitely off ;) )


Renaud


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


Re: [NTG-context] run a ruby script and use the standard output ???

2006-09-29 Thread Renaud AUBIN




\starttext

\input "|ls"

\stoptext

leads to 

(/usr/share/texmf-tetex/tex/latex/tools/.tex File ignored)
Runaway argument?
ls"
! Paragraph ended before \next was complete.
to be read again
 \par

???

Taco Hoekwater a crit:

  
Hans Hagen wrote:
  
  
piping: the latest versions of pdftex support this (i\ve forgotten the syntax, but taco who wrote the patch may remember)

  
  
piping syntax:

   \input "|ruby ./myscript.rb \vartest X"

the magic trick is the | symbol. With your current tex:

   \writ18{ruby ./myscript.rb \vartest X  whatever.tex}
   \input whatever % or something using \openin ...


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] run a ruby script and use the standard output ???

2006-09-29 Thread Renaud AUBIN




Taco Hoekwater a crit:
The
pipe symbol has to be non-active (\catcode`\|=12 )
  Taco
  

\starttext

\catcode`\|=12
\input "|ls -l"

\stoptext

! I can't find file `"|ls -l"'.
l.7 \input "|ls -l"


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


Re: [NTG-context] run a ruby script and use the standard output ???

2006-09-29 Thread Renaud AUBIN
Taco Hoekwater a écrit :

And all you need now is the latest pdftex -)

   http://sarovar.org/project/showfiles.php?group_id=106release_id=752

Taco
  

Thanks
Yes, I finally realized that... ;) I'm now on my way to upgrade it...


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


Re: [NTG-context] run a ruby script and use the standard output ???

2006-09-29 Thread Renaud AUBIN
Taco Hoekwater a écrit :

And all you need now is the latest pdftex -)

   http://sarovar.org/project/showfiles.php?group_id=106release_id=752

Taco
  

Is it normal that pdfetex.pool is no more built ?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] U3D support in progress

2006-10-11 Thread Renaud AUBIN





Hi all,

The 3dartwork module can be found here:
http://www.nibua-r.org/ConTeXt/devel/3dartwork.tgz
Someone could maybe process test-3dartwork on a windows machine and
report if there is trouble...

Warning: The use of the "piping" syntax is only possible with the last
pdfTeX (thanks to Taco). I use pdfTeX 3.141592-1.40.0-beta-20060928-2.2
(Web2C 7.5.5) to process test-3dartwork.

What I need now is:
1. How to call \input "| ls" (for example) from t-3dartwork instead of
test-3dartwork ?
2. To ConTeXt gurus: Could you check if my use of ConTeXt is "clean"...
(I will rewrite my rough view.rb... ;) )
3. To ConTeXt's community: feature requests ?

I've seen that octaga has released a x3d plugin for acrobat (included
with the last octaga player for windows). I'll work on it as soon as
the linux version will be released ! ;)

Cheers,

Renaud



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


[NTG-context] Fielstack and Layers for Presentation

2006-10-12 Thread Renaud AUBIN




Hi all,

I would use fieldstack with \getbuffer and overlays... Why the
following code doesn't work ? Is there another way to do that ?

TIA


Renaud

%%% stack.tex

\setupcolors[state=start]
\usemodule[pre-original]

\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]
\defineframedtext[FunnyText][frame=off,background="">
\def\StartFrame{\startFunnyText}
\def\StopFrame {\stopFunnyText }
\def\FrameTitle#1%
{\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}}
\setMPtext{FunnyFrame}{} % initialize the text variable
\startuseMPgraphic{FunnyFrame}
picture p ; numeric o ; path a, b ; pair c ;
p := textext.rt(\MPstring{FunnyFrame}) ;
a := unitsquare xyscaled(OverlayWidth,OverlayHeight) ;
o := BodyFontSize ;
p := p shifted (2o,OverlayHeight-ypart center p) ;
drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
b := a randomized (o/2) ;
fill b withcolor .85white ; draw b ;
c := center p ;
c := b intersectionpoint (c shifted (0,-o)--c shifted(0,o)) ;
p := p shifted (c-center p) ;
b := (boundingbox p) randomized (o/8) ;
fill b withcolor .85white ; draw b ;
draw p withcolor black;
setbounds currentpicture to a ;
\stopuseMPgraphic

\definelayer[bglayer][position=yes]
\setupbackgrounds[text][background="">
\setuplayer[bglayer][position=no,corner=bottom,height=\paperheight]


\starttext

\startbuffer[first]
 \setlayer[bglayer][x=.55\textwidth,y=.9\textheight,location=b]{
 \FrameTitle{Knuth}
 \StartFrame[width=.75\textwidth]
 \input knuth
 \StopFrame
 }
\stopbuffer
 
\startbuffer[second]
 \setlayer[bglayer][x=.625\textwidth,y=.8\textheight,location=b]{
 \FrameTitle{Zapf}
 \StartFrame[width=.75\textwidth]
 \input zapf
 \StopFrame
 }
\stopbuffer

\startbuffer[third]
 \setlayer[bglayer][x=.70\textwidth,y=.7\textheight,location=b]{
 \FrameTitle{Tufte}
 \StartFrame[width=.75\textwidth]
 \input tufte
 \StopFrame
 }
\stopbuffer

 \definesymbol[empty][]
 \definesymbol[one][{\getbuffer[first]}]
 \definesymbol[two][{\getbuffer[first,second]}]
 \definesymbol[three][{\getbuffer[first,second,third]}]


\Topic{Stacks \ Layers}

{\setupbodyfont[12pt]

\definefieldstack[sequence]
 [one,two,three]
 [frame=off,
 offset=none,
 clickin=JS(Walk_Field{sequence})]

{\fieldstack[sequence]}

\goto{next}[JS(Walk_Field{sequence})]
}

\stoptext



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


Re: [NTG-context] Fielstack and Layers for Presentation

2006-10-13 Thread Renaud AUBIN

Hi all,

After several trial-error experiments, I obtained what I want with the
attached code. I use only one background for the frames within
definesymbol because the use of several background failed (only the
last one is eventually displayed). Now, I would like to know if it is
possible to obtain a deterministic random-like shapes, i.e. to get
always the same shape for Overlay1...

Renaud

PS: Thanks to Peter, Andrea and Hans for the thread absolute positioning
of figures ;)

\setupcolors[state=start]
\usemodule[pre-original]

\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]
\defineframedtext[FunnyText][frame=off,background=FunnyFrame]
\def\StartFrame{\startFunnyText}
\def\StopFrame {\stopFunnyText }
\def\FrameTitle#1%
{\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}}
\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut{TEST}\hss}} %
initialize the text variable
\startuseMPgraphic{FunnyFrame}
picture p ; numeric o ; path a, b ; pair c ;
p := textext.rt(\MPstring{FunnyFrame}) ;
a := unitsquare xyscaled(OverlayWidth,OverlayHeight) ;
o := BodyFontSize ;
p := p shifted (2o,OverlayHeight-ypart center p) ;
drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
b := a randomized (o/2) ;
fill b withcolor .85white ; draw b ;
c := center p ;
c := b intersectionpoint (c shifted (0,-o)--c shifted(0,o)) ;
p := p shifted (c-center p) ;
b := (boundingbox p) randomized (o/8) ;
fill b withcolor .85white ; draw b ;
draw p withcolor black;
setbounds currentpicture to a ;
\stopuseMPgraphic

\starttext

\Topic{Stacks \ Layers}

\startbuffer[buf1]
  \FrameTitle{Overlay1}
  \StartFrame[width=.75\textwidth]
This is the first funny frame !
  \StopFrame
\stopbuffer

\startbuffer[buf2]
  \FrameTitle{Overlay2}
  \StartFrame[width=.75\textwidth]
This is the second funny frame !
  \StopFrame
\stopbuffer

\startbuffer[buf3]
  \FrameTitle{Overlay3}
  \StartFrame[width=.75\textwidth]
This is the third funny frame !
  \StopFrame
\stopbuffer

\definelayer[layer1][]
\definelayer[layer2][]
\definelayer[layer3][]

\setlayer[layer1][x=.05\textwidth,y=.05\textheight,location=br]{\getbuffer[buf1]}

\setlayer[layer2][x=.05\textwidth,y=.05\textheight,location=br]{\getbuffer[buf1]}
\setlayer[layer2][x=.1\textwidth,y=.1\textheight,location=br]{\getbuffer[buf2]}

\setlayer[layer3][x=.05\textwidth,y=.05\textheight,location=br]{\getbuffer[buf1]}
\setlayer[layer3][x=.1\textwidth,y=.1\textheight,location=br]{\getbuffer[buf2]}
\setlayer[layer3][x=.15\textwidth,y=.15\textheight,location=br]{\getbuffer[buf3]}

\defineoverlay[overlay1][{\placelayer[layer1]}]
\defineoverlay[overlay2][{\placelayer[layer2]}]
\defineoverlay[overlay3][{\placelayer[layer3]}]

\definesymbol[one][{\framed[width=\textwidth,height=.3\textheight,background=overlay1,frame=off]{}}]
\definesymbol[two][{\framed[width=\textwidth,height=.3\textheight,background=overlay2,
align=right,frame=off]{}}]
\definesymbol[three][{\framed[width=\textwidth,height=.3\textheight,background=overlay3,
align=right,frame=off]{}}]

\definefieldstack[sequence][one,two,three][height=fit,width=fit,frame=off,offset=overlay,clickin=JS(Walk_Field{sequence})]

{{\fieldstack[sequence]}}
\goto{next}[JS(Walk_Field{sequence})]

\stoptext

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


Re: [NTG-context] Fielstack and Layers for Presentation

2006-10-15 Thread Renaud AUBIN

Hi Peter, all,

What I can think of is to initialize the random seed value of MP (name?)
with the same value, every time before you fill a new layer. Another way
would be to add the 'random' parameters to your FrameTitle macro. But I
don't have much experience with random stuff, so there maybe better ways.

  

I use now

\startsetups[buf1]
\startMPinclusions
randomseed:=1;
\stopMPinclusions
  \FrameTitle{Overlay1}
  \StartFrame[width=.75\textwidth]
This is the first funny frame !
  \StopFrame
\stopsetups

\startsetups[buf2]
\startMPinclusions
randomseed:=2;
\stopMPinclusions
  \FrameTitle{Overlay2}
  \StartFrame[width=.75\textwidth]
This is the second funny frame !
  \StopFrame
\stopsetups

\startsetups[buf3]
\startMPinclusions
randomseed:=3;
\stopMPinclusions
  \FrameTitle{Overlay3}
  \StartFrame[width=.75\textwidth]
This is the third funny frame !
  \StopFrame
\stopsetups

and \setups{...}

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


[NTG-context] goto framed

2006-10-17 Thread Renaud AUBIN





Hi folks !

Consider the working example:

\usemodule[pre-original]

\starttext
\startbuffer[stack1]
draw (0,0)--(10cm,10cm);
\stopbuffer

\startbuffer[stack2]
draw (0,10cm)--(10cm,0);
\stopbuffer

\startbuffer[stack3]
draw (0,5cm)--(10cm,5cm);
\stopbuffer


\definesymbol[step 1][{\processMPbuffer[stack1]}]
\definesymbol[step 2][{\processMPbuffer[stack1,stack2]}]
\definesymbol[step 3][{\processMPbuffer[stack1,stack2,stack3]}]

\definefieldstack 
 [stack] 
 [step 1,step 2,step 3] 
 [frame=off]

\defineoverlay[cowbg][{\externalfigure[cow][width=10cm]}]

\framed[background="">

\goto{next}[JS(Walk_Field{stack})]

\stoptext

I naively (as always ? ;) ) tried to make the "framed" interactive with
\goto{\framed[background="">
but failed in my attempt...

Is there a way to solve this problem ?


Renaud





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


[NTG-context] U3D and presentation

2006-10-17 Thread Renaud AUBIN





Hi all,

I have tried to embed an U3D model within a presentation of mine and
pre-original interactions inhibit the U3D interaction...
The problem is described by
http://www.nibua-r.org/ConTeXt/devel/context3d.tgz
How to inhibit locally the interaction setted by pre-original ?

I have tried to enclose my u3d model in a \framed and the result is
that the 3D annotation is now activated but I can't interact with it
since a click leads to get the next page...

TIA

Renaud





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


[NTG-context] Presentation style: customizing the right interaction menu (list-related thread)

2006-10-18 Thread Renaud AUBIN





Hi all,

I'm trying to make a custom presentation style using pre-original.
Considering the following piece of code extracted from s-pre-01.tex

\startinteractionmenu[right]
 \placelist
 [Topic]
 [alternative=f, % command, % none,
 maxwidth=\hsize,
 width=\hsize,
 offset=0pt,
 criterium=all,
 align=left,
 style=\setsmallbodyfont\bfx]
\stopinteractionmenu

I would like to know if it is possible to obtain the following behavior:
1. The sample code:
__
\starttext

\TitlePage{Title Page\\pre-original}

\Topics{Some Nice Quotes}

\Topic{A Few}
\Subject{Knuth} \input knuth
\Subject{Tufte} \input tufte

\Topic{Some More}
\Subject{Zapf} \input zapf
\Subject{Bryson} \input bryson

\stoptext
__

2. The resulting right interaction menus:

(page 1) - ok, placelist[Topic]...

(page 2) - Topics page, idem

(page 3) - \Topic{A few}, idem

(page 4) - \Subject{Knuth}, here I would have the following right
menu (probably with smaller interline skips between the current Topic
and his Subject(s) and with a smaller font):
A few
 Knuth (highlighted)
 Tufte
Some more

(page 5) - \Subject{Tufte}
A few
 Knuth
 Tufte
(highlighted)
Some more

(page 6) - \Topic{Some more}
A few
Some more (highlighted)

(page 7) etc...

Now, I'm sure you all understand what I need ;)

Possible ? (I defend my PhD soon and it'll be nice to have this nice
feature)

Renaud




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


Re: [NTG-context] U3D and presentation

2006-10-18 Thread Renaud AUBIN




A solution consists to use \setuptexttexts[][] then
\setuptexttexts[\GotoNextPage][] on the next slide to recover the
\GotoNextPage behavior

Renaud AUBIN a crit:

  
  How to
inhibit locally the interaction setted by pre-original ?
  



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


Re: [NTG-context] Context and CD labels

2006-10-18 Thread Renaud AUBIN
Maurício a écrit :

Has anyone ever tried to use Context to create music CD labels? Any 
tips on what should I do, pages I can read or results I can expect?
  

Hi Mauricio,

I have never tried to create CD labels but from my experience you should
use overlay... Could you describe the geometry of the labels you use (if
you use some) ?
I can make an example without it but it can help to provide a full one...
I need:
- width and height of the page (if non-standard)
- number of label per page and position of each label's center
relatively to a corner of the page...

A 2 min experiment gives:

\setuppapersize[A4][A4]
\setuppagenumbering[state=stop]
\setupcolors[state=start]

\startuseMPgraphic{CDShape}
draw fullcircle scaled 12cm;
draw fullcircle scaled 4cm;
\stopuseMPgraphic

\starttext
\startproperty[hidden]
I need some text to get the page... but also need to hide this text !
\stopproperty

\definelayer[PageLayer][position=yes]
\setupbackgrounds[page][background=PageLayer]
\setuplayer[PageLayer][position=no,corner=bottom,height=\paperheight]

% sample geometry
\setlayer[PageLayer][x=.5\paperwidth,y=.25\paperheight,location=c]{\useMPgraphic{CDShape}}
\setlayer[PageLayer][x=.5\paperwidth,y=.75\paperheight,location=c]{\useMPgraphic{CDShape}}

\page
\startproperty[hidden]
I need some text to get the page... but also need to hide this text !
\stopproperty
% another sample geometry
\setlayer[PageLayer][x=.35\paperwidth,y=.30\paperheight,location=c]{\useMPgraphic{CDShape}}
\setlayer[PageLayer][x=.65\paperwidth,y=.70\paperheight,location=c]{\useMPgraphic{CDShape}}

\stoptext

You can draw, clip, write whatever you want and where you want... The
circular shape are just to demonstrate positionning and can help to check...

You could use Metafun to do some advanced text manipulation (like shaped
texts or followtoken texts...)

No more to say...


Renaud


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


Re: [NTG-context] Context and CD labels

2006-10-19 Thread Renaud AUBIN
Maurí­cio a écrit :

   I don't have the exact dimenstions. You can check it here (Open 
Office document):

www.pimaco.com.br/files/gabaritos/Gabarito_CDpply_CARTA.sxw
  

dead link... but it's ok with the word gabaritos... The format you use
is letter, right (just to be sure since here we use A4) ?

   I will learn Metafun right now. Do you think I can get Context to 
write a music list in a way that the text fits automatically into the 
label? I would like to create a standard template for labels so that I 
could change only the music list and title. That list could be as small 
as 3 songs or as big as 30 songs organized into sections.
  

You could probably do that with shaped text but for section, I'm affraid
that you'll have to manage it by hand (can't use \section in shaped text)...
I'll make an example asap...

Renaud

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


[NTG-context] list ?

2006-10-19 Thread Renaud AUBIN





Hi all,

Considering the fact that I have no answer for the thread
"[NTG-context] Presentation style: customizing the right interaction
menu (list-related thread)", I decided to reformulate my problem...

After some experiments, I have the following code:

\definehead [Topic] [chapter]
\definehead [Subject] [section]

\setuplist[Topic][alternative=f,criterium=all,align=left]
\setuplist[Subject][alternative=f,criterium=chapter,align=left]

\starttext

\Topic{Topic 1}
\Subject{Subject 1}
\Subject{Subject 2}
\Subject{Subject 3}

\placelist[Topic,Subject]

\Topic{Topic 2}
\Subject{Subject 1}
\Subject{Subject 2}
\Subject{Subject 3}

\stoptext

Considering the fact that I use criterium=chapter in
\setuplist[Subject], I thought that \placelist[Topic,Subject] leads to:

Topic 1
Subject 1
Subject 2
Subject 3
Topic 2

but unfortunately, that's not the case and I don't understand why...
I've also tried some setup with combinedlist but nothing works... Could
someone explain why criterium as no effect... Moreover, I don't
understand what coupling= on|off does...

Renaud




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


Re: [NTG-context] Context and CD labels

2006-10-20 Thread Renaud AUBIN
Maurí­cio a écrit :

   It's working now, I've just downloaded that file. I belive that paper 
is letter, although A4 is usually a lot more common here.
   Sections are not that important, as long as I can have different 
formats for some lines of text, and I'm sure that's not a problem. For 
sure, an example would be great!
  


I'll let you do the job for positionning. You'll find as attached an
example... Since it's not obvious to me to make a shapetext with a holed
shape (I have tried some tricks but failed), I reserved 2 text areas:
1. (test 1) song list for example
2. (test 2|framedtext) Author  title

This example assumes that :
- the first label is centered on x=.5\paperwidth y=.75\paperwidth
- the second is centered on x=.5\paperwidth y=.25\paperheight

You can even put a background image if you want, using overlay and clip...

Renaud
\setuppapersize[A4][A4]
\setuppagenumbering[state=stop]
\setupcolors[state=start]

\useMPlibrary[txt]

\startuseMPgraphic{test 1}
path p;
numeric orad, irad; orad := 6cm; irad := 2cm;
path outercircle; outercircle := fullcircle scaled 2orad;
path innercircle; innercircle := fullcircle scaled 2irad;
path outershape; 
outershape := outercircle cutbefore((0,irad)--(orad,irad))
cutafter((0,-irad)--(orad,-irad));
path innershape;
innershape := reverse (innercircle cutbefore((0,irad)--(irad,irad))
cutafter((0,-irad)--(irad,-irad)));
p:= outershape--innershape--cycle;
build_parshape(p,6pt,0,0,\baselinedistance,\strutheight,\strutdepth,\strutheight) ;
%draw p withpen pencircle scaled 1pt ;
\stopuseMPgraphic

\startuseMPgraphic{test 2}
path p;
numeric orad, irad; orad := 6cm; irad := 2cm;
path outercircle; outercircle := fullcircle scaled 2orad;
path innercircle; innercircle := fullcircle scaled 2irad;
path outershape; 
outershape := outercircle rotated 90
cutbefore((0,-irad)--(orad,-irad))
cutafter((0,irad)--(orad,irad));
path innershape;
innershape := reverse (innercircle rotated 90
cutbefore((0,-irad)--(irad,-irad))
cutafter((0,irad)--(irad,irad)));
p:= outershape--innershape--cycle;
build_parshape(p,6pt,0,0,\baselinedistance,\strutheight,\strutdepth,\strutheight) ;
%draw p withpen pencircle scaled 1pt ;
\stopuseMPgraphic

\defineoverlay[test 1][\useMPgraphic{test 1}]
\defineoverlay[test 2][\useMPgraphic{test 2}]

\startuseMPgraphic{CDShape}
draw fullcircle scaled 12cm;
draw fullcircle scaled 4cm;
\stopuseMPgraphic

\starttext

\setupframed[offset=overlay,align=normal,frame=off,width=\parwidth,height=\parheight]

\startproperty[hidden]
I need some text to get the page... but also need to hide this text !
\stopproperty

\definelayer[PageLayer][position=yes]
\setupbackgrounds[page][background=PageLayer]
\setuplayer[PageLayer][position=no,corner=bottom,height=\paperheight]

%% check-up shape
\setlayer[PageLayer][x=.5\paperwidth,y=.75\paperheight,location=c]{\useMPgraphic{CDShape}}

%% text
\startshapetext[test 1]
\input tufte
\stopshapetext
% x = .5\paperwidth (210mm) - orad
\setlayer[PageLayer][x=45mm,y=.75\paperheight,location=r]{\framed[background=test 1]{\getshapetext}}

\startshapetext[test 2]
\input knuth
\stopshapetext
% x = .5\paperwidth (210mm) + orad
%\setlayer[PageLayer][x=165mm,y=.75\paperheight,location=l]{\framed[background=test 2]{\getshapetext}}

\setlayer[PageLayer][x=145mm,y=.75\paperheight,location=c]{\framedtext[width=4cm,align=middle,frame=off]{Author \ Title\crlf and more if you want}}

%% check-up shape
\setlayer[PageLayer][x=.5\paperwidth,y=.25\paperheight,location=c]{\useMPgraphic{CDShape}}

% text
\startshapetext[test 1]
\input zapf
\stopshapetext
% x = .5\paperwidth (210mm) - orad
\setlayer[PageLayer][x=45mm,y=.25\paperheight,location=r]{\framed[background=test 1]{\getshapetext}}

\startshapetext[test 2]
\input knuth
\stopshapetext
% x = .5\paperwidth (210mm) + orad
\setlayer[PageLayer][x=165mm,y=.25\paperheight,location=l]{\framed[background=test 2]{\getshapetext}}


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


Re: [NTG-context] Directories of pictures

2006-10-20 Thread Renaud AUBIN




Maurcio a crit:

 Hi,

   When I use \externalfigure inside of \placefigure, Context can only 
find filenames in the current directory, i.e., the directory where I'm 
executing texexec. How can I instruct Context to look for files on the 
same directory of my .tex file?

   Thanks,
   Maurcio

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


  


Use \setupexternalfigures[directory={./src/images}] for example.

Renaud



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


Re: [NTG-context] list ?

2006-10-20 Thread Renaud AUBIN




Hi Hans,

I succeed to do what I want thanks to you (once more ;) ) !

I'll put the resulting presentation online at least at the end of the
next week (u3d + layer + custom pre-original + animation with JS and
fieldstack + program runs including mplayer runs with linux + ...
robotics ?)

Renaud

Hans Hagen a crit:

  maybe future version of context will provide more control; for the moment, stick to:  


\definehead [Topic]   [chapter]
\definehead [Subject] [section]

\newcounter\MyTopicCounter

\startsetups MyTopicList
\blank
\doglobal\increment\MyTopicCounter
\doglobal\newcounter\MySubjectCounter
\placelist[Topic][criterium=text,after=\setups{MySubjectList}]
\stopsetups
\startsetups MySubjectList
\doglobal\increment\MySubjectCounter
\doifelse{\MyTopicCounter}{\MySubjectCounter} {
\placelist[Subject]
} {
% whatever
}
\stopsetups

\starttext

\Topic{first}  \Subject{one}   test \Subject{two}  test \setups[MyTopicList] \page
\Topic{second} \Subject{alpha} test \Subject{beta} test \setups[MyTopicList] \page

\stoptext
  




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


Re: [NTG-context] paragraph with a shape

2006-10-23 Thread Renaud AUBIN




Hi Victoria,

At first, draw a mouth-like shape as a closed path with metapost then
read http://www.pragma-ade.com/general/manuals/metafun-s.pdf (pages
399--424).
The ML is a good source too (See "[NTG-context] Context and CD labels"
for example)...

Renaud

Victoria Brown a crit:

  How do I shape a paragraph like a mouth?
   
  Get your email and more, right on the 
new Yahoo.com
  

___
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] ConTeXt on Debian: The wiki entry

2006-10-23 Thread Renaud AUBIN
Hi Frank,

A ConTeXt's package for debian will be great !

Frank Küster a écrit :

Hi everybody,

this mail has a double purpose.  At the end, there's a call for testers
of a new (planned) Debian ConTeXt package that would be updated more
frequently than now (at least in unstable and testing), where ConTeXt is
tied to teTeX's or TeXlive's release cycles.  But first, I'd like to
talk about 

http://wiki.contextgarden.net/Debian_installation

Are some of the people around who wrote this?  I found some information
in it misleading and in part just wrong (this has already been pointed
out two weaks ago by plink), and have started to edit the page to
change the parts that give us, the Debian TeX maintaines, most
headache.  But in the lower part, Steps to finish a first context
upgrade, I felt lost.  If these steps are really needed, then there's
something seriously wrong in Debian's (and probably upstream's)
packaging of ConTeXt.  Therefore I didn't just change the text to
reflect how I think it should work.  Instead, we should try to figure
out together whether it in fact does not work as it should, and then fix
the Debian packages (hopefully still possible for etch).

  

My contributions was to copy Install a Metapost update and Install a
pdfTeX update from tetex 3.0 Install to Debian Install...
From my pov, ConTeXt is really great because of the reactivity of the
devs. As a consequence, new astonishing features are often added... but
there is a price: update often to the latest realease + install the
latest metapost and the latest pdfTeX (moreover, here I need the latest
beta of pdfTeX).

IMHO, it will be nice if the deb provides debian's specifics +
interactiv cont-tmf.zip download + install according debian specifics...
but there will be dependencies problems... Maybe a full standalone
context is the solution (with metapost, pdfTeX and all the binaries we
need coexisting with the tetex's one) ? Dunno...

Last point, it could be nice to have beta packages for ConTeXt an m-bib
(separated)...

So the specific question I have are:

- Is it intended that context formats end up in $TEXMF/web2c/pdfetex/?
  If yes, why is that so?  If not, we should rather find out why it
  happens and fix it.
  

It's the way ConTeXt does... ConTeXt's gurus have surely good reasons so
I let them answer...

- Why does it make a difference if the formats are created by fmtutil
  instead of texexec (Except for the output directory)?  Should the
  upstream packaging be changed so that fmtutil is never used, but
  texexec, or should fmtutil be fixed to produce the same as texexec?  
  

idem

Finally, here comes Norbert Preining's Call for Testers:

Dear all!

We = Debian TeX maintainers searching for users of the Debian Operating
Systems which are also using ConTeXt.

Currently Debian etch (testing) and sid (unstable) contains packages for
TeX live 2005. But this contains a bit old ConTeXt version, so users are
asking us to update ConTeXt.

We have prepared a updated ConTeXt package for Debian, based on the
latest released version (2006.08.08), and would ask you to help use
testing, as we are not experienced in ConTeXt type settings. I checked
some simple documents from the ConTeXt Garden, and they worked, but more
detailed testing would be nice.

If you have interest, please contact us at
   [EMAIL PROTECTED]
or, if you have a bit experience, you can straight away add
   deb http://www.tug.org/texlive/Debian/ context/
to your /etc/apt/sources.list file and install context. After this,
please tell us our experiences/failures/suggestions.

Thanks a lot and all the best

  

OK, thanks, I'll do it as soon as I have a little more time (after my
PhD defense... ;) )

Regards, Frank
  


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


[NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )

2006-10-26 Thread Renaud AUBIN




Hi all,

Maybe some of yours (from the ConTeXt POV) can be interested by my PhD
dissertation and my presentation (both in french)...

http://www.nibua-r.org/ConTeXt/PhD/

The slides are made to work under linux with sh script to run mplayer
or custom simulations... These scripts will obviously not work without
the movies or my simulator binaries...


Renaud




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


Re: [NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )

2006-10-27 Thread Renaud AUBIN
Hi M.J.,

M.J. Kallen a écrit :

Maybe Renaud can tell us a little more about the details of the typesetting? 
What font did you use and what program did you use to make the plots (I 
particularly like the fact that the font in the plots is the same as in the 
text!), it reminds me a little of R plots, but I may be wrong... And the 
flowcharts are made with the chart module if I'm not mistaken?
  

I use lucida fonts (http://www.tug.org/store/lucida/order.html). The
plots are made with t-gnuplot (http://wiki.contextgarden.net/Gnuplot)
thanks to Mojca's work. flowcharts are made with the chart module,
you're right.

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


Re: [NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )

2006-10-27 Thread Renaud AUBIN




Hi Luigi,

luigi scarso a crit:

  Well, I like it.
Is there any examples on wiki of these things (maybe I have lost some
discussions about it)?
  

Not yet from me on the wiki... In fact, I have began ConTeXt last year
specially to compose my dissertation. As a consequence, if you
googleize "NTG ConTeXt Renaud Aubin", you'll have an idea of my step by
step approach to PhD writting with ConTeXt... ;)
I'll clean up, comment the source and put it online asap. You can find
the source here (for the moment):
http://renojrl.lrv.uvsq.fr/perso/projects/phd/

Renaud


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


  1   2   3   >