My issue
I have a lilypond snippet (i.e. some music staffs) embedded within a document containing text.
My question: How to make the snippet justified, i.e. that its size matches the \textwidth?
In other terms, how to make the blue lines match the red ones in following example:
My trials
Of course, I am not using the quote option of \lilypondfile. A similar question is reported in the lilypond mailing list, but the solution is to manually adjust the line-width that is imho not satisfactory.
I tried \lilypondfile[line-width=\linewidth] (and with \textwidth). I tried also to print the value of \linewidth ( i.e. to have in the .lytex document following line: \lipsum[1] \the\linewidth) and then report the value into the line-width option. But each time, the blue and red lines are still not matching.
MWE
The related MWE is:
lytexfile\documentclass{scrartcl} \usepackage{lipsum} \begin{document} \lipsum[1] \lilypondfile[noindent]{myFile.ly} \lipsum[2] \end{document}The related
myFile.ly\version "2.18.2" \paper { left-margin = 0 indent = 0 } %% MUSIQUE %% melodieRepeat = { \once \override Score.RehearsalMark.font-size = #2 \override Score.BarNumber.break-visibility = ##(#f #f #f) r4 e'8 e' e' e' f' g' g' g' r g' g' g' f' e' c'4 r16 c' c' c' c'8 c' d' e' g' g' r4 r8 c'' a' f' } %% PAROLES %% mylyrics = \lyricmode{ Vers les Hom -- mes sans lu -- | miè -- re, Al -- lez por -- ter la | paix, Et cette a -- mi -- tié qui é -- | clair -- e, Por -- tez l'a -- } %% PARTITION %% \score { \layout { indent = #0 } \new ChoirStaff << \new Voice = "melodie" << \key c \major \time 4/4 \clef treble \melodieRepeat >> \new Lyrics \lyricsto "melodie" { \mylyrics } >> }Compiling workflow
I'm following this workflow.

indent = ##ffor your.lyfile? – Josh N. Dec 03 '15 at 17:10\layout { indent = #f left-margin = 0pt right-margin = 0pt ragged-right = #f check-consistency = #f }in my.lyfile, the issue remains the same. (fyi, in my "real" document - and not the MWE -\lilypondfile[line-width=\linewidth]gives an error.) – ebosi Dec 04 '15 at 08:17