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 solve
the first is that
inset->latex(os, newrp)
writes the latex code to the file whereas i would like to write it to
a string so that i can do my replacing/appending above. a pointer to
how i might achieve this is appreciated
The os variable here is an odocstream. So we can create a temporary
odocstringstream, write to that, extract the string, do the
manipulations we need to do, and then write the result to os.
the second complication is that the inset might contain environments
and that i do not want to split those. suggestions on how to approach
this would also be welcome.
This suggests that perhaps it would be better to look for the decimal
separator during output, and pass something in runparams to flag whether
you are in an environment.
Richard