Re: Precise markup position

2015-05-07 Thread Robin Bannister

Stephen MacNeil wrote:

the overlay on the lsr will do this


That would be Absolute positioning of markup elements
http://lsr.di.unimi.it/LSR/Item?id=628


Then to position millimetre-wise, you need something like

%%

#(define-markup-command (mm-translate layout props mm-offset arg)
  (number-pair? markup?)
  (let ((o-s (ly:output-def-lookup layout 'output-scale)))
(ly:stencil-translate (interpret-markup layout props arg)
  (cons (/ (car mm-offset) o-s) (/ (cdr mm-offset) o-s)

%%


Cheers,
Robin


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Precise markup position

2015-05-07 Thread Les Éditions Valmajour - pg

It does the trick perfectly! Thank you so much!!
Cheers,
Pierre

Le 07/05/2015 11:09, Robin Bannister a écrit :

Stephen MacNeil wrote:

the overlay on the lsr will do this


That would be Absolute positioning of markup elements
http://lsr.di.unimi.it/LSR/Item?id=628


Then to position millimetre-wise, you need something like

%%

#(define-markup-command (mm-translate layout props mm-offset arg)
  (number-pair? markup?)
  (let ((o-s (ly:output-def-lookup layout 'output-scale)))
(ly:stencil-translate (interpret-markup layout props arg)
  (cons (/ (car mm-offset) o-s) (/ (cdr mm-offset) o-s)

%%


Cheers,
Robin




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Precise markup position

2015-05-06 Thread Les Éditions Valmajour -pg
Thanks Robin, 
It will be a big step ahead! 
So it seems that so far, the only  way to place different markups on a page is 
to have them in a pile.
For example, is it possible to:
1 organize some markups in this pile
2 place one other markup aligned on the bottom margin

at the same time?

Envoyé par Type Mail



Sur 6 mai 2015 à 21:13, à 21:13, Robin Bannister r...@dataway.ch a écrit:
Pierre G. wrote:

 I wonder if there is a way to position precisely a text markup


One way to insert vertical millimetres is
http://lists.gnu.org/archive/html/lilypond-user/2010-04/msg00035.html

This may not be the current method, but it still works e.g.
   \markup \mm-feed #27
 in order to create some vertical space
 (see line 34, for the space beetween composer and title 1).


Cheers,
Robin
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Precise markup position

2015-05-06 Thread Robin Bannister

Pierre G. wrote:


I wonder if there is a way to position precisely a text markup



One way to insert vertical millimetres is
http://lists.gnu.org/archive/html/lilypond-user/2010-04/msg00035.html

This may not be the current method, but it still works e.g.
  \markup \mm-feed #27

in order to create some vertical space
(see line 34, for the space beetween composer and title 1).



Cheers,
Robin

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Precise markup position

2015-05-06 Thread Les Éditions Valmajour - pg

Dear list,

I wonder if there is a way to position precisely a text markup (X/Y 
coordinates for example?), to avoid using the empiric


\markup { \vspace #x \null }, in order to create some vertical space 
(see line 34, for the space beetween composer and title 1).


Thank you !

Pierre


\version 2.18.2

#(set! paper-alist (cons '(valmajour22 . (cons (* 222 mm) (* 302 mm))) paper-alist))
#(set-default-paper-size valmajour22)

\paper {
  #(define fonts
 (make-pango-font-tree Playfair Display
   Nimbus Sans
   Luxi Mono
   (/ staff-height pt 20)))
  
  #(define (part-first-page layout props arg)
 (if (= (chain-assoc-get 'page:page-number props -1)
(ly:output-def-lookup layout 'first-page-number))
 (interpret-markup layout props arg)
 empty-stencil))
  
  #(define (part-not-first-page layout props arg)
 (if (not (= (chain-assoc-get 'page:page-number props -1)
 (ly:output-def-lookup layout 'first-page-number)))
 (interpret-markup layout props arg)
 empty-stencil))
  
}

\bookpart {
  \markup { \center-column {
\line { \abs-fontsize #24 Composer }
\line { \null }
}
  }
  
  \markup { \vspace #5 \null }
  
  \markup { 
\fill-line { 
  \center-column {
\line { \abs-fontsize #48 Title 1 }
\line { \vspace #2 \null }
\line { \abs-fontsize #30 Title 2 }
\line { \null }
}
}
  }
  
  \markup \null  
  
  \markup { 
\fill-line { 
  \center-column {
\line { \abs-fontsize #26 Subtitle 1 }
\line { \null }
\line { \abs-fontsize #14 Subtitle 2 }
  }
}
  }
  
  \markup \null

  \markup {
\fill-line {
  
  \right-column {
\line { \abs-fontsize #20 Volume 1 }
\line { \null }
\line { \italic \abs-fontsize #10 A }
\line { \italic \abs-fontsize #10 B }
\line { \italic \abs-fontsize #10 C }
  }
}
  }
  
  \markup \null
  

  \header {
tagline = ##f
  }
  \paper {
top-margin = 33\mm
left-margin = 13\mm
right-margin = 13\mm
bottom-margin = 8\cm
print-page-number = ##f
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user