On 2011-04-06, venom00 wrote: >> On 2011-04-05, venom00 wrote: >> > Why don't we add native support for siunitx, right now we have just >> > workarounds [1]. I mean having the SI symbol right in LyX math mode. >> > Could someone point me in the right direction to do this?
>> How about defining a math macro? > Yes, it's the solution I linked, but it's a workaround, and the > end-user won't know it. Maybe we should create a set of predefined > macros to add virtual support for LaTeX packages like these. The generic solutions would be a way to define math-macros in module files. However, siunitx also works in text mode, so this is also only half of the solution. Currently, you can (re)define TeX commands with GUI-feedback in LyX in two ways: layout/module files document math mode - math-macro text mode InsetLayout - there is clearly something missing ;-) Also, definitions in the layout file are limited to just one command argument (+ one optional), hence not working for e.g. \unit{1}{cm}. Günter