Re: [NTG-context] help needed

2007-09-08 Thread Andrea Valle

You can find useful to look here:

http://wiki.contextgarden.net/Mac_Installation

MacTeX is typically a no trouble installation

Best
-a-

On 8 Sep 2007, at 07:21, David Rogers wrote:


On Fri, 07 Sep 2007 18:53:49 +0200, Hans Hagen wrote:

Francis Derive wrote:

Bonjour Mesdames, Mesdemoiselles, et Messieurs,


That means I need your help.
I feel quite an idiot, but I don't know what to do with - say the
cont-tmf folder I downloaded for ma Mac Os X Tiger : looking  
inside, I

don't see any application...



I suggest you try an application called TeXShop. It is a nice OS X
application that allows you to use ConTeXt.

You can find it here:
http://www.uoregon.edu/~koch/texshop/texshop.html

David
__ 
_
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
__ 
_


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.

(Annabel Chong)




___
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] Margins around figures

2007-09-08 Thread Mojca Miklavec
On 9/7/07, Kumar Appaiah wrote:
 On Fri, Sep 07, 2007 at 09:18:30AM +0200, Oliver Buerschaper wrote:
  Perhaps
 
  setbounds currentpicture to boundingbox currentpicture enlarged 5mm;
 
  at the end of your MetaPost drawing might do what you want?

 That's probably in the right direction, but the MetaPost newbie I am,
 I am unable to figure out the error:

 mpost seminar.mp
 This is MetaPost, Version 0.993 (Web2C 7.5.6)
 (seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp)
 (/usr/share/texmf-texlive/metapost/base/boxes.mp)
  boundingbox.currentpicture.enlarged1cm
 ! Improper `clip'.
 to be read again
;
 l.26 ...o boundingbox currentpicture enlarged 1cm;

 ?

 What error could this be? The line I added is:
  setbounds currentpicture to boundingbox currentpicture enlarged 1cm;

Since plain metapost doesn't know about ConTeXt (metafun) extentions,
you need to:
- either add a line input metafun ; at the top of your metapost files
- or run mptopdf seminar.mp which will run metapost+create PDF
instead of running mpost/mp seminar.mp first and convert to PDF
later

When including a picture in ConTeXt, one options could also be to use:
\framed[frame=off,offset=1cm,strut=no,background=color,backgroundcolor=white]%
{\externalfigure[...]}
But that's slightly long and tedious, unless you write your own macro
wrapper around it.

Mojca
___
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] visualization problem

2007-09-08 Thread Andrea Valle

Dear all,

I've created this.
http://www.cirma.unito.it/research/alternando/photoBook.pdf

(it's 5 mB)

The cover and the separators in the pages are generated stretching on  
layers the same image (a pdf generated by Metapost)


% cover
\setlayer   [mybg]  
[x=0\paperwidth, y=0\paperheight]
{\color[lightgray]\externalfigure[alternando]
[height=1\paperheight,width=1\paperwidth]}
% red horizontal separator
\setlayer   [mybg2] 
[x=0\paperwidth, y=.45\paperheight]
{\color[darkred]\externalfigure[alternando]
[height=.1\paperheight,width=\paperwidth]}
% gray vertical separator
\setlayer   [mybg3] 
[x=.9\paperwidth, y=0\paperheight]
{\color[lightgray]\externalfigure[alternando]
[height=\paperheight,width=.05\paperwidth]}


In Preview.app on macosx it's all displayed as expected
(this is a png snapshot of the horizontal separator:
http://www.cirma.unito.it/research/alternando/hbar.png
 ).
 But Acrobat displays the separators (the cover is ok) as a sequence  
of filled boxes. Can it depends on some resolutions setting? Or what?


-a-

--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.

(Annabel Chong)




___
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] Margins around figures

2007-09-08 Thread Kumar Appaiah
Dear Mojka,

On Sat, Sep 08, 2007 at 11:14:30AM +0200, Mojca Miklavec wrote:
 Since plain metapost doesn't know about ConTeXt (metafun) extentions,
 you need to:
 - either add a line input metafun ; at the top of your metapost files

This works just as I expect! Many thanks!

 - or run mptopdf seminar.mp which will run metapost+create PDF
 instead of running mpost/mp seminar.mp first and convert to PDF
 later

This gives me some font issues, but I am not really bothered, since
the excitement of seeing the first solution work has stopped me from
probing further here.

 When including a picture in ConTeXt, one options could also be to use:
 \framed[frame=off,offset=1cm,strut=no,background=color,backgroundcolor=white]%
 {\externalfigure[...]}
 But that's slightly long and tedious, unless you write your own macro
 wrapper around it.

I understand, but it will be useful elsewhere.

Again, many thanks!

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
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] visualization problem

2007-09-08 Thread Peter Rolf
Andrea Valle schrieb:
 Dear all,
 
 I've created this.
 http://www.cirma.unito.it/research/alternando/photoBook.pdf
 
 (it's 5 mB)
 
 The cover and the separators in the pages are generated stretching on
 layers the same image (a pdf generated by Metapost)
 
 % cover
 \setlayer [mybg]
 [x=0\paperwidth, y=0\paperheight]
 {\color[lightgray]\externalfigure[alternando]
 [height=1\paperheight,width=1\paperwidth]}
 % red horizontal separator
 \setlayer [mybg2]
 [x=0\paperwidth, y=.45\paperheight]
 {\color[darkred]\externalfigure[alternando]
 [height=.1\paperheight,width=\paperwidth]}
 % gray vertical separator
 \setlayer [mybg3]
 [x=.9\paperwidth, y=0\paperheight]
 {\color[lightgray]\externalfigure[alternando]
 [height=\paperheight,width=.05\paperwidth]}
 
 
 In Preview.app on macosx it's all displayed as expected 
 (this is a png snapshot of the horizontal separator: 
 http://www.cirma.unito.it/research/alternando/hbar.png
  ). 
  But Acrobat displays the separators (the cover is ok) as a sequence of
 filled boxes. Can it depends on some resolutions setting? Or what?

hi andrea,

zoom to a level of 6400% and you can give the answer yourself. this is
just the way acrobat's rip is interpreting your separator gfx.

you can try to remove the horizontal border lines (also too fine for
printing). additionaly you can use (slightly) alternating background
colors per line to emphasize the horizontal borders (like in exxel).

btw: very nice location (only sunlight is missing); please drop a note
when the final pdf is released :)

best wishes, peter

___
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] itemize start=2

2007-09-08 Thread Mojca Miklavec
On 9/6/07, Wolfgang Werners-Lucchini wrote:
 Hallo!

 I have tried snippets like

 \setupitemgroup[[itemize][start=2]
 \startitemize[n]
 \item zwei
 \item drei
 \stopitemize

 but could'nt found a solution.
 
  It looks like a misfeature (ie. bug) to me.
 
   But two questions remain:
  
   1) I am wondering, how you find such answers. What is your
  strategie
   searching the sources?
   2) What is that existing option 'start' for? Take this as an
  example
   for question 1).
 
  As far as I can see, 'start' currently serves no purpose since it
  gets
  overridden in line 447 in
  \expanded{\setitemparameter{\itemlevel}{\c!start}{1}}%
  in core-itm.tex anyway. Try to comment out that line.
 
  The next problem lies a few lines below:
 
   \doifelsenothing{\getitemparameter\itemlevel\c!start}
 {\def\currentitemoffset{1}}
 
  {\def\currentitemoffset{\getitemparameter\itemlevel\c!start}%
  \letitemparameter\itemlevel\c!start\empty}%
 
  You need to say \edef instead of \def, otherwise the empty value
  will
  be used for calculating \currentitemoffset.
 
  How to search? It's difficult to tell, but in this particular
  case,
  you take a look into core-itm.tex (assuming you know where
  itemizations are. If you don't, you can execute grep \setupitem *
  in
  tex/context/base/.) Then, you search for \c!start and try to
  figure
  out where it is used. You find \setitemlevel. OK, great. What does
  it
  do there? It's supposed to change \currentitemoffset. If you want
  to check \currentitemoffset, you simply place
  (my debug: \currentitemoffset)
  at the end of \setitemlevel. Now, you either need to copy that
  definition on the top of your document (which will override the
  global
  one), or remake the formats with texexec --make en before
  running
  texexec on your document again. You will get some extra info on top
  of your itemization. It doesn't belong there, but you will remove it
  afterwards. (Did I forget to say that it might be wise to make a
  bacup
  of the original file?) Now when you remade the formats (or placed
  the
  definition on top of your file or to cont-new.tex) and compiled
  the
  document again, take a look at the result.
 
  Oh, well, you only get (my debug: ). \currentitemoffset seems to
  be empty.

 If I change the above /def to /edef I get (my debug: 1), but as a
 sideeffect the counter is incremented and therefor is starting with 2
 then.

Yes, that's true.

  Then try to put
   (I wanted to have: \getitemparameter\itemlevel\c!start)
  somewhere at the beginning of \setitemlevel, somewhere inbetween
  (after \expandex{...}) and somewhere at the end. It works at the
  beginning, then it gets reset to 1, and then it gets deleted.
   And they you try to figure out why.

 \letitemparameter\itemlevel\c!start\empty}

 commenting this line has too the above sideeffect that counting is
 started with 2.

Yes, the whole definition should be changed. I only pointed you to the
problematic places, but there is some minor pitfall left. And I don't
dare to touch anything since itemization definitions seem a bit
complex to me.

 But I don't understand the whole thing.

 If I understand you right, the c!start is for increasing the
 itemizelevel NOT the numbering. So I wonder why the later is
 affected.

Perhaps the name doesn't fit best, but it seems to me that
itemizelevel in that context increases the numbering, not the level
(I might be wrong).

Mojca
___
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
___