Re: [NTG-context] Create a directory using tex

2006-08-29 Thread Taco Hoekwater
Aditya Mahajan wrote:
 Hi,
 
   I want to create a macro that writes files in a sub directory. 
 If the directory is already created, things work fine. However, if the 
 directory is not there, tex complains
 
 ! I can't write on file 
 
 Please type another output file name:
 
   Is there a way I can ask tex to create a directory if one does not 
 exist?

Not with TeX, but you can use \write18 or \installprogram  to run a
system command.

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


Re: [NTG-context] layout question

2006-08-29 Thread richard rascher-friesenhausen
Hans Hagen schrieb:

 sorry, wrong command 

 \definefloat[myfigure][myfigures][figure]

 the second arg is the plural, the third the parent 

 Hans 

   
Hello,

i added the cloning to my figure definitions. The caption is inherited 
from figure. But the new margin- and textmarginfigures do *not* show up 
in the list of figures using \placelistoffigures. Do i have to define a 
\combinedlist?

In ConTeXt ver. 2006.08.04 standalone windows version the numbering is 
wrong. All figures on page one get the number 1, all figures on page two 
get number 2.

In ConTeXt ver. 2005.11.30 standalone windows version the numbering is 
correct. But \placelistoffigures only show the native figures, too.

richard

P.S. details.pdf uses the incorrect command 
\definefloat[myfigure][figure]. And in typing the examples directly from 
the text, i forgot in the first run to define the new figures with 
\definefloat. Maybe one should add this to the examples?

-- 

==
Prof. Dr. Richard Rascher-Friesenhausen
MeVis -- Centrum fuer Medizinische Diagnosesysteme und Visualisierung GmbH
Universitaetsallee 29
D-28359 Bremen

als auch
Hochschule Bremerhaven
An der Karlsstadt 8
27568 Bremerhaven

email: [EMAIL PROTECTED], [EMAIL PROTECTED]
www  : http://www.mevis.de/, http://www.hs-bremerhaven.de/
fon  : +49 - 421 - 218 7707 (mevis)
fax  : +49 - 421 - 218 4236 (mevis)
==


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


Re: [NTG-context] layout question

2006-08-29 Thread richard rascher-friesenhausen
nico schrieb:
 Defining a new float gives another floating object with its own counter,  
 list, etc.

 Maybe you can stay with only one kind of float. The following looks like  
 the expected rendering, but I don't understand the default placement of  
 the second large figure.

 % float defs
 %---
 \setupfloat[figure][minwidth=\rightmarginwidth,
  criterium=\rightmarginwidth,
  location=middle,
  default={outermargin,here}]

   
Thanks for that solution. It solves the problem with the list of 
figures. But for the text+margin figures i have to look, if they are 
placed on an odd or even page, to set the placing correctly. They should 
always be shifted to the outer margin. But your solution avoids the 
extra definition of margin images.

Do you know the meanings of the criterium. minwidth and maxwidth options 
of \setupfloat and how they interact with each other and with default?

richard


___
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 Peter Rolf
Hans Hagen wrote:
 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

I have tested the beta with a file that worked with the beta version
from 10.08.06. With the new one I get

* 2 of 3 picture (png) are not found; both unfound file have a
  _ in the name
* position of some (not all) overlay backgrounds is wrong (shifted to
the left); maybe only a side effect

Greetings, Peter

 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 Hans Hagen
Renaud AUBIN wrote:
 Hi Hans,

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

-
  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] 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 Hans Hagen
Peter Rolf wrote
 * 2 of 3 picture (png) are not found; both unfound file have a
   _ in the name
   
hm, will look into it

 * position of some (not all) overlay backgrounds is wrong (shifted to
 the left); maybe only a side effect
   
can you make an example of that 

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

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

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

2006-08-29 Thread Peter Rolf
Hans Hagen wrote:
 Peter Rolf wrote
 * 2 of 3 picture (png) are not found; both unfound file have a
   _ in the name
   
 hm, will look into it
 
I have found the cause of this one. If I don't use \usefigurebase the
gfx are found and included.

 * position of some (not all) overlay backgrounds is wrong (shifted to
 the left); maybe only a side effect
   
Sadly the overlays are still placed at the wrong location.

But one step after the other :)

Peter

 can you make an example of that 
 
 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] figures and footnotes

2006-08-29 Thread Horacio Suarez

hello

1
I have footnotes in titles  and as title a appers in all right pages, the 
litle number appears too, but adding 1 each page it appears.


2
I´m placing figures, but I get a gray square that says:

name:thename
file: thefile
status:unknown

texexec says file thefile has zero dimensions 4 times and file the file 
not found.


Files are 1 bit Potoshop tif, or 8 bit photoshop tif or 8 bit gimp tif.

Images and tex file are inthe same directoy.

Tahnkyou very much.

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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


Re: [NTG-context] figures and footnotes

2006-08-29 Thread Mari Voipio


On Tue, 29 Aug 2006, Horacio Suarez wrote:
 Files are 1 bit Potoshop tif, or 8 bit photoshop tif or 8 bit gimp tif.

According to ConTeXt wiki (wiki.contextgarden.net), tif(f) is NOT a 
generally accepted file format in ConTeXt, some systems process it, but 
most don't.
As I process ConTeXt straight into pdf (in Windows, using the wincontext 
distribution), I used jpg and png as bitmap file formats and that has been 
successful this far - so you may want to try another figure file format.

See http://wiki.contextgarden.net/File_Formats for up-to-date information 
about what formats work with what configurations, the information in at 
least my version of the big manual (chapter 13) is partly obsolete.


Mari
(who's gotten her share of grey squares while working with ConTeXt...)

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


[NTG-context] xpos.sty

2006-08-29 Thread Paul Jones
Hello,Thank you again for very timely and great answers to my question yesterday. I am finding that implementing things in Context is usually easier than I expect. This is very nice. Our company decided to switch to context from latex recently. It seems to have been a very good decision. Thanks for all the work you do to make context so fun to use.
We have one last thing to get translated from latex to context. David Kastrup wrote a bit of latex for us (included below) that magically writes out the absolute xy position of each paragraph and image to a log file for us. We pass some extra information to the commands that get put in the log file for us, but in the end we mainly need a way to get the absolute xy coordinates of the bounding boxes for each paragraph, each section title, each image and each image caption. Is there a way to get this information with context already? Or do I need to get a new module written?
Thanks in advance for any advise,paul[EMAIL PROTECTED][EMAIL PROTECTED] \jobname.pos\relax}[EMAIL PROTECTED]@write#1#2#3{% \begingroup \let\thepage\relax
 #2% [EMAIL PROTECTED]@protect [EMAIL PROTECTED] [EMAIL PROTECTED] \endgroup [EMAIL PROTECTED]}\def\positionwrite{\ifx\protect\@
[EMAIL PROTECTED] \pdfsavepos \else [EMAIL PROTECTED] \fi [EMAIL PROTECTED]@[EMAIL PROTECTED]\def\thexposition{\ifx\thepage\relax \noexpand\thexposition \else [EMAIL PROTECTED] \dimexpr\pdflastxpos sp*\p@/\dimexpr 1bp\relax\relax \fi}
\def\theyposition{\ifx\thepage\relax \noexpand\theyposition \else [EMAIL PROTECTED] \dimexpr(\ifnum\pdfoutput\z@ \pdfpageheight\fi-\pdflastypos sp)% *\p@/\dimexpr 1bp\relax\relax \fi}\def\thexyposition{\thexposition\space\theyposition}
[EMAIL PROTECTED][EMAIL PROTECTED]@x\def\positionhwrite#1{% [EMAIL PROTECTED]@box#1}% \ifhmode [EMAIL PROTECTED] \fi}[EMAIL PROTECTED][EMAIL PROTECTED]
[EMAIL PROTECTED]@ne}[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED][EMAIL PROTECTED]\def\positiontop#1{\positionhwrite{\vadjust pre{\positionwrite{#1
\def\positionbottom#1{\positionhwrite{\vadjust{\positionwrite{#1\def\positionbaseline#1{\positionhwrite{\positionwrite{#1}}}\newcounter{positionpar}\relax\newenvironment{positionpar}[2]{% \par
 [EMAIL PROTECTED]@ [EMAIL PROTECTED] [EMAIL PROTECTED]@ne \ifhmode\expandafter\positiontop \else\expandafter\positionwrite\fi{#1}}%
 [EMAIL PROTECTED]@}% [EMAIL PROTECTED]@endhook}}

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


Re: [NTG-context] 2DOWN imposition gives blank pages

2006-08-29 Thread Willi Egger
Hi Snajoy,

May be you could approach that issue with preparing first a document on 
A4 and for paper saving arrange the pages from the pdf with texexec:

texmfstart texexec --pdfarrange --paper=a5a4 --2up yourfile.pdf

Willi

Sanjoy Mahajan wrote:
 Willi Egger wrote:
   
 In your code you try to typeset two A5 portrait beneeth each other
 on a A4 landscape, which is impossible.
 ...
 By the way if you want to typeset A5 on a A4 landscape without
 intending to make a booklet, then you can use setuparranging[2SIDE]
 

 Thanks for the explanations.  Now I understand what's going on, and
 the wiki page makes more sense too.  I'll add to the wiki shortly.

 A related problem is how to demagnify.  Then you could have (1) a
 high-quality, final mode that generates A4 pages, and (2) a draft,
 papersaving mode that demagnifies them to A5 and combines them in
 pairs (a la 2SIDE) into A4.  I see how to use modes to do everything
 except the demagnifying (Context seems, perhaps wisely, to ignore
 \magnification).

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


Re: [NTG-context] 2DOWN imposition gives blank pages

2006-08-29 Thread Sanjoy Mahajan
 texexec --pdfarrange --paper=a5a4 --2up yourfile.pdf

I tried a few experiments with no luck.  Not sure if it's a context or
texexec problem, or my confusion.  I made the multi-page p5.pdf from

\setuppapersize[A4][A4]
\starttext
\dorecurse{50}{
\input tufte
}
\stoptext

Then I ran 'texexec --pdfarrange --paper=a5a4 p5.pdf' (the --2up
doesn't change the error below) and got this error:

! Missing number, treated as zero.
to be read again 
   a
\@@ppoffset -a
   5a4
\calculatepaperoffsets ...lue {\??pp #1\c!offset }
  \divide \scratchdimen \arr...
argument ...!height }\calculatepaperoffsets {A4}
  \xdef \papersize {A4}
\firstofoneargument #1-#1
  
\next1 #1,-\docommando {#1}
\doprocesscommaitem 
...
l.3 \setuplayout


texexec is doing the arranging by making the following 'texexec.tex'
file and then, I think, running texexec on it:

\definepapersize
  [offset=a5a4]
\setuplayout
  [backspace=0cm,
topspace=0cm,
   width=middle,
  height=middle,
location=middle,
  header=0pt,
  footer=0pt]
\setuppagenumbering
  [alternative=doublesided]
\starttext
\insertpages
  [p5.pdf]
  [width=0cm]
\stoptext

The 'offset=a5a4' is upsetting Context; according to texshow-web on
the garden, the offset should be a dimension.  Also, I couldn't find
(using grep) the string 'a5a4' in the context sources.

-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] Arragning pdf-pages

2006-08-29 Thread Hans Hagen
Willi Egger wrote:
 Hi Hans,

 When arranging pfd pages from a pdf file with the ruby version of the 
 texexec script the following error occurs:

 cid:part1.07050109.01020703@boede.nltexmfstart texexec.rb --pdfarrange 
 --paper=a5a4 --print=2up --result=a5a4-artiplydoc artiply-doc.pdf

 ..

 systems : system commands are enabled
 ! Missing number, treated as zero.
 to be read again
a
 \@@ppoffset -a
5a4
 \calculatepaperoffsets ...lue {\??pp #1\c!offset }
   \divide \scratchdimen 
 \arr...
 argument ...!height }\calculatepaperoffsets {A4}
   \xdef \papersize {A4}
 \firstofoneargument #1-#1

 \next1 #1,-\docommando {#1}
 \doprocesscommaitem
 ..
 l.3 \setuplayout

 ?

 It does work with the perl script.
 COuld you please have a look at this?
   
use --paperformat 

in order to distinguish between paperoffset etc 

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] positioning a watermark

2006-08-29 Thread Paul Jones
Hello,I am trying to create alternating watermarks behind the
text of a book on odd and even pages. I was able to get this working
with overlays fine, except that I could not figure out how to position
them. (I would like them in the bottom outside corners) Using layers
I could get them to repeat across pages if I
\setupbackgrounds[text][text], but only the text on the odd pages
showed up. I would really like to use \setupbackgrounds[page] so my
offsets are from the edge of the page. So I guess I have a couple of
questions.
Is it possible to position overlays?Is it possible to repeat layers using [page]?Any guess as to why only the odd pages showed the watermark in the code below?Thanks for any help.paul%output=pdf
\setuppagenumbering [alternative=doublesided]\setupcolors [state=start]\setupbackgrounds [text][text] [background="">=repeat]\definelayer [watermark]

 [position=yes]\startsetups watermark \doifoddpageelse {\framed[frame=off,foregroundcolor=gray]{\scale[sx=10,sy=10]{\rotate[rotation=0.0]{forever {\framed[frame=off,foregroundcolor=gray]{\scale[sx=10,sy=10]{\rotate[rotation=
0.0]{together\stopsetups\starttext\setlayer[watermark][hoffset=1cm,voffset=1cm]{\setups{watermark}}\chapter{first} \dorecurse{10}{\input tufte }\chapter{second} \dorecurse{10}{\input davis }
\chapter{third} \dorecurse{10}{\input zapf }\chapter{fourth} \dorecurse{10}{\input bryson }\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 Hans Hagen
Peter Rolf wrote:
 Hans Hagen wrote:
   
 Peter Rolf wrote
 
 * 2 of 3 picture (png) are not found; both unfound file have a
   _ in the name
   
   
 hm, will look into it

 
 I have found the cause of this one. If I don't use \usefigurebase the
 gfx are found and included.

   
 * position of some (not all) overlay backgrounds is wrong (shifted to
 the left); maybe only a side effect
   
   
 Sadly the overlays are still placed at the wrong location.

 But one step after the other :)

 P
of that you can make an example ... 

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] latest ConTeXt and \quote

2006-08-29 Thread Alan Bowen

On Aug 29, 2006, at 4:25 PM, Alan Bowen wrote:

 I updated to 2006.08.29 11:11 and find now that \quote{} produces
 double quotes (“ ”) rather than single quotes (“ ”). \quotation{}
 still has its expected effect.

 Is this a bug or has something gone awry with my installation?

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

By single quotes, I mean ‘ ’.

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


Re: [NTG-context] layout question

2006-08-29 Thread nico
On Tue, 29 Aug 2006 10:11:37 +0200, richard rascher-friesenhausen  
[EMAIL PROTECTED] wrote:

 nico schrieb:
 Defining a new float gives another floating object with its own counter,
 list, etc.

 Maybe you can stay with only one kind of float. The following looks like
 the expected rendering, but I don't understand the default placement of
 the second large figure.

 % float defs
 %---
 \setupfloat[figure][minwidth=\rightmarginwidth,
  criterium=\rightmarginwidth,
  location=middle,
  default={outermargin,here}]

 Thanks for that solution. It solves the problem with the list of
 figures. But for the text+margin figures i have to look, if they are
 placed on an odd or even page, to set the placing correctly. They should
 always be shifted to the outer margin. But your solution avoids the
 extra definition of margin images.

Yes, I don't understand why it behaves like this. I thought that it would  
be put in the middle.

 Do you know the meanings of the criterium. minwidth and maxwidth options
 of \setupfloat and how they interact with each other and with default?

It's explained in details.pdf. In brief, for margin floats:

criterium=width: says that when the figure width is greater than  
width, the figure is put in the text area. When the figure width is less  
than width, it is put in the default specified margin (here:  
outermargin).

default=setting: default setting for that kind of float, including the  
chosen placement area (outermargin), until the criterium is reached.

maxwidth=width: gives the alignment delimiter in the margin, so that the  
figure will not go outside the specified width in the margin, but it will  
grow in the text area instead.

minwidth=width: ensures that the figure can take at least this width, so  
that if the figure width is smaller (and location=middle) it will be  
centered in this area.

I hope there's no missunderstanding in these explainations (others can  
tell). Anyway, it cannot be better than the details doc that shows how it  
looks.

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


Re: [NTG-context] Arragning pdf-pages

2006-08-29 Thread Sanjoy Mahajan
 use --paperformat 
 in order to distinguish between paperoffset etc 

Thanks.  For achival value in case anyone else searches the list for
this topic, here's the command line that works for me:

texexec --pdfarrange --paperformat=a5a4 --print=2UP p5.pdf

(2SIDE also works, and the --print= is needed)

I had been using the texexec man entry from an old Context (with tetex
3.0) which doesn't mention the --paperformat switch.

Is there a way to specify custom paper sizes or reductions for the
paperformat, for those of us in countries that use
non-sqrt(2)-aspect-ratio paper sizes?

-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] latest ConTeXt and \quote

2006-08-29 Thread Hans Hagen
Alan Bowen wrote:
 I updated to 2006.08.29 11:11 and find now that \quote{} produces  
 double quotes (� �) rather than single quotes (� �). \quotation{}  
 still has its expected effect.

 Is this a bug or has something gone awry with my installation?

   
a missing \else in:

\def\dosetupdelimitedtext[#1][#2][#3]% #2 = optional level
  {\ifthirdargument
 \getparameters[\??ci#1:#2][#3]%
   \else\ifsecondargument
 \getparameters[\??ci#1][#2]%
   \else
 \getparameters[\??ci][#1]%
   \fi\fi}

(introduced when level specific settinsg were 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] latest ConTeXt and \quote

2006-08-29 Thread Hans Hagen
Alan Bowen wrote:
 On Aug 29, 2006, at 4:25 PM, Alan Bowen wrote:

   
 I updated to 2006.08.29 11:11 and find now that \quote{} produces
 double quotes (� �) rather than single quotes (� �). \quotation{}
 still has its expected effect.

 Is this a bug or has something gone awry with my installation?

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

 By single quotes, I mean � �.
   
hm, two questionmarks -) 

anyhow, fixed; i'm uploading a new beta 

there were reports on problems with overlays (i did clean up some code there) 
and figurebases but I need examples of that  


-
  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] xpos.sty

2006-08-29 Thread Hans Hagen
Paul Jones wrote:

 Thank you again for very timely and great answers to my question 
 yesterday.  I am finding that implementing things in Context is 
 usually easier than I expect.  This is very nice.  Our company decided 
 to switch to context from latex recently.  It seems to have been a 
 very good decision.  Thanks for all the work you do to make context so 
 fun to use.

 We have one last thing to get translated from latex to context.  David 
 Kastrup wrote a bit of latex for us (included below) that magically 
 writes out the absolute xy position of each paragraph and image to a 
 log file for us.  We pass some extra information to the commands that 
 get put in the log file for us, but in the end we mainly need a way to 
 get the absolute xy coordinates of the bounding boxes for each 
 paragraph, each section title, each image and each image caption.  Is 
 there a way to get this information with context already? Or do I need 
 to get a new module written?
i dunno about that code but context has support for positions for years now, in 
your case you probably need something 

\starttext

\let\CurrentPos\empty

\def\StartPos#1%
  {\pushmacro\CurrentPos
   \edef\CurrentPos{mypos:#1}%
   \dontleavehmode\bpos\CurrentPos
   \ignorespaces}

\def\StopPos
  {\removeunwantedspaces
   \epos\CurrentPos
   \popmacro\CurrentPos}

\def\BoxPos#1%
  {\dowithnextbox{\hbox{\hpos{mypos:#1}{\box\nextbox}}}\vbox}

\StartPos{x}\input tufte \StopPos

\StartPos{y}\input zapf \StopPos

\placefigure
  {}
  {\BoxPos{q}{\framed[width=3cm,height=4cm]{}}}

\stoptext

in the *.tui/tuo file you can grep for mypos  



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

2006-08-29 Thread Peter Rolf
Hans Hagen wrote:
 Peter Rolf wrote:
 Hans Hagen wrote:
   
 Peter Rolf wrote
 
 * 2 of 3 picture (png) are not found; both unfound file have a
   _ in the name
   
   
 hm, will look into it

 
 I have found the cause of this one. If I don't use \usefigurebase the
 gfx are found and included.

   
 * position of some (not all) overlay backgrounds is wrong (shifted to
 the left); maybe only a side effect
   
   
 Sadly the overlays are still placed at the wrong location.

 But one step after the other :)

 P
 of that you can make an example ... 
 
...I really don't know. This is what I found out so far...

First of all all macros are placed with \setlayer in the same layer,
using \framed[background=...]{..} to set the content.

For all macros with shifted overlays
* the text is placed at the correct position
* the overlay graphic ends exactly where the overlaybox starts
 -
| overlay gfx  | text |
 -

The two working (non shifted) macros contain
* no text or
* the text is encapsulated in a \smash[d]

Mhh, weird. I *removed the text* in one shifted macro and the overlay
gfx is placed correctly. Does that ring a bell?
Anyhow, time to go to bed.

Peter

 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] Create a directory using tex

2006-08-29 Thread Aditya Mahajan
On Tue, 29 Aug 2006, Taco Hoekwater wrote:

 Aditya Mahajan wrote:
 Hi,

   I want to create a macro that writes files in a sub directory.
 If the directory is already created, things work fine. However, if the
 directory is not there, tex complains

 ! I can't write on file 

 Please type another output file name:

   Is there a way I can ask tex to create a directory if one does not
 exist?

 Not with TeX, but you can use \write18 or \installprogram  to run a
 system command.

Can I ask TeX to check if a directory exists or is writable. I want it 
to give an informative message if the directory does not exist.

Or is there a way to check if a file is writable, so that I can do

\doiffilewritable{dir/tempfile}{\donothing}{\message{Warning}{Please 
create directory 'dir' \endinput}

Aditya

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