On Fri, Aug 19, 2011 at 5:03 AM, Paul Johnson <pauljoh...@gmail.com> wrote: > On Thu, Aug 18, 2011 at 4:17 PM, Liviu Andronic <landronim...@gmail.com> > wrote: > >>> >> I'm not sure what you mean. I assigned 'command-sequence buffer-view >> pdf2 ; buffer-export pdf2 ;' to ctrl+shift+b and it works as expected >> on my system: > > Thanks. You were completely correct. I was not reading that thread > correctly. I was just, well, wrong. > > As you say, just for the record, here is the fix that saves the pdf > file in the current working directory when viewing the file. Add a > line in the .lyx/bind/user.bind file like this: > > \bind "C-S-b" "command-sequence buffer-view pdf2 ; buffer-export pdf2 ;" > > I tried to do that through the LyX menu system, but I kept ending up > with a carriage return in the command that rendered it non-operative. > If LyX doesn't properly display carriage returns in its input box, this may be something worth reporting as a bug.
> However, if you try in the menu system (Tools -> Preferences -> > Editing -> ShortCuts) and it seems not to work, just open the > user.bind file in some good editor and make sure it is all on one > line. > Oh, sorry for that. I didn't anticipate that e-mail formatting could make a difference. Glad that you could make it work. In any case, for info, in principle you could use the exact same command in a custom button on the LyX toolbar. You would only need to copy 'stdtoolbars.inc' in your user profile, clone a relevant line and change its command. Regards Liviu