I posted this as a part of the ERT-inline discussion, but thought I'd post it again since it's really a separate thing.
I use "macros" such as: \newcommand{\waro}{{\bf\it{WARP}... and get \warp{} -> Warp1 in a nice an consistent way wherever I insert it, using ERT of course. (The connection to inlined ERT was that it makes the text flow better) But when I think about it, what I really want here is something like the math macros, i.e. something where you can specify both the (latex) output and the appearance in Lyx. Actually, I can do something quite similar using math macros, it just feels a bit weird starting in math mode and then changing to text mode. See here for a very simple example: http://www.md.kth.se/~chr/lyx/examples/math-macro_as_text-macro.lyx and here for a much more advanced exxample: http://www.md.kth.se/~chr/lyx/songbook/example/ with screenshots. So... what is the "status" of the math-macros? Are they used? (I have to admit to forgetting about them) Is it something that should be "forgotten"? Here are some of the drawbacks with using the current math-macros: 1. I don't know how (if possible) to define them in a separate file, allowing me to get a consistent appearance etc. 2. Using them for "text" is a bit unintuitive, and you don't really know what is going on. Other than that, I think it's a great idea to have an object (inset?) where you define the output and it's appearance in lyx separately, that is to say that the important thing is the output, but you want something that's easy to work with in lyx). What do you think about some kind of general "macro", but in text mode rather than math-mode? For people who have been defining their own latex commands and inserting them just to get a consistent appearance, it would be enough to just be able to make something like this (in a layout file for instance?): Macro warp LatexName warp LatexType Command Preamble \newcommand{\warp}{{\it{}WARP1}} EndPreamble End ... hmm... is someone going to tell me that I can already do this today? /Christian -- Christian Ridderström http://www.md.kth.se/~chr