Re: Automatic save of LaTeX

2016-04-20 Thread Hal Kierstead
> On Apr 20, 2016, at 5:51 PM, Anders Host-Madsen wrote: > > Hal Kierstead me.com> writes: > > >> >> Please post the final version. >> Thanks, >> Hal >> > > I wrote a step by step procedure (ironically, in MS Word! I just > find it easier to copy the screen shots

Re: Automatic save of LaTeX

2016-04-20 Thread Anders Host-Madsen
Hal Kierstead me.com> writes: > > Please post the final version. > Thanks, > Hal > I wrote a step by step procedure (ironically, in MS Word! I just find it easier to copy the screen shots into Word) for the non-techies -- mainly so I can myself repeat the procedure when I install a new

Re: Automatic save of LaTeX

2016-04-20 Thread Hal Kierstead
> On Apr 20, 2016, at 7:42 AM, Anders Host-Madsen wrote: > > That was it, now it works exactly as intended. Thanks again > for your help. > Please post the final version. Thanks, Hal

Re: Automatic save of LaTeX

2016-04-20 Thread Anders Host-Madsen
That was it, now it works exactly as intended. Thanks again for your help.

Re: Automatic save of LaTeX

2016-04-19 Thread Stephan Witt
Am 19.04.2016 um 17:42 schrieb Anders Host-Madsen : > > Anders Host-Madsen yahoo.com> writes: > > A few more comment on this. To get the same latex file as one would > get when exporting from the menu, set the "nice" flag in the exporter. > > The main issue with the

Re: Automatic save of LaTeX

2016-04-19 Thread Anders Host-Madsen
Anders Host-Madsen yahoo.com> writes: A few more comment on this. To get the same latex file as one would get when exporting from the menu, set the "nice" flag in the exporter. The main issue with the script approach is that it changes the name of the files. For example, spaces become _. I

Re: Automatic save of LaTeX

2016-04-18 Thread Anders Host-Madsen
OK, I found the problem. Textedit on Mac changed the quotes " into smart quotes. After correcting that it works completely. Thanks all for your help.

Re: Automatic save of LaTeX

2016-04-18 Thread Anders Host-Madsen
Stephan Witt gmx.net> writes: Unfortunately it's not quite there. I have tried to modify the script to run bibtex, but it doesn't work. I have tried different variations for the input to bibtex, below is one. But it's not quite clear to me exactly what should be the input argument to bibtex.

Re: Automatic save of LaTeX

2016-04-18 Thread Anders Host-Madsen
Stephan Witt gmx.net> writes: Thank you so much. Now it works. The key was to put the path to the script in the lyx path. I had understood from the LyX customization manual that when you put it inside the lyx scripts folder, lyx would find it. But that seems not to be the case. Also thanks

Re: Automatic save of LaTeX

2016-04-15 Thread Stephan Witt
Am 13.04.2016 um 23:55 schrieb Anders Host-Madsen : > > Paul A. Rubin msu.edu> writes: > >> Is LExport.sh marked executable by all users, not just yourself. I don't >> know whether LyX runs the script with you as the user or with LyX as the >> user. > > It should be.

Re: Automatic save of LaTeX

2016-04-13 Thread Anders Host-Madsen
Paul A. Rubin msu.edu> writes: > Is LExport.sh marked executable by all users, not just yourself. I don't > know whether LyX runs the script with you as the user or with LyX as the user. It should be. Here is ls -l -rwxrwxrwx@ 1 madsen admin 20 Apr 12 14:11 LExport.sh > > Also, does the

Re: Automatic save of LaTeX

2016-04-13 Thread Paul A . Rubin
Anders Host-Madsen yahoo.com> writes: > I have tried this method. I figured out how to write scripts and put the formats > into LyX, and how to debug LyX. But LyX just will not run my script. I > get the message > > 14:15:31.593: The process failed to start. Either the > invoked program is

Re: Automatic save of LaTeX

2016-04-12 Thread Anders Host-Madsen
Paul A. Rubin msu.edu> writes: > > > Yes, this is what I meant, and the sequence you listed is what I would use. > I don't know if it will work in 100% of all cases, but at worst you should > have the .lyx and .tex files saved (and a LaTeX log file indicating why > compilation failed), or maybe

Re: Automatic save of LaTeX

2016-04-09 Thread Paul A . Rubin
Anders Host-Madsen yahoo.com> writes: > > This sounds a little challenging. By script, you mean a unix shell script? > One challenge > is that you don't quite know how many time to run pdflatex. I guess usually > pdflatex, bibtext, pdflatex, pdflatex would work. > > Yes, this is what I

Re: Automatic save of LaTeX

2016-04-09 Thread Anders Host-Madsen
Paul A. Rubin msu.edu> writes: > > Another possible approach is to define a new file format (Tools | File > Handling | File Formats) and a new converter (Tools | File Handling | > Converters) from LaTeX (pdflatex) to the new format. In the "Converter:" > field, supply the name of a script that

Re: Automatic save of LaTeX

2016-04-07 Thread Paul A . Rubin
Anders Host-Madsen yahoo.com> writes: > It seems I can only run one of the exports. Too bad. My idea > was that if you always save pdf and latex, you can > view the pdf on platforms that do not have LyX, and > edit the LaTeX. My main usage scenario would be > an iPad, but it could also apply if

Re: Automatic save of LaTeX

2016-04-06 Thread Anders Host-Madsen
Scott Kostyshak lyx.org> writes: > I think this issue might be the one that you're running into: > http://www.lyx.org/trac/ticket/8338 Looking at this ticket and the comments, it seems it the same kind of problem I run into. The exports run in parallel. It then makes sense that my iMac, which

Re: Automatic save of LaTeX

2016-04-06 Thread David L. Johnson
On 04/06/2016 06:12 PM, Anders Host-Madsen wrote: Update. If I run command-sequence buffer-write; buffer-export pdf2; buffer-export pdflatex It sometimes make LyX hang. If I run command-sequence buffer-write; buffer-export pdflatex; buffer-export pdf2 sometimes the pdf export doesn't

Re: Automatic save of LaTeX

2016-04-06 Thread Anders Host-Madsen
Update. If I run command-sequence buffer-write; buffer-export pdf2; buffer-export pdflatex It sometimes make LyX hang. If I run command-sequence buffer-write; buffer-export pdflatex; buffer-export pdf2 sometimes the pdf export doesn't happen. So, neither quite work. I have a strong

Re: Automatic save of LaTeX

2016-04-06 Thread Anders Host-Madsen
Gordon Cooper kinect.co.nz> writes: > > > On 07/04/16 02:18, David L. Johnson wrote: > > I notice that, when I export repeatedly to pdf, the command will > > actually run and the pdf will not update unless the buffer has been > > changed. So that's probably why your pdf doesn't always run

Re: Automatic save of LaTeX

2016-04-06 Thread Gordon Cooper
On 07/04/16 02:18, David L. Johnson wrote: I notice that, when I export repeatedly to pdf, the command will actually run and the pdf will not update unless the buffer has been changed. So that's probably why your pdf doesn't always run --- you have to change the document, then it will all

Re: Automatic save of LaTeX

2016-04-06 Thread Anders Host-Madsen
> I notice that, when I export repeatedly to pdf, the command will > actually run and the pdf will not update unless the buffer has been > changed. So that's probably why your pdf doesn't always run --- you > have to change the document, then it will all run. > No, that's not the issue. I

Re: Automatic save of LaTeX

2016-04-06 Thread Dr Eberhard Lisse
I would probably log in from the iPad with vssh, run something like lyx -f -e pdflatex filename.lyx or a variation of this using make and scp the resulting thing onto the iPad. Point being, however, that I like to have a know state and not dump automatically with overwrite issues and

Re: Automatic save of LaTeX

2016-04-06 Thread David L. Johnson
On 04/06/2016 10:05 AM, Anders Host-Madsen wrote: Anders Host-Madsen yahoo.com> writes: 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

2016-04-06 Thread Anders Host-Madsen
Anders Host-Madsen yahoo.com> writes: > > 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. > > I do have one issue, though.

Re: Automatic save of LaTeX

2016-04-05 Thread Anders Host-Madsen
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

Re: Automatic save of LaTeX

2016-04-05 Thread Scott Kostyshak
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

Re: Automatic save of LaTeX

2016-04-05 Thread Anders Host-Madsen
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

Re: Automatic save of LaTeX

2016-04-05 Thread Andrew Parsloe
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

Re: Automatic save of LaTeX

2016-04-05 Thread Anders Host-Madsen
Thanks, that works. I see I can use the command-sequence to combine the commands. So, now it works.

Re: Automatic save of LaTeX

2016-04-05 Thread Anders Host-Madsen
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

Re: Automatic save of LaTeX

2016-04-05 Thread Paul A . Rubin
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

Re: Automatic save of LaTeX

2016-04-05 Thread Anders Host-Madsen
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

Re: Automatic save of LaTeX

2016-04-05 Thread Dr Eberhard Lisse
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? > >