![]() This was the old behavior of Enter in this case. So I test if we're in a macro ( mathcursor->inMacroMode()), and if so, then fall through (ie, copy the code) to the LFUN_MATH_INSERT code with "\n" as the argument. The behavior I want is just ending the macro. When typing a macro (like \alpha), then Enter ends the macro and pops you out of math mode. Update: Well, there's a bit of a problem. LFUN_BREAKPARAGRAPH is what Enter is mapped to, and it turns out that LFUN_END has better behavior than space, since the cursor moves to the end of the current math box if not already there, and exits if at the end. I changed LFUN_BREAKPARAGRAPH (and friends) to have the same behavior as LFUN_END. So I modified the InsetFormulaBase::localDispatch procedure of mathed/formulabase.C. As far as I can tell, there is no way to do this just with the configuration files. What I wanted was for the Enter key to exit the current math box (like the space bar), and for the Math-Mode key to exit math mode instead of creating a text box inside math mode. While the key bindings files allow a large amount of customization, they do not allow different behaviors in text mode and math mode. Some of the keystrokes in LyX don't quite do what I want.You also might need to modify or generate a ~/.lyx/textclass.lst file. Put the files article_with_amsthms.layout and amsthms_for_article.inc in your ~/.lyx/layouts directory. So I modified the article layout and amsmaths file. I'm not really a fan of the class amsart. ![]() I like using the plain LaTeX class article with the amsthm package.However, there were a few things that bugged me, that I have customized. LyX is very similar in philosophy to the way that I used EXP, and so the switch has been pretty painless. I have decided to switch to LyX from EXP because LyX is open source and native to Linux (getting EXP to run again when Wine was changed was really getting annoying). Customization of LyX Customization of LyX
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |