Re: [NTG-context] Where is the cow?

2010-03-07 Thread Vyatcheslav Yatskovsky
\setupexternalfigures[location={local,global,default}] 



local   : currentdirectory + .. + ../..
global  : paths set with 'directory=...'
default : tex tree 


Hi Wolfgang,
I want to draw your attention about what Texshow says \setupexternalfigures:

  global: the whole current project environment
  local: this 'directory' option
  default: the global texmf tree
  none: actual directory
directory: local directory for figure files

The differences I see are:
1) 'local' without 'directory' searches within current folder
2) it also searches in upper and 2 levels upper folders.

Is it new behaviour for mkiv?

Vyatcheslav
___
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] Where is the cow?

2010-03-07 Thread Peter Münster
On Sun, Mar 07 2010, Wolfgang Schuster wrote:

 \setupexternalfigures[location={local,global,default}]

 local   : currentdirectory + .. + ../..
 global  : paths set with 'directory=...'
 default : tex tree

\setupexternalfigures[location=local]
\starttext
\externalfigure[hacker] % The figure is found!
\stoptext

Bug or feature?

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] Where is the cow?

2010-03-07 Thread Wolfgang Schuster

Am 07.03.10 12:52, schrieb Peter Münster:

On Sun, Mar 07 2010, Wolfgang Schuster wrote:
   

\setupexternalfigures[location={local,global,default}]

local   : currentdirectory + .. + ../..
global  : paths set with 'directory=...'
default : tex tree
 

\setupexternalfigures[location=local]
\starttext
\externalfigure[hacker] % The figure is found!
\stoptext

Bug or feature?
   

Bug.

You can get the information above from the source and Hans confirmed this.

Wolfgang

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

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


[NTG-context] Where is the cow?

2010-03-06 Thread Matthias Weber

Dear all,

maybe a catchy subject line will get attention -:)

Indeed, the cow seems to be missing in mk2 and is overly present in  
mk4 in the sense that my own image cow.jpg within the same directory  
as the
document below gets ignored in favor of the cow that's present in the  
mk4 minimals. These are minor issues, as it is relatively unlikely that
I will need to include images of cows in my documents in the near  
future.


What is bothering me however is my inability to combine figures  
properly together with text in a controlled manner.
I have a bunch ow smallish images (let's call them cows) which I'd  
like to have surrounded by text. I am happy and actually
prefer to do this manually instead of keeping my fingers crossed that  
some automatic algorithm will do the job, but for that I need to
know how which version of ConTeXt is placing the figures. What would  
work for me: A way to split the text width into chunks that have fixed  
widths,
and fill these chunks individually  and vertically with figures or  
text. This might be possible with tables, but there should be a  
simpler way.


Below are my attempts so far - with very frustrating results, both in  
mk2 and mk4.


Matthias

\setupbodyfont[12pt]

\setupcolors[state=start]

\setuplayout[grid=yes]
\showgrid

\setupcolor[rgb]

\definecolor[defc] [r=.9,g=.9,b=.94]

\definetextbackground   [defbackground]
[backgroundcolor=defc,
corner=round,
before=\blank,
after=\blank,
leftoffset=5pt,
rightoffset=5pt,
topoffset=5pt,
bottomoffset=5pt,
frame=on,
framecolor=darkblue,
location=paragraph,
color=darkred]


\defineenumeration  [blurb]

[before={\starttextbackground[defbackground]},
after={\stoptextbackground},
text=Blurb,
way=bysection,
location=hanging,
letter=rm]

\setupframedtexts[background=color,backgroundcolor=defc,
corner=round,
before=\blank,
after=\blank,
leftoffset=5pt,
rightoffset=5pt,
topoffset=5pt,
bottomoffset=5pt,
frame=on,
framecolor=darkblue,
location=paragraph,
color=darkred]

\starttext




\startblurb
Why is the topoffset so small? This happens at the top of a page.
\stopblurb


\placefigure[left]{none}{\externalfigure[cow][width=3cm]}
\startblurb
This is almost working. The figure is too low.
\stopblurb




\startfiguretext
[left]{none}{\externalfigure[cow][width=2in]}

\startblurb
Something is very wrong here.
\stopblurb
\stopfiguretext

\page

\startframedtext
Why is the offset so big?
\stopframedtext


\placefigure[left]{none}{\externalfigure[cow][width=3cm]}
\startframedtext
How do I combine this text with the figure?
\stopframedtext

For some reason, this text is placed correctly.

\stoptext


___
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] Where is the cow?

2010-03-06 Thread Troy Henderson
 maybe a catchy subject line will get attention -:)

Doesn't the old TV commercial (at least here in the U.S.) say instead
where's the beef?

Troy Henderson
___
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] Where is the cow?

2010-03-06 Thread Wolfgang Schuster

Am 06.03.10 21:56, schrieb Matthias Weber:

Dear all,

maybe a catchy subject line will get attention -:)

Indeed, the cow seems to be missing in mk2 and is overly present in 
mk4 in the sense that my own image cow.jpg within the same directory 
as the
document below gets ignored in favor of the cow that's present in the 
mk4 minimals. These are minor issues, as it is relatively unlikely that

I will need to include images of cows in my documents in the near future.

What is bothering me however is my inability to combine figures 
properly together with text in a controlled manner.
I have a bunch ow smallish images (let's call them cows) which I'd 
like to have surrounded by text. I am happy and actually
prefer to do this manually instead of keeping my fingers crossed that 
some automatic algorithm will do the job, but for that I need to
know how which version of ConTeXt is placing the figures. What would 
work for me: A way to split the text width into chunks that have fixed 
widths,
and fill these chunks individually  and vertically with figures or 
text. This might be possible with tables, but there should be a 
simpler way.

\setupexternalfigures[location={local,global,default}]

local   : currentdirectory + .. + ../..
global  : paths set with 'directory=...'
default : tex tree

Wolfgang

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

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