[NTG-context] outer floats on doublesided pages

2013-09-09 Thread R. Ermers
Dear all,

I have problems with the placement of floats. I need them to be placed in the 
outer edge of the text, but Context puts them in the middle of the page. The 
outer, inner, outeredge, inneredge, commands do not work. Right and left do 
work.

Preferably the criterium option should also work, e.g. criterium=0.67.
A minimal test file is attached. Try it out with a dummy, or with cow picture, 
or with any other picture of your liking.

I updated my context installation today to a bèta version. The version is: 
2013.08.30 02.05.

All help is welcome!
Many thanks in advance,

Robert



tmp1.tex
Description: Binary data


%%

\setuppapersize[A4][A4]

\setuppagenumbering[alternative=doublesided,location=footer]

\definefloat[edgefigure][figure]

\setupfloat
[edgefigure]
[leftmargindistance=-\outercombitotal,
 rightmargindistance=-\outercombitotal,
 default={outer,none,low,high}]

\setupcaption[edgefigure][number=no]

\useexternalfigure[cow][./cow.pdf]

\starttext

\startsection[title={insight},reference=insight]

\placeedgefigure[][]{}{\framed[frame=off]{\externalfigure[cow][scale=150]}}
When the first volume of Donald Knuth's The Art of Computer Programming was 
published in 1969, it was typeset using hot metal type set by a Monotype 
Corporation typecaster with a hot metal typesetting machine from the 19th 
century which produced a "good classic style" appreciated by Knuth. When the 
second edition of the second volume was published, in 1976, the whole book had 
to be typeset again because the Monotype technology had been largely replaced 
by photographic techniques, and the original fonts were no longer available.[4] 
When Knuth received the galley proofs of the new book on 30 March 1977, he 
found them awful.[5] Around that time, Knuth saw for the first time the output 
of a high-quality digital typesetting system, and became interested in digital 
typography. The disappointing galley proofs gave him the final motivation to 
solve the problem at hand once and for all by designing his own typesetting 
system. On 13 May 1977, he wrote a memo to himself describing the basic 
features of TeX.[6]

\placeedgefigure[][]{}{\framed[frame=off]{\externalfigure[cow][scale=150]}}
He planned to finish it on his sabbatical in 1978, but as it happened the 
language was not frozen until 1989, more than ten years later. Guy Steele 
happened to be at Stanford during the summer of 1978, when Knuth was developing 
his first version of TeX. When Steele returned to MIT that autumn, he rewrote 
TeX's I/O to run under the ITS operating system. The first version of TeX was 
written in the SAIL programming language to run on a PDP-10 under Stanford's 
WAITS operating system. For later versions of TeX, Knuth invented the concept 
of literate programming, a way of producing compilable source code and 
cross-linked documentation typeset in TeX from the same original file. The 
language used is called WEB and produces programs in DEC PDP-10 Pascal.


\placeedgefigure[][]{}{\framed[frame=off]{\externalfigure[cow][scale=150]}}
When the first volume of Donald Knuth's The Art of Computer Programming was 
published in 1969, it was typeset using hot metal type set by a Monotype 
Corporation typecaster with a hot metal typesetting machine from the 19th 
century which produced a "good classic style" appreciated by Knuth. When the 
second edition of the second volume was published, in 1976, the whole book had 
to be typeset again because the Monotype technology had been largely replaced 
by photographic techniques, and the original fonts were no longer available.[4] 
When Knuth received the galley proofs of the new book on 30 March 1977, he 
found them awful.[5] Around that time, Knuth saw for the first time the output 
of a high-quality digital typesetting system, and became interested in digital 
typography. The disappointing galley proofs gave him the final motivation to 
solve the problem at hand once and for all by designing his own typesetting 
system. On 13 May 1977, he wrote a memo to himself describing the basic 
features of TeX.[6]
He planned to finish it on his sabbatical in 1978, but as it happened the 
language was not frozen until 1989, more than ten years later. Guy Steele 
happened to be at Stanford during the summer of 1978, when Knuth was developing 
his first version of TeX. When Steele returned to MIT that autumn, he rewrote 
TeX's I/O to run under the ITS operating system. The first version of TeX was 
written in the SAIL programming language to run on a PDP-10 under Stanford's 
WAITS operating system. For later versions of TeX, Knuth invented the concept 
of literate programming, a way of producing compilable source code and 
cross-linked documentation typeset in TeX from the same original file. The 
language used is called WEB and produces programs in DEC PDP-10 Pascal.

\stopsection

\stoptext



___
If your question is o

Re: [NTG-context] devanagari rendering (2 errors)

2013-09-09 Thread Peter Graif

> 
> Can you make a as-small-as-possible test file?
> 
> Preferable with proper utf-8 sequences (+ comment mentioning 
> numbers/classes), good and wrong.
> 
> I can probably figure it out but I cannot read or input easily this kind of 
> scripts.
> 
> Hans
> 

Sure thing. I don't understand how opentype features are represented nor how 
the ligature logic is dividd up between the font and the engine, so I'm not 
quite sure what information is helpful or relevant. But, here's a minimal 
document that contains all the problem sequences I've identified.

As a rough guide, here's another image with the current ConTeXt rendering in 
black and the desired rendering in red:
http://i.imgur.com/MyvMneg.png

Is that the information you need? Or is there something else I can do?
-Peter

-

\definefont [DevaOne] [file:chandas.ttf*devanagari-one at 16pt]
\starttext
\DevaOne

% The following combinations render incorrectly.
% They are all of the following form:
% {consonant(s)} + U+094D + U+0930
\char"0915 \char"094D \char"0930 ~
\char"0916 \char"094D \char"0930 ~
\char"0917 \char"094D \char"0930 ~
\char"0918 \char"094D \char"0930 ~
\char"0919 \char"094D \char"0930 ~ 
\char"091A \char"094D \char"0930 ~ 
\char"091B \char"094D \char"0930 ~ 
\char"091C \char"094D \char"0930 ~ 
\char"091D \char"094D \char"0930 ~ 
\char"091E \char"094D \char"0930 ~\crlf  
\char"091F \char"094D \char"0930 ~ 
\char"0920 \char"094D \char"0930 ~
\char"0921 \char"094D \char"0930 ~
\char"0922 \char"094D \char"0930 ~
\char"0923 \char"094D \char"0930 ~
\char"0924 \char"094D \char"0930 ~ 
\char"0925 \char"094D \char"0930 ~
\char"0926 \char"094D \char"0930 ~
\char"0927 \char"094D \char"0930 ~
\char"0928 \char"094D \char"0930 ~\crlf 
\char"0929 \char"094D \char"0930 ~ 
\char"092A \char"094D \char"0930 ~ 
\char"092B \char"094D \char"0930 ~ 
\char"092C \char"094D \char"0930 ~ 
\char"092D \char"094D \char"0930 ~ 
\char"092E \char"094D \char"0930 ~ 
\char"092F \char"094D \char"0930 ~ 
\char"0930 \char"094D \char"0930 ~
\char"0931 \char"094D \char"0930 ~
\char"0932 \char"094D \char"0930 ~\crlf 
\char"0933 \char"094D \char"0930 ~
\char"0934 \char"094D \char"0930 ~
\char"0935 \char"094D \char"0930 ~ 
\char"0936 \char"094D \char"0930 ~
\char"0937 \char"094D \char"0930 ~
\char"0938 \char"094D \char"0930 ~
\char"0939 \char"094D \char"0930 ~ 

\char"0958 \char"094D \char"0930 ~
\char"0959 \char"094D \char"0930 ~
\char"095A \char"094D \char"0930 ~
\char"095B \char"094D \char"0930 ~
\char"095C \char"094D \char"0930 ~
\char"095D \char"094D \char"0930 ~
\char"095E \char"094D \char"0930 ~
\char"095F \char"094D \char"0930 ~ 

\crlf \crlf \crlf

% The following cominations also render incorrectly.
% The problem occurs at the end of words with sequences:
% {consonant(s)} + U+094D + [end of word]
\char"0915 \char"094D ~
\char"0916 \char"094D ~
\char"0917 \char"094D ~
\char"0918 \char"094D ~
\char"0919 \char"094D ~
\char"091A \char"094D ~
\char"091B \char"094D ~
\char"091C \char"094D ~
\char"091D \char"094D ~
\char"091E \char"094D ~\crlf
\char"091F \char"094D ~
\char"0920 \char"094D ~
\char"0921 \char"094D ~
\char"0922 \char"094D ~
\char"0923 \char"094D ~
\char"0924 \char"094D ~ 
\char"0925 \char"094D ~
\char"0926 \char"094D ~
\char"0927 \char"094D ~
\char"0928 \char"094D ~\crlf
\char"0929 \char"094D ~ 
\char"0929 \char"094D ~ 
\char"092A \char"094D ~ 
\char"092C \char"094D ~ 
\char"092D \char"094D ~ 
\char"092E \char"094D ~ 
\char"092F \char"094D ~ 
\char"0930 \char"094D ~
\char"0931 \char"094D ~
\char"0932 \char"094D ~\crlf
\char"0933 \char"094D ~
\char"0934 \char"094D ~
\char"0935 \char"094D ~ 
\char"0936 \char"094D ~
\char"0937 \char"094D ~
\char"0938 \char"094D ~
\char"0939 \char"094D ~ 

\char"0958 \char"094D ~
\char"0959 \char"094D ~
\char"095A \char"094D ~
\char"095B \char"094D ~
\char"095C \char"094D ~
\char"095D \char"094D ~
\char"095E \char"094D ~
\char"095F \char"094D ~ 


\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] devanagari rendering (2 errors)

2013-09-09 Thread Hans Hagen

On 9/9/2013 10:05 PM, Peter Graif wrote:

Hello,

I recently learned that ConTeXt-mkiv and LuaTeX now support devanagari fonts. 
An enormous thank you to Kai and Hans and anyone else involved in making that 
happen. I know it's a niche application, but for some of us it makes all the 
difference.

I ran some tests on the output and the rendering is lovely, even on the 
extremely complex ligatures. I noticed only two errors, both of which are 
simple to describe and consistent:

1) Conjuncts of the form (consonant + virama + र "ra") render the opposite 
sequence intended. For example:
[U+0915] [U+094D][U+0930] (क्र "kra") incorrectly produces the glyph intended for 
[U+0930][U+094D][U+0915] (र्क "rka").

2) Word-final virama causes words to render with a half-consonant at the end. 
They should instead display the whole-consonant with the virama diacritic. 
Half-consonants should be used only when conjoining with another subsequent 
consonant in the same word.

A picture, in case it's more helpful: http://i.imgur.com/MpIwd9w.png

I tried to look at the code in hopes of offering a fix, but I'm afraid it was 
way over my head. If there's anything else I can do to help, I'd be happy for 
the opportunity.


Can you make a as-small-as-possible test file?

Preferable with proper utf-8 sequences (+ comment mentioning 
numbers/classes), good and wrong.


I can probably figure it out but I cannot read or input easily this kind 
of scripts.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] captions in float combinations

2013-09-09 Thread Robert Blackstone

Hi Marco, hi Aditya,

Thank you very much for the solutions you have proposed for my problem, that of 
making a side by side combination of two figures of unequal height with both 
the figures and their (sub)-captions located at the top.

In order not to make this mail too long I simply refer to the ntg-context 
Digest numbers and message number containing the proposed solutions: 
Marco's in ntg-context Digest, Vol 111, Issue 23, Message 1, and in ntg-context 
Digest, Vol 111, Issue 24, message 5, Aditya's in ntg-context Digest, Vol 111, 
Issue 24, message 4

These solutions give me all the possibilities I need. 
When I just want both figures in the combination to be located at the top 
without subcaptions I will probably use Marco's second proposal, which is both 
simpler and far more elegant than the hack I found myself.

If I want them at the top with subcaptions I will use Aditya's method, which, 
by the way, is nearly identical with Marco's first solution, but for two 
arguments for \externalfigure, the fllename of the figure and [location=top].

This fully solved my problem. Thank you both.
Wouldn't it  be worthwhile to add it to the wiki?

Best regards,
Robert


___
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] captions in float combinations

2013-09-09 Thread Aditya Mahajan

On Mon, 9 Sep 2013, Robert Blackstone wrote:


Wouldn't it  be worthwhile to add it to the wiki?


Definitely. The best place is http://wiki.contextgarden.net/Combinations 
and the documentation of \startcombination and 
\startplacecombinationfloat.


Aditya
___
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] devanagari rendering (2 errors)

2013-09-09 Thread Peter Graif
Hello,

I recently learned that ConTeXt-mkiv and LuaTeX now support devanagari fonts. 
An enormous thank you to Kai and Hans and anyone else involved in making that 
happen. I know it's a niche application, but for some of us it makes all the 
difference.

I ran some tests on the output and the rendering is lovely, even on the 
extremely complex ligatures. I noticed only two errors, both of which are 
simple to describe and consistent:

1) Conjuncts of the form (consonant + virama + र "ra") render the opposite 
sequence intended. For example:
[U+0915] [U+094D][U+0930] (क्र "kra") incorrectly produces the glyph intended 
for [U+0930][U+094D][U+0915] (र्क "rka").

2) Word-final virama causes words to render with a half-consonant at the end. 
They should instead display the whole-consonant with the virama diacritic. 
Half-consonants should be used only when conjoining with another subsequent 
consonant in the same word.

A picture, in case it's more helpful: http://i.imgur.com/MpIwd9w.png

I tried to look at the code in hopes of offering a fix, but I'm afraid it was 
way over my head. If there's anything else I can do to help, I'd be happy for 
the opportunity.

Best regards,
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] beta

2013-09-09 Thread Hans Hagen

Hi,

I uploaded a beta with additional bidi code. There are now three methods:

default : the original one, the fastest, wil be improved a bit
one : unicode bidi, derived from khaleds t-bidi, cleaned up and 
optimized plus some thingies, but in working still close to the original

two : unicode bidi, the version that will evolve

All methods come with the usual context kind of tracing.

Some of these methods have different options (default has local and 
global behaviour), one has no options, and for two one can disable fancy 
fences heuristics. More will follow once we have investigated all
upcoming changes, circulating wishes, conflicting demands etc. 
Eventually there will be a manual about these matters.


Here is an example (follow up on some post about hebrew on this list):

\starttext

\definefont[arabicfont][arabtype*arabic at 20pt]
\definefont[hebrewfont][arial*hebrewat 12pt]

\startbuffer[fences]
\hebrewfont
ש)ל(אnone\par
ש(ל]אnone\par
ש(ל)א2-4\par
ש(ל[א)כ] 2-6\par
ש(ל]א)כ  2-6\par
ש(ל)א)כ  2-4\par
ש(ל(א)כ  4-6\par
ש(ל(א)כ) 2-8, 4-6\par
ש(ל[א]כ) 2-8, 4-6\par
\stopbuffer

\startbuffer[junk]
\hebrewfont
\dorecurse{100}{
\dorecurse{20}{
שלום (אני) כותבשלום (אני) $ $ כותבשלום (אני) $x$ כותבשלום (אני) 
\ruledhbox {hans כותבשלום}
(אני) כותבשלום (אני) כותבשלום (אני) כותבשלום (אני) כותבשלום 
(אני) כותבשלום (אני) כותבשלום (אני) כותב

}
\par
}
\stopbuffer

\setupalign[r2l,verytolerant]

\start
\setupdirections[bidi=global,method=default]
\getbuffer[fences] \blank
\stop

\start
\setupdirections[bidi=global,method=one]
\enabletrackers[typesetters.directions.one]
\enabletrackers[typesetters.directions.one.details]
\getbuffer[fences] \blank
\disabletrackers[typesetters.directions.one]
\disabletrackers[typesetters.directions.one.details]
\stop

\start
\setupdirections[bidi=global,method=two,fences=yes]
\enabletrackers[typesetters.directions.two]
\enabletrackers[typesetters.directions.two.details]
\getbuffer[fences] \blank
\disabletrackers[typesetters.directions.two]
\disabletrackers[typesetters.directions.two.details]
\stop

\start
\setupdirections[bidi=global,method=two,fences=no]
\enabletrackers[typesetters.directions.two]
\enabletrackers[typesetters.directions.two.details]
\getbuffer[fences] \blank
\disabletrackers[typesetters.directions.two]
\disabletrackers[typesetters.directions.two.details]
\stop

\page

\start
\setupdirections[bidi=global,method=two]
\getbuffer[junk] \blank
\stop

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] \startfloattext ... \stopfloattext

2013-09-09 Thread Christian Prim
Thanks, Hans

that was exactly what I needed.

Christian


2013/9/9 Hans Hagen 

> On 9/9/2013 2:38 PM, Christian Prim wrote:
>
>> What is the context way to place text near a table (or another float) in
>> an enumeration-environment?
>>
>> I just want to have the text "just this" right to the table. The
>> second item "2)" should be below the table.
>>
>> In the (not so) MWE all is fine, but the table is not indented.
>>
>> When I use \placetable the text is indented, but the second item is
>> placed near the table on the right. (I could insert a \blank[xycm] but I
>> don't think it's the way to solve my problem.)
>>
>> Thanks for all comments
>>
>> Christian
>>
>> \starttext
>> \startitemize[n,packed,**joinedup][stopper=)]
>> \item Abhängigkeit der Beschleunigung von der Wagenmasse $m$:
>> \blank
>> $M=$ \hl[5] \unit{kg}
>> \blank
>> \starttabletext[left,high,**none]{}{
>> %\placetable[left,high,none]{}**{
>> \starttable[|l|l|]
>> \HL
>> \VL $m$ in kg \VL $a$ in \unit{m isquare s} \VL\NR
>> \HL
>> \VL \qquad \VL \qquad \VL\AR
>> \VL \VL \VL\AR
>> \HL
>> \VL \VL \VL\AR
>> \VL \VL \VL\AR
>> \HL
>> \VL \VL \VL\AR
>> \VL \VL \VL\AR
>> \HL
>> \stoptable}
>> Just this text near the table!
>> \stoptabletext
>> \item second item ...
>> \stoptext
>>
>
> one of the solution is to use paired boxes:
>
> \starttext
>
> \definepairedbox
>   [mylegend]
>   [location={right,top}] % width=10cm
>
> \startitemize[n,packed,**joinedup][stopper=)]
> \startitem
> some introduction text \blank and some more \blank
> \startplacemylegend
> \startcontent
> \starttable[|l|l|]
> \HL \VL foo \VL bar \VL \NR \HL
>
> \VL \VL \VL \AR \VL \VL \VL \AR \HL
> \VL \VL \VL \AR \VL \VL \VL \AR \HL
> \VL \VL \VL \AR \VL \VL \VL \AR \HL
> \stoptable
> \stopcontent
> \startcaption
> \input ward
> \stopcaption
> \stopplacemylegend
> \stopitem
> \startitem
> and even more
> \stopitem
> \stopitemize
>
> \stoptext
>
> I patched the beta a bit so that for a horizontal variant the hsize is
> calculated automatically.
>
> Hans
>
> --**--**-
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> --**--**-
> __**__**
> ___
> 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
> __**__**
> ___
>
___
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] \startfloattext ... \stopfloattext

2013-09-09 Thread Hans Hagen

On 9/9/2013 2:38 PM, Christian Prim wrote:

What is the context way to place text near a table (or another float) in
an enumeration-environment?

I just want to have the text "just this" right to the table. The
second item "2)" should be below the table.

In the (not so) MWE all is fine, but the table is not indented.

When I use \placetable the text is indented, but the second item is
placed near the table on the right. (I could insert a \blank[xycm] but I
don't think it's the way to solve my problem.)

Thanks for all comments

Christian

\starttext
\startitemize[n,packed,joinedup][stopper=)]
\item Abhängigkeit der Beschleunigung von der Wagenmasse $m$:
\blank
$M=$ \hl[5] \unit{kg}
\blank
\starttabletext[left,high,none]{}{
%\placetable[left,high,none]{}{
\starttable[|l|l|]
\HL
\VL $m$ in kg \VL $a$ in \unit{m isquare s} \VL\NR
\HL
\VL \qquad \VL \qquad \VL\AR
\VL \VL \VL\AR
\HL
\VL \VL \VL\AR
\VL \VL \VL\AR
\HL
\VL \VL \VL\AR
\VL \VL \VL\AR
\HL
\stoptable}
Just this text near the table!
\stoptabletext
\item second item ...
\stoptext


one of the solution is to use paired boxes:

\starttext

\definepairedbox
  [mylegend]
  [location={right,top}] % width=10cm

\startitemize[n,packed,joinedup][stopper=)]
\startitem
some introduction text \blank and some more \blank
\startplacemylegend
\startcontent
\starttable[|l|l|]
\HL \VL foo \VL bar \VL \NR \HL
\VL \VL \VL \AR \VL \VL \VL \AR \HL
\VL \VL \VL \AR \VL \VL \VL \AR \HL
\VL \VL \VL \AR \VL \VL \VL \AR \HL
\stoptable
\stopcontent
\startcaption
\input ward
\stopcaption
\stopplacemylegend
\stopitem
\startitem
and even more
\stopitem
\stopitemize

\stoptext

I patched the beta a bit so that for a horizontal variant the hsize is 
calculated automatically.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] \startfloattext ... \stopfloattext

2013-09-09 Thread Christian Prim
What is the context way to place text near a table (or another float) in an
enumeration-environment?

I just want to have the text "just this" right to the table. The second
item "2)" should be below the table.

In the (not so) MWE all is fine, but the table is not indented.

When I use \placetable the text is indented, but the second item is placed
near the table on the right. (I could insert a \blank[xycm] but I don't
think it's the way to solve my problem.)

Thanks for all comments

Christian

\starttext
\startitemize[n,packed,joinedup][stopper=)]
\item Abhängigkeit der Beschleunigung von der Wagenmasse $m$:
\blank
$M=$ \hl[5] \unit{kg}
\blank
\starttabletext[left,high,none]{}{
%\placetable[left,high,none]{}{
\starttable[|l|l|]
\HL
\VL $m$ in kg \VL $a$ in \unit{m isquare s} \VL\NR
\HL
\VL \qquad \VL \qquad \VL\AR
\VL \VL \VL\AR
\HL
\VL \VL \VL\AR
\VL \VL \VL\AR
\HL
\VL \VL \VL\AR
\VL \VL \VL\AR
\HL
\stoptable}
Just this text near the table!
\stoptabletext
\item second item ...
\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] [***SPAM***] YATM (Yet Another Table Method)

2013-09-09 Thread Hans Hagen

On 9/9/2013 9:13 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

just one user's point of view:

There are many table-creating commands.

Some of them are deprecated and only supported for backward compatibility.


they are not deprecated at all

- table: a rather traditional, close to tex alignment mechanism
- tabulate: quite good for text, breaks across pages nicely, i use that 
one myself most of the time (i might redo it one time)
- TABLE: to some extend html compatible, originally meant for uise in 
combination with xml, but also useable in tex (somewhat slow)
- xtable: a follow up on TABLE (with some strong points but also some 
limitations)



It seemed to me till now that natural tables (provided by \...TABLE...
commands) were best choice as they are versatile, they have friendly
setup, they may be split over more pages (with repeating header/footer)
and (almost each feature) may be specified individually for row, column
or even cell.

It seemed to that nothing more user might wish.


i must admit that i only use it in combination with xml -)


(And - as "more complicated", i.e. more typing to enter them, Lua helps
in this situation.)

Now, we have xtables which have the same functionality as TABLEs, or a
bit more.
But - (?) xtables have a bit "poorer" setup options (so far? - By
Wolfgang's answer).


hm, in fact the configuration options are better; it doesn't have the 
x,y setup but named rows, cells and row/cellgroups are quite ok



Do you plan to add something equivalent to
\setupTABLE[][][]
because xtables lack the function to set values for certain rows/columns.


not on the agenda (one can use symbolic names of setups which is more 
powerful that hard coded numbers)



Wolfgang


The "more" is - named cells? Faster rendering?

IMHO - wouldn't be better to extend TABLEs to be as good as xtables
(i.e. - add named cells)?


no, as it would be even slower .. i also tend not to touch TABLE to much 
as it is used in workflows that demand stability



Or to unify xtables and TABLEs - make xtables and TABLEs have the same
functionality and options, and make their names/commands synonyms?

- When I started using Ctx, there were so many tabling commands and I
always had to compare their possibilities to select one; and to check
whether the chosen "tabler" is not deprecated.

So I ended up with TABLEs (and Lua).

Now, it seems to me that TABLEs will become deprecated, being replaced
with xtables...


it will never be deprecated but i might have missed an announcement -)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] Strange page break before \title

2013-09-09 Thread Wolfgang Schuster

Am 09.09.2013 um 09:23 schrieb Xan :

> On Sun, 8 Sep 2013 14:21:08 +0200
> Wolfgang Schuster  ha escrit:
> 
>> 
>> Am 07.09.2013 um 22:34 schrieb Xan :
>> 
>>> On Fri, 6 Sep 2013 13:22:55 +0200
>>> Wolfgang Schuster  ha escrit:
>>> 
 after=\midaligned{\blackrule[width=7cm,height=\linewidth]}
>>> 
>>> Thanks, perfect.
>>> 
>>> But why (by default) it breaks the page and with simple \title does not do?
>> 
>> I don’t know what you mean with your simple \title.
>> 
> 
> \title{foo}
> 
> does not break page in my case.

The setting "\setuphead[title][page=no]" prevents a page before \title,
is this isn’t he problem in your case make a minimal example.

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
___


Re: [NTG-context] Strange page break before \title

2013-09-09 Thread Xan
On Sun, 8 Sep 2013 14:21:08 +0200
Wolfgang Schuster  ha escrit:

> 
> Am 07.09.2013 um 22:34 schrieb Xan :
> 
> > On Fri, 6 Sep 2013 13:22:55 +0200
> > Wolfgang Schuster  ha escrit:
> > 
> >> after=\midaligned{\blackrule[width=7cm,height=\linewidth]}
> > 
> > Thanks, perfect.
> > 
> > But why (by default) it breaks the page and with simple \title does not do?
> 
> I don’t know what you mean with your simple \title.
> 

\title{foo}

does not break page in my case.
___
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] [***SPAM***] YATM (Yet Another Table Method)

2013-09-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

just one user's point of view:

There are many table-creating commands.

Some of them are deprecated and only supported for backward compatibility.

It seemed to me till now that natural tables (provided by \...TABLE... 
commands) were best choice as they are versatile, they have friendly setup, 
they may be split over more pages (with repeating header/footer) and (almost 
each feature) may be specified individually for row, column or even cell.

It seemed to that nothing more user might wish.

(And - as "more complicated", i.e. more typing to enter them, Lua helps in this 
situation.)

Now, we have xtables which have the same functionality as TABLEs, or a bit more.
But - (?) xtables have a bit "poorer" setup options (so far? - By Wolfgang's 
answer).


Do you plan to add something equivalent to 
\setupTABLE[][][]
because xtables lack the function to set values for certain rows/columns.



Wolfgang


The "more" is - named cells? Faster rendering?

IMHO - wouldn't be better to extend TABLEs to be as good as xtables (i.e. - add 
named cells)?

Or to unify xtables and TABLEs - make xtables and TABLEs have the same 
functionality and options, and make their names/commands synonyms?

- When I started using Ctx, there were so many tabling commands and I always had to 
compare their possibilities to select one; and to check whether the chosen 
"tabler" is not deprecated.

So I ended up with TABLEs (and Lua).

Now, it seems to me that TABLEs will become deprecated, being replaced with 
xtables...

Best regards,

Lukas


On Sun, 08 Sep 2013 17:04:21 +0200, Hans Hagen  wrote:


On 9/8/2013 4:41 PM, hwit...@gmail.com wrote:


Yes, I was need to set the height and width of cells as well as turn on and off 
top/bottom, left/right cell frames.  Is this functionality covered in extreme 
tables?


you can still do that but with either explicit settings or with symbolic
references to settings


When you write "certain rows and colums" do you mean certain settings for rows 
and columns?


you can have named rows/columns


If some functions are missing, I assume that they will be added in the future.  
Is this assumption correct?


it is *not* a replacement for TABLE in the sense that not all
functionality is the same; there might however be more functionality in
xtreme tables

Hans



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

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