Re: [NTG-context] framed items

2009-11-16 Thread Aditya Mahajan
On Mon, 16 Nov 2009, Thomas A. Schmitz wrote: Hi all, maybe there is already code for that, but I haven't found it: is it possible to have itemgroups where every single item is within a frame (this is something that may be interesting for presentations)? Just to give you an idea of what I wa

Re: [NTG-context] framed items

2009-11-16 Thread Thomas A. Schmitz
On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote: The problem is the vertical alignment of the item number, which should be at the top of the frame. Is this possible? Add location=top to \setupframed. Aditya Oh, that's good, thanks Aditya! The baselines still don't quite agree, but it'

Re: [NTG-context] framed items

2009-11-16 Thread Wolfgang Schuster
Am 16.11.2009 um 09:41 schrieb Thomas A. Schmitz: > > On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote: > >>> The problem is the vertical alignment of the item number, which should be >>> at the top of the frame. Is this possible? >> >> Add location=top to \setupframed. >> >> Aditya > > Oh

Re: [NTG-context] framed items

2009-11-16 Thread Aditya Mahajan
On Mon, 16 Nov 2009, Thomas A. Schmitz wrote: On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote: The problem is the vertical alignment of the item number, which should be at the top of the frame. Is this possible? Add location=top to \setupframed. Aditya Oh, that's good, thanks Aditya! T

Re: [NTG-context] framed items

2009-11-16 Thread Wolfgang Schuster
Am 16.11.2009 um 09:41 schrieb Thomas A. Schmitz: > > On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote: > >>> The problem is the vertical alignment of the item number, which should be >>> at the top of the frame. Is this possible? >> >> Add location=top to \setupframed. >> >> Aditya > > Oh

Re: [NTG-context] framed items

2009-11-16 Thread Thomas A. Schmitz
On Nov 16, 2009, at 9:55 AM, Wolfgang Schuster wrote: If you hadn't notice the item is wider then the running text, in MkIV you can say 'width=\dimexpr\textwidth-\itemgrouplistwidth\relax' (not the best method but \localhsize is not available) Wolfgang Aditya, Wolfgang, thanks a lot, I now

Re: [NTG-context] framed items

2009-11-16 Thread Aditya Mahajan
On Mon, 16 Nov 2009, Wolfgang Schuster wrote: Am 16.11.2009 um 09:41 schrieb Thomas A. Schmitz: On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote: The problem is the vertical alignment of the item number, which should be at the top of the frame. Is this possible? Add location=top to \se

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:12 AM, Aditya Mahajan wrote: > On Mon, 16 Nov 2009, Wolfgang Schuster wrote: > >> >> Am 16.11.2009 um 09:41 schrieb Thomas A. Schmitz: >> >>> >>> On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote: >>> > The problem is the vertical alignment of the item number, which

Re: [NTG-context] framed items

2009-11-16 Thread Wolfgang Schuster
Am 16.11.2009 um 10:09 schrieb Thomas A. Schmitz: > > On Nov 16, 2009, at 9:55 AM, Wolfgang Schuster wrote: > >> If you hadn't notice the item is wider then the running text, in MkIV >> you can say 'width=\dimexpr\textwidth-\itemgrouplistwidth\relax' >> (not the best method but \localhsize is n

Re: [NTG-context] framed items

2009-11-16 Thread Aditya Mahajan
On Mon, 16 Nov 2009, luigi scarso wrote: On Mon, Nov 16, 2009 at 10:12 AM, Aditya Mahajan wrote: On Mon, 16 Nov 2009, Wolfgang Schuster wrote: Am 16.11.2009 um 09:41 schrieb Thomas A. Schmitz: On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote: The problem is the vertical alignment of t

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:09 AM, Thomas A. Schmitz wrote: > > On Nov 16, 2009, at 9:55 AM, Wolfgang Schuster wrote: > >> If you hadn't notice the item is wider then the running text, in MkIV >> you can say 'width=\dimexpr\textwidth-\itemgrouplistwidth\relax' >> (not the best method but \localhsiz

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:17 AM, Aditya Mahajan wrote: > On Mon, 16 Nov 2009, luigi scarso wrote: > >> On Mon, Nov 16, 2009 at 10:12 AM, Aditya Mahajan >> wrote: >>> >>> On Mon, 16 Nov 2009, Wolfgang Schuster wrote: >>> Am 16.11.2009 um 09:41 schrieb Thomas A. Schmitz: > >

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:17 AM, Aditya Mahajan wrote: > I always thought that broad should use as much space as possible. So, > anything more or less is a bug :) \starttext \dorecurse{20}{% \hsize=\dimexpr \textwidth / 20 *\recurselevel\relax \framed[width=broad,align=middle]{ } \blank } \stop

Re: [NTG-context] framed items

2009-11-16 Thread Aditya Mahajan
On Mon, 16 Nov 2009, luigi scarso wrote: On Mon, Nov 16, 2009 at 10:17 AM, Aditya Mahajan wrote: I always thought that broad should use as much space as possible. So, anything more or less is a bug :) \starttext \dorecurse{20}{% \hsize=\dimexpr \textwidth / 20 *\recurselevel\relax \framed[wi

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:29 PM, Aditya Mahajan wrote: > I think that itemize should adjust \hsize, so this is probably a bug in > itemize. hmm I'm not sure to understand what you mean What is wrong in this ? \starttext \dorecurse{20}{% \hsize=\dimexpr \textwidth / 20 *\recurselevel\relax \fram

Re: [NTG-context] framed items

2009-11-16 Thread Wolfgang Schuster
Am 16.11.2009 um 22:46 schrieb luigi scarso: > On Mon, Nov 16, 2009 at 10:29 PM, Aditya Mahajan wrote: > >> I think that itemize should adjust \hsize, so this is probably a bug in >> itemize. > hmm I'm not sure to understand what you mean > What is wrong in this ? > > \starttext > \dorecurse{2

Re: [NTG-context] framed items

2009-11-16 Thread Aditya Mahajan
On Mon, 16 Nov 2009, luigi scarso wrote: On Mon, Nov 16, 2009 at 10:29 PM, Aditya Mahajan wrote: I think that itemize should adjust \hsize, so this is probably a bug in itemize. hmm I'm not sure to understand what you mean What is wrong in this ? \starttext \dorecurse{20}{% \hsize=\dimexpr

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:58 PM, Aditya Mahajan wrote: > On Mon, 16 Nov 2009, luigi scarso wrote: > >> On Mon, Nov 16, 2009 at 10:29 PM, Aditya Mahajan >> wrote: >> >>> I think that itemize should adjust \hsize, so this is probably a bug in >>> itemize. >> >> hmm I'm not sure to understand what

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 11:20 PM, luigi scarso wrote: >> That is wrong behaviour.We should have B = C = A - itemgrouplistwidth. >> >> Otherwise, the frames inside the itemize environment exceed the total width. -- Sorry wrong post -- \showframe \starttext \dorecurse{1}{% \hsize=\dimexpr \tex

Re: [NTG-context] framed items

2009-11-16 Thread Wolfgang Schuster
Am 16.11.2009 um 23:31 schrieb luigi scarso: > I'm ( still :-) ) > not sure that \hsize and \startitemize must play well together, > I will give it a look. That's why we have \localhsize but it's not working. Wolfgang ___

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 11:36 PM, Wolfgang Schuster wrote: > That's why we have \localhsize but it's not working. yes, I was looking at \localhsize in the first post -- luigi ___ If your question is of interest to

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 11:42 PM, luigi scarso wrote: > On Mon, Nov 16, 2009 at 11:36 PM, Wolfgang Schuster > wrote: > >> That's why we have \localhsize but it's not working. \showframe \starttext \dorecurse{1}{% \hsize=\dimexpr \textwidth / 1 *\recurselevel\relax \framed[width=broad,align=midd

Re: [NTG-context] framed items

2009-11-16 Thread Wolfgang Schuster
Am 16.11.2009 um 23:49 schrieb luigi scarso: > \showframe > \starttext > \dorecurse{1}{% > \hsize=\dimexpr \textwidth / 1 *\recurselevel\relax > \framed[width=broad,align=middle]{\the\hsize} > \bgroup > \startitemize > \advance\hsize -\itemgrouplistwidth\relax% > \item > \framed[width=broad,alig

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Tue, Nov 17, 2009 at 12:01 AM, Wolfgang Schuster wrote: > > Am 16.11.2009 um 23:49 schrieb luigi scarso: > >> \showframe >> \starttext >> \dorecurse{1}{% >> \hsize=\dimexpr \textwidth / 1 *\recurselevel\relax >> \framed[width=broad,align=middle]{\the\hsize} >> \bgroup >> \startitemize >> \advan

Re: [NTG-context] framed items

2009-11-16 Thread Wolfgang Schuster
Am 17.11.2009 um 00:19 schrieb luigi scarso: >> as you can see in the third item the width of the text (\input tufte) >> is too narrow because of the reduced \hsize but this works > yes too narrow, > but with this still > width=broad is not good, > because broad should be now egual to \localhsiz

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Tue, Nov 17, 2009 at 12:24 AM, Wolfgang Schuster wrote: > from pack-rul: > >   \else\ifx\localwidth\v!broad >     \boxhaswidthtrue >     \!!framedwidth\hsize >   \else\ifx\localwidth\v!local >     \boxhaswidthtrue >     \setlocalhsize >     \!!framedwidth\localhsize > > use \framed[width=local]

Re: [NTG-context] framed items

2009-11-17 Thread luigi scarso
On Tue, Nov 17, 2009 at 6:52 AM, luigi scarso wrote: > That's what I mean with not sure that  \hsize and \startitemize must > play well together No, sorry, wrong phrase. What I mean is that I already found that \startitemize and \framed with width=broad was not ok, because broad is related to

Re: [NTG-context] framed items

2009-11-17 Thread Wolfgang Schuster
Am 17.11.2009 um 09:12 schrieb luigi scarso: > What I mean is that I already found that \startitemize and \framed with > width=broad was not ok, because broad is related to \hsize but it's > ok in other situations. You can't use \hsize because it the width of the complete text area which Te

Re: [NTG-context] framed items

2009-11-17 Thread Aditya Mahajan
On Tue, 17 Nov 2009, luigi scarso wrote: On Tue, Nov 17, 2009 at 12:24 AM, Wolfgang Schuster wrote: from pack-rul:   \else\ifx\localwidth\v!broad     \boxhaswidthtrue     \!!framedwidth\hsize   \else\ifx\localwidth\v!local     \boxhaswidthtrue     \setlocalhsize     \!!framedwidth\localhsize

Re: [NTG-context] framed items

2009-11-17 Thread luigi scarso
On Tue, Nov 17, 2009 at 4:32 PM, Aditya Mahajan wrote: > I did not know about width=local (and therefore wanted width=broad to behave > like it). Given that, I think that broad behaves just fine. These differnt > options need to be documented better. yes, in the wiki... where ? -- luigi ___

Re: [NTG-context] framed items

2009-11-17 Thread Aditya Mahajan
On Tue, 17 Nov 2009, luigi scarso wrote: On Tue, Nov 17, 2009 at 4:32 PM, Aditya Mahajan wrote: I did not know about width=local (and therefore wanted width=broad to behave like it). Given that, I think that broad behaves just fine. These differnt options need to be documented better. yes, i

Re: [NTG-context] framed items

2009-11-17 Thread luigi scarso
On Tue, Nov 17, 2009 at 4:41 PM, Aditya Mahajan wrote: .. done at http://wiki.contextgarden.net/Framed#Width_broad_and_local -- luigi ___ If your question is of interest to others as well, please add an entry to the