Hi Klaus, I found the problem I don't know why, but the Default.ly in OOoLilyPond-templates directory , that's located in my home directory, /home/dario/, had no "\include lilypond-preamble.ly" line; I think because may be it was coming from prevoius version of the extension; after deleting every file and directory in my home referring to OOoLilypond, I removed the extension and I added it again, and now it works properly. May be it would have been enough to do restore default templates, but I didn't think to do it. Many thanks to all you, I hope I have made a little contribution to someone.
Best regards Dario Il giorno lun 10 feb 2020 alle ore 10:10 Dario Marrini < dario.marr...@gmail.com> ha scritto: > Thanks Klaus, I can cnogirm I get the same results. > So where do I have to put that \include? > > This is the Default.ly tha t I can extract from the .oxt : > \transpose %{OOoLilyPondCustom1%}c c'%{OOoLilyPondEnd%} > { > %{OOoLilyPondCode%}% For getting started read (copy URL into your web > browser): > % https://github.com/openlilylib/LO-ly > % http://lilypond.org/doc/stable/Documentation/learning/simple-notation% > % > % Use the "Custom 1" to transpose your music expression. E. g. try "e a'". > > \key e \major e8 fis gis e fis8 b,4. | e2\fermata \bar "|." > %{OOoLilyPondEnd%} > } > > *\include "lilypond-book-preamble.ly <http://lilypond-book-preamble.ly>"* > #(set-global-staff-size %{OOoLilyPondStaffSize%}20%{OOoLilyPondEnd%}) > > \paper { > #(define dump-extents #t) > ragged-right = ##t > line-width = %{OOoLilyPondLineWidth%}17\cm%{OOoLilyPondEnd%} > } > > \layout { > indent = #0 > \context { > \Score > \remove "Bar_number_engraver" > } > } > > that \include is present here, and if I copy and pas de Default.ly in > Frescobaldi I get the correct thing (see the .png as attachment); but if I > simply try to insert the music fragment by using the Default inside > LibreOffice I get a whole page snippet... > > Il giorno lun 10 feb 2020 alle ore 00:07 Klaus Blum <benbigno...@gmx.de> > ha scritto: > >> Hi Dario, >> >> Am 09.02.2020 um 22:26 schrieb Dario Marrini: >> > HI tried to compile Default template in Frescobaldi, it works but I >> > can't realize if it creates a little picture or a page, because I >> > can't find where is the resulting .pdf file.... >> > >> on the right side of your screenshot I can see that a whole page is >> created. >> >> Just try this minimal snippet: >> >> % ------------------------------------------ >> \relative c' {c e g c} >> \include "lilypond-book-preamble.ly" >> % ------------------------------------------ >> >> It should create a small image. >> If you remove or comment out the second line (\include >> "lilypond-book-preamble.ly"), you get a whole page again. >> >> In the screenshots I'll attach the results that I get on my system. >> There you can also see in the LilyPond output messages (at the bottom >> left side) that in the version with the preamble there are some more >> files created (*.tex, *.texi etc.). >> >> Can you check if you get similar results? >> If not, I suspect that there is a problem with your LilyPond >> installation that is independent from OOoLilyPond. In that case, I could >> ask here on the mailing list tomorrow if someone with more Linux >> knowlegde already knows about that problem. >> >> Cheers, >> Klaus >> >> >> >>