On 2009-04-02, Enrico Forestieri wrote: > On Thu, Apr 02, 2009 at 08:10:30AM +0000, Guenter Milde wrote:
... > You're actually suggesting to turn \lyxmathsym into a real math inset. ... if you insist on the \lyxmathsym layer, yes. I'd like to see a text-in-math environment that is automatically used for characters that are not defined (by LyX) in math. > This would be a duplication of functionality it would add the auto-switch to text-in-math feature, saving some keystrokes. > you still won't be able to style it the LyX-way (because the TextStyle > dialog doesn't work in a text-in-math environment), I thought that styling text-in-math is possible already: >> >> >> * it allows Strg-E for italic, Strg-B for bold, and all the other text >> >> >> styles and colours. >> >> > These are still allowed. You have to simply explicitly request a >> >> > text-in-math environment and \lyxmathsym will not come in your way. but I might be wrong. In this case this is problem that should be dealt with separately. > and it would also be a file format change. This is why I file it now, when there is still time until the next major release. > For these reasons I am not really interested in doing so. Indeed, I think > that it would be a lot of work for no advantage. Fair enough. > However, if not seeing those red corners around the symbol really > disturbs you, Actually I look mare at the blue vs. black colour that would tell me: this is text, using text fonts in the output. > you could try to provide a patch for evaluation. I am afraid that this is above my coding skills. .... >> The effect of \renewcommand{\lyxmathsym}{} can be achieved by repeating >> the text equivalent as math equivalent, e.g. >> # MODIFIER LETTER SMALL H >> 0x02b0 "\\textsuperscript{h}" "" "" "\\textsuperscript{h}" > Not really, because the redefinition would also affect the text part > and that symbol would not be available anywhere. I don't understand this argument. Where should the side-effect on the text part come from? Currently, MODIFIER LETTER SMALL H in text and math would produce \textsuperscript{h}$\lyxmathsym{\textsuperscript{h}}$ and after the above mentioned change \textsuperscript{h}$\textsuperscript{h}$ As the force-flag is not set, the symbol will still be inserted verbatim if it is supported by the latex-inputencoding. >> While modifying "unicodesymbols" is the specific way, the generic way >> would be to redefine \text >> \let\oldtext\text >> \renewcommand{\text}{} > But in this way you cannot use \text anywhere in the document. Indeed. You would have to use \oldtext (optionally in a math-macro) instead. Thanks, Günter