Schneidemarken (cut mark, crop mark) für Print?

Begonnen von flashgordonx, Montag, 18. August 2025, 12:31

Vorheriges Thema - Nächstes Thema

flashgordonx

Hallo Lilypond-Fans  8)

Ich suche ein Befehl für Schneidemarken. Kann Jemand mir helfen? :)

Danke im Voraus.

Manuela

Ist schon ein Weilchen her, dass diese Anfrage gestellt wurde. Ich antworte trotzdem.

In Lilypond fällt mir keine Lösung ein, das ginge mit LaTeX

\documentclass[a4paper]{article}
\usepackage[]{pdfpages}
\usepackage[bindingoffset=0in,margin=0mm,left=0cm,right=0cm,top=3cm,bottom=0cm,footskip=.25in]
{geometry}
\usepackage[
noinfo,
cam,
cross,               % crosses as marks
width=216mm,         % the width of the galley
height=303mm,        % the height of the galley
center               % actual page is centered on the galley
]{crop}
\begin{document}
  \includepdf[pages={-}]{hier den Namen des Scores einfügen}
\end{document}
Danke für eure Hilfe
viele Grüße
-- Manuela

harm6

Zitat von: ManuelaIn Lilypond fällt mir keine Lösung ein

Man könnte den `post-process`-hook verwenden. Führt zu:
%% `make-line-stencil` is defined:
%% (make-line-stencil width startx starty endx endy)
#(define (horizontal-cut-mark width y)
  (make-line-stencil 0.1 0 y width y))
 
#(define (vertical-cut-mark height x)
  (make-line-stencil 0.1 x 0 x (- height)))
 
\paper {
  page-post-process =
    #(lambda (layout pages)
       (let* (;; We assume all pages have the same dimensions
              (page (car pages))
              (page-height (ly:prob-property page 'paper-height))
              (page-width (ly:prob-property page 'paper-width)))
         (for-each
           (lambda (page)
             (set! (ly:prob-property page 'stencil)
                   (ly:stencil-add
                     (ly:prob-property page 'stencil)
                     ;; top
                     (horizontal-cut-mark page-width -8)
                     ;; bottom
                     (horizontal-cut-mark page-width (- 8 page-height))
                     ;; left
                     (vertical-cut-mark page-height 8)
                     ;; right
                     (vertical-cut-mark page-height (- page-width 8))
                     )))
           pages)))
}

\markup \box \fill-line { "PAGE 1" }
\pageBreak
\markup \box \fill-line { "PAGE 1" }

HTH,
  Harm