2015-08-08 72 views
2

這裏是我的代碼:的修改lillypond文件

\begin{lilypond} 
\version "2.17.27" 
\language "english" 
\relative{ 
    \time 2/4 
    c' c _"C.1"| 
    c cs | 
    c d | 
    c ds | 
    c e | 
    c f | 
    c g' | 
    c, a' | 
    c, as' | 
    c, b' | 
} 
\end{lilypond} 

它會產生這樣的:

enter image description here

我所需要的,不知道該怎麼做:

  1. 刪除譜號和儀表標記
  2. 取代「C.1」將俄文「Ч.1」
  3. 將「C.1」文本移到第一音高以下,所以它很好地居中。
+0

只是爲了記錄:http://tex.stackexchange.com/a/260577/7047關於LaTeX相關部分的問題。 – tohuwawohu

回答

1

下面的代碼應該做的伎倆:

\version "2.17.27" 
\language "english" 
\relative{ 
    \omit Staff.Clef 
    \omit Staff.TimeSignature 
    \time 2/4 
    c' _"Ч.1" c | 
    c cs | 
    c d | 
    c ds | 
    c e | 
    c f | 
    c g' | 
    c, a' | 
    c, as' | 
    c, b' | 
} 

只是把它變成一個名爲document.ly(例如)文件並運行LilyPond的就可以了:

lilypond --pdf document.ly

(更換--pdf--png如果你想要一個PNG作爲結果)。這將產生一個PDF具有以下內容:

enter image description here

測試了GNU LilyPond的2.18.2在Ubuntu生動(15.04)。

+0

你是如何獲得俄羅斯人物的?我在Latex中嘗試過'\ usepackage [russian] {babel}',但它不起作用。打印一個空白的空間。 – user4035

+0

你能給我編譯這個lillypond文件的命令嗎? – user4035

+0

@ user4035:我已將這些信息集成到了我的答案中,因此我刪除了我的評論。 – tohuwawohu