Re: [zathura] --synctex-forward change in 0.3.4
On Sun, Jan 10, 2016 at 05:03:31PM +0100, Sebastian Ramacher wrote: > Run 'synctex help view' to get some info on that. Perfect, thanks a lot! GI -- Daddy, what does 'Formatting C Drive' mean? ___ zathura mailing list zathura@lists.pwmt.org https://lists.pwmt.org/mailman/listinfo/zathura
Re: [zathura] --synctex-forward change in 0.3.4
On 2016-01-10 10:46:46, gi1242+zath...@gmail.com wrote: > On Sat, Jan 09, 2016 at 03:12:45PM +0100, Sebastian Ramacher wrote: > > >> Can I find any documentation for the --synctex-forward mechanism? > > > > There is some in the man page. > > Indeed; however it is a little brief. To quote: > > --synctex-forward=input > Jump to the given position. The switch expects the same format > as specified for synctex's view -i. > > However, I could find nothing on synctex's view -i (and don't know what > that means). I did get it working after searching the mailing list > and a little experimenting. Run 'synctex help view' to get some info on that. Cheers -- Sebastian Ramacher ___ zathura mailing list zathura@lists.pwmt.org https://lists.pwmt.org/mailman/listinfo/zathura
Re: [zathura] --synctex-forward change in 0.3.4
On Sat, Jan 09, 2016 at 03:12:45PM +0100, Sebastian Ramacher wrote: >> Can I find any documentation for the --synctex-forward mechanism? > > There is some in the man page. Indeed; however it is a little brief. To quote: --synctex-forward=input Jump to the given position. The switch expects the same format as specified for synctex's view -i. However, I could find nothing on synctex's view -i (and don't know what that means). I did get it working after searching the mailing list and a little experimenting. >> Can I suggest instead that if zathura is run with --synctex-pid, then >> it *ALWAYS* returns immediately, and the exit status signals whether >> it succeeded or failed. > > Should be fixed with f1d027e656. Thanks a lot! GI -- TEN REASONS WHY HELL IS BETTER THAN GRAD SCHOOL: 5. Hell is forever; Grad School just seems like it. ___ zathura mailing list zathura@lists.pwmt.org https://lists.pwmt.org/mailman/listinfo/zathura
Re: [zathura] --synctex-forward change in 0.3.4
Hi On 2016-01-06 16:40:52, gi1242+zath...@gmail.com wrote: > Hi All, > > Can I find any documentation for the --synctex-forward mechanism? There is some in the man page. > Suppose I run > > zathura --synctex-forward 20:1:paper.tex paper.pdf > > In 0.3.1, if an instance of zathura wasn't already showing paper.pdf, > this would fail with an unfriendly error message. In 0.3.4, it launches > a new instance if one isn't already running. > > However, if you run > > zathura --synctex-pid XXX --synctex-forward 20:1:paper.tex paper.pdf > > then it succeeds (and exits immediately) if a process with ID XXX is > already showing paper.pdf, and launches a new instance with an error > message otherwise. > > This makes things a little more inconvenient to script. (See my attached > hack script.) Can I suggest instead that if zathura is run with > --synctex-pid, then it *ALWAYS* returns immediately, and the exit status > signals whether it succeeded or failed. Should be fixed with f1d027e656. Cheers -- Sebastian Ramacher ___ zathura mailing list zathura@lists.pwmt.org https://lists.pwmt.org/mailman/listinfo/zathura
[zathura] --synctex-forward change in 0.3.4
Hi All, Can I find any documentation for the --synctex-forward mechanism? Suppose I run zathura --synctex-forward 20:1:paper.tex paper.pdf In 0.3.1, if an instance of zathura wasn't already showing paper.pdf, this would fail with an unfriendly error message. In 0.3.4, it launches a new instance if one isn't already running. However, if you run zathura --synctex-pid XXX --synctex-forward 20:1:paper.tex paper.pdf then it succeeds (and exits immediately) if a process with ID XXX is already showing paper.pdf, and launches a new instance with an error message otherwise. This makes things a little more inconvenient to script. (See my attached hack script.) Can I suggest instead that if zathura is run with --synctex-pid, then it *ALWAYS* returns immediately, and the exit status signals whether it succeeded or failed. This way, scripts can do something like: zpid=$(https://lists.pwmt.org/mailman/listinfo/zathura