%% 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))]
\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))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "/lilypond-2.26.0/input/regression/with-link-test.ly"
\sourcefileline 0
\version "2.25.35"

\header {

  texidoc = "The first two pages are numbered in Roman format.
On page@tie{}1 you should see `Roman one', on page@tie{}2 `Roman two'
and the corresponding Roman style page number.
From page@tie{}3 to the end the page numbers are formatted with Arabic numbers.
On page@tie{}3 you see `Arabic one' and on page@tie{}4 `Arabic two'
together with the corresponding Arabic style page number.
On the last page, you should see a kind of a table of contents with four rows
showing the page numbers in their respective formats ``I II 1 2''.
Each of the four rows should have a link to the corresponding page,
so clicking on `I' should jump to page@tie{}1 and so on."

}

\book {

  \paper {
    print-first-page-number = ##t
  }

  \bookpart {
    \paper {
      page-number-type = #'roman-upper
      bookpart-level-page-numbering = ##t
    }

    \label #'one
    \markup "roman one"

    \pageBreak

    \label #'two
    \markup "roman two"
  }

  \bookpart {
    \label #'three
    \markup "arabic one"
  }

  \bookpart {
    \label #'four
    \markup "arabic two"
  }

  \bookpart {
    \markup \left-column {
      \with-link #'one \page-ref #'one "X" "?"
      \with-link #'two \page-ref #'two "X" "?"
      \with-link #'three \page-ref #'three "X" "?"
      \with-link #'four \page-ref #'four "X" "?"
    }
  }
}



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