Changes

Jump to navigation Jump to search
3,787 bytes added ,  18:46, 30 January 2023
another approach
 
<div style="border: 3px solid red; background: #ffaaaa; padding: 0.4em;">
<div style="fontsize: 1.3em; fontweight: bold">Warning!</div>
If you consider using ConTeXt for a paper with a proper formula numbering please wait until it is implemented in mkiv. At the moment only a very limited formula numbering is possilbe:
* number formula(s) with a plain number
* number formula(s) with a subnumber
Not possible is at the moment:
* Table of formulas
* Named subformulas
* Mixure of formulas and subformulas in one block
* Reference on a (sub-)formula without having it listed in the Table of formulas
For more details and actual state see mailing list and [http://wiki.contextgarden.net/User_talk:Zenlima Summary of formula numbering problem].
</div>
 
 
 
Hi, I use this page to support my question regarding context and summarize the result. Once a problem is solved I will move that text into the "normal" wiki pages.
 
=Bug: Layoutchange inside page while duplexmode=
 
A both sided document in which the layout has to switch inside a page works fine with text only content, but as soon "bigger" objects (like a table) are involved the textarea get messed
up (shifted horizontally).
 
In the following example inner and outer margin notes are added to make it more obvious.
 
<texcode>
\setuppapersize[A4][A4]
\definelayout[WithoutMarginnotes][location={duplex},grid=no,topspace=3cm,height=24cm,backspace=3cm,cutspace=0cm,leftmargin=1cm,leftmargindistance=0.4cm,width=16cm,rightmargindistance=0cm,rightmargin=0cm]
\definelayout[WithMarginnotes][location={duplex},grid=no,topspace=3cm,height=24cm,backspace=3cm,cutspace=0cm,leftmargin=1cm,leftmargindistance=0.4cm,width=12.1cm,rightmargindistance=0.4cm,rightmargin=3.5cm]
\setuppagenumbering[alternative=doublesided,location=]
\starttext
\setuplayout[WithMarginnotes]
\dorecurse {6} {
\ininner[stack=yes]{\expanded{\dorecurse{2}{IM\recurselevel\space}}}%
\inouter[stack=yes]{\expanded{\dorecurse{3}{OM\recurselevel\space}}}%
\input tufte \par
}
 
\setuplayout[WithoutMarginnotes]
\placetable[split][]{Big table object}
{
\setupTABLE[row][1][width=\textwidth]
\bTABLE[split=repeat]
\bTABLEhead
\bTR \bTD XXX \eTD \eTR
\eTABLEhead
\bTABLEbody
\dorecurse{20}{
\bTR \bTD XXX \eTD \eTR}
\eTABLEbody
\eTABLE
}
\setuplayout[WithMarginnotes]
\dorecurse {3} {
\ininner[stack=yes]{\expanded{\dorecurse{2}{IM\recurselevel\space}}}%
\inouter[stack=yes]{\expanded{\dorecurse{3}{OM\recurselevel\space}}}%
\input tufte \par
}
\stoptext
</texcode>
 
==Another Approach==
 
Not sure whether this is what you had in mind:
 
<texcode>
\showframe
 
\definelayout[WithoutMarginnotes][location={duplex}, grid=no, topspace=3cm, height=24cm, backspace=3cm, cutspace=0cm, leftmargin=1cm, leftmargindistance=0.4cm, width=16cm, rightmargindistance=0cm, rightmargin=0cm]
 
\definelayout[WithMarginnotes][location={duplex}, grid=no, topspace=3cm, height=24cm, backspace=3cm, cutspace=0cm, leftmargin=1cm, leftmargindistance=0.4cm, width=12.1cm, rightmargindistance=0.4cm, rightmargin=3.5cm]
 
\setuppagenumbering[alternative=doublesided,location=]
 
\starttext
 
\startlayout[WithMarginnotes]
 
\dorecurse {6} {
\ininner[stack=yes]{\expanded{\dorecurse{2}{IM\recurselevel\space}}}%
\inouter[stack=yes]{\expanded{\dorecurse{3}{OM\recurselevel\space}}}%
\input tufte \par
}
\stoplayout
\startlayout[WithoutMarginnotes]
 
\placetable[split][]{Big table object}
{
\setupTABLE[row][1][width=\textwidth]
\bTABLE[split=repeat]
\bTABLEhead
\bTR \bTD XXX \eTD \eTR
\eTABLEhead
\bTABLEbody
\dorecurse{20}{
\bTR \bTD XXX \eTD \eTR}
\eTABLEbody
\eTABLE
}
\stoplayout
 
\startlayout[WithMarginnotes]
\dorecurse {3} {
\ininner[stack=yes]{\expanded{\dorecurse{2}{IM\recurselevel\space}}}%
\inouter[stack=yes]{\expanded{\dorecurse{3}{OM\recurselevel\space}}}%
\input tufte \par
}
\stoplayout
\stoptext
</texcode>
 
=Bug: Formula numbering - subnumbers and list of formulas=
* \placeformula
* \formualanumber
will share the same attributes:
* sublevel (maybe better: formulalevel or just level?)<br />to define and concrete the (sub-)level of the formula
* listlabel (maybe textlabel? the numberlabel is still needed)<br /> to add a entry in the list of formulas
139

edits

Navigation menu