Re: [NTG-context] framed items

2009-11-17 Thread luigi scarso
On Tue, Nov 17, 2009 at 6:52 AM, luigi scarso luigi.sca...@gmail.com 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

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 schuster.wolfg...@googlemail.com wrote: from pack-rul:   \else\ifx\localwidth\v!broad     \boxhaswidthtrue     \!!framedwidth\hsize   \else\ifx\localwidth\v!local     \boxhaswidthtrue    

Re: [NTG-context] framed items

2009-11-17 Thread luigi scarso
On Tue, Nov 17, 2009 at 4:32 PM, Aditya Mahajan adit...@umich.edu 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 ? --

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 adit...@umich.edu 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

Re: [NTG-context] framed items

2009-11-17 Thread luigi scarso
On Tue, Nov 17, 2009 at 4:41 PM, Aditya Mahajan adit...@umich.edu 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

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

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

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, that's good,

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!

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, that's good,

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

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

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:12 AM, Aditya Mahajan adit...@umich.edu 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 not

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 adit...@umich.edu 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

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:09 AM, Thomas A. Schmitz thomas.schm...@uni-bonn.de 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

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:17 AM, Aditya Mahajan adit...@umich.edu wrote: On Mon, 16 Nov 2009, luigi scarso wrote: On Mon, Nov 16, 2009 at 10:12 AM, Aditya Mahajan adit...@umich.edu 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 adit...@umich.edu 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]{

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 adit...@umich.edu 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

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:29 PM, Aditya Mahajan adit...@umich.edu 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

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 adit...@umich.edu 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

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 adit...@umich.edu 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

Re: [NTG-context] framed items

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

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 11:20 PM, luigi scarso luigi.sca...@gmail.com 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}{%

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 schuster.wolfg...@googlemail.com wrote: That's why we have \localhsize but it's not working. yes, I was looking at \localhsize in the first post -- luigi ___ If

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 11:42 PM, luigi scarso luigi.sca...@gmail.com wrote: On Mon, Nov 16, 2009 at 11:36 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: That's why we have \localhsize but it's not working. \showframe \starttext \dorecurse{1}{% \hsize=\dimexpr \textwidth / 1

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

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Tue, Nov 17, 2009 at 12:01 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com 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

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 \localhsize and

Re: [NTG-context] framed items

2009-11-16 Thread luigi scarso
On Tue, Nov 17, 2009 at 12:24 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: from pack-rul:   \else\ifx\localwidth\v!broad     \boxhaswidthtrue     \!!framedwidth\hsize   \else\ifx\localwidth\v!local     \boxhaswidthtrue     \setlocalhsize     \!!framedwidth\localhsize