Re: Automatic save of LaTeX
Scott Kostyshak lyx.org> writes: > > On Wed, Apr 06, 2016 at 11:19:06AM +1200, Andrew Parsloe wrote: > > On 6/04/2016 8:55 a.m., Anders Host-Madsen wrote: > > >Thanks, that works. I see I can use the command-sequence to combine > > >the commands. So, now it works. > > I'm interested to know whether this really does work. In the past when I've > > tried to use command-sequence with export or save operations it has run into > > problems with threaded code -- an export or save is not completed before the > > next command in the sequence is initiated. > > I think this issue might be the one that you're running into: > http://www.lyx.org/trac/ticket/8338 > > Also note these posts: > http://tex.stackexchange.com/questions/71110/can-lyx-automatically-save-the-pdf-output-in-the- same-folder/71212#71212 > http://tex.stackexchange.com/questions/89561/shortcut-for-export-pdf-on-lyx/89562#89562 > > Scott > I can only say that so far it works for me. I assigned command-sequence buffer-write; buffer-export pdflatex; buffer-export pdf2 to a key (control-command-S), and it works as intended. I'm using a mac.
Re: Automatic save of LaTeX
On Wed, Apr 06, 2016 at 11:19:06AM +1200, Andrew Parsloe wrote: > On 6/04/2016 8:55 a.m., Anders Host-Madsen wrote: > >Thanks, that works. I see I can use the command-sequence to combine > >the commands. So, now it works. > I'm interested to know whether this really does work. In the past when I've > tried to use command-sequence with export or save operations it has run into > problems with threaded code -- an export or save is not completed before the > next command in the sequence is initiated. I think this issue might be the one that you're running into: http://www.lyx.org/trac/ticket/8338 Also note these posts: http://tex.stackexchange.com/questions/71110/can-lyx-automatically-save-the-pdf-output-in-the-same-folder/71212#71212 http://tex.stackexchange.com/questions/89561/shortcut-for-export-pdf-on-lyx/89562#89562 Scott signature.asc Description: PGP signature
Re: Automatic save of LaTeX
Andrew Parsloe clear.net.nz> writes: > I'm interested to know whether this really does work. In the past when > I've tried to use command-sequence with export or save operations it has > run into problems with threaded code -- an export or save is not > completed before the next command in the sequence is initiated. > > Andrew I have only used it a few times so far, and it seems to work. If the first command, buffer-write, fails because there are no changes, the rest does not run either. But in this case that is clearly desirable.
Re: Automatic save of LaTeX
On 6/04/2016 8:55 a.m., Anders Host-Madsen wrote: Thanks, that works. I see I can use the command-sequence to combine the commands. So, now it works. I'm interested to know whether this really does work. In the past when I've tried to use command-sequence with export or save operations it has run into problems with threaded code -- an export or save is not completed before the next command in the sequence is initiated. Andrew --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
Re: Automatic save of LaTeX
Thanks, that works. I see I can use the command-sequence to combine the commands. So, now it works.
Re: Automatic save of LaTeX
Paul A. Rubin msu.edu> writes: > > Anders Host-Madsen yahoo.com> writes: > > > > > Is there a way to make LyX automatically save the LaTeX version of a > > document > > every time the LyX document is saved? > > > > You can write a custom macro that chains the buffer-write and buffer-export > LFUNs and bind it to some key combination. Then you need to remember to use > that key combo whenever you save your file. You will need to specify an > export format (e.g., pdflatex) in the buffer-export function. The LFUNs are > detailed in Help > LyX Functions. > > Paul > > Thanks. That would work for me. I checked the LFUNs, and I see how I can make each work individually. But how do I combine them? That is, how do I write a macro? I only see something about math macros.
Re: Automatic save of LaTeX
Anders Host-Madsen yahoo.com> writes: > > Is there a way to make LyX automatically save the LaTeX version of a document > every time the LyX document is saved? > You can write a custom macro that chains the buffer-write and buffer-export LFUNs and bind it to some key combination. Then you need to remember to use that key combo whenever you save your file. You will need to specify an export format (e.g., pdflatex) in the buffer-export function. The LFUNs are detailed in Help > LyX Functions. Paul
Re: Automatic save of LaTeX
Dr Eberhard Lisse lisse.NA> writes: > > What on earth for? > There are several reasons. But a main reason is that I would like to be able to edit my documents on my iPad. LaTeX exists, but not LyX. I can edit the latex, and then copy the changes back to LyX. But that does require I have access to the latex version. It often happens I have my iPad with me, I unexpectedly get some extra time and would like to do some work -- but then I don't have the latex version of the document I'm working on.
Re: Automatic save of LaTeX
What on earth for? el On 2016-04-04 20:47, Anders Host-Madsen wrote: > Is there a way to make LyX automatically save the LaTeX version of a document > every time the LyX document is saved? > >