Re: [NTG-context] floats spanning columns?

2006-04-12 Thread Karsten Heymann
Hello Hans,

Hans Hagen wrote:
 if a float is too wide it will be moved around; wide floats spanning
 columns and text flowing around it is not one of the strong points of
 normal columns

At least I didn't overlook something simple :)

Is there any easy fix to prevent the table from disapperaring when I
uncomment the \input knuth?

% -*- mode: context; coding: latin-9-unix; -*-

\setuplayout [grid=yes]

\definecolumnset[example]
\setupfloat[table][width=\makeupwidth]

\starttext
\startcolumnset[example]

\input knuth
%\input knuth

\placetable{Tabelle}
  \framed[width=\makeupwidth,height=4cm]{Hallo}

\input knuth

\input knuth

\stopcolumnset
\stoptext




signature.asc
Description: OpenPGP digital signature
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Curious blank page

2006-04-12 Thread Taco Hoekwater


Aditya Mahajan wrote:
 
 
 framedtext does not break across pages :( Can startbackground be 
 persuaded to become sane?
 

We already have a feature request to make startextbackground do 
everything startbackground can do. After that, startbackground
can be flagged a deprecated command.

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


Re: [NTG-context] wrapping a long URL without added spaces

2006-04-12 Thread Taco Hoekwater


Hi Alan,

Alan Bowen wrote:
 I can wrap a long URL using \hyphenatedurl, but not without getting  
 some unwanted spaces before the numerous “/”s in the URL.

You are not telling us something, because I get no extra spaces
after toying around with your description for a while. Please
post a minimal file that demonstrates the problem.

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


Re: [NTG-context] simplify \setuppapersize call

2006-04-12 Thread Hans Hagen
Sanjoy Mahajan wrote:
 maybe, but i'm hesitant to change this because it has been so from the 
 beginning
 

 Reasonable enough.

 Though the mixed A4/letter dimensions with \setuppapersize[letter] is
 probably not what a user intends and not useful for backward
 compatibility.  They should probably get a PDF with an a4 whateverbox
 (mediabox?).
   
don't worry, when the second arg is missing, context will at least enlarge the 
print paper size to get it fit. 

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] \setupframed[...][...=...]

2006-04-12 Thread Hans Hagen
Vit Zyka wrote:
 Hi,

 I tied to extend \setupframed[...=...] to also \setupframed[...][...=...]:

 -
 \unprotect
 \def\setupframed{\dodoubleempty\dosetupframed}
 \def\dosetupframed{%
\ifsecondargument
  [EMAIL PROTECTED]
\else
  [EMAIL PROTECTED]
\fi
 }
 \def\dosinglesetupframed[#1][#2]{\getparameters[\??oi][#1]}
 \def\dodoublesetupframed[#1][#2]{%
\bgroup
  \def\dodoubleempty{}%
  \def\doframed[##1]{##1}%
  \xdef\tmp{\getvalue{#1}}%
\egroup
  
 [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
 PROTECTED]@EA[\tmp,#2]}%
 }
 \protect

 \starttext
 \setupframed[framecolor=yellow]  \framed{A}
 \defineframed[myframed][framecolor=blue] \myframed{B}
 \setupframe[myframe][framecolor=red] \myframed{C}
 \stoptext
 -

 it works but with fully expansion of options. So it works a bit 
 differently in a cases
 1)
 \def\ONorOFF{off}
 \defineframed[myframed][frame=\ONorOFF]
 \def\ONorOFF{on}\myframed{A}

 2)
 \def\ONorOFF{off}
 \defineframed[myframed][frame=\ONorOFF]
 \setupframed[myframe][framecolor=red]
 \def\ONorOFF{on}\myframed{A}

 Is there some simple solution? Or it has to be rewritten in a way like 
   
sure, later (fields do something similar)
 other \definesomething[...] (storing every parameter/definition-instance 
 in a macro)? If sometimes this code would be reviewed I vote for doing 
 \setupframed in this 'standard' ConTeXt way.
   
the reason for not doing it that way is that it takes less memory; framed 
preallocates quite some hash 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] another \startcolumns and grid layout issue

2006-04-12 Thread Karsten Heymann
Hi,

can someone explain me why the second Test gets out of grid:

\setuplayout[grid=yes]
\showgrid
\setupcolumns[rule=on]

\starttext
\startcolumns
One \crlf Two
\column
Three \crlf Four
\stopcolumns

Test

\blank

\startcolumns
One \crlf Two with depth
\column
Three \crlf Four
\stopcolumns

Test

\stoptext

Yours,
Karsten
-- 
|  ~ Karsten Heymann ~  | Christian-Albrecht-Universität zu Kiel |
| Fon: +49 431 880-1186 |Netzwerkteam des Ökologiezentrum|
| Fax: +49 431 880-4083 | http://www.ecology.uni-kiel.de |
| - Selbständiger EDV-Dienstleister im Auftrag des ÖZK - |





signature.asc
Description: OpenPGP digital signature
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setupframed[...][...=...]

2006-04-12 Thread Hans Hagen
Vit Zyka wrote:
 Is there some simple solution? Or it has to be rewritten in a way like 
 other \definesomething[...] (storing every parameter/definition-instance 
   
btw, there is (beware: use some unique name):

\presetlocalframed[myframed]
\setuplocalframed[myframed][width=4cm,height=2cm]
\localframed[myframed][framecolor=green]{oeps}
 

-
  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] \setupframed[...][...=...]

2006-04-12 Thread Vit Zyka
Hans Hagen wrote:
 Vit Zyka wrote:
 
Hi,

I tied to extend \setupframed[...=...] to also \setupframed[...][...=...]:

-
\unprotect
\def\setupframed{\dodoubleempty\dosetupframed}
\def\dosetupframed{%
   \ifsecondargument
 [EMAIL PROTECTED]
   \else
 [EMAIL PROTECTED]
   \fi
}
\def\dosinglesetupframed[#1][#2]{\getparameters[\??oi][#1]}
\def\dodoublesetupframed[#1][#2]{%
   \bgroup
 \def\dodoubleempty{}%
 \def\doframed[##1]{##1}%
 \xdef\tmp{\getvalue{#1}}%
   \egroup
 
[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@EA[\tmp,#2]}%
}
\protect

\starttext
\setupframed[framecolor=yellow]  \framed{A}
\defineframed[myframed][framecolor=blue] \myframed{B}
\setupframe[myframe][framecolor=red] \myframed{C}
\stoptext
-

it works but with fully expansion of options. So it works a bit 
differently in a cases
1)
\def\ONorOFF{off}
\defineframed[myframed][frame=\ONorOFF]
\def\ONorOFF{on}\myframed{A}

2)
\def\ONorOFF{off}
\defineframed[myframed][frame=\ONorOFF]
\setupframed[myframe][framecolor=red]
\def\ONorOFF{on}\myframed{A}

Is there some simple solution? Or it has to be rewritten in a way like 
other \definesomething[...] (storing every parameter/definition-instance 
in a macro)? If sometimes this code would be reviewed I vote for doing 
\setupframed in this 'standard' ConTeXt way.

  
 
 next time post with less typos -) 

Sorry, next time I try to choose better time then 3 o'clock at night.

 anyway, here is a working solution: 
 
 \unprotect
 
 \def\setupframed
   {\dodoubleempty\dosetupframed}
 
 \def\dosetupframed
   {\ifsecondargument
  [EMAIL PROTECTED]
\else
  [EMAIL PROTECTED]
\fi}
 
 \def\dosinglesetupframed[#1][#2]%
   {\getparameters[\??oi][#1]}
 
 \def\dodoublesetupframed[#1][#2]%
   {\bgroup
\let\dodoubleempty\empty

 \def\doframed[##1]{\gdef\globalredefinedframed{\dodoubleempty\doframed[##1,#2]}}%
\getvalue{#1}%
\egroup
\letvalue{#1}\globalredefinedframed}
 
 \protect

Clever.

 keep in mind that some 100 setups of the same instance may lead to rather big 
 definitions 

Yes, but no problem, I need only one (or two) resetuping after definition.

 \setupcolors[state=start]
 
 \starttext
 \setupframed[framecolor=yellow]  \framed{A}
 \defineframed[myframed][framecolor=blue] \myframed{B}
 \setupframed[myframed][framecolor=red]\myframed{C}
 \stoptext
 
 i need to think about adding this, since it may break other things (i will 
 run it for a while) 

All right.

 you can add such patches to cont-loc.tex which is not distributed but read at 
 runtime 

I see, I did not know about this file. Fine.

Thanks Hans,
Vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bug in wiki's urw garamond typescript? SOLVED

2006-04-12 Thread Karsten Heymann
Hi,

found out myself, my context version (texlive 05) doesn't know about that:

Karsten Heymann wrote:
 \enableregime   [il9]

replaced by il1, and the problem is gone. It's sometimes a good thing to
read the logs  :-/

Yours,
Karsten
-- 
|  ~ Karsten Heymann ~  | Christian-Albrecht-Universität zu Kiel |
| Fon: +49 431 880-1186 |Netzwerkteam des Ökologiezentrum|
| Fax: +49 431 880-4083 | http://www.ecology.uni-kiel.de |
| - Selbständiger EDV-Dienstleister im Auftrag des ÖZK - |




signature.asc
Description: OpenPGP digital signature
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to set pdf link target view to one columnwidth in twocolumn mode

2006-04-12 Thread josef dev
Dear All,I am wotking in a twocolumn document, I have the proper hyperlinks for references but the problem is that I need the link target to be viewd in full column width while when I click on any link it shows the link target in the view that is set to "pdfview" option to hyperef package. I have gone through the package documentation, there are several possible ways to have the link target view like Fit-to-Width (FitH), Fit-to-Height (FitV), Fit-to-Bounding Box Width (FitBH), Fit-to-Bounding Box Height (FitBV), FitR that uses the current box and several other but none serves to set the link target so that it views the onecolumn text zoomed to fit to width instead of the entire two colmn page. I tried to use"\pdfdest fitr" instead of hypertarget but when I pass 4 coordinates of
 link target box after "fitr" it just appears in pdf and compiler automatically assigns some other values, how it calculates that and how we can hack/adjust it as per our requirement. (I used following syntax in place of hypertarget   "\pdfdest name (ID) fitr x1 y1 x2 y2",   where ID is link id, x1, y1, x2, y2 are link target box coordinats)   Hope my query is clear still if somebody finds it confusing then please feel free to ask further clarification.Thanks in advanceKind regards David 
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] wrapping a long URL without added spaces

2006-04-12 Thread Alan Bowen

Hi, Taco!

Here is a minimal file that produces the problem. Note that if you  
comment out \setupinteraction[...], the problem goes away and the URL  
is wrapped nicely.


Thanks for looking at this.

Alan

PS I am using ConTeXt  ver: 2006.04.09 22:25  fmt: 2006.4.10  int:  
english  mes: english





hyphenatedurlTest.tex
Description: Binary data


On Apr 12, 2006, at 4:04 AM, Taco Hoekwater wrote:




Hi Alan,

Alan Bowen wrote:

I can wrap a long URL using \hyphenatedurl, but not without getting
some unwanted spaces before the numerous “/”s in the URL.


You are not telling us something, because I get no extra spaces
after toying around with your description for a while. Please
post a minimal file that demonstrates the problem.

Greetings, 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] \setupframed[...][...=...]

2006-04-12 Thread Vit Zyka
Hans Hagen wrote:
 Vit Zyka wrote:
 
Is there some simple solution? Or it has to be rewritten in a way like 
other \definesomething[...] (storing every parameter/definition-instance 
  
 
 btw, there is (beware: use some unique name):
 
 \presetlocalframed[myframed]
 \setuplocalframed[myframed][width=4cm,height=2cm]
 \localframed[myframed][framecolor=green]{oeps}

localframed was a mysterious stuff for me.

It seems do exactly what I wanted. In this perspective the 
\setupframed[...][...=...] is not needed (only for not being suprised 
since its absence is a bit against context filosofy).

I just wanted to fill texshow web, but it is missing this stuff. So I 
added \*localframed note in missing texshow items on wiki.

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


[NTG-context] Context Release 2006.04.12 is available

2006-04-12 Thread Taco Hoekwater
Hi all,

The new release is available for download. If there are no fatal 
problems, this will go to CTAN tomorrow.  If that is te case,
then a more formal release will follow at that time.

Preliminary remarks are on the wiki:

http://wiki.contextgarden.net/Release_Notes

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


Re: [NTG-context] \setupframed[...][...=...]

2006-04-12 Thread Hans Hagen
Vit Zyka wrote:
 Hans Hagen wrote:
   
 Vit Zyka wrote:

 
 Is there some simple solution? Or it has to be rewritten in a way like 
 other \definesomething[...] (storing every parameter/definition-instance 
  
   
 btw, there is (beware: use some unique name):

 \presetlocalframed[myframed]
 \setuplocalframed[myframed][width=4cm,height=2cm]
 \localframed[myframed][framecolor=green]{oeps}
 

 localframed was a mysterious stuff for me.

 It seems do exactly what I wanted. In this perspective the 
 \setupframed[...][...=...] is not needed (only for not being suprised 
 since its absence is a bit against context filosofy).

 I just wanted to fill texshow web, but it is missing this stuff. So I 
 added \*localframed note in missing texshow items on wiki.
   
it actually is a low level command, also, there is \defineframedtext which is 
(1) configurable and (2) provided \myframed as well

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] Curious blank page

2006-04-12 Thread Aditya Mahajan
On Wed, 12 Apr 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 On Mon, 10 Apr 2006, Hans Hagen wrote:
 Aditya Mahajan wrote:
 On Sun, 9 Apr 2006, Hans Hagen wrote:
 Aditya Mahajan wrote:
 On Sun, 19 Mar 2006, David Arnold wrote:
 Why is it that the rest of the page after Answers on page 4 of the
 compiled pdf is blank?

 I have a similar problem. Attached is the (not so) minimal example
 that I could prepare. (This is part of my way on mathalignment). See
 the page break on page 2, while all the page is empty. Adding
 \kern\zeropoint prevents the page break. But I find such an page break
 very confusing.

 btw, you need to patch core-mat.tex :

 \doif = \doifsomething

   \doifsomething{\formulaparameter\c!margin}% so we test first
 {\dosetleftskipadaption{\formulaparameter\c!margin}%
  \edef\leftdisplaymargin{\the\leftskipadaption}}% overloaded

 it seems that this was never encountered

 This doesn't seem to work. Changing line 303 of core-mat.tex \doif =
 \doifsomething and regenerating formats, does not change the output of
 the test file. I still get the incorrect page breaking.

 no, this patch is not related to the pagebreak but needed anyway (you're
 just lucky for not running into that bug) ; the pagebreak is just the
 result of background going crazy (well, not being able to determine if
 there is enough space left)

 framedtext does not break across pages :( Can startbackground be
 persuaded to become sane?

 not today, best try \definetextbackground which is the successor

\definetextbackground works :). The following works correctly (breaks 
across pages, and does not give false blank pages)


\definetextbackground
   [example]
   [width=\textwidth,
background=color,
backgroundcolor=lightgray,
frame=off,
leftoffset=1em,
rightoffset=1em,
location=paragraph,
after={\blank[small]},
before={\blank[small]}]


Thanks,
Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] feature request: clipping option for externalfigure

2006-04-12 Thread Peter Münster
On Wed, 12 Apr 2006, Hans Hagen wrote:

 \ruledhbox{\clip{\useMPgraphic{test}}}

Hello Hans,
of course, I've already tried \clip{\externalfigure[...][...]} but the
figure disappears completely. \clip{\useMPgraphic{test}} disappears too.
And now I see: it works for PDF output, so there is probably just an error
in the dvi driver.
Cheers and thanks, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Problem with altest release and newcml

2006-04-12 Thread Johannes Graumann
Hello,

Sorry for reposting this, but I thought a more descriptive subject and a
minimal example would be beneficial.

After the latest update, which includes the new 'newcml'
module, 'texexec --version' reports:

TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
  texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
  texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006
  tex : pdfeTeX, 3.141592-1.30.6-2.2 (Web2C 7.5.5)
  context : ver: 2006.04.12 12:49
  cont-en : ver: 2006.04.12 12:49  fmt: 2006.4.12  mes: english

When trying to texexec the following file:
\usemodule[newcml]
\starttext
  Hello
\stoptext

I hit the following error:
system  : module newcml loaded
(/home/balin/texmf/tex/context/base/x-newcml.tex
loading : Context XML Macros (chem ml)
! Too many }'s.
l.327   \let\stopchemical{}

Can't find anything in '/home/balin/texmf/tex/context/base/x-newcml.tex'
that looks suspicious to my novice eyes ...

Thanks for any input,

Joh

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


Re: [NTG-context] feature request: clipping option for externalfigure

2006-04-12 Thread Hans Hagen
� wrote:
 On Wed, 12 Apr 2006, Hans Hagen wrote:

   
 \ruledhbox{\clip{\useMPgraphic{test}}}
 

 Hello Hans,
 of course, I've already tried \clip{\externalfigure[...][...]} but the
 figure disappears completely. \clip{\useMPgraphic{test}} disappears too.
 And now I see: it works for PDF output, so there is probably just an error
 in the dvi driver.
   
well, if you can find out what the problem is we can fix it (i dunno if it's in 
dvips or in the special driver of context; maybe something changes in dvips - 
which is probably only tested with latex -) 

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] Context Release 2006.04.12 is available

2006-04-12 Thread Hans Hagen
Johannes Graumann wrote:
 Taco Hoekwater wrote:

   
 Hi all,

 The new release is available for download. If there are no fatal
 problems, this will go to CTAN tomorrow.  If that is te case,
 then a more formal release will follow at that time.

 Preliminary remarks are on the wiki:

 http://wiki.contextgarden.net/Release_Notes

 Cheers, Taco
 

 Taco,

 Thanks for fixing the multiple authoryear citation issue!
 I have another problem with this release (nexcml):
 system  : module newmml (line 39) already loaded
 system  : module newcml loaded
 (/home/balin/texmf/tex/context/base/x-newcml.tex
 loading : Context XML Macros (chem ml)
 ! Too many }'s.
 l.327   \let\stopchemical{}

 ?

   
ah, that line should be

  \let\stopchemical\relax

i never tested that since one needs to load the ppchtex module as well

\usemodule[chemic]

in which case the code is never met

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] placefigure feature request ?

2006-04-12 Thread Sanjoy Mahajan
 this 'choose between locations' feature is kind of present but only
 with 'here' as fallback but it's trivial to make that configurable:

I've been experimenting a bit with the code, and it is much appreciated.

I added \unprotect..\protect and it compiled fine.  The figure numbering
is the order in the source files, thanks to the numbering=nocheck;
reading down the page it is 3-1-2.  Then I felt bold and commented out
the numbering=nocheck.  It does one clockwise rotation of the numbers:

floatblocks : no block given
floatblocks : 1 renumbered / figure 1 = 3
(/home/sanjoy/texmf/tex/context/base/pdfr-ec.tex)
floatblocks : 1 placed
(/home/sanjoy/texmf/tex/context/sample/tufte.tex)
floatblocks : no block given
floatblocks : 2 renumbered / figure 2 = 1
floatblocks : 2 placed
(/home/sanjoy/texmf/tex/context/sample/tufte.tex)
floatblocks : 3 renumbered / figure 3 = 2
floatblocks : 3 placed

If it had done a anticlockwise rotation, the figure numbers would have
been right (1-2-3 reading down the page).  Is it because the figure
renumbering does not know of the change to fallback=bottom (from
fallback=here)?

   texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006
   tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
   context : ver: 2006.03.25 13:21
   cont-en : ver: 2006.03.25 13:21  fmt: 2006.4.11  mes: english


Here's the .tex file itself with the above modifications:

==
% first a new key

\startconstantsdutch english
   germanczech
   italian   romanian
   french

 fallback: terugval  fallback
   fallback  fallback
   fallback  fallback
   fallback
\stopconstants

% use that key

\unprotect

\long\def\dofloat#1#2#3#4%
  {\dosetfloatbox{#1}{#2}{#3}{#4}%
   \doifelsevaluenothing{\??fl#4\c!criterium}
 {\dogetfloatbox{#1}\empty}
 {\ifdim\wd\floatbox\getvalue{\??fl#4\c!criterium}\relax
\postcenterfloatbox{\wd\floatbox}% else we get left aligned
%dogetfloatbox{#1}\v!here% see details/pascal

\dogetfloatbox{#1}{\executeifdefined{\??fl#4\c!fallback}\v!here}% PATCHED
  \else
\dogetfloatbox{#1}\empty
  \fi}}

% pass the new location (will be done differently, hack

\def\dogetfloatbox#1#2%
  {\ifvisible
 \doifelsenothing{#2}
   {\getfromcommalist[#1][1]%
[EMAIL PROTECTED]:\to\floatmethod
[EMAIL PROTECTED] \commalistelement\at:\to\floatcolumn
[EMAIL PROTECTED] \floatcolumn\at*\to\floatrow
[EMAIL PROTECTED]
% todo: nog algemeen otr
\ifx\OTRSETsetpreferedcolumnslot\undefined\else
  \OTRSETsetpreferedcolumnslot\floatcolumn\floatrow
\fi}
   {\let\floatcolumn\empty
\let\floatrow\empty
\edef\floatmethod{#2}}%
 \doifundefined{\string\floatmethod\floatmethod}
   {\let\floatmethod\v!here}%
 \getvalue{\string\floatmethod\floatmethod}[\floatmethod,#1]% PATCHED
   \fi}

\protect

% \setupfloats[numbering=nocheck]

% we use the marginwidth as criterium

\setupfloat[figure][criterium=\marginwidth,fallback=bottom]

\starttext

\placefigure[bottom]{1}{} \input tufte
\placefigure[left]{2}{} \input tufte
\placefigure[left]{3}{\framed[width=.9\marginwidth]{}} \input tufte

\stoptext
==

-Sanjoy

`A society of sheep must in time beget a government of wolves.'
   - Bertrand de Jouvenal
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Changing page orientation - Landscape/Portrait

2006-04-12 Thread Miguel Queiros
  \placetable{Just an example}{\externalfigure[teste.tmp]}
 
 This is what I call 'creative usage' of a feature :)
 Better use \getbuffer for this.

I was using \externalfigure because I saw that on the manual,
and because I wanted to scale down the table to the width of the
page. :)

Can I do that with a buffer/table withou using \externalfigure ?

I looked at the wiki and I should think about using 
only natural tables as they seem to be much better... but
I'v had problems trying to get some multipage tables
to work... 

Thanks,
Miguel Queirós


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


[NTG-context] placetable style argument trouble.

2006-04-12 Thread Johannes Graumann
Hello,

Why is in 
\setupTABLE[frame=off,split=repeat,splitmethod=a,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}]

the '\setupinterlinespace[line=2.8ex]' not honored (at least not with
respect to the switched bodyfont)?

Thanks, Joh

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


[NTG-context] XML and Multipage table

2006-04-12 Thread Johannes Graumann
Hello,

Does anybody have an insight into why a table created with the following
mapping rule for XML code does not present it's caption and is not split?

Thanks Joh

\defineXMLnested
  [table]
  {\bgroup
   \defineXMLsave[caption]
   \defineXMLsave[header]
   \defineXMLsave[body]
   %\defineXMLnested[header]{\bTABLEhead} {\eTABLEhead}
   %\defineXMLnested[body]  {\bTABLEbody} {\eTABLEbody}
   \placetable
  [\XMLpar{table}{location}{here}]
  [\XMLpar{table}{label}{unknown}]
  {\XMLflush{caption}}
  \bgroup
 
\setupTABLE[frame=off,split=repeat,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}]
   
\framed[frame=off,topframe=on,bottomframe=on,offset=none,rulethickness=0.75pt]
\bgroup \bTABLE[distance=7.5pt]
\bTABLEhead
  \XMLflush{header}
\eTABLEhead
\bTABLEbody
  \XMLflush{body}
\eTABLEbody
\bTABLEfoot\eTABLEfoot
}
  {\eTABLE
   \egroup
   \egroup
   \egroup}

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