On 08/11/2016 07:07 PM, Richard Heck wrote: > On 08/11/2016 04:53 PM, Bernt Lie wrote: >> >> I have used SWP a lot in the past, and really like that product >> (despite some limitations). They support “fragments” which is really >> great: >> >> · Mark any part of a document, and save this marked part as a >> “fragment” in a file of a given name. >> >> · Then call back this fragment by typing Ctrl+ fragment name >> at any time (v 5.5). (Use of the Ctrl key makes it slightly complex >> to type, so there may be better ways). >> >> · Examples of fragments could be (I) horizontal fill + math >> \blacktriangle (e.g named endex – end of example) (ii) a floating >> table with center table (e.g, mytab), (iii) similar for figures (e.g, >> myfig), (iv) a symbol for scaled variables (e.g, scaled), (v) an >> empty data list object set to the Python language, numbered lines on >> the left side with smallest font using typewriter font (e.g, >> mypython), etc., etc. >> >> In summary: fragments are great – very useful, and very intuitive to >> use! Sorely missed. >> > > You can approximate this behavior by copying the fragment to a LyX > file and then using Insert> File> LyX Document to insert it. You can > bind the file-insert command to a keystroke to make it easier to open > the relevant dialog, if you wish. And if you have some file you want > to insert a lot, you can bind a key to something like "file-insert > /path/to/myfile.lyx". Though, at the moment, that does not seem to be > working for me. Hmm. I'll investigate.
No, it does work. I was foolishly mistyping the filename. Over and over. Richard
