[NTG-context] [NTG-ConTeXt] Wrong order of sections and subsections

2016-06-18 Thread Marcus Vinicius Mesquita
Dear List

In the wiki, http://wiki.contextgarden.net/Titles, there is a MWE of how to
flush section head data without typesetting it in the text. But then
\placelist gives a wrong order of sections and subsections:

1   First section
1.1   First subsection
2   Second section
1.2   Second subsection
2.1   First subsection

If \setuptexttexts is omitted and the argument placehead=yes instead of
placehead=hidden, then the order is correct:

1   First section
1.1   First subsection
1.2   Second subsection
2   Second section
2.1   First subsection


Am I missing something?


Marcus Vinicius

__-

MWE from the wiki

\setuphead
   [section]
   [placehead=hidden,
page=yes]

\setuphead
   [subsection]
   [placehead=yes,
page=yes,
continue=yes,
style=\it]

\setuptexttexts[{\placerawheaddata[section]}]

\starttext

\placelist[section,subsection] \page

\startsection[title=First section]

   \startsubsection[title=First subsection]
  Lorem ipsum \dots
   \stopsubsection

   \startsubsection[title=second subsection]
  Lorem ipsum \dots
   \stopsubsection

\stopsection

\startsection[title=Second section]

   \startsubsection[title=First subsection]
  Lorem ipsum \dots
   \stopsubsection

\stopsection

\stoptext


Marcus Vinicius



-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
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] enumeration header spacing control

2016-06-18 Thread Jan Willem Flamma
Dear members,

In the MWE below the amount of vertical space between the enumeration header 
and the text seems to fully controlled by the global \setupwhitespace setting.

The inbetween={\blank[nowhite]} setting seems to be ignored. I noticed this 
change of behaviour some weeks ago for the first time.

Appreciate any suggestion on how to reduce the vertical space between the 
enumeration header and the text



MWE

\setupwhitespace[big]   

\defineblock
[question]

\defineenumeration
[question]
[alternative=top,
after={\blank[2*big]},
inbetween={\blank[nowhite]}]
 
\keepblocks
[question]

\starttext
\input ward

\input ward

\startsection[title=Questions]

\beginquestion
\startquestion  
\dorecurse{10}{Text }
\stopquestion
\endquestion

\beginquestion
\startquestion  
\dorecurse{10}{Text }
\stopquestion
\endquestion

\stopsection

\stoptext

Kind regards,
Jan Willem Flamma
___
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] placetable with location=split produces error

2016-06-18 Thread Wolfgang Schuster

Christoph Reller 
16. Juni 2016 um 15:31
On Fri, 10 Jun 2016 14:00:01, Christoph Reller

This must have something to do with page breaking in conjunction with
table splitting. The following MWE produces no error:

\starttext
\dorecurse{9}{\input ward}
\testpage[10]
\startplacetable[location=split]
\bTABLE
\bTR \bTD \input tufte \eTD \eTR
\eTABLE
\stopplacetable
\stoptext

On the other hand the following MWE produces the error, and of course
here, a testpage will not help:

\starttext
\dorecurse{11}{\input ward}
\pagebreak[disable]
\placetable[split]{}{
\bTABLE
\bTR \bTD Ups \eTD \eTR
\eTABLE
}
\stoptext

This is a long standing issue and I would very much appreciate any
comment on this.

The problem has been fixed.

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] Flushleft formula

2016-06-18 Thread Hans Hagen

On 6/17/2016 7:48 AM, Aditya Mahajan wrote:

On Thu, 16 Jun 2016, Alan BRASLAU wrote:


On Thu, 16 Jun 2016 18:18:58 -0400
Aditya Mahajan  wrote:


And some stage, it will be nice to discuss the possiblility of adding
background to formulas, especially aligned formulas.


something like a

\setupformula
 [before={\startframedtext[background=color,backgroundcolor=lightblue]},
  after={\stopframedtext}]


One typically wants to have a bounding box around the displayed math,
but not the white space or the equation number. For example, see the
attached image.


experimental framed support in beta ...

\starttext

\setupformulaframed[framecolor=red,frame=on,offset=1ex]
\setupformula[option=frame,color=blue]
\setupformula[numbercommand={\inframed[framecolor=green]}]

\startplaceformula
\startformula
2 + 2 = 3 + 1
\stopformula
\stopplaceformula

\stoptext

see framed-002.tex in test suite for a bunch of examples

(rather tricky with respect to spacing and alignments etc)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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
___