ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug in \column
@ 2013-03-18 18:32 Xan
  2013-03-18 21:34 ` Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: Xan @ 2013-03-18 18:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 351 bytes --]

Hi,

I found a possibly bug (I attached the doc). With bigskip twocolumns 
work but with \column it does not. That is, with the diff:

98c98
< \bigskip
---
 > %\bigskip
100c100
< %\column
---
 > \column


it does not work: the last exercise is shown in the first column.

Can anyone explain me what happens?

Thanks in advance,
Xan.

PS: Please CCme.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: examen-sistemes.tex --]
[-- Type: text/x-tex; name="examen-sistemes.tex", Size: 2509 bytes --]

\enableregime[utf]
\setupbodyfont [cmr,11pt]
\mainlanguage[ca]
\setuppagenumbering [location={footer}]
\setuppapersize [A4]
\setuplayout[topspace=1.5cm,margin=1.5cm,header=1.5cm,footer=1.5cm,width=fit,height=fit,backspace=1.5cm]
\setuphead[title][align={center},style={\sca}, after={\medskip}]
\setuphead[subject][after={\hrule\medskip}]

% AMSTHM
\defineenumeration
  [exercici]
  [text={Exercici},headstyle=bold,between=\blank,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss,title=yes,titlestyle=\ss,titledistance=.5em]


% Heads and footers
\setupfootertexts[\pagenumber]
\setupfooter[text][before=\hrule]
\setupheader[text][after=\hrule]
\setupheadertexts[{\tfx \mid IES Binissalem \mid 4t D \mid MAT \mid }][{\tfx Sistemes d'equacions \mid Examen \mid 15/3/2012 \mid}]

% underline
\setupunderbar[alternative=b]


\starttext

\title{Examen de Matemàtiques}

\bigskip
\startframedtext[width=broad, location=middle, before={}]
\startalignment[middle]
Feis l'opció comuna de totes maneres i, després, trieu entre l'Opció A o l'Opció B
\stopalignment
\stopframedtext

\subject{Part comuna}

\startcolumns

\startexercici Resoleu emprant el mètode de substitució:

\placeformula
\startformula
\startmathalignment
\NC x + 3y \NC = 9 \NR[+]
\NC 2x - y \NC = 3 \NR
\stopmathalignment
\stopformula

\stopexercici

\startexercici Resoleu pel mètode de reducció:
\placeformula
\startformula
\startmathalignment
\NC 3x + 7y \NC = -23 \NR[+]
\NC 5x + 4y \NC = -23 \NR
\stopmathalignment
\stopformula

\stopexercici

\stopcolumns


\subject{Opció A}

\startexercici Resoleu pel mètode que vulgueu:

\placeformula
\startformula
\startmathalignment
\NC \frac{x}{3} + \frac{4y}{5} - 3(x+y) \NC = -19 \NR[+]
\NC \frac{3x}{3} - \frac{1}{3} (y-5) \NC = 3 \NR
\stopmathalignment
\stopformula

\stopexercici


\subject{Opció B}

\startcolumns

\startexercici Resoleu aquest sistema pel mètode que vulgueu:

\placeformula
\startformula
\startmathalignment
\NC -2x - y \NC = -11 \NR[+]
\NC 3x - y \NC = 9 \NR
\stopmathalignment
\stopformula

\stopexercici
\bigskip

%\column

\startexercici Resoleu el sistema següent pel mètode que considereu oportú:

\placeformula
\startformula
\startmathalignment
\NC 2x + \frac{5y}{2} \NC = 7 \NR[+]
\NC -3x + y \NC = -1 \NR
\stopmathalignment
\stopformula
\stopexercici

\stopcolumns

\stoptext

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Bug in \column
  2013-03-18 18:32 Bug in \column Xan
@ 2013-03-18 21:34 ` Wolfgang Schuster
  2013-03-19 19:50   ` Xan
  0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2013-03-18 21:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Xan, Hans Hagen


Am 18.03.2013 um 19:32 schrieb Xan <dxpublica@telefonica.net>:

> Hi,
> 
> I found a possibly bug (I attached the doc). With bigskip twocolumns work but with \column it does not. That is, with the diff:
> 
> 98c98
> < \bigskip
> ---
> > %\bigskip
> 100c100
> < %\column
> ---
> > \column
> 
> 
> it does not work: the last exercise is shown in the first column.


The default value to fill the column (\vskip\textheight) does only work
when you start the columns at the top of the page but not when you start
them in the middle of page. When this fixed value is replaced with
\pagegoal it does also work in the middle of the page.

% \installcolumnbreakmethod \s!multicolumn \v!yes
%   {\vskip\textheight
%    \penalty-200 % we can mark and intercept this
%    \vskip-\textheight}

\unprotect
\installcolumnbreakmethod \s!multicolumn \v!yes
  {\vskip .5\pagegoal
   \penalty-200 % we can mark and intercept this
   \vskip-.5\pagegoal}
\protect

\starttext

\startcolumns
a
\column
b
\stopcolumns

\page

\blank[force,12cm]

\startcolumns
a
\column
b
\stopcolumns

\stoptext

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Bug in \column
  2013-03-18 21:34 ` Wolfgang Schuster
@ 2013-03-19 19:50   ` Xan
  2013-03-20  9:28     ` Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: Xan @ 2013-03-19 19:50 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users, Hans Hagen

Al 18/03/13 22:34, En/na Wolfgang Schuster ha escrit:
> Am 18.03.2013 um 19:32 schrieb Xan <dxpublica@telefonica.net>:
>
>> Hi,
>>
>> I found a possibly bug (I attached the doc). With bigskip twocolumns work but with \column it does not. That is, with the diff:
>>
>> 98c98
>> < \bigskip
>> ---
>>> %\bigskip
>> 100c100
>> < %\column
>> ---
>>> \column
>>
>> it does not work: the last exercise is shown in the first column.
>
> The default value to fill the column (\vskip\textheight) does only work
> when you start the columns at the top of the page but not when you start
> them in the middle of page. When this fixed value is replaced with
> \pagegoal it does also work in the middle of the page.
>
> % \installcolumnbreakmethod \s!multicolumn \v!yes
> %   {\vskip\textheight
> %    \penalty-200 % we can mark and intercept this
> %    \vskip-\textheight}
>
> \unprotect
> \installcolumnbreakmethod \s!multicolumn \v!yes
>    {\vskip .5\pagegoal
>     \penalty-200 % we can mark and intercept this
>     \vskip-.5\pagegoal}
> \protect
>
> \starttext
>
> \startcolumns
> a
> \column
> b
> \stopcolumns
>
> \page
>
> \blank[force,12cm]
>
> \startcolumns
> a
> \column
> b
> \stopcolumns
>
> \stoptext
>
> Wolfgang
Can you modify it for working? By the user perspective it's an annoying 
bug. A clean command should not produce that, isn't it?

Xan.
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Bug in \column
  2013-03-19 19:50   ` Xan
@ 2013-03-20  9:28     ` Wolfgang Schuster
  2013-03-20  9:40       ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2013-03-20  9:28 UTC (permalink / raw)
  To: Xan; +Cc: mailing list for ConTeXt users, Hans Hagen


Am 19.03.2013 um 20:50 schrieb Xan <dxpublica@telefonica.net>:

> Can you modify it for working? By the user perspective it's an annoying bug. A clean command should not produce that, isn't it?

I have to agree that the current situation with the \column command isn’t perfect but each solution has it’s own problems.

The example below uses three different definitions for the \column command, the first and third result in a empty column when there is to much text in the first column while the second definition ignores the command and balances the text of both columns.

<example>
\starttext \showframe

% Default method

\blank[force,12cm]

\startcolumns
\dorecurse{16}{a\par}
\column
b
\stopcolumns

\page

% Method 1

\unprotected\installcolumnbreakmethod \s!multicolumn \v!yes
 {\scratchdimen\dimexpr\pagegoal/2\relax
  \vskip \scratchdimen
  \penalty-200 % we can mark and intercept this
  \vskip-\scratchdimen}

\blank[force,12cm]

\startcolumns
\dorecurse{16}{a\par}
\column
b
\stopcolumns

\page

% Method 2

\unprotected\installcolumnbreakmethod \s!multicolumn \v!yes
 {\scratchdimen\dimexpr\pagegoal/2+\lineheight\relax
  \vskip \scratchdimen
  \penalty-200 % we can mark and intercept this
  \vskip-\scratchdimen}

\blank[force,12cm]

\startcolumns
\dorecurse{16}{a\par}
\column
b
\stopcolumns

\stoptext
</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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Bug in \column
  2013-03-20  9:28     ` Wolfgang Schuster
@ 2013-03-20  9:40       ` Hans Hagen
  2013-03-20  9:52         ` Wolfgang Schuster
  2013-03-20 18:21         ` Keith J. Schultz
  0 siblings, 2 replies; 13+ messages in thread
From: Hans Hagen @ 2013-03-20  9:40 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users, Xan

On 3/20/2013 10:28 AM, Wolfgang Schuster wrote:
>
> Am 19.03.2013 um 20:50 schrieb Xan <dxpublica@telefonica.net>:
>
>> Can you modify it for working? By the user perspective it's an annoying bug. A clean command should not produce that, isn't it?
>
> I have to agree that the current situation with the \column command isn’t perfect but each solution has it’s own problems.
>
> The example below uses three different definitions for the \column command, the first and third result in a empty column when there is to much text in the first column while the second definition ignores the command and balances the text of both columns.
>
> <example>
> \starttext \showframe
>
> % Default method
>
> \blank[force,12cm]
>
> \startcolumns
> \dorecurse{16}{a\par}
> \column
> b
> \stopcolumns
>
> \page
>
> % Method 1
>
> \unprotected\installcolumnbreakmethod \s!multicolumn \v!yes
>   {\scratchdimen\dimexpr\pagegoal/2\relax
>    \vskip \scratchdimen
>    \penalty-200 % we can mark and intercept this
>    \vskip-\scratchdimen}
>
> \blank[force,12cm]
>
> \startcolumns
> \dorecurse{16}{a\par}
> \column
> b
> \stopcolumns
>
> \page
>
> % Method 2
>
> \unprotected\installcolumnbreakmethod \s!multicolumn \v!yes
>   {\scratchdimen\dimexpr\pagegoal/2+\lineheight\relax
>    \vskip \scratchdimen
>    \penalty-200 % we can mark and intercept this
>    \vskip-\scratchdimen}
>
> \blank[force,12cm]
>
> \startcolumns
> \dorecurse{16}{a\par}
> \column
> b
> \stopcolumns
>
> \stoptext
> </example>

For Wolfgangs eyes only:

\installcolumnbreakmethod \s!multicolumn \v!yes
   {\penalty\c_page_mix_break_forced\relax}

Maybe that one works ok.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Bug in \column
  2013-03-20  9:40       ` Hans Hagen
@ 2013-03-20  9:52         ` Wolfgang Schuster
  2013-03-21  8:40           ` Xan
  2013-03-20 18:21         ` Keith J. Schultz
  1 sibling, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2013-03-20  9:52 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users, Xan


Am 20.03.2013 um 10:40 schrieb Hans Hagen <pragma@wxs.nl>:

> For Wolfgangs eyes only:
> 
> \installcolumnbreakmethod \s!multicolumn \v!yes
>  {\penalty\c_page_mix_break_forced\relax}
> 
> Maybe that one works ok.

No it doesn’t work, the penalty is ignored and text from the first column appears in the second column because the columns are balanced.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Bug in \column
  2013-03-20  9:40       ` Hans Hagen
  2013-03-20  9:52         ` Wolfgang Schuster
@ 2013-03-20 18:21         ` Keith J. Schultz
  1 sibling, 0 replies; 13+ messages in thread
From: Keith J. Schultz @ 2013-03-20 18:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

OOOppppsss!

Do I have to kill myself! ;-)))

Would like to have a reference for this kind of stuff!

regards
	Keith.

Am 20.03.2013 um 10:40 schrieb Hans Hagen <pragma@wxs.nl>:

> 
> For Wolfgangs eyes only:
> 
> \installcolumnbreakmethod \s!multicolumn \v!yes
>  {\penalty\c_page_mix_break_forced\relax}
> 
> Maybe that one works ok.
> 

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Bug in \column
  2013-03-20  9:52         ` Wolfgang Schuster
@ 2013-03-21  8:40           ` Xan
  2013-03-21 22:58             ` Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: Xan @ 2013-03-21  8:40 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users, Hans Hagen

Al 20/03/13 10:52, En/na Wolfgang Schuster ha escrit:
> Am 20.03.2013 um 10:40 schrieb Hans Hagen <pragma@wxs.nl>:
>
>> For Wolfgangs eyes only:
>>
>> \installcolumnbreakmethod \s!multicolumn \v!yes
>>   {\penalty\c_page_mix_break_forced\relax}
>>
>> Maybe that one works ok.
> No it doesn’t work, the penalty is ignored and text from the first column appears in the second column because the columns are balanced.
>
> Wolfgang
>
>
Thanks guys for trying to solve which I definitely tag as a bug ;-). It 
seems there is no faster solution but surely Hans will find one ;-) By 
the user perspective it's an annoying behaviour and I have to change 
manually the paragraphs (adding \{*}skip commands). I think you will 
find a solution at the end. It's too much technical discussion for me. 
I'm sorry I can't do anything else. But I'm glad to see this 
discussion.... (so mantain me as CC)

If I could do anything, please say to me.


Thanks,
Xan.
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Bug in \column
  2013-03-21  8:40           ` Xan
@ 2013-03-21 22:58             ` Wolfgang Schuster
  2013-03-22  9:59               ` Xan
                                 ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Wolfgang Schuster @ 2013-03-21 22:58 UTC (permalink / raw)
  To: Xan; +Cc: mailing list for ConTeXt users


Am 21.03.2013 um 09:40 schrieb Xan <dxpublica@telefonica.net>:

> Thanks guys for trying to solve which I definitely tag as a bug ;-). It seems there is no faster solution but surely Hans will find one ;-) By the user perspective it's an annoying behaviour and I have to change manually the paragraphs (adding \{*}skip commands). I think you will find a solution at the end. It's too much technical discussion for me. I'm sorry I can't do anything else. But I'm glad to see this discussion.... (so mantain me as CC)
> 
> If I could do anything, please say to me.

Can you test your example with the mixedcolumns environment
instead of the normal columns environment (use the latest beta).

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Bug in \column
  2013-03-21 22:58             ` Wolfgang Schuster
@ 2013-03-22  9:59               ` Xan
  2013-03-22 10:02               ` Xan
                                 ` (2 subsequent siblings)
  3 siblings, 0 replies; 13+ messages in thread
From: Xan @ 2013-03-22  9:59 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

Al 21/03/13 23:58, En/na Wolfgang Schuster ha escrit:
> Am 21.03.2013 um 09:40 schrieb Xan <dxpublica@telefonica.net>:
>
>> Thanks guys for trying to solve which I definitely tag as a bug ;-). It seems there is no faster solution but surely Hans will find one ;-) By the user perspective it's an annoying behaviour and I have to change manually the paragraphs (adding \{*}skip commands). I think you will find a solution at the end. It's too much technical discussion for me. I'm sorry I can't do anything else. But I'm glad to see this discussion.... (so mantain me as CC)
>>
>> If I could do anything, please say to me.
> Can you test your example with the mixedcolumns environment
> instead of the normal columns environment (use the latest beta).
>
> Wolfgang
Yes, ofcourse. But what steps I have to do for that. I'm running context 
minimals (I don't know if stable or beta).


Thanks,
Xan.
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Bug in \column
  2013-03-21 22:58             ` Wolfgang Schuster
  2013-03-22  9:59               ` Xan
@ 2013-03-22 10:02               ` Xan
  2013-03-22 10:15               ` Xan
  2013-03-22 10:19               ` Xan
  3 siblings, 0 replies; 13+ messages in thread
From: Xan @ 2013-03-22 10:02 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

Al 21/03/13 23:58, En/na Wolfgang Schuster ha escrit:
> Can you test your example with the mixedcolumns environment instead of 
> the normal columns environment (use the latest beta). Wolfgang 
My current version of context is:

2012.07.27 16:41

(context --version produces this)

Sorry,
Xan.
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Bug in \column
  2013-03-21 22:58             ` Wolfgang Schuster
  2013-03-22  9:59               ` Xan
  2013-03-22 10:02               ` Xan
@ 2013-03-22 10:15               ` Xan
  2013-03-22 10:19               ` Xan
  3 siblings, 0 replies; 13+ messages in thread
From: Xan @ 2013-03-22 10:15 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

Al 21/03/13 23:58, En/na Wolfgang Schuster ha escrit:
> Am 21.03.2013 um 09:40 schrieb Xan <dxpublica@telefonica.net>:
>
>> Thanks guys for trying to solve which I definitely tag as a bug ;-). It seems there is no faster solution but surely Hans will find one ;-) By the user perspective it's an annoying behaviour and I have to change manually the paragraphs (adding \{*}skip commands). I think you will find a solution at the end. It's too much technical discussion for me. I'm sorry I can't do anything else. But I'm glad to see this discussion.... (so mantain me as CC)
>>
>> If I could do anything, please say to me.
> Can you test your example with the mixedcolumns environment
> instead of the normal columns environment (use the latest beta).
>
> Wolfgang
Now I have the beta context version. Now I want to use in my example 
mixedcolumns. But nothing in the wiki is present of how to work 
mixedcolumns.

Xan.
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Bug in \column
  2013-03-21 22:58             ` Wolfgang Schuster
                                 ` (2 preceding siblings ...)
  2013-03-22 10:15               ` Xan
@ 2013-03-22 10:19               ` Xan
  3 siblings, 0 replies; 13+ messages in thread
From: Xan @ 2013-03-22 10:19 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 923 bytes --]

Al 21/03/13 23:58, En/na Wolfgang Schuster ha escrit:
> Am 21.03.2013 um 09:40 schrieb Xan <dxpublica@telefonica.net>:
>
>> Thanks guys for trying to solve which I definitely tag as a bug ;-). It seems there is no faster solution but surely Hans will find one ;-) By the user perspective it's an annoying behaviour and I have to change manually the paragraphs (adding \{*}skip commands). I think you will find a solution at the end. It's too much technical discussion for me. I'm sorry I can't do anything else. But I'm glad to see this discussion.... (so mantain me as CC)
>>
>> If I could do anything, please say to me.
> Can you test your example with the mixedcolumns environment
> instead of the normal columns environment (use the latest beta).
>
> Wolfgang
Yes, it works perfectly (I attach my example).

Can someone put reference on wiki on such environment? Useful for novice 
users like me.

Thanks for all,
Xan.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: examen-sistemes.tex --]
[-- Type: text/x-tex; name="examen-sistemes.tex", Size: 2519 bytes --]

\enableregime[utf]
\setupbodyfont [cmr,11pt]
\mainlanguage[ca]
\setuppagenumbering [location={footer}]
\setuppapersize [A4]
\setuplayout[topspace=1.5cm,margin=1.5cm,header=1.5cm,footer=1.5cm,width=fit,height=fit,backspace=1.5cm]
\setuphead[title][align={center},style={\sca}, after={\medskip}]
\setuphead[subject][after={\hrule\medskip}]

% AMSTHM
\defineenumeration
  [exercici]
  [text={Exercici},headstyle=bold,between=\blank,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss,title=yes,titlestyle=\ss,titledistance=.5em]


% Heads and footers
\setupfootertexts[\pagenumber]
\setupfooter[text][before=\hrule]
\setupheader[text][after=\hrule]
\setupheadertexts[{\tfx \mid IES Binissalem \mid 4t D \mid MAT \mid }][{\tfx Sistemes d'equacions \mid Examen \mid 15/3/2012 \mid}]

% underline
\setupunderbar[alternative=b]


\starttext

\title{Examen de Matemàtiques}

\bigskip
\startframedtext[width=broad, location=middle, before={}]
\startalignment[middle]
Feis l'opció comuna de totes maneres i, després, trieu entre l'Opció A o l'Opció B
\stopalignment
\stopframedtext

\subject{Part comuna}

\startcolumns

\startexercici Resoleu emprant el mètode de substitució:

\placeformula
\startformula
\startmathalignment
\NC x + 3y \NC = 9 \NR[+]
\NC 2x - y \NC = 3 \NR
\stopmathalignment
\stopformula

\stopexercici

\startexercici Resoleu pel mètode de reducció:
\placeformula
\startformula
\startmathalignment
\NC 3x + 7y \NC = -23 \NR[+]
\NC 5x + 4y \NC = -23 \NR
\stopmathalignment
\stopformula

\stopexercici

\stopcolumns


\subject{Opció A}

\startexercici Resoleu pel mètode que vulgueu:

\placeformula
\startformula
\startmathalignment
\NC \frac{x}{3} + \frac{4y}{5} - 3(x+y) \NC = -19 \NR[+]
\NC \frac{3x}{3} - \frac{1}{3} (y-5) \NC = 3 \NR
\stopmathalignment
\stopformula

\stopexercici


\subject{Opció B}

\startmixedcolumns

\startexercici Resoleu aquest sistema pel mètode que vulgueu:

\placeformula
\startformula
\startmathalignment
\NC -2x - y \NC = -11 \NR[+]
\NC 3x - y \NC = 9 \NR
\stopmathalignment
\stopformula

\stopexercici
%\bigskip

\column

\startexercici Resoleu el sistema següent pel mètode que considereu oportú:

\placeformula
\startformula
\startmathalignment
\NC 2x + \frac{5y}{2} \NC = 7 \NR[+]
\NC -3x + y \NC = -1 \NR
\stopmathalignment
\stopformula
\stopexercici

\stopmixedcolumns

\stoptext

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-03-22 10:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-18 18:32 Bug in \column Xan
2013-03-18 21:34 ` Wolfgang Schuster
2013-03-19 19:50   ` Xan
2013-03-20  9:28     ` Wolfgang Schuster
2013-03-20  9:40       ` Hans Hagen
2013-03-20  9:52         ` Wolfgang Schuster
2013-03-21  8:40           ` Xan
2013-03-21 22:58             ` Wolfgang Schuster
2013-03-22  9:59               ` Xan
2013-03-22 10:02               ` Xan
2013-03-22 10:15               ` Xan
2013-03-22 10:19               ` Xan
2013-03-20 18:21         ` Keith J. Schultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).