Re: fiddling with insets and latex output

2010-05-14 Thread Enrico Forestieri
On Fri, May 14, 2010 at 04:41:34AM -0700, Edwin Leuven wrote: > On Fri, May 14, 2010 at 4:33 AM, rgheck wrote: > > The os variable here is an odocstream. So we can create a temporary > > odocstringstream, write to that > > ah, that was what i was looking for. i was fiddling with a > ostringstrea

Re: fiddling with insets and latex output

2010-05-14 Thread Edwin Leuven
On Fri, May 14, 2010 at 12:45 PM, Julien Rioux wrote: > I am happy with the current situation. sure it works, but it would be nice to achieve this optimally with a simple click that avoids the fiddling with latex and have visual feedback at the same time

Re: fiddling with insets and latex output

2010-05-14 Thread Julien Rioux
On 14/05/2010 11:24 AM, Edwin Leuven wrote: i tried both approaches in the attached. That's a great example file. So according to this, column alignment on the decimal point is already possible in LyX in one of two ways: using the dcolumn package, or manual splitting numbers and decimals in

Re: fiddling with insets and latex output

2010-05-14 Thread Julien Rioux
On 14/05/2010 9:39 AM, Edwin Leuven wrote: On Fri, May 14, 2010 at 6:15 AM, Julien Rioux wrote: Are you sure? I was able to have decimal alignment using the latex package dcolumn without altering LyX source code. I would suggest you have a look here: i am aware of dcolumn, but for now think th

Re: fiddling with insets and latex output

2010-05-14 Thread Edwin Leuven
On Fri, May 14, 2010 at 6:15 AM, Julien Rioux wrote: > Are you sure? I was able to have decimal alignment using the latex package > dcolumn without altering LyX source code. I would suggest you have a look > here: i am aware of dcolumn, but for now think that it's better to split the column on the

Re: fiddling with insets and latex output

2010-05-14 Thread Julien Rioux
On 14/05/2010 5:06 AM, Edwin Leuven wrote: hi guys, i've been looking at decimal alignment in tables to do so i need to find the decimal separator in the inset and replace it with an '&' in the latex output or append an'&' if no decimal separator was found Are you sure? I was able to have dec

Re: fiddling with insets and latex output

2010-05-14 Thread Edwin Leuven
On Fri, May 14, 2010 at 4:33 AM, rgheck wrote: > The os variable here is an odocstream. So we can create a temporary > odocstringstream, write to that ah, that was what i was looking for. i was fiddling with a ostringstream but that obviously didn't work... > This suggests that perhaps it would

Re: fiddling with insets and latex output

2010-05-14 Thread RIchard Heck
On 05/14/2010 05:06 AM, Edwin Leuven wrote: hi guys, i've been looking at decimal alignment in tables to do so i need to find the decimal separator in the inset and replace it with an '&' in the latex output or append an'&' if no decimal separator was found i have two problems that i need to s

fiddling with insets and latex output

2010-05-14 Thread Edwin Leuven
hi guys, i've been looking at decimal alignment in tables to do so i need to find the decimal separator in the inset and replace it with an '&' in the latex output or append an '&' if no decimal separator was found i have two problems that i need to solve the first is that inset->latex(os, new