Re: Support for boxes

2003-09-22 Thread Angus Leeming
Martin Vermeer wrote: > BTW is there a 'cvs subtract' to cancel a 'cvs add'? No, but if you open CVS/Entries in the appropriate dir, find the file you've added and remove that line, then who's to know ;-) (Ie, cvs add is just a local command. No change to the repository at all.) -- Angus

Re: Support for boxes

2003-09-22 Thread Martin Vermeer
On Mon, Sep 22, 2003 at 05:10:59PM +0200, Jean-Marc Lasgouttes spake thusly: ... > Martin> OK, so minipage must be provided at least. > > ... and in a way that replaces the minipage inset. ... > The corrections for oval box seem even worse. Concerning oval box, we > have to wonder: do we

Re: Support for boxes

2003-09-22 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> OK, so minipage must be provided at least. >> ... and in a way that replaces the minipage inset. Martin> Eventually, why not. I think this is something that we have to do to keep the UI coherent. >> You want to make sure t

Re: Support for boxes

2003-09-22 Thread Martin Vermeer
On Mon, Sep 22, 2003 at 05:22:09PM +0200, Andre Poenitz spake thusly: > > In fact I'd think something along the lines of > > \usepackage{fancybox} > \usepackage{calc} > > \par\fbox{\parbox{\columnwidth-2\fboxsep-2\fboxrule}{}} > \par\ovalbox{\parbox{\columnwidth-2\fboxsep-0.8pt}{}} > >

Re: Support for boxes

2003-09-22 Thread Martin Vermeer
On Mon, Sep 22, 2003 at 04:13:18PM +, Angus Leeming spake thusly: > Martin Vermeer wrote: > > Getting better all the time... see attached. > > and why are you blaming me for your code ? > + * \author Angus Leeming > > -- > Angus One day you'll be grateful ;-) Okay, okay, ... - M pgp0

Re: Support for boxes

2003-09-22 Thread Martin Vermeer
On Mon, Sep 22, 2003 at 05:10:59PM +0200, Jean-Marc Lasgouttes spake thusly: > > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > >> Could also be fixed width or 'twice the natural size of this text' > >> (like latex2e allows) or 'make the box square'... > > Martin> Sure. Some e

Re: Support for boxes

2003-09-22 Thread Andre Poenitz
On Mon, Sep 22, 2003 at 05:08:16PM +0300, Martin Vermeer wrote: > On Mon, Sep 22, 2003 at 02:53:54PM +0200, Andre Poenitz spake thusly: > > What's the real world problem you are currently trying to solve? > > The one the (tested, working) solution of which is the following: > > (lyx_sty.C) > > s

Re: Support for boxes

2003-09-22 Thread Angus Leeming
Martin Vermeer wrote: > Getting better all the time... see attached. and why are you blaming me for your code ? + * \author Angus Leeming -- Angus

Re: Support for boxes

2003-09-22 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: >> Could also be fixed width or 'twice the natural size of this text' >> (like latex2e allows) or 'make the box square'... Martin> Sure. Some easy, some not so easy. But ask the UI folks first Martin> :-) Those are chosen to be easy e

Re: Support for boxes

2003-09-22 Thread Martin Vermeer
On Mon, Sep 22, 2003 at 04:10:42PM +0200, Jean-Marc Lasgouttes spake thusly: > > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > >> - set a width (which could be columnwidth) > > Martin> The two most popular widths will be (corrected) \columnwidth > Martin> and "adaptive" (i.e.,

Re: Support for boxes

2003-09-22 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: >> - set a width (which could be columnwidth) Martin> The two most popular widths will be (corrected) \columnwidth Martin> and "adaptive" (i.e., don't put a parbox inside the fbox). I Martin> was considering at least having that in the

Re: Support for boxes

2003-09-22 Thread Martin Vermeer
On Mon, Sep 22, 2003 at 02:33:47PM +0200, Jean-Marc Lasgouttes spake thusly: > > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> This patch adds support for rectangular frames containing one > Martin> or more paragraphs of text, at the width of the column, using > Martin>

Re: Support for boxes

2003-09-22 Thread Martin Vermeer
On Mon, Sep 22, 2003 at 02:53:54PM +0200, Andre Poenitz spake thusly: > On Mon, Sep 22, 2003 at 01:50:30PM +, Angus Leeming wrote: > > How about a Preamble dialog (or pane) that displayed the stuff that LyX was > > auto-inserting too. These lines would be displayed in a different colour > >

Re: Support for boxes

2003-09-22 Thread Andre Poenitz
On Mon, Sep 22, 2003 at 01:50:30PM +, Angus Leeming wrote: > How about a Preamble dialog (or pane) that displayed the stuff that LyX was > auto-inserting too. These lines would be displayed in a different colour > and could not be deleted. However, if the user hit the 'Return' button > when

Re: Support for boxes

2003-09-22 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > I am not sure that we will be easy to do this in a clean way. I fear > that for some people, the thing you think should be before user > preamble should actually be another place for their usage pattern. We > should try to get these things as straightforward as possibl

Re: Support for boxes

2003-09-22 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> On Monday 22 September 2003 12:16 pm, Martin Vermeer wrote: >> About the LaTeX stuff here BTW I noticed one unfortunate thing. If >> you try to redefine fboxsep in the preamble, it ends up after the >> fboxwidth definition... should

Re: Support for boxes

2003-09-22 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> This patch adds support for rectangular frames containing one Martin> or more paragraphs of text, at the width of the column, using Martin> the Note infrastructure. Why hardcoding the width?? Not everybody wants to to have boxen

Re: Support for boxes

2003-09-22 Thread Angus Leeming
On Monday 22 September 2003 12:16 pm, Martin Vermeer wrote: > About the LaTeX stuff here BTW I noticed one unfortunate thing. If you > try to redefine fboxsep in the preamble, it ends up after the fboxwidth > definition... should I make that rather a newcommand? Then it is > called from the inset i

Re: Support for boxes

2003-09-22 Thread Juergen Spitzmueller
Martin Vermeer wrote: > Colorbox would be nice too, but I want to see first what > Jürgen has in mind for character colours (i.e., general LaTeX colours > support.) Don't hold your breath, Martin. Although I have submitted my PH.D. thesis few weeks ago, I am already snowed with real work :-( Jue

Re: Support for boxes

2003-09-22 Thread Martin Vermeer
On Mon, Sep 22, 2003 at 12:12:46PM +, Angus Leeming spake thusly: > > On Monday 22 September 2003 10:37 am, Martin Vermeer wrote: > > On Sun, Sep 21, 2003 at 10:42:04PM +, Angus Leeming spake thusly: > > > Returning to nit-picking mode: > > > > Do I infer correctly that > > discussion-in-p

Re: Support for boxes

2003-09-22 Thread Angus Leeming
On Monday 22 September 2003 10:37 am, Martin Vermeer wrote: > On Sun, Sep 21, 2003 at 10:42:04PM +, Angus Leeming spake thusly: > > Returning to nit-picking mode: > > Do I infer correctly that > discussion-in-principle-whether-this-is-a-good-idea-at-all-mode has > been turned off? Support for

Re: Support for boxes

2003-09-22 Thread Martin Vermeer
On Sun, Sep 21, 2003 at 10:42:04PM +, Angus Leeming spake thusly: > > Returning to nit-picking mode: Do I infer correctly that discussion-in-principle-whether-this-is-a-good-idea-at-all-mode has been turned off? Anyway, new version. Only the ControlBox/FormBox stuff still missing, but should

Re: Support for boxes

2003-09-22 Thread Martin Vermeer
On Mon, Sep 22, 2003 at 08:34:25AM +, Angus Leeming spake thusly: > On Monday 22 September 2003 6:26 am, Martin Vermeer wrote: > > > Question. Why doesn't InsetBoxMailer::string2params set the "type" > > > > It does... Hmmm. Could this be simplified? Yes! Like this > > > > case LFUN_INSET_M

Re: Support for boxes

2003-09-22 Thread Angus Leeming
On Monday 22 September 2003 6:26 am, Martin Vermeer wrote: > > Question. Why doesn't InsetBoxMailer::string2params set the "type" > > It does... Hmmm. Could this be simplified? Yes! Like this > > case LFUN_INSET_MODIFY: { > InsetNoteMailer::string2params(cmd.argument, params_); >

Re: Support for boxes

2003-09-21 Thread Martin Vermeer
On Sun, Sep 21, 2003 at 10:42:04PM +, Angus Leeming spake thusly: ... > Returning to nit-picking mode: > > +InsetBox::InsetBox(BufferParams const & bp, string const & label) > + : InsetCollapsable(bp) > +{ > + params_.type = label; > + init(); > + setButtonLabel(); >

Re: Support for boxes

2003-09-21 Thread Angus Leeming
Martin Vermeer wrote: > On Thu, Sep 18, 2003 at 10:51:21PM +, Angus Leeming spake thusly: >> >> Martin Vermeer wrote: >> >> > This patch adds support for rectangular frames containing one or more >> > paragraphs of text, at the width of the column, using the Note >> > infrastructure. >> > >

Re: Support for boxes

2003-09-21 Thread Martin Vermeer
On Sun, Sep 21, 2003 at 04:22:09PM +0100, John Levon spake thusly: > > On Sun, Sep 21, 2003 at 06:36:09PM +0300, Martin Vermeer wrote: > > > Okay, did just that. Here is the next attempt. > > > > + Menu "insert_box" > > + Item "Boxed|B" "box-insert Boxed" > > End > > Can you exp

Re: Support for boxes

2003-09-21 Thread John Levon
On Sun, Sep 21, 2003 at 06:36:09PM +0300, Martin Vermeer wrote: > Okay, did just that. Here is the next attempt. > > + Menu "insert_box" > + Item "Boxed|B" "box-insert Boxed" > End Can you explain what further menu items are likely to end up on this menu for me please ? th

Re: Support for boxes

2003-09-21 Thread Martin Vermeer
On Thu, Sep 18, 2003 at 10:51:21PM +, Angus Leeming spake thusly: > > Martin Vermeer wrote: > > > This patch adds support for rectangular frames containing one or more > > paragraphs of text, at the width of the column, using the Note > > infrastructure. > > > > It wouldn't be too hard to ex

Re: Support for boxes

2003-09-18 Thread Martin Vermeer
On Thu, Sep 18, 2003 at 10:35:00PM +0100, John Levon spake thusly: > > On Fri, Sep 19, 2003 at 12:30:18AM +0300, Martin Vermeer wrote: > > > + Item "[Boxed]|B" "note-insert Boxed" > > In my usual "trivial carping" mode - please don't. It's visually jarring > and potentially misleading.

Re: Support for boxes

2003-09-18 Thread Martin Vermeer
On Thu, Sep 18, 2003 at 10:51:21PM +, Angus Leeming spake thusly: > > Martin Vermeer wrote: > > > This patch adds support for rectangular frames containing one or more > > paragraphs of text, at the width of the column, using the Note > > infrastructure. > > > > It wouldn't be too hard to ex

Re: Support for boxes

2003-09-18 Thread Angus Leeming
Martin Vermeer wrote: > This patch adds support for rectangular frames containing one or more > paragraphs of text, at the width of the column, using the Note > infrastructure. > > It wouldn't be too hard to extend this to fancybox support. > > Does this look like the right thing to do? What ha

Re: Support for boxes

2003-09-18 Thread John Levon
On Fri, Sep 19, 2003 at 12:30:18AM +0300, Martin Vermeer wrote: > + Item "[Boxed]|B" "note-insert Boxed" In my usual "trivial carping" mode - please don't. It's visually jarring and potentially misleading. (The "correct" way to do something like this is with gnome-style menu icons)

Support for boxes

2003-09-18 Thread Martin Vermeer
This patch adds support for rectangular frames containing one or more paragraphs of text, at the width of the column, using the Note infrastructure. It wouldn't be too hard to extend this to fancybox support. Does this look like the right thing to do? - Martin Index: lib/ui/stdmenus.ui