Re: [NTG-context] A bug in character alignment?

2006-08-01 Thread Peter Münster
On Mon, 31 Jul 2006, Nicolas Grilly wrote:

 But I have a little issue with character alignment. I have several
 tables following each other. First and second tables are well aligned.
 But following tables have some columns mis-aligned. You can see the
 result in the attached file report_with_bug.pdf (look at column 4 of
 tables 3, 4, 5 and 6).

Sorry, I can't see it. The column are right-aligned, which is normal, since
there is no alignment-character.
The only bug I see, is the missing accent:
Evolution should be Évolution

 \setupTABLE[column][each][align={middle,lohi}, aligncharacter=yes,
   alignmentcharacter={;}]
   ^^^
Could you explain this?

Cheers, Peter

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


Re: [NTG-context] Rule under length of last line

2006-08-01 Thread Taco Hoekwater


Hans Hagen wrote:

The key element is \setlastlinewidth, which measures the width
of the final line of the current paragraph.
  
 
 i was thinking of that as a third solution but somehow you 
 trust \setlastlinewidth more than i do -) 

The cases where it fails are very unlikely to happen in section titles.

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


Re: [NTG-context] Figure number off one time

2006-08-01 Thread Hans Hagen
Aditya Mahajan wrote:
 On Mon, 31 Jul 2006, David Arnold wrote:

   
 All,

 I would like to use:

 \placefigure
 [right][fig:pythagoras]
 {An early portrait of Pythagoras.}
 {\getbuffer[figure]}

 And I would like to turn off the figure number in this caption, but
 just for this graphic, not for any other I place. I want the number
 off, but I want to keep the caption An early portrait of Pythagoras.

 The following didn't work.
 

 Try

 \start
   \setupcaptions[number=no]
   \placefigure
 [right]
 %  [fig:pythagoras]
 % If there is no number, you can not refer to it
   {An early portrait of Pythagoras.}
   {\getbuffer[figure]}
 \stop

 Basically \start \stop limit the effect of \setupcaptions. You can 
 also use \bgroup \egroup or { .. } instead. I find \start \stop more 
 Contexish.
   
hey, how come you don't know the easy way ... 

\placefigure[right,none]{An early portrait of Pythagoras.}{}

\placefigure[right,nonumber]{An early portrait of Pythagoras.}{}

\placefigure[right]{An early portrait of Pythagoras.}{}

it's david's turn to wikify this 

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] Indentation bug ?

2006-08-01 Thread Renaud AUBIN




Hi all,

Same problem when \placefigure[auto] is used...

Is there a chance that this bug will be corrected before the beginning
of september ? ;)
(if this is a bug...)

Renaud AUBIN a crit:

  
  
  Hi all,
  
Considering the following example:
%%%
\setupindenting[medium,yes]
\setupformulas[indentnext=yes]
\setupheads[indentnext=yes]
\setupfloats[indentnext=yes]
  
\starttext
  
\startuseMPgraphic{mympgraph}
numeric u; u:=2cm;
draw (-u,-u)--(u,u);
draw ((-u,-u)--(u,u)) rotated 90;
\stopuseMPgraphic
  
\section{A section}
La liaison inter-modulaire conue par TDA pour le prototype
est une liaison pivot d'axe vertical. En effet, mme si elle dispose
de possibilits de dbattements angulaires, ces dbattements
admissibles sont relativement faibles. De plus, seul la rotation
suivant l'axe de la liaison pivot peut tre actionn et, en l'tat,
les dbattements ne peuvent en aucun cas tre pilots. Nanmoins, le
problme pos par cette articulation ne se pose pas si l'on se
restreint  des dplacements sur des surfaces planes ou rgulires
relativement aux grandeurs du robot. Nous ne prsenterons pas ici la
conception mcanique de cette liaison.
  
\placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}
  
La liaison inter-modulaire conue par TDA pour le prototype
est une liaison pivot d'axe vertical. En effet, mme si elle dispose
de possibilits de dbattements angulaires, ces dbattements
admissibles sont relativement faibles. De plus, seul la rotation
suivant l'axe de la liaison pivot peut tre actionn et, en l'tat,
les dbattements ne peuvent en aucun cas tre pilots. Nanmoins, le
problme pos par cette articulation ne se pose pas si l'on se
restreint  des dplacements sur des surfaces planes ou rgulires
relativement aux grandeurs du robot. Nous ne prsenterons pas ici la
conception mcanique de cette liaison.
  
\page
\section{A second section}
\input knuth
  
\placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}
  
\input knuth
  
\stoptext
%%
  
Paragraphs next to \placefigure calls are not indented when [bottom] is
used. They are indented correctly when one use [top] or [here].
  
Strange... ;)
  
  
Cheers,
  
Renaud
  
PS to Hans: U3D ?
  
  
  
  

___
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] Figure 1. (Hans, is there a bug?)

2006-08-01 Thread Taco Hoekwater


David Arnold wrote:
 All,
 
 Anyone know how to put a period after Figure 1 in a figure caption?

This seems to work:

   \setupcaption[figure][suffix={\strut}]

but it looks like the logic is a bit flawed at the moment, I would
have expected

   \setupcaption[figure][suffix=.]
or
   \setupcaption[figure][stopper=.]
or perhaps even
   \setupcaption[figure][stopper=.,suffix=.]


but the first one gives Figure 1.., the second doesn't work, and
the third gives Figure 1  I remember Hans changed something
recently, but this doesn't seem right.

Greetings,
Taco


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


Re: [NTG-context] grid and \textrule

2006-08-01 Thread Taco Hoekwater


[EMAIL PROTECTED] wrote:
 Hallo!
 
 I use 
 
 \setuplayout[grid=yes]
 
 and a chapterdefinition which looks like:
 
 Author
 -
 
 Title

You can wrap that whole stuff inside

   \startlinecorrection
   ...
   \stoplinecorrection

The stuff inside that environment will not be grid-aligned,
but the final resulting box will be.

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


Re: [NTG-context] colums

2006-08-01 Thread Hans Hagen
Hans van der Meer wrote:
 When I do:

 \setupcolumns[n=2,balance=no,tolerance=verytolerant,rule=on] % and 
 variations
 \startext
 \startcolumns
 abc
 \column
 def
 \stopcolumns
 \stoptext

 This produces two columns when typeset on the upper half of the page.
 Suddenly about halfway the page the columns are not put side by side 
 but below each other!

 Is this something known are am I becoming mad?
\column is just not that trustworthy; columnsets give more control but 
cannot be used mixed with one column

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] buffers

2006-08-01 Thread Hans van der Meer

On Aug 1, 2006, at 0:21, Aditya Mahajan wrote:

 On Mon, 31 Jul 2006, Hans van der Meer wrote:

 The ConTeXt manual tells me on page 237:

  You can define your own buffer with:
  \definebuffer[...]
  ... name
  After this command /getbuffer and \typebuffer are available where
 buffer is the name of the buffer.


 If you just want to tag buffers, you do not need to define new ones.
 You can simply do

 \startbuffer[test]
 Hello world
 \stopbuffer

 \typebuffer[test]

 \getbuffer[test]


Thanks, that solved it.

Hans van der Meer



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


Re: [NTG-context] colums

2006-08-01 Thread Hans van der Meer

On Aug 1, 2006, at 0:25, Aditya Mahajan wrote:

 On Mon, 31 Jul 2006, Hans van der Meer wrote:

 When I do:

 \setupcolumns[n=2,balance=no,tolerance=verytolerant,rule=on] % and  
 variations
 \startext
 \startcolumns
 abc
 \column
 def
 \stopcolumns
 \stoptext

 This produces two columns when typeset on the upper half of the page.
 Suddenly about halfway the page the columns are not put side by  
 side but
 below each other!

 Can you give an example that shows the problem?

 Aditya


I ran the next code on the Live Context site and it gave me first  
column on the first page and second column on page 2.

\starttext
\dorecurse{4}{\input tufte}

\startcolumns[n=2]
first column
\column
second column
\stopcolumns
\stoptext

But, as Hans Hagen wrote in another reply:

 \column is just not that trustworthy; columnsets give more control but
 cannot be used mixed with one column

However, I seem to remember columnsets as fairly complex.

Hans van der Meer



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


Re: [NTG-context] Indentation bug ?

2006-08-01 Thread Alan Bowen
On Aug 1, 2006, at 4:03 AM, Renaud AUBIN wrote: Hi all,  Same problem when \placefigure[auto] is used...  Is there a chance that this bug will be corrected before the beginning of september ? ;) (if this is a bug...)  Renaud AUBIN a écrit :   Hi all,   Considering the following example: %%% \setupindenting[medium,yes] \setupformulas[indentnext=yes] \setupheads[indentnext=yes] \setupfloats[indentnext=yes]   \starttext   \startuseMPgraphic{mympgraph} numeric u; u:=2cm; draw (-u,-u)--(u,u); draw ((-u,-u)--(u,u)) rotated 90; \stopuseMPgraphic   \section{A section} La liaison inter-modulaire conçue par TDA pour le prototype est une liaison pivot d'axe vertical. En effet, même si elle dispose de possibilités de débattements angulaires, ces débattements admissibles sont relativement faibles. De plus, seul la rotation suivant l'axe de la liaison pivot peut être actionné et, en l'état, les débattements ne peuvent en aucun cas être pilotés. Néanmoins, le problème posé par cette articulation ne se pose pas si l'on se restreint à des déplacements sur des surfaces planes ou régulières relativement aux grandeurs du robot. Nous ne présenterons pas ici la conception mécanique de cette liaison.   \placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}   La liaison inter-modulaire conçue par TDA pour le prototype est une liaison pivot d'axe vertical. En effet, même si elle dispose de possibilités de débattements angulaires, ces débattements admissibles sont relativement faibles. De plus, seul la rotation suivant l'axe de la liaison pivot peut être actionné et, en l'état, les débattements ne peuvent en aucun cas être pilotés. Néanmoins, le problème posé par cette articulation ne se pose pas si l'on se restreint à des déplacements sur des surfaces planes ou régulières relativement aux grandeurs du robot. Nous ne présenterons pas ici la conception mécanique de cette liaison.   \page \section{A second section} \input knuth   \placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}   \input knuth   \stoptext %%   Paragraphs next to \placefigure calls are not indented when [bottom] is used. They are indented correctly when one use [top] or [here].   Strange... ;) Cheers,   Renaud   PS to Hans: U3D ?I am not getting indenting with the first paragraph following the [here] option; that is, with the first paragraph following\useexternalfigure[Graphic][NP.pdf][] \placefigure		[here,force,nonumber]		[]		{x}		{\externalfigure[NP.pdf][type=pdf]}I am using ConTeXt  ver: 2006.07.22 18:35  fmt: 2006.7.23 Best, Alan ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Figure number off one time

2006-08-01 Thread David Arnold
Very nice. This worked well. Thanks Hans.

In connection with this same question, consider the small example  
that follows. My thinking was that I would like to have a couple of  
lines of the paragraph in the output, then let the rest of the  
paragraph wrap around the figure positioned at the right of the page.  
However, I get a paragraph break and an indent.

Workaround?

\setupwhitespace[medium]

\setupindenting[medium,yes]

\starttext

\section[sec:pythagoras]{The Pythagoreean Theorem}

Pythagoras was a Greek mathematician and philosopher, born on the  
island of
Samos somewhere near the year 582 BC. He founded a number of schools,  
one in
\placefigure
   [right,nonumber][fig:pythagoras]
   {Pythagoras.}
   {\externalfigure[Pythagoras][width=4cm]}
particular in a town in southern Italy called Crotone, whose members  
eventually became known as the Pythagoreans. The inner circle at the  
school, the {\em Mathematikoi}, lived at the school, rid themselves  
of all personal possessions, were vegetarians, and observed a strict  
vow of silence. They studied mathematics, philosophy, and music, and  
held the belief that numbers constitute the true nature of things,  
giving numbers a mystical or even spiritual quality.

Today, nothing is known of Pythagoras's writings, perhaps due to the  
secrecy and silence of the Pythagorean society. However, one of the  
most famous theorems in all of mathematics does bear his name, the  
{\em Pythagorean Theorem.}

\stoptext




On Aug 1, 2006, at 1:01 AM, Hans Hagen wrote:

 Aditya Mahajan wrote:
 On Mon, 31 Jul 2006, David Arnold wrote:


 All,

 I would like to use:

 \placefigure
 [right][fig:pythagoras]
 {An early portrait of Pythagoras.}
 {\getbuffer[figure]}

 And I would like to turn off the figure number in this caption, but
 just for this graphic, not for any other I place. I want the number
 off, but I want to keep the caption An early portrait of  
 Pythagoras.

 The following didn't work.


 Try

 \start
   \setupcaptions[number=no]
   \placefigure
 [right]
 %  [fig:pythagoras]
 % If there is no number, you can not refer to it
   {An early portrait of Pythagoras.}
   {\getbuffer[figure]}
 \stop

 Basically \start \stop limit the effect of \setupcaptions. You can
 also use \bgroup \egroup or { .. } instead. I find \start \stop more
 Contexish.

 hey, how come you don't know the easy way ...

 \placefigure[right,none]{An early portrait of Pythagoras.}{}

 \placefigure[right,nonumber]{An early portrait of Pythagoras.}{}

 \placefigure[right]{An early portrait of Pythagoras.}{}

 it's david's turn to wikify this

 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] Figure number off one time

2006-08-01 Thread Aditya Mahajan
Quoting David Arnold [EMAIL PROTECTED]:

 Very nice. This worked well. Thanks Hans.

 In connection with this same question, consider the small example
 that follows. My thinking was that I would like to have a couple of
 lines of the paragraph in the output, then let the rest of the
 paragraph wrap around the figure positioned at the right of the page.
 However, I get a paragraph break and an indent.

 Workaround?


Use [n*hang] e.g.,

\starttext

\placefigure[right,nonumber,3*hang]
{Pythagoras}{\framed[width=4cm, height=2cm]{Test}}
\input tufte \input tufte

\stoptext

Aditya


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


Re: [NTG-context] Figure number off one time

2006-08-01 Thread David Arnold
Aditya,

Excellent! Where do you learn this stuff?

On Aug 1, 2006, at 9:40 AM, Aditya Mahajan wrote:

 Quoting David Arnold [EMAIL PROTECTED]:

 Very nice. This worked well. Thanks Hans.

 In connection with this same question, consider the small example
 that follows. My thinking was that I would like to have a couple of
 lines of the paragraph in the output, then let the rest of the
 paragraph wrap around the figure positioned at the right of the page.
 However, I get a paragraph break and an indent.

 Workaround?


 Use [n*hang] e.g.,

 \starttext

 \placefigure[right,nonumber,3*hang]
 {Pythagoras}{\framed[width=4cm, height=2cm]{Test}}
 \input tufte \input tufte

 \stoptext

 Aditya


 ___
 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] Figure number off one time

2006-08-01 Thread Aditya Mahajan
On Tue, 1 Aug 2006, David Arnold wrote:

 Aditya,

 Excellent! Where do you learn this stuff?

By reading Hans and Taco's mails on this list carefully :-)

http://archive.contextgarden.net/message/20060104.104437.5ad3678a.en.html

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


Re: [NTG-context] Figure number off one time

2006-08-01 Thread Hans Hagen
David Arnold wrote:
 Aditya,

 Excellent! Where do you learn this stuff?
   
he's read the source -) 

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] Figure number off one time

2006-08-01 Thread Hans Hagen
David Arnold wrote:
 Very nice. This worked well. Thanks Hans.

 In connection with this same question, consider the small example  
 that follows. My thinking was that I would like to have a couple of  
 lines of the paragraph in the output, then let the rest of the  
 paragraph wrap around the figure positioned at the right of the page.  
 However, I get a paragraph break and an indent.

 Workaround?
   
no workaround, just a feature:

\placefigure
   [right,nonumber,2*hang][fig:pythagoras]
   {Pythagoras.}
   {\externalfigure[Pythagoras][width=4cm]}

or

\placefigure
   [right,nonumber,2*line][fig:pythagoras]
   {Pythagoras.}
   {\externalfigure[Pythagoras][width=4cm]}

don't rely on this to work at page boundaries

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] column overflow at times --- any thoughts?

2006-08-01 Thread David Arnold
Hans et al, Any thoughts on this?

We are using:

\setupcolumns
[tolerance=stretch,
balance=yes,
blank=flexible,
rule=off,
distance=2.5em]

However, once in a while we get column overflow. See page 55 on:

http://msenux.redwoods.edu/IntAlgText/chapter0/chapter0.pdf

Are we doing this correctly? Any suggestions?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] fullpage graphic

2006-08-01 Thread wwl
Hallo!

I can not find a solution for the following problem:

I would like to place a floating, framed graphic at the next page 
following the \placefigure[]{}{\framed[]{...}} command.

Problem: The graphicdimensions are (\makeupwidth,\textheight).

Neither the options page, here, force or always help.

If the graphic is a little smaller, so that at least one line of text 
fit on the page, than the graphic gets placed at the right page, else 
the graphic is placed behind the end of the chapter.

Second question:

How can I place a fullpage graphic 
(\paperheight+epsilon,\paperwidth+epsilon) as above
at the next page, and how can I count, but don't display pagenumbers 
for such graphic pages?

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


Re: [NTG-context] ntg-context grid and \textrule

2006-08-01 Thread wwl
 You can wrap that whole stuff inside
 
\startlinecorrection
...
\stoplinecorrection
 
 The stuff inside that environment will not be grid-aligned,
 but the final resulting box will be.

Thank you, that works.

Wolfgang

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


Re: [NTG-context] Switching Font Size in a Natural Table

2006-08-01 Thread Mojca Miklavec
On 7/26/06, Neal Lester wrote:
 Is it possible to use more than one font size within a Natural
 Table?  If so, how?

Why not? But what exactly is your question/what do you want to do/what
went wrong when you tried to use it?

\setupTABLE[c][1][style=\bfb]
\bTABLE
\bTR\bTD abc\eTD\bTD def\eTD\eTR
\eTABLE

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


[NTG-context] problems with \lcommaaccent

2006-08-01 Thread Mojca Miklavec
Hello,

I've been trying to use \lcommaaccent, but with no success until I
commented out the following line in enco-cas:

% \defineULcharacter Lcommaaccent lcommaaccent

Any ideas how to solve that problem (otherwise the temporary
workaround will disappear as soon as I update ConTeXt)? The only
remedy that came to my mind was adding additional two lines to
enco-def. (Hans, would it be possible to add them to the distribution
as well?)


\definecharacter lcommaaccent {\buildtextbottomcomma l}
\definecharacter Lcommaaccent {\buildtextbottomcomma L}

\starttext
\lcommaaccent\Lcommaaccent
\stoptext

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