%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt)),quote]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
  line-width = 160\mm - 2.0 * 10.16\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefileline 4329
#(define-markup-command (point layout props x y xoff yoff label)
   (number? number? number? number? markup?)
   (interpret-markup
    layout props
    (make-overlay-markup
     (list
      (make-translate-markup
       (cons x y)
       (make-draw-circle-markup 0.4 0 #t))
      (make-translate-markup
       (cons (+ x xoff) (+ y yoff))
       label)))))

\markup \scale #'(0.8 . 0.8) {
  \overlay {
    \translate #'(-25 . 0) {
      \translate #'(0 . 15) \center-align "parent grob"

      \override #'((filled . #f)
                   (thickness . 2))
        \polygon #'((-20 . -10) (-20 . 10) (20 . 10) (20 . -10))

      \translate #'(-20 . 0) \draw-line #'(40 . 0)
      \translate #'(0 . -10) \draw-line #'(0 . 20)

      \point #0 #0 #0.5 #0.8 "(0,0)"
      \point #-20 #-10 #-7 #-0.8 "(-1,-1)"
      \point #-20 #10 #-6 #0.8 "(-1,1)"
      \point #20 #10 #1 #0.8 "(1,1)"
      \point #20 #-10 #1 #-0.8 "(1,-1)"

      \translate #'(0 . -15) \center-align \line {
        \concat { \italic A \sub \italic P } = (0.6, -0.5) }
      \point #12 #-5 #0.5 #0.8 \concat { \italic A \sub \italic P }
    }

    \translate #'(25 . 0) {
      \translate #'(0 . 15) \center-align "“self” grob"

      \override #'((filled . #f)
                   (thickness . 2))
        \polygon #'((-9 . -9) (-9 . 9) (9 . 9) (9 . -9))

      \translate #'(-9 . 0) \draw-line #'(18 . 0)
      \translate #'(0 . -9) \draw-line #'(0 . 18)

      \point #0 #0 #0.5 #0.8 "(0,0)"
      \point #-9 #-9 #-7 #-0.8 "(-1,-1)"
      \point #-9 #9 #-6 #0.8 "(-1,1)"
      \point #9 #9 #1 #0.8 "(1,1)"
      \point #9 #-9 #1 #-0.8 "(1,-1)"

      \translate #'(0 . -15) \center-align \line {
        \concat { \italic A \sub \italic S } = (-1.4, 0.2) }
      \point #-12.6 #1.8 #-2.3 #-2 \concat { \italic A \sub \italic S }
    }

    \translate #'(0 . -38) {
      \translate #'(0 . 15) \center-align "parent and “self” grob aligned"

      \translate #'(-12.6 . 1.8) {
        \override #'((filled . #f)
                     (thickness . 2))
          \polygon #'((-20 . -10) (-20 . 10) (20 . 10) (20 . -10))

          \translate #'(-20 . 0) \draw-line #'(40 . 0)
          \translate #'(0 . -10) \draw-line #'(0 . 20)

          \point #12 #-5 #-5 #1.5 \line {
            \concat { \italic A \sub \italic P } =
            \concat { \italic A \sub \italic S } }
      }
      \translate #'(12 . -5) {
        \override #'((filled . #f)
                     (thickness . 2))
          \polygon #'((-9 . -9) (-9 . 9) (9 . 9) (9 . -9))

          \translate #'(-9 . 0) \draw-line #'(18 . 0)
          \translate #'(0 . -9) \draw-line #'(0 . 18)
      }
    }
  }
}


% ****************************************************************
% end ly snippet
% ****************************************************************
