Re: [NTG-context] two problems with natural tables
Am 10.04.2011 um 18:40 schrieb Florian Wobbe: 2) How do I get a small and bold header? This does not work: \bTABLE \setupTABLE[style=\tfx] \setupTABLE[row][1][style=\bfx] % redundant w/ line 5 \bTABLEhead \bTR[style=\bfx] \bTH Header \eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD hello \eTD \eTR \bTR \bTD world \eTD \eTR \eTABLEbody \eTABLE You mix too many setups, \bTH overwrites your setting for the row (\bTR[style=\tfx]) and also your other setting (\setupTABLE[row][1][style=\bfx]). Here is one to separate the style and the markup \startsetups table:style \setupTABLE[start] [style=\tfx] \setupTABLE[header][style=\bfx] \stopsetups \starttext \bTABLE[setups=table:style] \bTABLEhead \bTR \bTD Header \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD Body \eTD \eTR \eTABLEbody \eTABLE \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 ___
Re: [NTG-context] Loss of footnotes while using background colour
Am 10.04.2011 um 16:06 schrieb Charles Doherty: Dear all, I am making a manual for students of Irish hagiography. I am setting source material whether original or in translation against a middle gray background. When I do this as you see in the attached sample file the footnotes are not printed. I would be grateful if anyone can give me a solution. Note that a footnote inside a margin text does not print either. I am using Mark IV — log file is also attached. Add “\automigrateinserts” to your preamble. 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] two problems with natural tables
2) How do I get a small and bold header? This does not work: \bTABLE \setupTABLE[style=\tfx] \setupTABLE[row][1][style=\bfx] % redundant w/ line 5 \bTABLEhead \bTR[style=\bfx] \bTH Header \eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD hello \eTD \eTR \bTR \bTD world \eTD \eTR \eTABLEbody \eTABLE You mix too many setups, \bTH overwrites your setting for the row (\bTR[style=\tfx]) and also your other setting (\setupTABLE[row][1][style=\bfx]). Here is one to separate the style and the markup \startsetups table:style \setupTABLE[start] [style=\tfx] \setupTABLE[header][style=\bfx] \stopsetups \starttext \bTABLE[setups=table:style] \bTABLEhead \bTR \bTD Header \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD Body \eTD \eTR \eTABLEbody \eTABLE \stoptext Thanks Wolfgang, so to make style=... also work on the header the trick was to change \bTH Header \eTH to \bTD Header \eTD. What is the purpose of \bTH \eTH then? BTW the Wiki says: Please take account of the fact, that the head cells are enclosed by \bTH and \eTH (and not \[be]TC). \bTH seems to only override style=... since \bTD Header \eTD is repeated correctly with \bTABLE[split=repeat,setups=table:style]. Florian ___ 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] two problems with natural tables
1) I tried the following minimal example from http://archive.contextgarden.net/message/20110109.151431.f774696a.en.html \placetable[split]{Test} {\bTABLE[split=yes] \dorecurse{60}{ \bTR \bTD hello \eTD \eTR } \eTABLE} with the current context versions which works fine. I have to correct myself. This still does not work with interactions (\setupinteraction [state=start]). I could determine the context version at which my big document fails: 2010.12.22 14:07. The example still works in 2010.12.21 10:50. I attached the changes in code in strc-flt.mkiv and tabl-tsp.mkiv that break the above split table example. I hope this helps to identify the problem so it can be fixed in the current beta... Thanks, Florian flt-tabl.diff Description: Binary data ___ 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] How to set oldstyle numbering globally?
Hi, In my earlier MkIV minimal ConTeXt installation (dec.2010) I used the following in my preamble to activate oldstyle numbering: \usetypescript[schola] \setupbodyfont[schola,8pt] \definefontfeature [oldstyle] [default] [onum=yes] \addff{oldstyle} but this doesn't seem to work anymore in my recently installed minimal ConTeXt installation (ConTeXt ver: 2011.03.30 11:21 MkIV fmt: 2011.3.30 int: english/english). I use this installation with Debian 6.0 (Squeeze). Any idea what's wrong? Regards, Gerard Verhaag ___ 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] How to set oldstyle numbering globally?
Am 11.04.2011 um 11:00 schrieb Verhaag, G.C.H.M.: Hi, In my earlier MkIV minimal ConTeXt installation (dec.2010) I used the following in my preamble to activate oldstyle numbering: \usetypescript[schola] \setupbodyfont[schola,8pt] \definefontfeature [oldstyle] [default] [onum=yes] \addff{oldstyle} but this doesn't seem to work anymore in my recently installed minimal ConTeXt installation (ConTeXt ver: 2011.03.30 11:21 MkIV fmt: 2011.3.30 int: english/english). I use this installation with Debian 6.0 (Squeeze). Any idea what's wrong? The following two methods do work for me. 1. Global change \definefontfeature[default][default][onum=yes] \setupbodyfont[schola,8pt] \starttext 1234567890 \stoptext 2. Local change \setupbodyfont[schola,8pt] \definefontfeature[oldstyle][onum=yes] \starttext 1234567890 {\addff{oldstyle}1234567890} \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 ___
Re: [NTG-context] How to set oldstyle numbering globally?
On Mon, Apr 11, 2011 at 11:00:08AM +0200, Verhaag, G.C.H.M. wrote: Hi, In my earlier MkIV minimal ConTeXt installation (dec.2010) I used the following in my preamble to activate oldstyle numbering: \usetypescript[schola] \setupbodyfont[schola,8pt] \definefontfeature [oldstyle] [default] [onum=yes] \addff{oldstyle} A more correct way is: \definefontfeature[default][default][onum=yes] % redefines default feature set \usetypescript[schola] \setupbodyfont[schola,8pt] \starttext 12345678 \stoptext (\addff is meant for temporally applying font features not the other way around, but I think it should work this way too, so may be something is broken) Regards, Khaled -- Khaled Hosny Egyptian Arab ___ 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] two problems with natural tables
Am 11.04.2011 um 09:37 schrieb Florian Wobbe: so to make style=... also work on the header the trick was to change \bTH Header \eTH to \bTD Header \eTD. Yes. What is the purpose of \bTH \eTH then? BTW the Wiki says: Please take account of the fact, that the head cells are enclosed by \bTH and \eTH (and not \[be]TC). \bTH seems to only override style=... since \bTD Header \eTD is repeated correctly with \bTABLE[split=repeat,setups=table:style]. \bTH … \eTH is usefull when you want bold headers without any other changes on the style, they prevent also alignment of the cell content when you try to align numbers while \bTD … \eTD are better when you use the setup-commands. 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] Loss of footnotes while using background colour
Dear Wolfgang, Once again thank you very much. It works perfectly. Charlie On 11 Apr 2011, at 08:24, Wolfgang Schuster wrote: Add “\automigrateinserts” to your preamble. 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 ___
[NTG-context] three more table questions
Hi, 1) how can I auto-stretch a natural table to a defined width? The default seems to be the line width, which I don't want. Setting width=... will change the per column width, which I don't like either. I'd like to set the per table width. \bTABLE[option=stretch,width=80mm] \bTABLEhead \bTR \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR} \eTABLEbody \eTABLE Or is there maybe the possibility to enforce a certain with with \placetable? 2) In this example I'd like to have no offset between lines but an offset between columns. How can I achieve this without the gaps in the hline separating the header? \bTABLE \setupTABLE[frame=off,offset=0pt] \setupTABLE[c][distance=3mm] \bTABLEhead \bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR} \eTABLEbody \eTABLE I also tried various combinations of offset=, columndistance=, leftmargindistance=, and rightmargindistance= for columns and rows but did not succeed. 3) Consider this example: \bTABLE[option=stretch] \setupTABLE[frame=off,offset=0pt] \bTABLEhead \bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD this is a long entry \eTD \eTR} \eTABLEbody \eTABLE Is it possible to auto-stretch only the first three columns, so that this is a long entry is always aligned to the right margin? All columns should stay flushleft. Thanks! Florian ___ 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] three more table questions
Am 11.04.2011 um 12:44 schrieb Florian Wobbe: Hi, 1) how can I auto-stretch a natural table to a defined width? The default seems to be the line width, which I don't want. Setting width=... will change the per column width, which I don't like either. I'd like to set the per table width. \bTABLE[option=stretch,width=80mm] \bTABLEhead \bTR \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR} \eTABLEbody \eTABLE Or is there maybe the possibility to enforce a certain with with \placetable? Use \bTABLE[option=stretch,textwidth=\textwidth]. 2) In this example I'd like to have no offset between lines but an offset between columns. How can I achieve this without the gaps in the hline separating the header? \bTABLE \setupTABLE[frame=off,offset=0pt] \setupTABLE[c][distance=3mm] \bTABLEhead \bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR} \eTABLEbody \eTABLE I also tried various combinations of offset=, columndistance=, leftmargindistance=, and rightmargindistance= for columns and rows but did not succeed. \setupTABLE[start][loffset=3mm,roffset=3mm] \setupTABLE[column][first][loffset=0mm] \setupTABLE[column][last] [roffset=0mm] 3) Consider this example: \bTABLE[option=stretch] \setupTABLE[frame=off,offset=0pt] \bTABLEhead \bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD this is a long entry \eTD \eTR} \eTABLEbody \eTABLE Is it possible to auto-stretch only the first three columns, so that this is a long entry is always aligned to the right margin? All columns should stay flushleft. You can exclude columns from stretching when you set a width, e.g. \setupTABLE[column][last][width=4cm,align=flushright] 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] three more table questions
3) Consider this example: \bTABLE[option=stretch] \setupTABLE[frame=off,offset=0pt] \bTABLEhead \bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD this is a long entry \eTD \eTR} \eTABLEbody \eTABLE Is it possible to auto-stretch only the first three columns, so that this is a long entry is always aligned to the right margin? All columns should stay flushleft. You can exclude columns from stretching when you set a width, e.g. \setupTABLE[column][last][width=4cm,align=flushright] Thanks again for your suggestions! Still I have problems with the last column, which should be flushleft, exactly as wide as the containing text, and still aligned to the right page margin (the frame in this case). I experimented: \framed{ \bTABLE[option=stretch] \setupTABLE[frame=off,offset=0pt] \setupTABLE[column][last][width=2mm] % here is the difference \bTABLEhead \bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD \blackrule[height=5pt, width=30mm] \eTD \eTR} \eTABLEbody \eTABLE} \framed{ \bTABLE[option=stretch] \setupTABLE[frame=off,offset=0pt] \setupTABLE[column][last][width=30mm] % here is the difference \bTABLEhead \bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD \blackrule[height=5pt, width=30mm] \eTD \eTR} \eTABLEbody \eTABLE} In this case I know the last column width (30mm) but the output is unpredictable. In case I don't know the text width, is there a way to get a dummy width equal to \settowidth (latex)? Florian ___ 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] [NTG] How to split a cell of a table by a diagonal line? by using natural table.
a | | - -b-- as the illustration, by using natural table, how to split the cell by a diagonal line from a to b, and have texts in the resulted splited triangular cells? ___ 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] How to split a table cell by a diagonal line using natual table?
a | | - -b-- as the illustration, by using natural table, how to split the cell by a diagonal line from a to b, and have texts in the resulted splited triangular cells? ___ 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] three more table questions
On Mon, 11 Apr 2011, Florian Wobbe wrote: In case I don't know the text width, is there a way to get a dummy width equal to \settowidth (latex)? Search the list archive. Hans has posted a solution sometime back. Aditya ___ 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] three more table questions
In case I don't know the text width, is there a way to get a dummy width equal to \settowidth (latex)? Search the list archive. Hans has posted a solution sometime back. Thanks, I found it: http://archive.contextgarden.net/message/20070314.120612.adab0a8b.en.html Would make a useful core function... Florian ___ 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] background and footnotes
Dear Wolfgang, Thank you again for the previous fix. I am attaching the same file but with a complete text. When I use the background it either comes down over the footnotes or pushes them on to the following blank page. Also see the footnote generated in the margin that seems to use the margin width when it is typeset in the footnote area. Again any help would be appreciated. Charlie ClogherTest.log Description: Binary data ClogherTest.tex Description: TeX document ___ 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 ___