Re: [NTG-context] Table breaks incorrectly between pages
On 5/15/22 6:18 PM Bruce Horrocks wrote: > Too slow!! > > I'd already added https://wiki.contextgarden.net/ TABLE#Tables_in_page_headers. Hmm. I searched the wiki for '\bTABLEnested' and this did not show up there. I just now checked the edit history now and you seemed to have added it just four minutes after I made the first edit to add it! Then, I wrote a more detailed example. Looks like we added it around the same time. Sorry if I created any confusion. Sreeram ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table breaks incorrectly between pages
Too slow!! I'd already added https://wiki.contextgarden.net/TABLE#Tables_in_page_headers. > On 15 May 2022, at 12:00, śrīrāma via ntg-context wrote: > > On 5/15/22 2:20 PM Wolfgang Schuster via ntg-context wrote: >> Use the TABLEnested environment in your document header which was added >> to avoid problems like in your example. >> >> \startsetups headertext >> \bTABLEnested[setups=headertable,option=stretch] >> ... >> \eTABLEnested >> \stopsetups > > Splendid (as always)! Definitely a better solution for Stefan's document. > > I added a section in the wiki making a note of this: > https://wiki.contextgarden.net/TABLE#Headers_with_TABLEs > > Thanks Wolfgang! Until now, I did not even know of the 'nested' type for > TABLE. > > Sreeram > — Bruce Horrocks Hampshire, UK ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table breaks incorrectly between pages
On 5/15/22 2:20 PM Wolfgang Schuster via ntg-context wrote: > Use the TABLEnested environment in your document header which was added > to avoid problems like in your example. > > \startsetups headertext > \bTABLEnested[setups=headertable,option=stretch] > ... > \eTABLEnested > \stopsetups Splendid (as always)! Definitely a better solution for Stefan's document. I added a section in the wiki making a note of this: https://wiki.contextgarden.net/TABLE#Headers_with_TABLEs Thanks Wolfgang! Until now, I did not even know of the 'nested' type for TABLE. Sreeram ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table breaks incorrectly between pages
Stefan Nedeljkovic via ntg-context schrieb am 13.05.2022 um 09:00: Dear list I need your help with a table that seems to completely screw up the page when it spans across multiple pages. I'm attaching all the necessary files. Use the TABLEnested environment in your document header which was added to avoid problems like in your example. \startsetups headertext \bTABLEnested[setups=headertable,option=stretch] ... \eTABLEnested \stopsetups 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table breaks incorrectly between pages
Wow, thank you very, very much! On Sun, 15 May 2022, 05:35 śrīrāma, wrote: > On 5/13/22 12:30 PM Stefan Nedeljkovic via ntg-context wrote: > > Dear list I need your help with a table that seems to completely screw up > > the page when it spans across multiple pages. I'm attaching all the > > necessary files. > > > > Kind regards, > > Stefan > > This seems to be a known issue for quite a while, see here: > https://www.mail-archive.com/ntg-context@ntg.nl/msg69827.html > > As Wolfgang suggested there, you can use framed instead of TABLE in your > header. I have modified your example file (see attached). With that you > get the > attached PDF. > > By the way, your example was missing a \bTABLEhead. Moreover, I believe > cells > in TABLE head entries should be enclosed by \bTH \eTH instead of \(b|e)TD. > I > have made these changes as well. > > [Also, I hope you are aware that you can use style=\tt, style=\bf per row/ > column/cell with \setupTABLE; that will significantly reduce markup in > your > file] > > Best, > Sreeram ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table breaks incorrectly between pages
On 5/13/22 12:30 PM Stefan Nedeljkovic via ntg-context wrote: > Dear list I need your help with a table that seems to completely screw up > the page when it spans across multiple pages. I'm attaching all the > necessary files. > > Kind regards, > Stefan This seems to be a known issue for quite a while, see here: https://www.mail-archive.com/ntg-context@ntg.nl/msg69827.html As Wolfgang suggested there, you can use framed instead of TABLE in your header. I have modified your example file (see attached). With that you get the attached PDF. By the way, your example was missing a \bTABLEhead. Moreover, I believe cells in TABLE head entries should be enclosed by \bTH \eTH instead of \(b|e)TD. I have made these changes as well. [Also, I hope you are aware that you can use style=\tt, style=\bf per row/ column/cell with \setupTABLE; that will significantly reduce markup in your file] Best, Sreeram% kate: hl ctx \input fonts \usetypescript[ibmplex][uc] \setupbodyfont[ibmplex,rm,9pt] \setuppapersize[A4] \setuplayout[ leftedge=\dimexpr0cm, rightedge=\dimexpr0cm, leftedgedistance=\dimexpr0cm, rightedgedistance=\dimexpr0cm, leftmargin=\dimexpr0cm, rightmargin=\dimexpr0cm, leftmargindistance=\dimexpr0cm, rightmargindistance=\dimexpr0cm, width=middle, cutspace=\dimexpr1.5cm, backspace=\dimexpr1.5cm, topspace=\dimexpr1.5cm, header=\dimexpr4cm, height=middle, bottomspace=\dimexpr0cm, footer=\dimexpr0.5cm] \setupheadertexts[\directsetup{fheader}] \definehspace[tnumber][0.5em] \startsetups [fheader] \startframed[width=max,frame=off] \startoverlay {\leftaligned{\framedtext[location=top,frame=off,width=fit,offset=0ex]{„ДОЛИНА” Д.О.О. Београд\\ ПЈ за прераду меса\\ ПИБ: СР 100029284\\ МБ: 06434517\\ Текући рачун: 205-157956-65\\ Email: dolin...@gmail.com}}} {\rightaligned{\framedtext[location=top,frame=off,width=fit,offset=0ex]{% Булевар Краља Александра 334, 11000 Београд\\ 011\hspace[tnumber]3806\hspace[tnumber]007\\ 011\hspace[tnumber]3820\hspace[tnumber]457\\ 011\hspace[tnumber]2419\hspace[tnumber]078\\ \vskip 2em Жике Поповића бб, 12220, Велико Градиште\\ 012\hspace[tnumber]662\hspace[tnumber]016}}} \stopoverlay \stopframed \stopsetups \startsetups [headertable] \setupTABLE[frame=off] \setupTABLE[column][1][align=flushleft] \setupTABLE[column][2][align=flushright] \stopsetups \startsetups headertext \start \bTABLE[setups=headertable,option=stretch] \bTR \bTD „ДОЛИНА” Д.О.О. Београд\\ ПЈ за прераду меса\\ ПИБ: СР 100029284\\ МБ: 06434517\\ Текући рачун: 205-157956-65\\ Email: dolin...@gmail.com \eTD \bTD Булевар Краља Александра 334, 11000 Београд\\ 011\hspace[tnumber]3806\hspace[tnumber]007\\ 011\hspace[tnumber]3820\hspace[tnumber]457\\ 011\hspace[tnumber]2419\hspace[tnumber]078\\ \vskip 2em Жике Поповића бб, 12220, Велико Градиште\\ 012\hspace[tnumber]662\hspace[tnumber]016\\ \eTD \eTR \eTABLE \stop \stopsetups \setuppagenumbering[location=] \setupfootertexts[][\midaligned{\userpagenumber/\lastuserpage}] \starttext \switchtobodyfont[18pt] \definehspace[hspacing][0.15em] О\hspace[hspacing]Т\hspace[hspacing]П\hspace[hspacing]Р\hspace[hspacing]Е\hspace[hspacing]М\hspace[hspacing]Н\hspace[hspacing]И\hspace[hspacing]Ц\hspace[hspacing] А\\ \switchtobodyfont[9pt] {\bf РАЧУН БРОЈ 3180/09}\\ \vskip 3em Купац: ХЛАДНИ ИЗВОР\\ Место: РИПАЊ, Авалска бр. 261\\ ПИБ: 103358290\\ МБ: 17556711\\ \vskip 3em Место издавања рачуна: Велико Градиште\\ Датум издавања рачуна: 04.06.2020. 11:13:03\\ Датум промета: 05.06.2020\\ Датум плаћања: 05.06.2020\\ \vskip 3em\start \startsetups[maintable] \setupTABLE[frame=off] \setupTABLE[row][*][height=7.25mm] \setupTABLE[column][1][align=flushleft] \setupTABLE[column][2][align=flushleft] \setupTABLE[column][3][align=flushleft] \setupTABLE[column][4][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][5][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][6][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][7][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][8][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][9][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][10][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][11][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][12][alignmentcharacter={.},aligncharacter=yes,align=flushright] \stopsetups \switchtobodyfont[6pt] \startalignment[middle] \bTABLE[setups=maintable,option=stretch,split=repeat] \bTABLEhead \bTR[bottomframe=on, rulethickness=2pt,offset=0.25pt] \bTH\bf Рб \eTH \bTH\bf Шифра артикла \eTH \bTH\bf Назив артикла \eTH \bTH\bf Јединица мере \eTH \bTH\bf Количина \eTH \bTH\bf Цена \eTH \bTH\bf Износ \eTH \bTH\bf Попуст \eTH \bTH\bf Основа за ПДВ \eTH \bTH\bf Порез \eTH \bTH\bf Износ пореза \eTH \bTH\bf Основа за ПДВ + ПДВ \eT
[NTG-context] Table breaks incorrectly between pages
Dear list I need your help with a table that seems to completely screw up the page when it spans across multiple pages. I'm attaching all the necessary files. Kind regards, Stefan \input fonts \usetypescript[ibmplex][uc] \setupbodyfont[ibmplex,rm,9pt] \setuppapersize[A4] \setuplayout[ leftedge=\dimexpr0cm, rightedge=\dimexpr0cm, leftedgedistance=\dimexpr0cm, rightedgedistance=\dimexpr0cm, leftmargin=\dimexpr0cm, rightmargin=\dimexpr0cm, leftmargindistance=\dimexpr0cm, rightmargindistance=\dimexpr0cm, width=middle, cutspace=\dimexpr1.5cm, backspace=\dimexpr1.5cm, topspace=\dimexpr1.5cm, header=\dimexpr4cm, height=middle, bottomspace=\dimexpr0cm, footer=\dimexpr0.5cm] \setupheadertexts[\setups{headertext}] \definehspace[tnumber][0.5em] \startsetups [headertable] \setupTABLE[frame=off] \setupTABLE[column][1][align=flushleft] \setupTABLE[column][2][align=flushright] \stopsetups \startsetups headertext \start \bTABLE[setups=headertable,option=stretch] \bTR \bTD „ДОЛИНА” Д.О.О. Београд\\ ПЈ за прераду меса\\ ПИБ: СР 100029284\\ МБ: 06434517\\ Текући рачун: 205-157956-65\\ Email: dolin...@gmail.com \eTD \bTD Булевар Краља Александра 334, 11000 Београд\\ 011\hspace[tnumber]3806\hspace[tnumber]007\\ 011\hspace[tnumber]3820\hspace[tnumber]457\\ 011\hspace[tnumber]2419\hspace[tnumber]078\\ \vskip 2em Жике Поповића бб, 12220, Велико Градиште\\ 012\hspace[tnumber]662\hspace[tnumber]016\\ \eTD \eTR \eTABLE \stop \stopsetups \setuppagenumbering[location=] \setupfootertexts[][\midaligned{\userpagenumber/\lastuserpage}] \starttext \switchtobodyfont[18pt] \definehspace[hspacing][0.15em] О\hspace[hspacing]Т\hspace[hspacing]П\hspace[hspacing]Р\hspace[hspacing]Е\hspace[hspacing]М\hspace[hspacing]Н\hspace[hspacing]И\hspace[hspacing]Ц\hspace[hspacing] А\\ \switchtobodyfont[9pt] {\bf РАЧУН БРОЈ 3180/09}\\ \vskip 3em Купац: ХЛАДНИ ИЗВОР\\ Место: РИПАЊ, Авалска бр. 261\\ ПИБ: 103358290\\ МБ: 17556711\\ \vskip 3em Место издавања рачуна: Велико Градиште\\ Датум издавања рачуна: 04.06.2020. 11:13:03\\ Датум промета: 05.06.2020\\ Датум плаћања: 05.06.2020\\ \vskip 3em\start \startsetups[maintable] \setupTABLE[frame=off] \setupTABLE[row][*][height=7.25mm] \setupTABLE[column][1][align=flushleft] \setupTABLE[column][2][align=flushleft] \setupTABLE[column][3][align=flushleft] \setupTABLE[column][4][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][5][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][6][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][7][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][8][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][9][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][10][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][11][alignmentcharacter={.},aligncharacter=yes,align=flushright] \setupTABLE[column][12][alignmentcharacter={.},aligncharacter=yes,align=flushright] \stopsetups \switchtobodyfont[6pt] \startalignment[middle] \bTABLE[setups=maintable,option=stretch,split=yes,header=repeat] \bTR[bottomframe=on, rulethickness=2pt,offset=0.25pt] \bTD\bf Рб \eTD \bTD\bf Шифра артикла \eTD \bTD\bf Назив артикла \eTD \bTD\bf Јединица мере \eTD \bTD\bf Количина \eTD \bTD\bf Цена \eTD \bTD\bf Износ \eTD \bTD\bf Попуст \eTD \bTD\bf Основа за ПДВ \eTD \bTD\bf Порез \eTD \bTD\bf Износ пореза \eTD \bTD\bf Основа за ПДВ + ПДВ \eTD \eTR \eTABLEhead \bTABLEbody \bTR[bottomframe=on,rulethickness=.25pt,offset=2pt] \bTD\tt 1 \eTD \bTD\tt 011 \eTD \bTD ПЕЧЕНИЦА \eTD \bTD kg \eTD \bTD\tt 4.22 \eTD \bTD\tt 1,000.00 \eTD \bTD\tt 4,220.00 \eTD \bTD\tt 0.15 \eTD \bTD\tt 3,587.00 \eTD \bTD\tt 0.2 \eTD \bTD\tt 717.40 \eTD \bTD\tt 4,304.40 \eTD \eTR\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt] \bTD\tt 2 \eTD \bTD\tt 013 \eTD \bTD ВРАТ \eTD \bTD kg \eTD \bTD\tt 1.77 \eTD \bTD\tt 900.00 \eTD \bTD\tt 1,593.00 \eTD \bTD\tt 0.15 \eTD \bTD\tt 1,354.05 \eTD \bTD\tt 0.2 \eTD \bTD\tt 270.81 \eTD \bTD\tt 1,624.86 \eTD \eTR\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt] \bTD\tt 3 \eTD \bTD\tt 016 \eTD \bTD ШПИЦ РЕБРА \eTD \bTD kg \eTD \bTD\tt 10.45 \eTD \bTD\tt 490.00 \eTD \bTD\tt 5,120.50 \eTD \bTD\tt 0.10 \eTD \bTD\tt 4,608.45 \eTD \bTD\tt 0.2 \eTD \bTD\tt 921.69 \eTD \bTD\tt 5,530.14 \eTD \eTR\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt] \bTD\tt 4 \eTD \bTD\tt 021 \eTD \bTD ПИКАНТ СЛАНИНА \eTD \bTD kg \eTD \bTD\tt 2.57 \eTD \bTD\tt 767.00 \eTD \bTD\tt 1,971.19 \eTD \bTD\tt 0.15 \eTD \bTD\tt 1,675.51 \eTD \bTD\tt 0.2 \eTD \bTD\tt 335.10 \eTD \bTD\tt 2,010.61 \eTD \eTR\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt] \bTD\tt 5 \eTD \bTD\tt 042 \eTD \bTD ДОМАЋА КОБАСИЦА \eTD \bTD kg \eTD \bTD\tt 5 \eTD \bTD\tt 350.00 \eTD \bTD\tt 1,750.00 \eTD \bTD\tt 0.20 \eTD \bTD\tt 1,400.00 \eTD \bTD\tt 0.2 \eTD \bTD\tt 280.00 \eTD \bTD\tt 1,680.00 \eTD \eTR\bTR[bottomframe=on,rul