[NTG-context] url compared to hyperref

2006-10-20 Thread Marko Schütz
When using hyperref and displaying the resulting PDF in xpdf, I see
links that are active. 

I tried achieving the same with useURL, url and goto, but the
resulting links aren't active in xpdf. I have to use acroread to have
active links.

Is there a compelling reason for this behavior?

Thanks,

Marko

pgp1ZO68Ry55j.pgp
Description: PGP signature
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] frame thickness

2006-10-20 Thread Hans Hagen
andrea valle wrote:
 Hi to all,

 sorry this should be obvious but I cannot find it in the docs.
 How do I set in \setupframed the frame thickness (i.e. the thickness 
 of the surrounding border)?
   
\framed[rulethickness=1mm]{Thick as can be} 



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] textrules

2006-10-20 Thread Hans Hagen
Aditya Mahajan wrote:
 On Thu, 19 Oct 2006, Thomas A. Schmitz wrote:

   
 On Oct 19, 2006, at 5:04 PM, Peter Rolf wrote:

 
 Hi Thomas,


   
 add

 \showskips

 to your source (better a small one). I just tested a bit (between my
 current mp examples) and 'inbetween={\blank[2*big]}' and
 'after={\blank[2*big]}' should do the job. If you dare, ask Hans about
 the meaning of 'before' ;)


 Greetings, Peter

   
 Thanks Peter,

 that was very helpful. I still had to tweak a bit, but by combining
 inbetween and after, I got an acceptable result. So the mystery
 thickens: what is before? :-)
 


 \textrule[top] does

 before
 --- (rule)
 inbetween

 \textrule[bottom] does

 inbetween
 --
 after

 \textrule with no argumet is equal to \textrule[bottom]

 There is a \domiddletextrule that does

 inbetween
 
 inbetween

 but this is not interfaced with \textrule. It only becomes active 
 inside a \starttextrule.

 \starttextrule{whatever}
 \input knuth
 \textrule
 \input knuth
 \stoptextrule


 To use this, you can define your own rule as

 \def\midtextrule{\dosinglegroupempty\domiddletextrule}

 \setuptextrules[inbetween={\blank[big]}]

 And midtextrule will use inbetween on both side.

 Hans, does it make sense to add this to core-rul?

 \def\complextextrule[#1]%
{\processaction
   [#1]
   [  \v!top=\let\next\dotoptextrule,
  \v!bottom=\let\next\dobottomtextrule,
  middle=\let\next\domiddletextrule, %--- Added
   
\v!middle -)

added
\s!default=\let\next\dobottomtextrule,
\s!unknown=\let\next\dobottomtextrule]%
 \dosinglegroupempty\next}


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


-- 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] 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] list ?

2006-10-20 Thread Hans Hagen
Renaud AUBIN wrote:

 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...
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


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] frame thickness

2006-10-20 Thread andrea valle
Fantastic. I'm having great time in creating a(n academic) poster with 
ConTeXt.

By the way, is there a way where the command is listed?

Thanks

-a-


On 20 Oct 2006, at 09:37, Hans Hagen wrote:

 andrea valle wrote:
 Hi to all,

 sorry this should be obvious but I cannot find it in the docs.
 How do I set in \setupframed the frame thickness (i.e. the thickness
 of the surrounding border)?

 \framed[rulethickness=1mm]{Thick as can be}



 -
   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


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

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


Re: [NTG-context] frame thickness

2006-10-20 Thread andrea valle
 By the way, is there a way where the command is listed?


(I mean, the option ruledthickness indeed)

-a-


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

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


Re: [NTG-context] frame thickness

2006-10-20 Thread Wolfgang Schuster

2006/10/20, andrea valle [EMAIL PROTECTED]:
 By the way, is there a way where the command is listed?(I mean, the option ruledthickness indeed)
-a-Andrea Valle

Hi Anrea,

the option rulethickness for the framed macro is nowhere listed in
one if the manuals, it is only mentioned in the wiki als parmater
for natural Tables http://wiki.contextgarden.net/TABLE#Make_a_cell_bold
and at the page for the animated euro sign 
http://wiki.contextgarden.net/EuroAnim.

It is currently missing in the commanindex setup-en.pdf (and the
neccesary file cont-en.xml).

The best sources are only the sources if you want to know which 
options are available for every command.

Wolfgang

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


Re: [NTG-context] frame thickness

2006-10-20 Thread Hans Hagen
Wolfgang Schuster wrote:

  
 It is currently missing in the commanindex setup-en.pdf (and the
 neccesary file cont-en.xml).
hm, interesting since it's rather old; added
  
Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] frame thickness

2006-10-20 Thread andrea valle
So, command list is edited by hand?
It is not possible to have something like doxygen to generate a command 
list from source?

Just for my curiousity.
(It will be always updated, and won't require additional efforts).

-a-

On 20 Oct 2006, at 11:38, Hans Hagen wrote:

 Wolfgang Schuster wrote:


 It is currently missing in the commanindex setup-en.pdf (and the
 neccesary file cont-en.xml).
 hm, interesting since it's rather old; added

 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


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

___
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 Maurício

 (...)
 
 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
 (...)

   Thanks! That's exactly what I need.

   Best,
   M.

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


[NTG-context] Directories of pictures

2006-10-20 Thread Maurício
   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,
   Maurício

___
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] Directories of pictures

2006-10-20 Thread Jörg Hagmann
Use:

\setupexternalfigures[directory={path_to_your_figures,another_path}]

Cheers, Jörg
On Oct 20, 2006, at 2:34 PM, Maurício wrote:

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,
Maurício

 ___
 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] Fitz, MuPDF, Apparition

2006-10-20 Thread luigi scarso
While downloading latest ghostscript, I found some news at www.ghostscript.com.
At ccxvii.net/apparition
there are MuPDF and Fitz where
MuPDF is a pdf parser for Fitz, a new graphics library.
Apparition is a pdf viewer that seems very good (I try it and it is
clean and quick.)

Does anybody know something about them ?

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


Re: [NTG-context] frame thickness

2006-10-20 Thread Hans Hagen
andrea valle wrote:
 So, command list is edited by hand?
 It is not possible to have something like doxygen to generate a command 
 list from source?
   
even then it has to be defined i.e. edited ; maybe some day it will be 
possible to generate the \setup commands from the formal definition [the 
reverse] (and also add some checking) but i'll happily wait with that 
till i have a faster computer.

spreading the definitions across the source (i.e. splitting up 
cont-en.xml) is an option but we don't gain anything; actually, long ago 
those defs were all over the place
 Just for my curiousity.
 (It will be always updated, and won't require additional efforts).
   
tex is not a regular programming language -) 

Hans 


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] url compared to hyperref

2006-10-20 Thread Sanjoy Mahajan
Here is an example that I put on the wiki (because I kept forgetting
how to do it and wanted one place to find it again, but I never can
find it quickly there anyway, so now it's in the list archives at
least):

\setupcolors[state=start]
\setupinteraction[state=start,color=middlered]
\useURL [garden][http://contextgarden.net][][Context garden]
\starttext
The \from[garden] is useful.
\stoptext

I just tested it on the live context and it works fine with an active
link in the pdf file.  But it didn't work in the 2006.10.05 beta (the
space in the Context garden caused problems).

Maybe your example didn't have \setupinteraction[state=start] ?

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
 --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
___
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 Mari Voipio



On Fri, 20 Oct 2006, Jörg Hagmann wrote:

Use:
\setupexternalfigures[directory={path_to_your_figures,another_path}]


And you can even use relative paths and go 'down' in the directory tree:

\setupexternalfigures[directory={../pdf-images,../png-images}]


See also: http://wiki.contextgarden.net/Using_Graphics



Mari
(who's had her share of 'why in the bleep doesn't it found that pic')___
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 Maurício
   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?
  
 (...)
 \placefigure[here]{none}{
 \startcombination[2*4]
 {\externalfigure[courbe1][width=.4\textwidth]}{}
 {\externalfigure[courbe2][width=.4\textwidth]}{}
 (...)
 
 texexec sample give satisfaction...

   That's what I'm doing, but Context looks for the .png files in the 
current directory.

 
 My previous answer assumes that your pictures are in ./src/images/
 

   With your previous example, I would have to place my pictures in 
current_dir/scr/images. I would like to put my pictures in 
tex_file_dir/scr/images, and have Context to find them no matter which 
directory I'm in when I execute texexec. Also, I would like to use 
relative paths, not absolute paths.

   Best,
   Maurício

___
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 Maurício
Mari Voipio wrote:
 
 
 On Fri, 20 Oct 2006, Jörg Hagmann wrote:
 Use:
 \setupexternalfigures[directory={path_to_your_figures,another_path}]
 
 And you can even use relative paths and go 'down' in the directory tree:
 
 \setupexternalfigures[directory={../pdf-images,../png-images}]
 
 (...)

   But those would be relative to the shell current directory, not to 
tex file directory.

   Best,
   Maurício

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


Re: [NTG-context] Fitz, MuPDF, Apparition

2006-10-20 Thread Hans Hagen
luigi scarso wrote:
 While downloading latest ghostscript, I found some news at 
 www.ghostscript.com.
 At ccxvii.net/apparition
 there are MuPDF and Fitz where
 MuPDF is a pdf parser for Fitz, a new graphics library.
 Apparition is a pdf viewer that seems very good (I try it and it is
 clean and quick.)

 Does anybody know something about them ?
   
no, just downloaded it .. no transparencies and problems with say show-man.pdf 
(obj numbers) but it's pretty fast ... promissing 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] Directories of pictures

2006-10-20 Thread Hans Hagen
� wrote:
With your previous example, I would have to place my pictures in 
 current_dir/scr/images. I would like to put my pictures in 
 tex_file_dir/scr/images, and have Context to find them no matter which 
 directory I'm in when I execute texexec. Also, I would like to use 
 relative paths, not absolute paths.
   
./src/images 

you can see what happens with 

\traceexternalfigurestrue 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] 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] frame thickness

2006-10-20 Thread andrea valle
Thanks for the search algorithm :-)

Best
-a-

On 20 Oct 2006, at 16:52, Aditya Mahajan wrote:



 On Fri, 20 Oct 2006, Wolfgang Schuster wrote:

 2006/10/20, andrea valle [EMAIL PROTECTED]:

 By the way, is there a way where the command is listed?


 (I mean, the option ruledthickness indeed)

 -a-


 Andrea Valle


 Hi Anrea,

 the option rulethickness for the framed macro is nowhere listed in
 one if the manuals, it is only mentioned in the wiki als parmater
 for natural Tables 
 http://wiki.contextgarden.net/TABLE#Make_a_cell_bold
 and at the page for the animated euro sign
 http://wiki.contextgarden.net/EuroAnim.

 It is currently missing in the commanindex setup-en.pdf (and the
 neccesary file cont-en.xml).

 The best sources are only the sources if you want to know  which
 options are available for every command.

 True indeed. This is what I usually do to find out about an option. 
 Search
 texwebshow for options. If it is there, read the manual for the
 description.

 If I do not find any relevant option, but know that ConTeXt ought to 
 have
 an option for what I want (which usually means that it will), look in 
 the
 sources. My strategy for searching the sources involves finding out 
 which
 source file defines the option. (search on sources.contextgarden.net 
 work
 for most cases, I use grep for the cases which are more trickier to 
 find).
 Most (all?) commands come with an accompanying \setup command, which
 initiallizes all the options for the command. This way, one knows 
 atleast
 which options a command will accept. In most cases guessing the
 functionality of an option is easy, as ConTeXt uses a consistent 
 interface
 for everything. Sometimes, when I have no clue what that option does, I
 search where the option is used. Most options are stored using
 \getparameters[\??xx] where xx is a two letter abbreviation. Then you 
 can
 search for \@@xxoption to see where it is used. That way, you can 
 usually
 guess what an option does.

 The sources also have some examples that are usually useful in
 understanding a few tricks about the command.

 If I still can not figure out, I ask on the mailing list.

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


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

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