Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context
Jason Ross via ntg-context hat am 24.12.2021 18:53 geschrieben: On 12/24/21 9:49 AM, Denis Maier via ntg-context wrote: For the six = for the toc... Denis Maier via

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Jason Ross via ntg-context
On 12/24/21 9:49 AM, Denis Maier via ntg-context wrote: For the six = for the toc... Denis Maier via ntg-context hat am 24.12.2021 18:42 geschrieben: Can't you just define a default structurelevel scheme and a default combined list for the six. If a user redefines the structure level

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context
r list, Is it possible to set the maximum table of contents depth to a number rather than providing an explicit list of section names? Background: I am developing an exporter for Org mode. In Org,

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context
<ntg-context@ntg.nl> hat am 24.12.2021 17:45 geschrieben: Dear list, Is it possible to set the maximum table of contents depth to a number rather than providing an explicit list of section

[NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Jason Ross via ntg-context
Dear list, Is it possible to set the maximum table of contents depth to a number rather than providing an explicit list of section names? Background: I am developing an exporter for Org mode. In Org, users can specify the number of levels they want in the table of contents with a number. I

Re: [NTG-context] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Wolfgang Schuster via ntg-context
Alexandre Christe via ntg-context schrieb am 20.11.2021 um 16:19: Dear all, I'm trying something out in LMTX, which is to combine itemize with a table. Application could be to put a question and the answer in the next column. A minimal example would be: [...] The numbering unfortunately

[NTG-context] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Alexandre Christe via ntg-context
Dear all, I'm trying something out in LMTX, which is to combine itemize with a table. Application could be to put a question and the answer in the next column. A minimal example would be: \starttext \startitemize [a] [right=),stopper=] \bTABLE[frame=off] \setupTABLE[column][1] [width

[NTG-context] Automatically adjust number of table columns

2021-09-05 Thread Sylvain Hubert via ntg-context
fect as the addData() function in the page below (save as whatever.html and open it) table { width: 100%; border: 1px solid black; } #root { width: 10cm; } function make(tag, children) { const node = document.createElement(tag); for (const c of children) { if (typeof c ==

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 12:18: Hi Wolfgang, Pablo's solution works, but I tried yours without success. Here are the main lines of my project begin project \startproject[terminale-environment] \environment[terminale-style]  ... \stopproject end

Re: [NTG-context] Adjustment in the table of contents

2021-08-16 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 11:24: Hi, I wish to have the table of contents as the attached image. The result is almost as expected except for the margin of the subsection.  \setuplist    [chapter,section,subsection]  [width=fit,distance=\spaceamount

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Fabrice Couvreur via ntg-context
do > > you have the fancy layout or not? > > > > It would make sense that the fancy chapter doesn’t appear only compiling > > a chapter. I guess there is no \startbodymatter...\stopbodymatter > > wrapping it. > > > > Another approach would be: > &

[NTG-context] Adjustment in the table of contents

2021-08-16 Thread Fabrice Couvreur via ntg-context
Hi, I wish to have the table of contents as the attached image. The result is almost as expected except for the margin of the subsection. \setuplist [chapter,section,subsection] [width=fit,distance=\spaceamount] \setuplist [chapter] [alternative=b] \setuplist [chapter][style=bold

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Wolfgang Schuster via ntg-context
it. Another approach would be: [...] Setting values for \title is a way to avoid the chapter setup for the table of contents etc. but there is a way to set values which are used only when you process a component file. To make it work one has to load the environment file after \startcomponent

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
Hi Pablo, The second solution works as I want it to Thanks Fabrice Le dim. 15 août 2021 à 18:33, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> a écrit : > On 8/15/21 6:02 PM, Fabrice Couvreur via ntg-context wrote: > > A small note : this method works if I compile the project but if I >

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Pablo Rodriguez via ntg-context
On 8/15/21 6:02 PM, Fabrice Couvreur via ntg-context wrote: > A small note : this method works if I compile the project but if I > compile only one chapter, the header no longer appears. Hi Fabrice, I have never used projects and chapters (or whatever the right name is). I’m not sure I get what

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
y book. >> > How can I prevent this header from appearing on the page with the table >> > of contents ? >> >> Hi Fabrice, >> >> a simple way would be: >> >> \startsectionblockenvironment[bodypart] >> \setuphead >>

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
ail/ntg-context/2021/102870.html > > for the chapters of my book. > > How can I prevent this header from appearing on the page with the table > > of contents ? > > Hi Fabrice, > > a simple way would be: > > \startsectionblockenvironment[bodypart]

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Pablo Rodriguez via ntg-context
On 8/15/21 12:49 PM, Fabrice Couvreur via ntg-context wrote: > Hello, > Wolfgang created a > heading https://mailman.ntg.nl/pipermail/ntg-context/2021/102870.html > for the chapters of my book. > How can I prevent this header from appearing on the page with the table > of cont

[NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
Hello, Wolfgang created a heading https://mailman.ntg.nl/pipermail/ntg-context/2021/102870.html for the chapters of my book. How can I prevent this header from appearing on the page with the table of contents ? Thanks Fabrice

Re: [NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
Thanks for the suggestion. I've already tried columnsets. With or without grid=yes, with or without a columnspan, using columnsets produces the following log even though the table fits on one page. pages > flushing realpage 1, userpage 1, subpage 1 pages > flushing real

Re: [NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Henning Hraban Ramm
columnsets need \setuplayout[grid=yes] – did you check that? HR > Am 22.07.2021 um 12:42 schrieb Michael Guravage : > > No, I'm afraid not. I have been combining the various table and column > environments, all without success - yet. > > Michael > > > > On

Re: [NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
No, I'm afraid not. I have been combining the various table and column environments, all without success - yet. Michael On Thu, Jul 22, 2021 at 12:01 PM Henning Hraban Ramm wrote: > Hi Michael, > > you could try columnsets and use a columnsetspan for the text above the > columns.

Re: [NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Henning Hraban Ramm
Hi Michael, you could try columnsets and use a columnsetspan for the text above the columns. I don’t know if tables work well within a columnset, though. Hraban > Am 22.07.2021 um 11:52 schrieb Michael Guravage > : > > I have created a table and placed it inside a columns enviro

[NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
I have created a table and placed it inside a columns environment; which works as advertised. However, if I place any text before the column environment, the columns break. More clearly stated, only one column appears on the first table page; whereas two columns resume on subsequent pages. I have

Re: [NTG-context] \startplacetable[location=none] doesn't have a "Table X" label, but \startplacetable[location=force] does

2021-06-15 Thread T. Kurt Bond
e xtables. If I use >>\startplacetable[location=none] the tables *don't* have a "Table X" >>label, but they float and end up in locations where I don't want them. If >> I >>use \startplacetable[location=force] the tables *do* have a "Table X"

Re: [NTG-context] \startplacetable[location=none] doesn't have a "Table X" label, but \startplacetable[location=force] does

2021-06-14 Thread Wolfgang Schuster
T. Kurt Bond schrieb am Mo., 14. Juni 2021, 09:23: > I've got three questions: > >1. > >I've got a document with some xtables. If I use >\startplacetable[location=none] the tables *don't* have a "Table X" >label, but they float and end up in lo

[NTG-context] \startplacetable[location=none] doesn't have a "Table X" label, but \startplacetable[location=force] does

2021-06-14 Thread T. Kurt Bond
I've got three questions: 1. I've got a document with some xtables. If I use \startplacetable[location=none] the tables *don't* have a "Table X" label, but they float and end up in locations where I don't want them. If I use \startplacetable[location=force] the tables

[NTG-context] Expanding a table into the second column

2021-05-22 Thread Jeroen
In a document with two columns, is there a method to expand a table partially into the second column in case there are many tablecolumns to show ___ If your question is of interest to others as well, please add

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-14 Thread Hans Hagen
On 5/14/2021 6:33 PM, Adam Reviczky wrote: Hi Hans, Yes, sorry about the error :). Thanks for the explanation, will use lmtx for that, though probably best just using another font (some mentioned on the list https://www.mail-archive.com/ntg-context@ntg.nl/msg92800.html

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-14 Thread Adam Reviczky
Hi Hans, Yes, sorry about the error :). Thanks for the explanation, will use lmtx for that, though probably best just using another font (some mentioned on the list https://www.mail-archive.com/ntg-context@ntg.nl/msg92800.html and https://mailman.ntg.nl/pipermail/ntg-context/2020/098136.html) or

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-14 Thread Hans Hagen
On 5/14/2021 3:21 AM, Jairo A. del Rio wrote: El jue, 13 de may. de 2021 a la(s) 19:52, Adam Reviczky (revic...@gmail.com ) escribió: Thanks Jairo, That indeed works, should've read that it is bitmap only. I do get a white background though (MKIV),

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-14 Thread Hans Hagen
On 5/14/2021 1:49 AM, Jairo A. del Rio wrote: In ConTeXt LMTX this works just fine (try mtxrun --generate and context --make first): \definefontfeature[Emoji][default][sbix=yes] \starttext \definedfont[file:NotoColorEmoji.ttf*Emoji]\char"1F91D \stoptext However, when one tries to convert

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-14 Thread Hans Hagen
On 5/14/2021 1:26 AM, Adam Reviczky wrote: Hi, I am trying to use the 'handshake' character (https://www.fileformat.info/info/unicode/char/1f91d/fontsupport.htm ) from the Noto Color Emoji font

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-13 Thread Jairo A. del Rio
x-cache/context/b47c3d3cee7cb6c86268d0595268c442/fonts/otl/notocoloremoji.tmc' >>> system > lua > dumping >>> '/home/ubuntu/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-13 Thread Adam Reviczky
che/context/b47c3d3cee7cb6c86268d0595268c442/fonts/otl/notocoloremoji.tmc' >> stripped >> fonts > otf loading > loading, optimizing, packing and caching >> time 2.557 >> pages > flushing realpage 1, userpage 1, subpage 1 >> close so

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-13 Thread Jairo A. del Rio
ubpage 1 > close source> level 2, order 3, name '/tmp/MWE.tex' > close source> level 1, order 3, name > '/usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv' > ! error: (file NotoColorEmoji.ttf) (ttf): loca table not foundmtx-context > | fatal error: return code

[NTG-context] NotoColorEmoji - loca table not found

2021-05-13 Thread Adam Reviczky
ing and caching time 2.557 pages > flushing realpage 1, userpage 1, subpage 1 close source> level 2, order 3, name '/tmp/MWE.tex' close source> level 1, order 3, name '/usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv' ! error: (file NotoColorEmoji.ttf) (ttf): loca table not

Re: [NTG-context] Table disappears in floatcombination

2021-03-28 Thread Christoph Reller
t; wrote: >> > >> > On 12/25/2020 9:47 PM, Christoph Reller wrote: >> > > Hi, >> > > >> > > Consider the following MWE: >> > > >> > > \definefloat[combination][figure] >> >

Re: [NTG-context] Lua code and table

2021-02-20 Thread Fabrice Couvreur
; On 2/19/2021 12:42 PM, Fabrice Couvreur wrote: > > > Hi Hans,Thanks again for the ideas to improve my code. However, I > > am new > > > to Lua and my level is far from sufficient to understand > > everything. Why > > > in no table do

Re: [NTG-context] Lua code and table

2021-02-19 Thread Hans Hagen
vel is far from sufficient to understand everything. Why > in no table do the crosses appear in the cells; which was my original > idea.Thank you.Fabrice I get a cross (see attached). I've got no crosses with ConTeXt  ver: 2021.02.05 17:45 LMTX. Fresh install of ConTeX

Re: [NTG-context] Lua code and table

2021-02-19 Thread Jano Kula
Hi, On Fri, 19 Feb 2021 at 13:06, Hans Hagen wrote: > On 2/19/2021 12:42 PM, Fabrice Couvreur wrote: > > Hi Hans,Thanks again for the ideas to improve my code. However, I am new > > to Lua and my level is far from sufficient to understand everything. Why > > in no table

Re: [NTG-context] Lua code and table

2021-02-19 Thread Hans Hagen
On 2/19/2021 12:42 PM, Fabrice Couvreur wrote: Hi Hans,Thanks again for the ideas to improve my code. However, I am new to Lua and my level is far from sufficient to understand everything. Why in no table do the crosses appear in the cells; which was my original idea.Thank you.Fabrice I get

Re: [NTG-context] Lua code and table

2021-02-19 Thread Fabrice Couvreur
Hi Hans, Thanks again for the ideas to improve my code. However, I am new to Lua and my level is far from sufficient to understand everything. Why in no table do the crosses appear in the cells; which was my original idea. Thank you. Fabrice Le jeu. 18 févr. 2021 à 16:28, Fabrice Couvreur

Re: [NTG-context] Lua code and table

2021-02-18 Thread Fabrice Couvreur
Hello Jano, Thanks. Fabrice Le jeu. 18 févr. 2021 à 16:27, Jano Kula a écrit : > Hello Fabrice, > > > > On Thu, 18 Feb 2021 at 16:19, Fabrice Couvreur < > fabrice1.couvr...@gmail.com> wrote: > >> Hi all, Thanks to you, I'm not at your level with Lua, but I'm learning >> thanks to you >> Hans, I

Re: [NTG-context] Lua code and table

2021-02-18 Thread Jano Kula
Hello Fabrice, On Thu, 18 Feb 2021 at 16:19, Fabrice Couvreur wrote: > Hi all, Thanks to you, I'm not at your level with Lua, but I'm learning > thanks to you > Hans, I compiled your code and I get an error message : > > lua error > lua error on line 50 in file ./table_1.tex: > > token

Re: [NTG-context] Lua code and table

2021-02-18 Thread Fabrice Couvreur
e a document function which isolatees the code > (2) then call it where needed > (3) use the built in conversion code > (4) use so called unique mp graphics (smaller files, faster run) > (5) use symbols to get the baseline right > (6) use a little abstraction in the table setup > &g

Re: [NTG-context] Lua code and table

2021-02-18 Thread Hans Hagen
the code (2) then call it where needed (3) use the built in conversion code (4) use so called unique mp graphics (smaller files, faster run) (5) use symbols to get the baseline right (6) use a little abstraction in the table setup watch how we can pass a table instead of a string, so context.startxtable

Re: [NTG-context] Lua code and table

2021-02-17 Thread Bruce Horrocks
> On 17 Feb 2021, at 17:40, Fabrice Couvreur > wrote: > > Hi, The code works, but is it possible to make it shorter ? > Thank you > Fabrice > You can reduce the size of the test by storing the pattern in a table: \startluacode local background_one = { align

Re: [NTG-context] Lua code and table

2021-02-17 Thread Hans Hagen
On 2/17/2021 10:26 PM, Wolfgang Schuster wrote: Fabrice Couvreur schrieb am 17.02.2021 um 18:40: Hi,The code works, but is it possible to make it shorter ? Thank you Fabrice \startuseMPgraphic{DiagonalRule}     rulethickness := \frameddimension{rulethickness};     drawoptions(       withpen

Re: [NTG-context] Lua code and table

2021-02-17 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 17.02.2021 um 18:40: Hi,The code works, but is it possible to make it shorter ? Thank you Fabrice \startuseMPgraphic{DiagonalRule}    rulethickness := \frameddimension{rulethickness};    drawoptions(      withpen pencircle scaled rulethickness      withcolor

Re: [NTG-context] Lua code and table

2021-02-17 Thread Tomas Hala
Hi Fabrice, see below, I attached two ideas how to do it. The best, Tomáš Wed, Feb 17, 2021 ve 06:40:54PM +0100 Fabrice Couvreur napsal(a): #Hi, The code works, but is it possible to make it shorter ? #Thank you #Fabrice #\startuseMPgraphic{DiagonalRule} #   rulethickness

[NTG-context] Lua code and table

2021-02-17 Thread Fabrice Couvreur
Hi, The code works, but is it possible to make it shorter ? Thank you Fabrice \startuseMPgraphic{DiagonalRule} rulethickness := \frameddimension{rulethickness}; drawoptions( withpen pencircle scaled rulethickness withcolor \MPcolor{\framedparameter{framecolor}}); pair

Re: [NTG-context] How to improve visually a table

2021-02-16 Thread Alain Delmotte
to have: What I have so far: How to obtain the first? Can you show your code for the table. Wolfgang Here it is, but I did it to have a sufficiently good

Re: [NTG-context] How to improve visually a table

2021-02-16 Thread Wolfgang Schuster
to reproduce the original work. What I'd like to have: nice table What I have so far: present state How to obtain the first? Can you show your code for the table. Wolfgang Here it is, but I did it to have a sufficiently good table, as I didn't know how to recreate the original. \placetable

Re: [NTG-context] How to improve visually a table

2021-02-16 Thread Wolfgang Schuster
Alain Delmotte schrieb am 16.02.2021 um 19:23: Hi! I am progressing in the use of ConTeXt by applying it to some specific projects. For two manuals I am preparing for myself I'd like to reproduce the original work. What I'd like to have: nice table What I have so far: present state

[NTG-context] How to improve visually a table

2021-02-16 Thread Alain Delmotte
Hi! I am progressing in the use of ConTeXt by applying it to some specific projects. For two manuals I am preparing for myself I'd like to reproduce the original work. What I'd like to have: What I have so far: How to obtain the

Re: [NTG-context] Table of Content

2021-02-12 Thread Hans Hagen
On 2/12/2021 4:52 PM, Pablo Rodriguez wrote: On 2/12/21 4:40 PM, Hans Hagen wrote: On 2/12/2021 3:43 PM, Pablo Rodriguez wrote: [...] "\page\null\page" does the trick in your case. \page[left,empty,right] etc Hans, I never thought this were possible: \starttext

Re: [NTG-context] Table of Content

2021-02-12 Thread Pablo Rodriguez
On 2/12/21 4:40 PM, Hans Hagen wrote: > On 2/12/2021 3:43 PM, Pablo Rodriguez wrote: >> [...] >> "\page\null\page" does the trick in your case. > > \page[left,empty,right] etc Hans, I never thought this were possible: \starttext \page[left,empty,right, left,empty,right,

Re: [NTG-context] Table of Content

2021-02-12 Thread Pablo Rodriguez
On 2/11/21 12:11 PM, Ursula Hermann wrote: > Dear List! > > > I did this example, which works perfect. If i would like to  take a new > page after the Table of Content, is \page the right way?  Hi Ursula, "\page\null\page" does the trick in your case. "\setuppage

[NTG-context] Table of Content

2021-02-11 Thread Ursula Hermann
Dear List! I did this example, which works perfect. If i would like to take a new page after the Table of Content, is \page the right way? % mode=mkiv \setuppapersize[A7][A7] \language[de] %list the "subject" sections in the ToC but don't modify the "section" counter

Re: [NTG-context] Table disappears in floatcombination

2020-12-26 Thread Christoph Reller
On Sat, Dec 26, 2020 at 10:54 AM Hans Hagen wrote: > On 12/25/2020 9:47 PM, Christoph Reller wrote: > > Hi, > > > > Consider the following MWE: > > > > \definefloat[combination][figure] > > \setupcaptions[ > >number=no, %<- comment and table

Re: [NTG-context] Table disappears in floatcombination

2020-12-26 Thread Hans Hagen
On 12/25/2020 9:47 PM, Christoph Reller wrote: Hi, Consider the following MWE: \definefloat[combination][figure] \setupcaptions[   number=no, %<- comment and table appears   align=flushright] \starttext \startplacecombination[title=Combination]   \startfloatcombination     \startplaceta

[NTG-context] Table disappears in floatcombination

2020-12-25 Thread Christoph Reller
Hi, Consider the following MWE: \definefloat[combination][figure] \setupcaptions[ number=no, %<- comment and table appears align=flushright] \starttext \startplacecombination[title=Combination] \startfloatcombination \startplacetable%[title=Table] %<- uncomment and table a

Re: [NTG-context] LMTX and addplot table

2020-12-12 Thread Hans Hagen
On 12/12/2020 3:35 PM, Jean-Philippe Rey wrote: I wiped t-tikz.  The only noticeable difference is that now I need to explicitly \usemodule[tikz] in order to use pgfplots. I checked and found the line \usemodule[t][tikz] in t-pgfplots.tex.  I guess that explains it. probably ... anyway,

Re: [NTG-context] LMTX and addplot table

2020-12-12 Thread Hans Hagen
column. I explicitly stated that the columns are separated with tabs: \addplot table [x=t, y=E, col sep=tab] {mfe-addplot.dat}; and it works. I tried to change the columns separator to a space, instead of a tab and it also works. I don't know what pgfplotstable uses to split columns

Re: [NTG-context] LMTX and addplot table

2020-12-12 Thread Jean-Philippe Rey
t;>>> Dear list, >>>> I am unable to draw a plot using an external file with LMTX. Here is a >>>> minimal example >>>> ===== >>>> \usemodule[pgfplots] >>>> \starttext >>>>

Re: [NTG-context] LMTX and addplot table

2020-12-12 Thread Wolfgang Schuster
MTX. Here is a minimal example = \usemodule[pgfplots] \starttext \starttikzpicture \startaxis \addplot table [x=t, y=E] {mfe-addplot.dat}; \stopaxis \stoptikzpicture \stoptext = The ConTeXt run fails with an "Undefined control sequence" error (se

Re: [NTG-context] LMTX and addplot table

2020-12-12 Thread Hans Hagen
l example = \usemodule[pgfplots] \starttext \starttikzpicture \startaxis \addplot table [x=t, y=E] {mfe-addplot.dat}; \stopaxis \stoptikzpicture \stoptext = The ConTeXt run fails with an "Undefined control sequence" error (see attached log file). I don't know if thi

Re: [NTG-context] LMTX and addplot table

2020-12-12 Thread Hans Hagen
On 12/12/2020 10:36 AM, Jean-Philippe Rey wrote: Dear list, I am unable to draw a plot using an external file with LMTX. Here is a minimal example = \usemodule[pgfplots] \starttext \starttikzpicture \startaxis \addplot table [x=t, y=E] {mfe-addplot.dat}; \stopaxis

[NTG-context] LMTX and addplot table

2020-12-12 Thread Jean-Philippe Rey
Dear list, I am unable to draw a plot using an external file with LMTX. Here is a minimal example = \usemodule[pgfplots] \starttext \starttikzpicture \startaxis \addplot table [x=t, y=E] {mfe-addplot.dat}; \stopaxis \stoptikzpicture \stoptext

Re: [NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-08 Thread T. Kurt Bond
her columns don't. I don't suppose there is a bTABLE equivalent? Or an equivalent in one of ConTeXt's other table types? On Sun, Dec 6, 2020 at 11:20 PM Aditya Mahajan wrote: > On Sun, 6 Dec 2020, T. Kurt Bond wrote: > > On Sun, Dec 6, 2020 at 2:20 AM Aditya Mahajan wrote: > > &

Re: [NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-06 Thread Aditya Mahajan
On Sun, 6 Dec 2020, T. Kurt Bond wrote: > On Sun, Dec 6, 2020 at 2:20 AM Aditya Mahajan wrote: > > > On Sun, 6 Dec 2020, T. Kurt Bond wrote: > > > > > Setting maxwidth and textwidth on the \bTABLE doesn't seem to do > > anything. > > > > Use: > > > > \bTABLE[width=broad] > > > > \eTABLE > That

Re: [NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-06 Thread T. Kurt Bond
That did the trick! It did distribute the new width oddly, with adding more width to the the first and second columns, while the third column, which had the most text to wrap, was not as wide as it could have been. I had to set widths for the first and second columns, and had to experiment to

Re: [NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-05 Thread Aditya Mahajan
On Sun, 6 Dec 2020, T. Kurt Bond wrote: > Setting maxwidth and textwidth on the \bTABLE doesn't seem to do anything. Use: \bTABLE[width=broad] \eTABLE Aditya ___ If your question is of interest to others as well,

Re: [NTG-context] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread Aditya Mahajan
On Sat, 5 Dec 2020, T. Kurt Bond wrote: > If I understand correctly, \setupTABLE applies to each table after the > \setupTABLE, correct? If so, can you make it only apply to one table? If you really need it for one table: \bTABLE \setupTABLE[...][...] \setupTABLE[...][...] \bTR ..

[NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-05 Thread T. Kurt Bond
Setting maxwidth and textwidth on the \bTABLE doesn't seem to do anything. -- T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Can I caption a table without using something that makes it float?

2020-12-05 Thread T. Kurt Bond
Oh, after looking at some examples I found that \startplacetable[location=force,title={Caption Text}] places the table without the extra vertical space, as long as there wasn't a \setupalign[line] ! On Sat, Dec 5, 2020 at 11:01 PM T. Kurt Bond wrote: > If I use \placetable or startplaceta

[NTG-context] Can I caption a table without using something that makes it float?

2020-12-05 Thread T. Kurt Bond
If I use \placetable or startplacetable with location=force it shows up but there is lots of space before and after it, I assume it is because it is a float. Is there a way I can caption the table without using something that makes it float, or remove the space otherwise? -- T. Kurt Bond

Re: [NTG-context] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread T. Kurt Bond
Thanks for the help! On Sat, Dec 5, 2020 at 10:21 PM Jairo A. del Rio wrote: > Hi, > You could enclose your table and setup using \bgroup and \egroup > > \bgroup > \setupTABLE ... > \bTABLE ... \eTABLE > \egroup > > \begingroup ... \endgroup also works, although I ha

Re: [NTG-context] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread Jairo A. del Rio
Hi, You could enclose your table and setup using \bgroup and \egroup \bgroup \setupTABLE ... \bTABLE ... \eTABLE \egroup \begingroup ... \endgroup also works, although I have to admit I'm not aware of the differences between both. Regards, Jairo :) El sáb., 5 de dic. de 2020 10:01 p. m., T

[NTG-context] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread T. Kurt Bond
If I understand correctly, \setupTABLE applies to each table after the \setupTABLE, correct? If so, can you make it only apply to one table? -- T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io

Re: [NTG-context] startCSV Wiki, Natural Table

2020-11-24 Thread Fabrice L
ably my error !). >>>> So I came back to the wiki, where my code came from, and the code below is >>>> just a copy for the wiki. It is supposed to make a table with three >>>> columns, but there is only one column in the resulting table…

Re: [NTG-context] startCSV Wiki, Natural Table

2020-11-24 Thread Wolfgang Schuster
not work anymore. As a matter of fact, it doe snot work at all, nor MKII, nor MKIV (probably my error !). So I came back to the wiki, where my code came from, and the code below is just a copy for the wiki. It is supposed to make a table with three columns, but there is only one column

Re: [NTG-context] startCSV Wiki, Natural Table

2020-11-24 Thread Fabrice L
this does not work >> anymore. As a matter of fact, it doe snot work at all, nor MKII, nor MKIV >> (probably my error !). >> So I came back to the wiki, where my code came from, and the code below is >> just a copy for the wiki. It is supposed to make a table with three columns, >

Re: [NTG-context] startCSV Wiki, Natural Table

2020-11-24 Thread Wolfgang Schuster
!). So I came back to the wiki, where my code came from, and the code below is just a copy for the wiki. It is supposed to make a table with three columns, but there is only one column in the resulting table… I admit I do not understand the code, but is there is missing \eTR somewhere ? Use

[NTG-context] startCSV Wiki, Natural Table

2020-11-24 Thread Fabrice L
code came from, and the code below is just a copy for the wiki. It is supposed to make a table with three columns, but there is only one column in the resulting table… I admit I do not understand the code, but is there is missing \eTR somewhere ? Thanks for any help. Fabrice. Ps: in case

Re: [NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Andres Conrado Montoya
By the way, I already tried with \framed, but I can't get it to take the current float width. -- Andrés Conrado Montoya Andi Kú andresconr...@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org Los fines no justifican los

Re: [NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Andres Conrado Montoya
> Hi Andrés, > > You could probably put the notes inside a \start...\stopxtablefoot > > Sylvain Thanks Sylvain, but I have a lot of tables to edit...This may work, but I would prefer to explore programmatic solutions involving the two defined macros(\fuentent & \fuente in my example), because I

Re: [NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Sylvain Hubert
Hi Andrés, You could probably put the notes inside a \start...\stopxtablefoot Sylvain On Tue, 10 Nov 2020 at 21:49, Andres Conrado Montoya < andresconr...@gmail.com> wrote: > MWE (sorry for the long table, I hadn't anything else at hand): > > > \definehig

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Aditya Mahajan
On Tue, 10 Nov 2020, Sylvain Hubert wrote: > Indeed. Thanks for the information! > > For the record, this is how the problem is finally solved: > > \setuphead[section][after={\blank[sampage]}] > \begingroup\setupindenting[no]\dontleavehmode\startxtable … > \stopxtable\endgroup Unless

[NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Andres Conrado Montoya
MWE (sorry for the long table, I hadn't anything else at hand): \definehighlight[emph][style={\em}] \definehighlight[strong][style={\bf}] \setupfloat[table][default={here}] \definereferenceformat[figura][text={Figura~}] \definereferenceformat[tabla][text={Tabla

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 19:23, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Sylvain Hubert schrieb am 10.11.2020 um 19:11: > > > Weirdly enough, "\hskip 0pt" solves the problem. > > > > \setuphead[section][after={\blank[samepage]\hskip 0pt}] > > \starttext > >

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 10.11.2020 um 19:11: Weirdly enough, "\hskip 0pt" solves the problem.     \setuphead[section][after={\blank[samepage]\hskip 0pt}]     \starttext     \showframe     \dorecurse{50}{a }     \startsection[title=spec]     \startxtable What happens when you \hskip

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
topxrow} > > \stopxtable > > \stoptext > > > > it is sometimes difficult to predict how much remaining space should > > trigger a line break. > > You can either reformat your table or put the table in a float > environment to move it to a pla

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Wolfgang Schuster
    \dorecurse{29}{\startxrow\startxcell 2\stopxcell\stopxrow}     \stopxtable     \stoptext it is sometimes difficult to predict how much remaining space should trigger a line break. You can either reformat your table or put the table in a float environment to move it to a place where it fits

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 17:54, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Pablo Rodriguez schrieb am 10.11.2020 um 15:59: > > On 11/10/20 9:55 AM, Sylvain Hubert wrote: > >> Dear List, > >> > >> In the following example, the section title appears at the very end of > >> the

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
dorecurse{50}{a } > > \startsection[title=spec] > > \startxtable > Hi Sylvain, > > no fix is required when you allow the table to be split: > > \startxtable[split=yes] > > Pablo > Hi Pablo, Thanks for the suggestion, but unlike the MWE, in

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 10.11.2020 um 15:59: On 11/10/20 9:55 AM, Sylvain Hubert wrote: Dear List, In the following example, the section title appears at the very end of the first page. [...] Does anyone know where to adjust the penalty in this case, so that the section title can be

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Pablo Rodriguez
no fix is required when you allow the table to be split: \startxtable[split=yes] Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : n

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
My mistake, but the problem survives the fix: \setuphead[section][after={\blank[samepage,big]}] \starttext \showframe \dorecurse{50}{a } \startsection[title=spec] \startxtable \startxrow \startxcell[ny=30]a\stopxcell\startxcell 1\stopxcell \stopxrow

<    1   2   3   4   5   6   7   8   9   10   >