Re: Lilypond preview
> On 14 Sep 2016, at 02:23, Scott Kostyshakwrote: > > On Tue, Sep 13, 2016 at 07:14:00PM +0100, Stephen Luttrell wrote: >> I have OS X 10.11.6 and LyX 2.2.1 with (1) Look & Feel / Display / Display >> graphics checked, and (2) Look & Feel / Display / Instant preview set to >> “On”. >> >> If I open Help / Specific Manuals / LilyPond, then after a short delay the >> various LilyPond insets — these are inside Preview insets, such as in >> section 2.3 on Previews — display themselves in the LyX window as blank >> regions, whereas I would have expected fragments of musical score to appear. >> However, when I view the corresponding PDF the music is displayed correctly, >> but it would be really nice for the Preview insets to work as expected in >> the LyX window. >> >> In case it is relevant, preview of mathematical formulae in my LyX window >> works correctly. > > Hi Stephen, I'm not sure what's wrong. I just checked and the previews > show up fine on Ubuntu so there might be something platform-specific > going on. Hopefully there's someone around here who uses Mac that can > check. With a lot of outside help from Helge Hafting, we managed to narrow down what the LilyPond Preview problem might be due to. LilyPond previewing depends on LyX successfully converting EPS graphics (of each musical score fragment) into PNG graphics. To make this conversion process as similar as possible to the way it is done in Linux, where LilyPond previewing is known to work, I installed MacPorts on my Mac, which installs ImageMagick as part of the MacPorts installation process. I then reconfigured LyX, which then set up a new converter EPS -> PNG using the command “convert $$i $$o”, where “convert” is part of the ImageMagick installation. I verified that “convert filename.eps filename.png” creates the expected PNG file from one of the temporary EPS files that LyX creates when trying to preview a LilyPond inset. However, LyX itself still displays blank regions rather than the expected fragments of musical score in its window, and when I check the temporary PNG files that LyX has generated from the temporary EPS files they all contain the same blank pieces of graphics. I have closed then opened LyX, and I have even rebooted, but this problem persists. So, I have a working “convert”, but LyX fails to use it for the EPS previews generated by LilyPond insets. BTW, I checked that if I insert EPS graphics into a LyX document, then this does display correctly in the LyX window, so there is something not working with LilyPond insets, rather than with EPS graphics generally. In case it is relevant, there is only one “convert” on my Mac, which is the one that appeared after I installed ImageMagick, and there are 3 EPS converters set up in my LyX installation, which are (1) EPS -> PDF (graphics) using “epstopdf --outfile=$$o $$i”, (2) EPS -> PNG using “convert $$i $$o”, and (3) EPS (uncropped) -> EPS using “ps2eps -- < $$i > $$o”. Stephen Luttrell
Re: Lilypond preview
On Tue, Sep 13, 2016 at 07:14:00PM +0100, Stephen Luttrell wrote: > I have OS X 10.11.6 and LyX 2.2.1 with (1) Look & Feel / Display / Display > graphics checked, and (2) Look & Feel / Display / Instant preview set to “On”. > > If I open Help / Specific Manuals / LilyPond, then after a short delay the > various LilyPond insets — these are inside Preview insets, such as in section > 2.3 on Previews — display themselves in the LyX window as blank regions, > whereas I would have expected fragments of musical score to appear. However, > when I view the corresponding PDF the music is displayed correctly, but it > would be really nice for the Preview insets to work as expected in the LyX > window. > > In case it is relevant, preview of mathematical formulae in my LyX window > works correctly. Hi Stephen, I'm not sure what's wrong. I just checked and the previews show up fine on Ubuntu so there might be something platform-specific going on. Hopefully there's someone around here who uses Mac that can check. Scott signature.asc Description: PGP signature
Re: LilyPond preview inset with included files
On Sat, Aug 9, 2014 at 4:50 PM, Tao Cumplido taocumpl...@gmail.com wrote: Also the preview doesn't seem to work at all when xelatex is used. Is there a workaround maybe? I'm using LyX 2.1.1, LilyPond 2.18, Tex Live 2014 under Linux Mint 17. 2014-08-09 20:48 GMT+02:00 Tao Cumplido taocumpl...@gmail.com: Hi all, is there a way to make lilypond-snippets inside a preview-inset display when the snippet includes another lilypond-file with \include? I already removed all the --safe and -dsafe options from the lilypond-converters, this at least makes it possible to use \include in snippets generally, i.e. the compiled pdf looks fine. Just the preview processing fails. Hi Tao, For your first question, consider external templates. See Help Customization. For your second question, please post a minimal working example and a screenshot of what is displayed (doesn't seem to work at all does not say what happens. Is a red dot shown? Is nothing shown? Is the LaTeX shown?). Best, Scott
Re: LilyPond preview inset with included files
On Sat, Aug 9, 2014 at 4:50 PM, Tao Cumplido taocumpl...@gmail.com wrote: Also the preview doesn't seem to work at all when xelatex is used. Is there a workaround maybe? I'm using LyX 2.1.1, LilyPond 2.18, Tex Live 2014 under Linux Mint 17. 2014-08-09 20:48 GMT+02:00 Tao Cumplido taocumpl...@gmail.com: Hi all, is there a way to make lilypond-snippets inside a preview-inset display when the snippet includes another lilypond-file with \include? I already removed all the --safe and -dsafe options from the lilypond-converters, this at least makes it possible to use \include in snippets generally, i.e. the compiled pdf looks fine. Just the preview processing fails. Hi Tao, For your first question, consider external templates. See Help Customization. For your second question, please post a minimal working example and a screenshot of what is displayed (doesn't seem to work at all does not say what happens. Is a red dot shown? Is nothing shown? Is the LaTeX shown?). Best, Scott
Re: LilyPond preview inset with included files
On Sat, Aug 9, 2014 at 4:50 PM, Tao Cumplidowrote: > Also the preview doesn't seem to work at all when xelatex is used. Is there > a workaround maybe? > I'm using LyX 2.1.1, LilyPond 2.18, Tex Live 2014 under Linux Mint 17. > > > 2014-08-09 20:48 GMT+02:00 Tao Cumplido : > >> Hi all, >> >> is there a way to make lilypond-snippets inside a preview-inset display >> when the snippet includes another lilypond-file with \include? >> I already removed all the --safe and -dsafe options from the >> lilypond-converters, this at least makes it possible to use \include in >> snippets generally, i.e. the compiled pdf looks fine. >> Just the preview processing fails. Hi Tao, For your first question, consider external templates. See Help > Customization. For your second question, please post a minimal working example and a screenshot of what is displayed ("doesn't seem to work at all" does not say what happens. Is a red dot shown? Is nothing shown? Is the LaTeX shown?). Best, Scott
Re: LilyPond preview inset with included files
Also the preview doesn't seem to work at all when xelatex is used. Is there a workaround maybe? I'm using LyX 2.1.1, LilyPond 2.18, Tex Live 2014 under Linux Mint 17. 2014-08-09 20:48 GMT+02:00 Tao Cumplido taocumpl...@gmail.com: Hi all, is there a way to make lilypond-snippets inside a preview-inset display when the snippet includes another lilypond-file with \include? I already removed all the --safe and -dsafe options from the lilypond-converters, this at least makes it possible to use \include in snippets generally, i.e. the compiled pdf looks fine. Just the preview processing fails. Regards, Tao
Re: LilyPond preview inset with included files
Also the preview doesn't seem to work at all when xelatex is used. Is there a workaround maybe? I'm using LyX 2.1.1, LilyPond 2.18, Tex Live 2014 under Linux Mint 17. 2014-08-09 20:48 GMT+02:00 Tao Cumplido taocumpl...@gmail.com: Hi all, is there a way to make lilypond-snippets inside a preview-inset display when the snippet includes another lilypond-file with \include? I already removed all the --safe and -dsafe options from the lilypond-converters, this at least makes it possible to use \include in snippets generally, i.e. the compiled pdf looks fine. Just the preview processing fails. Regards, Tao
Re: LilyPond preview inset with included files
Also the preview doesn't seem to work at all when xelatex is used. Is there a workaround maybe? I'm using LyX 2.1.1, LilyPond 2.18, Tex Live 2014 under Linux Mint 17. 2014-08-09 20:48 GMT+02:00 Tao Cumplido: > Hi all, > > is there a way to make lilypond-snippets inside a preview-inset display > when the snippet includes another lilypond-file with \include? > I already removed all the --safe and -dsafe options from the > lilypond-converters, this at least makes it possible to use \include in > snippets generally, i.e. the compiled pdf looks fine. > Just the preview processing fails. > > Regards, > Tao >