Skip to content
Snippets Groups Projects
Commit 574aa048 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Split up cheatsheet into multiple files

parent 0565c0ec
No related branches found
No related tags found
No related merge requests found
......@@ -5,501 +5,17 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[width=215truemm,height=302truemm,center,cam]{crop}
\tracingstats=0
\usepackage{relsize}
\usepackage{url}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{colortbl}
\usepackage{grffile} % Fix loading files name a.preview.pdf
\usepackage{helvet}
% \usepackage{listings}
\usepackage{fancyvrb} % to allow Verbatim inside headerbox
\usepackage[pdfborderstyle=\@empty]{hyperref}
\pagestyle{empty}
% Workaround: \mytilde to create a normal tilde (not superscript) in Lily code
\catcode`~=11 % make LaTeX treat tilde (~) like a normal character
\newcommand{\mytilde}{\kern 0em\lower .7ex\hbox{~}\kern -0.1em}
\catcode`~=13 % revert back to treating tilde (~) as an active character
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Table formatting
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcolumntype{x}[1]{>{\raggedright}m{#1}}
\newcommand{\tn}{\tabularnewline}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Multicol Settings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\columnsep}{0.7em}
\setlength{\columnseprule}{0mm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save space in lists. Use this after the opening of the list
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\compresslist}{%
\setlength{\itemsep}{1pt}%
\setlength{\parskip}{0pt}%
\setlength{\parsep}{0pt}%
\setlength{\leftskip}{-1em}%
}
\setlength{\tabcolsep}{3pt}
%% Already patched in baposter.cls:
% \usepackage[table]{xcolor}
\DeclareGraphicsExtensions{.preview.pdf,.pdf,.eps,.png,.jpg}
\DeclareGraphicsRule{.preview.pdf}{pdf}{*}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Define some colors
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definecolor{posterBackground}{rgb}{0.875,1.0,0.7}
\definecolor{boxBorder}{rgb}{0,1.0,0.0}
\definecolor{boxBackground}{rgb}{1,1,1}
\definecolor{textColor}{rgb}{0,0,0}
\definecolor{headerTextColor}{rgb}{0.97,1,0.68}
\definecolor{row1}{rgb}{0.8,0.8,0.8}
\definecolor{row2}{rgb}{1,1,1}
\newlength{\leftimgwidth}
\input{LilyPond_CheatSheet_Definitions.itex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Begin of Document
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\rowcolors{1}{row1}{row2} % color table rows in alternating colors automatically
\begin{document}
\sf\smaller % smaller, sans-serif font by default
\pagecolor{posterBackground}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Here starts the poster
%%%---------------------------------------------------------------------------
%%% Format it to your taste with the options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{poster}{ % Poster Options
% General poster settings
% grid=yes, % Show grid to help with alignment
colspacing=1em,
columns=3,
headerheight=0.065\textheight,
background=none,
% background=plain,
bgColorOne=posterBackground,
% Box headers:
headershape=rectangle,
headershade=plain,
headerColorOne=boxBorder,
headerFontColor=posterBackground,
headerborder=open,
headerfont=\textbf, %Sans Serif
% Box border
textborder=rectangle,
borderColor=boxBorder,
linewidth=1pt,
% Box contents
boxshade=none,
% boxshade=plain, boxColorOne=boxBackground,
}
{\includegraphics[height=6em]{images/double-lily-modified3}} % eyecatcher
{\Huge LilyPond - Music Typesetting} % Title
{
Basic usage - LilyPond Version 2.14 and above\\[0.1em]
\footnotesize Cheatsheet by R. Kainhofer, Edition Kainhofer, \url{http://www.edition-kainhofer.com/}
} % Authors
{\includegraphics[height=6em]{images/double-lily-modified3}} % logo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Now define the boxes that make up the poster
%%%---------------------------------------------------------------------------
%%% Each box has a name and can be placed absolutely or relatively.
%%% The only inconvenience is that you can only specify a relative position
%%% towards an already declared box. So if you have a box attached to the
%%% bottom, one to the top and a third one which should be in between, you
%%% have to specify the top and bottom boxes before you specify the middle
%%% box.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\imgw}{0.485}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Command-line usage}{name=cmdline,column=0,row=0,span=2}{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\colorbox{white}{\texttt{lilypond [-l LOGLEVEL] [-dSCMOPTIONS] [-o OUTPUT] [-V] FILE.ly [FILE2.ly]}}
\vspace{0.5em}
Common options:\vspace{-1.5em}
\begin{multicols}{2}
\begin{tabbing}
\quad\= -{}-pdf, -{}-png, -{}-ps \= Output file format\\
\> -dbackend=eps \> Use different backend\\
\> -l LOGLEVEL \> ERR/WARN/PROG/DEBUG\\
\> -o OUTDIR \> Name of output dir/file\\
\> -V \> Verbose output
\end{tabbing}
\columnbreak
\begin{tabbing}
\= -dpreview \hspace{5.5em} \= Cropped ``preview'' image\\
\> -dlog-file=FILE \> Create .log file\\
\> -dno-point-and-click \> No Point \& Click info\\
\> -dpixmap-format=pngalpha \> \hspace{3.5em}Transparent PNG\\
\> -dno-delete-intermediate-files \> \hspace{3.5em}Keep .ps files\\
\end{tabbing}
\end{multicols}\vspace{-2em}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Basic Notation}{name=basic,column=0,span=2,below=cmdline}{
% \begin{tabular}{|x{2.7cm}x{4.5cm}x{4.45cm}|}\hline
\begin{tabular}{x{2.7cm}x{4.5cm}x{4.45cm}}%\hline
\includegraphics[scale=\imgw]{out/notenames} & \texttt{c d e f g a b} & Note names (Dutch) \tn
\includegraphics[scale=\imgw]{out/alterations.preview.pdf} & \texttt{cis bes as cisis beses b b!\ b?} & Alterations: \texttt{-is/-es} for sharp/flat, \texttt{-isis/-eses} for double, \texttt{!} forces, \break\texttt{?} shows cautionary accidental \tn
\includegraphics[scale=\imgw]{out/relative} & \texttt{\textbackslash{}relative c' \{c f d' c,\}} & Relative mode (change less than a fifth), raise/lower one octave \tn
\includegraphics[scale=\imgw]{out/durations.preview} & \texttt{g1\,\,\,g2\,\,\,g4\,\,\,g8\,\,\,g16\,\,\,g4.\,\,\,g4..} & durations (1, 2, 4, 8, 16, ...); \break append ``\texttt{.}'' for dotted note \tn
\includegraphics[scale=\imgw]{out/beaming} &\texttt{g8 g8 g8[ g g] g8[ g16 g16]$\!\!\!\!\!\!$} & Automatic and manual beaming \tn
\includegraphics[scale=\imgw]{out/rest.preview.pdf} & \texttt{r2 r4 r4..\ r16 s4 r4} & rests:
\begin{tabular}{l}%
\rowcolor{white}\rowcolors{5}{}{}
\texttt{r} (like a note name)\\
\rowcolor{white}
\texttt{s} for invisible rests
\end{tabular}
\tn
\includegraphics[scale=\imgw]{out/clefs} & \texttt{\textbackslash{}clef "treble" \textbackslash{}clef "bass" \textbackslash{}clef "tenor" \textbackslash{}clef "treble\_8" } & Clefs \tn
\includegraphics[scale=\imgw]{out/time} & \texttt{\textbackslash{}time 4/4 \textbackslash{}time 2/2 \textbackslash{}time 3/4 \textbackslash{}time 3/8 } & Time signature \tn
\includegraphics[scale=\imgw]{out/keys} & \texttt{\textbackslash{}key c \textbackslash{}minor \ \ \textbackslash{}key b \textbackslash{}dorian \ \ \textbackslash{}key c \textbackslash{}major } & Key \tn
\includegraphics[scale=\imgw]{out/chords} & \texttt{<c e g>4 <f c'> q2 } & Chords, repeated chord \tn
\includegraphics[scale=\imgw]{out/ties} & \texttt{c4\mytilde{} c c2\mytilde{} c4 <c a f>\mytilde{} c } & Tie \tn
\includegraphics[scale=\imgw]{out/slurs} & \texttt{c( a) c\textbackslash( b( a) g f\textbackslash) } & Slur / Phrasing slur \tn
\includegraphics[scale=\imgw]{out/dynamics} & \texttt{g\textbackslash{}p\textbackslash{}< a b c\textbackslash{}f\textbackslash{}cresc d e\textbackslash{}!}$\!\!\!$ & Dynamics, hairpins, text crescendo \tn
\includegraphics[scale=\imgw]{out/articulations} & \texttt{c4-> c-.\ c\^{}| c\^{}-\_+ c\textbackslash{}trill c\textbackslash{}marcato c\^{}"Text"} & Articulations and text markup \tn
\includegraphics[scale=\imgw]{out/bars} & \texttt{\textbackslash{}partial 8 c8 | c1 | c \textbackslash{}bar"||" c \textbackslash{}bar"|."} & Partial measure, bar line check,\break bar lines \tn
\includegraphics[scale=\imgw]{out/mmrest.preview.pdf} & \texttt{R1 | R1*3 | \textbackslash{}time 3/4 R2.*4 } & Full-/Multimeasure rests: \texttt{R} (with exact duration)\tn
\includegraphics[scale=\imgw]{out/repeats} & \texttt{c1 \textbackslash{}repeat volta 2 \{ d \} \textbackslash{}alternative \{\{e\} \{f\}\} g} & Repeats (with alternative endings; can be left out)\tn
\includegraphics[scale=\imgw]{out/tempo-text}$\!$ & \texttt{\textbackslash{}tempo "Adagio" 4=60 c1 c c \textbackslash{}mark \textbackslash{}default c \textbackslash{}mark "X"} & Tempo indications, text marks \tn
\includegraphics[scale=\imgw]{out/grace} & \texttt{\textbackslash{}grace d8 c4 \textbackslash{}appoggiatura d8 c4 \textbackslash{}acciaccatura d8 c4} & Grace notes \tn
\includegraphics[scale=\imgw]{out/tuplet} & \texttt{\textbackslash{}times 2/3 \{c8 d e\} \textbackslash{}times 4/5 \{c d e d c\} } & Triplet, tuplets \tn
\includegraphics[scale=\imgw]{out/parallel} & \texttt{<{}<\{a2 c4 a\}\textbackslash\textbackslash{}\{f4 g4 f2\}>{}>} & Parallel music \tn
% \hline
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{General Syntax}{name=syntax,column=2,aligned=cmdline,bottomaligned=cmdline}{
\begin{tabular}{x{2.5cm}x{2.95cm}}%\hline
\texttt{\textbackslash{}xxxx} & function or variable\tn
\texttt{\{ \dots\ \}} & Code grouping\tn
\texttt{var = \{\dots\}} & Variable assignment\tn
\texttt{\textbackslash{}version "2.14.0"$\!$} & LilyPond version \tn
\texttt{\% \dots} & Comment\tn
\texttt{\%\{ \dots\ \%\}} & Block comment\tn
\texttt{c\textbackslash\dots} & Postfix-notation (notes)\tn
% \texttt{c1 | d2 e |} & Bar checks\tn
% \texttt{\textbackslash{}bar"||" \textbackslash{}bar"|."$\!\!$} & Bar line types\tn
% \texttt{\textbackslash{}partial 8 c8 | } & Partial measure \tn
\texttt{\#'(}..\texttt{),\,\,\#\#t,\,\,\#'sym$\!\!\!\!$} & Scheme list, true, symb.$\!\!\!$
% \tn\hline
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Creating Staves, Voices and Groups}{name=hierarchy,column=2,below=syntax}{
\begin{tabular}{x{0.96\textwidth}}%\hline
\rowcolor{row2}
\VerbatimInput[firstline=17,lastline=37]{examples/hierarchy.ly}
\begin{center}
\vspace{-2.1em}
\includegraphics[scale=0.5]{out/hierarchy}
\vspace{-1.2em}${}$
\end{center}
% \\\hline
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Useful Contexts}{name=contexts,column=2,below=hierarchy,bottomaligned=basic}{
% \begin{tabular}{|p{2cm}p{3.4cm}|}\hline
\begin{tabular}{p{2cm}p{3.4cm}}
\rowcolor{row1}\texttt{Score} & The whole score \\
\rowcolor{row2}\texttt{<{}< ... >{}>} & Staves in parallel \\
\rowcolor{row1}\texttt{StaffGroup} & Staffgroup with bracket \\
\rowcolor{row1}\texttt{GrandStaff} & Staffgroup with brace \\
\rowcolor{row1}\texttt{ChoirStaff} & Staffgroup with bracket \\
\rowcolor{row1}\texttt{PianoStaff} & Staffgroup with brace\\
\rowcolor{row2}\texttt{Staff} & One single staff \\
\rowcolor{row1}\texttt{Voice} & A voice inside a staff \\
\rowcolor{row1}\texttt{CueVoice} & Smaller voice for cues \\
\rowcolor{row2}\texttt{Lyrics} & Lyrics inside staff/voice \\
% \rowcolor{row1}\texttt{FiguredBass} & Bass figures (separate) \\
\rowcolor{row2}\texttt{ChordNames} & Chords (lead sheet) \\
\rowcolor{row1}\texttt{Devnull} & No output \\ %\hline
\end{tabular}
\begin{flushleft}
\vspace{-0.75em}
\smaller Also: \texttt{Dynamics}, \texttt{FiguredBass}, \texttt{Tab(Staff|Voice)},\\
\texttt{Drum(Staff|Voice)}, \texttt{RhythmicStaff}, \texttt{FretBoards}, ...
\end{flushleft}
\begin{center}
\vspace{-1.2em}
\includegraphics[width=4.5cm]{images/context-example}
\end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Adding Lyrics}{name=lyrics,column=0,below=basic,above=bottom}{
\begin{tabular}{x{0.96\textwidth}}%\hline
\rowcolor{row2}
\VerbatimInput[firstline=12,lastline=19]{examples/lyrics.ly}
\begin{center}
\vspace{-3.2em}
\includegraphics[scale=0.5]{out/lyrics}
\vspace{-1.2em}${}$
\end{center}
% \\\hline
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Writing text and markup}{name=simple_markup,column=1,below=basic,above=bottom}{
\begin{tabular}{x{0.96\textwidth}}%\hline
\rowcolor{row2}
{\smaller
\VerbatimInput[firstline=2,lastline=9]{examples/writing_text.ly}
}
\begin{center}
\vspace{-1.9em}
\includegraphics[scale=0.55]{out/writing_text}
\vspace{-1.2em}${}$
\end{center}
% \\\hline
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Links}{name=links,column=2,below=contexts,above=bottom}{
\begin{list}{}{\leftmargin=0.em}
\item LilyPond Homepage:\\
${}$\qquad\url{http://www.lilypond.org/}
\item LilyPond Snippet Repository (LSR):\\
${}$\qquad\url{http://lsr.dsi.unimi.it/}
\item User Mailing list:\\
${}$\qquad\url{lilypond-user@gnu.org}
\end{list}
\vspace{0.6em}
\smaller Cheatsheet by R. Kainhofer, License: \href{http://creativecommons.org/licenses/by-nc/3.0/}{\includegraphics[width=1.5cm]{images/cc-by-nc}}\\[-0.2em]
Creative Commons Attribution-NonCommercial 3.0
}
\end{poster}
\iffalse
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Back Page: Tweaking Lilypond output
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagebreak
\thispagestyle{empty}
\begin{poster}{ % Poster Options
% General poster settings
% grid=yes, % Show grid to help with alignment
columns=3,
colspacing=1em,
headerheight=0.08\textheight,
background=none,
% background=plain,
bgColorOne=posterBackground,
% Box headers:
headershape=rectangle,
headershade=plain,
headerColorOne=posterBackground,
headerFontColor=textColor,
headerborder=open,
headerfont=\textbf, %Sans Serif
% Box border
textborder=rectangle,
borderColor=boxBorder,
linewidth=1pt,
% Box contents
boxshade=none,
% boxshade=plain,
% boxColorOne=boxBackground,
}
% eyecatcher
{\includegraphics[height=6em]{images/double-lily-modified3}}
% Title
{\Huge LilyPond - Advanced Tweaking}
% Authors
{\smaller \vspace{0.25em} Reinhold Kainhofer, \url{reinhold@kainhofer.com}\\
\smaller \smaller Edition Kainhofer, \url{http://www.edition-kainhofer.com/}
% \textit{and} LilyPond (\url{http://www.lilypond.org/})
}
% logo
{\includegraphics[height=6em]{images/double-lily-modified3}}
\thispagestyle{empty}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Now define the boxes that make up the poster
%%%---------------------------------------------------------------------------
%%% Each box has a name and can be placed absolutely or relatively.
%%% The only inconvenience is that you can only specify a relative position
%%% towards an already declared box. So if you have a box attached to the
%%% bottom, one to the top and a third one which should be in between, you
%%% have to specify the top and bottom boxes before you specify the middle
%%% box.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Markup commands}{name=markup,column=0}{
\begin{tabular}{p{0.96\linewidth}}
\rowcolor{row1} \\
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Pitch commands}{name=pitch,column=0,below=markup}{
\begin{tabular}{p{0.96\linewidth}}
\texttt{\textbackslash{}transpose \textit{from} \textit{to} \textit{music}}\\
\texttt{\textbackslash{}ottava \#\textit{(-2|-1|0|1|)}}\\
\texttt{\textbackslash{}transposition \textit{pitch-for-written-c'}}\\
\texttt{\#(set-accidental-style '\textit{style} '\textit{ctxt})}\\
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Grobs and Grob Properties}{name=grobs,column=0,below=pitch}{
\begin{tabular}{|p{0.96\textwidth}|}\hline
\rowcolor{row1} NoteHead\\
\rowcolor{row2} \#'style = \#'(cross|harmonic|slash|default|...)\\
\rowcolor{row2} \\
\hline
\rowcolor{row1} Other grob\\
\hline
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Vertical spacing}{name=vspacing,column=0,below=grobs}{
V spacing
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Useful Context properties}{name=contextprops,column=0,below=vspacing}{
\begin{tabular}{|p{2cm}l|}\hline
\texttt{} & \\
\texttt{} &
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Quoting other voices, Cue notes}{name=quoting,column=1,below=contextprops}{
Quoting
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Header fields}{name=header,column=1}{
header fields
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Paper fields}{name=paper,column=1,below=header}{
paper block
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Note names in the most common languages}{name=notenames,column=1,span=2,above=bottom}{
Select with: \texttt{\textbackslash{}language "italiano"}, default is ``nederlands''
\begin{tabular}{|x{1.5cm}x{2.7cm}x{3.9cm}|}\hline
Language & Note names & accidentals \tn\hline
nederlands & c d e f g a bes b & -is -es -isis -eses \tn
% catalan & do re mi fa sol la sib si & -d/-s -b -dd/-ss -bb \tn
deutsch & c d e f g a b h & -is -es -isis -eses \tn
english & c d e f g a bf b & -s/-sharp -f/-flat -ss/-x -ff\tn
espanol & do re mi fa sol la sib si & -s -b -ss/-x -bb \tn
italiano & do re mi fa sol la sib si & -d -b -dd -bb \tn
% norsk & c d e f g a b h & -iss/-is -ess/-es -ississ/-isis -essess/-eses \tn
% portugues & do re mi fa sol la sib si & -s -b -ss -bb \tn
% suomi & c d e f g a b h & -is -es -isis -eses \tn
% svenska & c d e f g a b h & -iss -ess -ississ -essess \tn
% vlaams & do re mi fa sol la sib si &-k -b -kk -bb \tn
\hline
\end{tabular}
}
\end{poster}
\fi
\input{LilyPond_CheatSheet_BasicPage.itex}
\end{document}
\documentclass[a4paper,portrait,fontscale=1,margin=1cm]{baposter}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Crop marks for printing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[width=215truemm,height=302truemm,center,cam]{crop}
\input{LilyPond_CheatSheet_Definitions.itex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Begin of Document
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\sf\smaller % smaller, sans-serif font by default
\pagecolor{posterBackground}
% \input{LilyPond_CheatSheet_BasicPage.itex}
\input{LilyPond_CheatSheet_AdvancedPage.itex}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Back Page: Tweaking Lilypond output
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagebreak
\thispagestyle{empty}
\begin{poster}{ % Poster Options
% General poster settings
% grid=yes, % Show grid to help with alignment
columns=3,
colspacing=1em,
headerheight=0.08\textheight,
background=none,
% background=plain,
bgColorOne=posterBackground,
% Box headers:
headershape=rectangle,
headershade=plain,
headerColorOne=boxBorder,
headerFontColor=posterBackground,
headerborder=open,
headerfont=\textbf, %Sans Serif
% Box border
textborder=rectangle,
borderColor=boxBorder,
linewidth=1pt,
% Box contents
boxshade=none,
% boxshade=plain,
% boxColorOne=boxBackground,
}
% eyecatcher
{\includegraphics[height=6em]{images/double-lily-modified3}}
% Title
{\Huge LilyPond - Advanced Tweaking}
% Authors
{\smaller \vspace{0.25em} Reinhold Kainhofer, \url{reinhold@kainhofer.com}\\
\smaller \smaller Edition Kainhofer, \url{http://www.edition-kainhofer.com/}
% \textit{and} LilyPond (\url{http://www.lilypond.org/})
}
% logo
{\includegraphics[height=6em]{images/double-lily-modified3}}
\thispagestyle{empty}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Now define the boxes that make up the poster
%%%---------------------------------------------------------------------------
%%% Each box has a name and can be placed absolutely or relatively.
%%% The only inconvenience is that you can only specify a relative position
%%% towards an already declared box. So if you have a box attached to the
%%% bottom, one to the top and a third one which should be in between, you
%%% have to specify the top and bottom boxes before you specify the middle
%%% box.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\colorlet{note}{red!25!}
\colorlet{alteration}{red!80!yellow!25!}
\colorlet{octave}{red!60!yellow!25!}
\colorlet{duration}{blue!25!}
\colorlet{durationmult}{blue!15!}
\colorlet{tie}{yellow!80!red!55!}
\colorlet{slur}{yellow!80!red!35!}
\colorlet{beam}{yellow!80!red!15!}
\colorlet{articulations}{lime!80!blue!50!}
\colorlet{scripts}{lime!80!blue!40!}
\colorlet{dynamics}{lime!80!blue!30!}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Structure of a note}{name=note,column=0}{
\colorbox{white}{
\begin{minipage}{0.93\linewidth}
\setlength{\tabcolsep}{2pt}
\begin{tabular}{lllllllllll}
\cellcolor{note}\texttt{c} &
\cellcolor{alteration}\texttt{is} &
\cellcolor{octave}\texttt{'} &
\cellcolor{duration}\texttt{4.} &
\cellcolor{durationmult}\texttt{*3} &
\cellcolor{tie}\texttt{\mytilde} &
\cellcolor{slur}\texttt{(} &
\cellcolor{beam}\texttt{[} &
\cellcolor{articulations}\texttt{->-3} &
\cellcolor{scripts}\texttt{\^{}"text"} &
\cellcolor{dynamics}\texttt{\textbackslash{}f\textbackslash{}<} \\
\multicolumn{5}{l}{} & \multicolumn{6}{>{\cellcolor{blue!15!yellow!30!}}c}{\smaller{arbitrary order}}\tn
\end{tabular}
\rowcolors{1}{}{} % no row colors
\setlength{\tabcolsep}{3pt}
\begin{tabular}{ll}
\cellcolor{note}\texttt{c} & Note name or \texttt{q}, REQUIRED \\
\cellcolor{alteration}\texttt{is} & Alteration \\
\cellcolor{octave}\texttt{'} & Octave indication \\
\cellcolor{duration}\texttt{4.} & Duration, repeated if not given \\
\cellcolor{durationmult}\texttt{*3} & Duration multiplier \\
\cellcolor{tie}\texttt{\mytilde} & Tie \\
\cellcolor{slur}\texttt{(} & Slur \\
\cellcolor{beam}\texttt{[} & Beam \\
\cellcolor{articulations}\texttt{->-3} & Articulations, fingerings, etc. \\
\cellcolor{scripts}\texttt{\^{}"text"} & Text and other scripts \\
\cellcolor{dynamics}\texttt{\textbackslash{}f\textbackslash{}<} & Dynamics \\
\end{tabular}
\end{minipage}
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Figured bass structure}{name=figurebasse,column=0,below=note}{
\colorbox{white}{
\begin{minipage}{0.93\linewidth}
\setlength{\tabcolsep}{1pt}
\begin{tabular}{llllllllll}
\cellcolor{articulations}\texttt{<} &
\cellcolor{beam}\texttt{[} &
\cellcolor{note}\texttt{6} &
\cellcolor{alteration}\texttt{\textbackslash{}\textbackslash{}} &
\cellcolor{beam}\texttt{]} &
\cellcolor{white}\texttt{ } &
\cellcolor{note}\texttt{\_} &
\cellcolor{alteration}\texttt{+} &
\cellcolor{articulations}\texttt{>} &
\cellcolor{duration}\texttt{4.}
\end{tabular}
\end{minipage}
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Markup commands}{name=markup,column=0,below=note}{
\begin{tabular}{p{0.96\linewidth}}
\rowcolor{row1} \\
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Pitch commands}{name=pitch,column=0,below=markup}{
\begin{tabular}{p{0.96\linewidth}}
\texttt{\textbackslash{}transpose \textit{from} \textit{to} \textit{music}}\\
\texttt{\textbackslash{}ottava \#\textit{(-2|-1|0|1|)}}\\
\texttt{\textbackslash{}transposition \textit{pitch-for-written-c'}}\\
\texttt{\#(set-accidental-style '\textit{style} '\textit{ctxt})}\\
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Rhythmic concerns}{name=rhythmic,column=0,below=pitch}{
\begin{tabular}{p{0.96\linewidth}}
Durations: \texttt{\textbackslash{}longa~\textbackslash{}breve~1~2~4~8~16~32..}\\
\texttt{\textbackslash{}autoBeam[On|Off]}\\
\texttt{\textbackslash{}cadenza[On|Off]}\\
\texttt{\textbackslash{}barNumberCheck \#\textit{Nr}}\\
\texttt{\textbackslash{}tempo ["Text"] [\textit{duration} = \textit{count}]}\\
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Grobs and Grob Properties}{name=grobs,column=0,below=rhythmic}{
\begin{tabular}{|p{0.96\textwidth}|}\hline
\rowcolor{row1} NoteHead\\
\rowcolor{row2} \#'style = \#'(cross|harmonic|slash|default|...)\\
\rowcolor{row2} \\
\hline
\rowcolor{row1} Other grob\\
\hline
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Vertical spacing}{name=vspacing,column=0,below=grobs}{
V spacing
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Useful Context properties}{name=contextprops,column=0,below=vspacing}{
\begin{tabular}{|p{2cm}l|}\hline
\texttt{} & \\
\texttt{} &
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Multiple voices}{name=multiplevoices,column=1}{
\begin{tabular}{p{0.96\linewidth}}
\texttt{<{}< \{...\} \textbackslash\textbackslash{} \{...\} >{}>} \tn
\texttt{<{}< \{...\} \textbackslash{}new Voice \{...\} >{}>} \tn
\texttt{\textbackslash{}oneVoice} \tn
\texttt{\textbackslash{}voice(One|Two|Three|Four)} \tn
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Quoting other voices, Cue notes}{name=quoting,column=1,below=contextprops}{
Quoting
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Header fields}{name=header,column=2}{
\begin{tabular}{x{0.32\textwidth}x{0.61\textwidth}}%\hline
\texttt{title} & printed at very top\tn
\texttt{{\smaller(sub)}subtitle} & below title, smaller\tn
\texttt{dedication} & above title\tn
\texttt{instrument} & below subtitles\tn
\texttt{composer} & below title, on the right\tn
\texttt{arranger} & below Composer\tn
\texttt{poet} & below title, on the left\tn
\texttt{meter} & below poet\tn
\texttt{tagline} & at very end of score\tn
\texttt{copyright} & bottom of first page\tn
\texttt{piece} & below meter (left), per score\tn
\texttt{opus} & below arranger (right)\tn
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Paper fields}{name=quoting,column=2,below=header}{
\begin{tabular}{>{\smaller}x{0.57\textwidth}x{0.36\textwidth}}%\hline
\texttt{(book|score)TitleMarkup} & title markup \tn
\texttt{print-all-headers} & bookTitleMarkup for each score\tn
\texttt{(even|odd)HeaderMarkup} & header markup \tn
\texttt{(even|odd)FooterMarkup} & footer markup \tn
\texttt{\#(set-paper-size "..")} & paper size\tn
\texttt{line-width} & \tn
\texttt{(top|bottom|left|right)\-margin} & margins\tn
\texttt{paper-height} & page height \tn
\texttt{ragged-(right|last)} & ragged systems \samecolor\tn
% \addtocounter{rownum}{-1}
\texttt{ragged-(last-)bottom)} & ragged pages\tn
\texttt{...-...-spacing} & Vertical spacing\tn
% \texttt{(top|score|system|markup|last)-(system|markup|bottom)-spacing} & Vertical spacing\tn
\texttt{two-sided (inner|outer)-margin binding-offset} & Two-sided printing \tn
\texttt{(short-)indent} & all/first systems \tn
\multicolumn{2}{>{\smaller\defcolor}l}{\texttt{(max-|min-|)systems-per-page} } \tn
\texttt{(page|system)-count} & page/sys. count\tn
\multicolumn{2}{>{\smaller\defcolor}l}{\texttt{page-breaking = \#ly:page-turn-breaking}} \samecolor\tn
\multicolumn{2}{>{\smaller\defcolor}l}{\texttt{page-breaking = \#ly:optimal-breaking}} \tn
\texttt{first-page-number} & Nr. of first page \tn
\texttt{print-page-number} & Show page nrs. \tn
\texttt{system-separator-markup} & markup between systems \tn
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Note names in the most common languages}{name=notenames,column=1,span=2,above=bottom}{
Select with: \texttt{\textbackslash{}language "italiano"}, default is ``nederlands''
\begin{tabular}{|x{0.24\linewidth}x{0.35\linewidth}x{0.35\linewidth}|}\hline
Language & Note names & accidentals \tn\hline
nederlands & c d e f g a bes b & -is -es -isis -eses \tn
% catalan & do re mi fa sol la sib si & -d/-s -b -dd/-ss -bb \tn
deutsch & c d e f g a b h & -is -es -isis -eses \tn
english & c d e f g a bf b & -s/-sharp -f/-flat -ss/-x -ff\tn
espanol & do re mi fa sol la sib si & -s -b -ss/-x -bb \tn
italiano & do re mi fa sol la sib si & -d -b -dd -bb \tn
% norsk & c d e f g a b h & -iss/-is -ess/-es -ississ/-isis -essess/-eses \tn
% portugues & do re mi fa sol la sib si & -s -b -ss -bb \tn
% suomi & c d e f g a b h & -is -es -isis -eses \tn
% svenska & c d e f g a b h & -iss -ess -ississ -essess \tn
% vlaams & do re mi fa sol la sib si &-k -b -kk -bb \tn
\hline
\end{tabular}
}
\end{poster}
\begin{poster}{ % Poster Options
% General poster settings
% grid=yes, % Show grid to help with alignment
colspacing=1em,
columns=3,
headerheight=0.065\textheight,
background=none,
% background=plain,
bgColorOne=posterBackground,
% Box headers:
headershape=rectangle,
headershade=plain,
headerColorOne=boxBorder,
headerFontColor=posterBackground,
headerborder=open,
headerfont=\textbf, %Sans Serif
% Box border
textborder=rectangle,
borderColor=boxBorder,
linewidth=1pt,
% Box contents
boxshade=none,
% boxshade=plain, boxColorOne=boxBackground,
}
{\includegraphics[height=6em]{images/double-lily-modified3}} % eyecatcher
{\Huge LilyPond - Music Typesetting} % Title
{
Basic usage - LilyPond Version 2.14 and above\\[0.1em]
\footnotesize Cheatsheet by R. Kainhofer, Edition Kainhofer, \url{http://www.edition-kainhofer.com/}
} % Authors
{\includegraphics[height=6em]{images/double-lily-modified3}} % logo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Now define the boxes that make up the poster
%%%---------------------------------------------------------------------------
%%% Each box has a name and can be placed absolutely or relatively.
%%% The only inconvenience is that you can only specify a relative position
%%% towards an already declared box. So if you have a box attached to the
%%% bottom, one to the top and a third one which should be in between, you
%%% have to specify the top and bottom boxes before you specify the middle
%%% box.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\imgw}{0.485}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Command-line usage}{name=cmdline,column=0,row=0,span=2}{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\colorbox{white}{\texttt{lilypond [-l LOGLEVEL] [-dSCMOPTIONS] [-o OUTPUT] [-V] FILE.ly [FILE2.ly]}}
\vspace{0.5em}
Common options:\vspace{-1.5em}
\begin{multicols}{2}
\begin{tabbing}
\quad\= -{}-pdf, -{}-png, -{}-ps \= Output file format\\
\> -dbackend=eps \> Use different backend\\
\> -l LOGLEVEL \> ERR/WARN/PROG/DEBUG\\
\> -o OUTDIR \> Name of output dir/file\\
\> -V \> Verbose output
\end{tabbing}
\columnbreak
\begin{tabbing}
\= -dpreview \hspace{5.5em} \= Cropped ``preview'' image\\
\> -dlog-file=FILE \> Create .log file\\
\> -dno-point-and-click \> No Point \& Click info\\
\> -dpixmap-format=pngalpha \> \hspace{3.5em}Transparent PNG\\
\> -dno-delete-intermediate-files \> \hspace{3.5em}Keep .ps files\\
\end{tabbing}
\end{multicols}\vspace{-2em}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Basic Notation}{name=basic,column=0,span=2,below=cmdline}{
% \begin{tabular}{|x{2.7cm}x{4.5cm}x{4.45cm}|}\hline
\begin{tabular}{x{2.7cm}x{4.5cm}x{4.45cm}}%\hline
\includegraphics[scale=\imgw]{out/notenames} & \texttt{c d e f g a b} & Note names (Dutch) \tn
\includegraphics[scale=\imgw]{out/alterations.preview.pdf} & \texttt{cis bes as cisis beses b b!\ b?} & Alterations: \texttt{-is/-es} for sharp/flat, \texttt{-isis/-eses} for double, \texttt{!} forces, \break\texttt{?} shows cautionary accidental \tn
\includegraphics[scale=\imgw]{out/relative} & \texttt{\textbackslash{}relative c' \{c f d' c,\}} & Relative mode (change less than a fifth), raise/lower one octave \tn
\includegraphics[scale=\imgw]{out/durations.preview} & \texttt{g1\,\,\,g2\,\,\,g4\,\,\,g8\,\,\,g16\,\,\,g4.\,\,\,g4..} & durations (1, 2, 4, 8, 16, ...); \break append ``\texttt{.}'' for dotted note \tn
\includegraphics[scale=\imgw]{out/beaming} &\texttt{g8 g8 g8[ g g] g8[ g16 g16]$\!\!\!\!\!\!$} & Automatic and manual beaming \tn
\includegraphics[scale=\imgw]{out/rest.preview.pdf} & \texttt{r2 r4 r4..\ r16 s4 r4} & rests:
\begin{tabular}{l}%
\rowcolor{white}\rowcolors{5}{}{}
\texttt{r} (like a note name)\\
\rowcolor{white}
\texttt{s} for invisible rests
\end{tabular}
\tn
\includegraphics[scale=\imgw]{out/clefs} & \texttt{\textbackslash{}clef "treble" \textbackslash{}clef "bass" \textbackslash{}clef "tenor" \textbackslash{}clef "treble\_8" } & Clefs \tn
\includegraphics[scale=\imgw]{out/time} & \texttt{\textbackslash{}time 4/4 \textbackslash{}time 2/2 \textbackslash{}time 3/4 \textbackslash{}time 3/8 } & Time signature \tn
\includegraphics[scale=\imgw]{out/keys} & \texttt{\textbackslash{}key c \textbackslash{}minor \ \ \textbackslash{}key b \textbackslash{}dorian \ \ \textbackslash{}key c \textbackslash{}major } & Key \tn
\includegraphics[scale=\imgw]{out/chords} & \texttt{<c e g>4 <f c'> q2 } & Chords, repeated chord \tn
\includegraphics[scale=\imgw]{out/ties} & \texttt{c4\mytilde{} c c2\mytilde{} c4 <c a f>\mytilde{} c } & Tie \tn
\includegraphics[scale=\imgw]{out/slurs} & \texttt{c( a) c\textbackslash( b( a) g f\textbackslash) } & Slur / Phrasing slur \tn
\includegraphics[scale=\imgw]{out/dynamics} & \texttt{g\textbackslash{}p\textbackslash{}< a b c\textbackslash{}f\textbackslash{}cresc d e\textbackslash{}!}$\!\!\!$ & Dynamics, hairpins, text crescendo \tn
\includegraphics[scale=\imgw]{out/articulations} & \texttt{c4-> c-.\ c\^{}| c\^{}-\_+ c\textbackslash{}trill c\textbackslash{}marcato c\^{}"Text"} & Articulations and text markup \tn
\includegraphics[scale=\imgw]{out/bars} & \texttt{\textbackslash{}partial 8 c8 | c1 | c \textbackslash{}bar"||" c \textbackslash{}bar"|."} & Partial measure, bar line check,\break bar lines \tn
\includegraphics[scale=\imgw]{out/mmrest.preview.pdf} & \texttt{R1 | R1*3 | \textbackslash{}time 3/4 R2.*4 } & Full-/Multimeasure rests: \texttt{R} (with exact duration)\tn
\includegraphics[scale=\imgw]{out/repeats} & \texttt{c1 \textbackslash{}repeat volta 2 \{ d \} \textbackslash{}alternative \{\{e\} \{f\}\} g} & Repeats (with alternative endings; can be left out)\tn
\includegraphics[scale=\imgw]{out/tempo-text}$\!$ & \texttt{\textbackslash{}tempo "Adagio" 4=60 c1 c c \textbackslash{}mark \textbackslash{}default c \textbackslash{}mark "X"} & Tempo indications, text marks \tn
\includegraphics[scale=\imgw]{out/grace} & \texttt{\textbackslash{}grace d8 c4 \textbackslash{}appoggiatura d8 c4 \textbackslash{}acciaccatura d8 c4} & Grace notes \tn
\includegraphics[scale=\imgw]{out/tuplet} & \texttt{\textbackslash{}times 2/3 \{c8 d e\} \textbackslash{}times 4/5 \{c d e d c\} } & Triplet, tuplets \tn
\includegraphics[scale=\imgw]{out/parallel} & \texttt{<{}<\{a2 c4 a\}\textbackslash\textbackslash{}\{f4 g4 f2\}>{}>} & Parallel music \tn
% \hline
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{General Syntax}{name=syntax,column=2,aligned=cmdline,bottomaligned=cmdline}{
\begin{tabular}{x{2.5cm}x{2.95cm}}%\hline
\texttt{\textbackslash{}xxxx} & function or variable\tn
\texttt{\{ \dots\ \}} & Code grouping\tn
\texttt{var = \{\dots\}} & Variable assignment\tn
\texttt{\textbackslash{}version "2.14.0"$\!$} & LilyPond version \tn
\texttt{\% \dots} & Comment\tn
\texttt{\%\{ \dots\ \%\}} & Block comment\tn
\texttt{c\textbackslash\dots} & Postfix-notation (notes)\tn
% \texttt{c1 | d2 e |} & Bar checks\tn
% \texttt{\textbackslash{}bar"||" \textbackslash{}bar"|."$\!\!$} & Bar line types\tn
% \texttt{\textbackslash{}partial 8 c8 | } & Partial measure \tn
\texttt{\#'(}..\texttt{),\,\,\#\#t,\,\,\#'sym$\!\!\!\!$} & Scheme list, true, symb.$\!\!\!$
% \tn\hline
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Creating Staves, Voices and Groups}{name=hierarchy,column=2,below=syntax}{
\begin{tabular}{x{0.96\textwidth}}%\hline
\rowcolor{row2}
\VerbatimInput[firstline=17,lastline=37]{examples/hierarchy.ly}
\begin{center}
\vspace{-2.1em}
\includegraphics[scale=0.5]{out/hierarchy}
\vspace{-1.2em}${}$
\end{center}
% \\\hline
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Useful Contexts}{name=contexts,column=2,below=hierarchy,bottomaligned=basic}{
% \begin{tabular}{|p{2cm}p{3.4cm}|}\hline
\begin{tabular}{p{2cm}p{3.4cm}}
\rowcolor{row1}\texttt{Score} & The whole score \\
\rowcolor{row2}\texttt{<{}< ... >{}>} & Staves in parallel \\
\rowcolor{row1}\texttt{StaffGroup} & Staffgroup with bracket \\
\rowcolor{row1}\texttt{GrandStaff} & Staffgroup with brace \\
\rowcolor{row1}\texttt{ChoirStaff} & Staffgroup with bracket \\
\rowcolor{row1}\texttt{PianoStaff} & Staffgroup with brace\\
\rowcolor{row2}\texttt{Staff} & One single staff \\
\rowcolor{row1}\texttt{Voice} & A voice inside a staff \\
\rowcolor{row1}\texttt{CueVoice} & Smaller voice for cues \\
\rowcolor{row2}\texttt{Lyrics} & Lyrics inside staff/voice \\
% \rowcolor{row1}\texttt{FiguredBass} & Bass figures (separate) \\
\rowcolor{row2}\texttt{ChordNames} & Chords (lead sheet) \\
\rowcolor{row1}\texttt{Devnull} & No output \\ %\hline
\end{tabular}
\begin{flushleft}
\vspace{-0.75em}
\smaller Also: \texttt{Dynamics}, \texttt{FiguredBass}, \texttt{Tab(Staff|Voice)},\\
\texttt{Drum(Staff|Voice)}, \texttt{RhythmicStaff}, \texttt{FretBoards}, ...
\end{flushleft}
\begin{center}
\vspace{-1.2em}
\includegraphics[width=4.5cm]{images/context-example}
\end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Adding Lyrics}{name=lyrics,column=0,below=basic,above=bottom}{
\begin{tabular}{x{0.96\textwidth}}%\hline
\rowcolor{row2}
\VerbatimInput[firstline=12,lastline=19]{examples/lyrics.ly}
\begin{center}
\vspace{-3.2em}
\includegraphics[scale=0.5]{out/lyrics}
\vspace{-1.2em}${}$
\end{center}
% \\\hline
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Writing text and markup}{name=simple_markup,column=1,below=basic,above=bottom}{
\begin{tabular}{x{0.96\textwidth}}%\hline
\rowcolor{row2}
{\smaller
\VerbatimInput[firstline=2,lastline=9]{examples/writing_text.ly}
}
\begin{center}
\vspace{-1.9em}
\includegraphics[scale=0.55]{out/writing_text}
\vspace{-1.2em}${}$
\end{center}
% \\\hline
\end{tabular}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{Links}{name=links,column=2,below=contexts,above=bottom}{
\begin{list}{}{\leftmargin=0.em}
\item LilyPond Homepage:\\
${}$\qquad\url{http://www.lilypond.org/}
\item LilyPond Snippet Repository (LSR):\\
${}$\qquad\url{http://lsr.dsi.unimi.it/}
\item User Mailing list:\\
${}$\qquad\url{lilypond-user@gnu.org}
\end{list}
\vspace{0.6em}
\smaller Cheatsheet by R. Kainhofer, License: \href{http://creativecommons.org/licenses/by-nc/3.0/}{\includegraphics[width=1.5cm]{images/cc-by-nc}}\\[-0.2em]
Creative Commons Attribution-NonCommercial 3.0
}
\end{poster}
\usepackage{cprotect}
\tracingstats=0
\usepackage{relsize}
\usepackage{url}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{colortbl}
\usepackage{grffile} % Fix loading files name a.preview.pdf
\usepackage{helvet}
% \usepackage{listings}
% \usepackage{fancyvrb} % to allow Verbatim inside headerbox
\usepackage[pdfborderstyle=\@empty]{hyperref}
\pagestyle{empty}
% Workaround: \mytilde to create a normal tilde (not superscript) in Lily code
\catcode`~=11 % make LaTeX treat tilde (~) like a normal character
\newcommand{\mytilde}{\kern 0em\lower .7ex\hbox{~}\kern -0.1em}
\catcode`~=13 % revert back to treating tilde (~) as an active character
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Table formatting
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcolumntype{x}[1]{>{\raggedright}m{#1}}
\newcommand{\tn}{\tabularnewline}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Multicol Settings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\columnsep}{0.7em}
\setlength{\columnseprule}{0mm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save space in lists. Use this after the opening of the list
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\compresslist}{%
\setlength{\itemsep}{1pt}%
\setlength{\parskip}{0pt}%
\setlength{\parsep}{0pt}%
\setlength{\leftskip}{-1em}%
}
\setlength{\tabcolsep}{3pt}
%% Already patched in baposter.cls:
% \usepackage[table]{xcolor}
\DeclareGraphicsExtensions{.preview.pdf,.pdf,.eps,.png,.jpg}
\DeclareGraphicsRule{.preview.pdf}{pdf}{*}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Define some colors
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definecolor{posterBackground}{rgb}{0.875,1.0,0.7}
\definecolor{boxBorder}{rgb}{0,1.0,0.0}
\definecolor{boxBackground}{rgb}{1,1,1}
\definecolor{textColor}{rgb}{0,0,0}
\definecolor{headerTextColor}{rgb}{0.97,1,0.68}
\definecolor{row1}{rgb}{0.8,0.8,0.8}
\definecolor{row2}{rgb}{1,1,1}
\newlength{\leftimgwidth}
\rowcolors{1}{row1}{row2} % color table rows in alternating colors automatically
\makeatletter
\newcommand\defcolor{%
\ifodd\rownum\@oddrowcolor\let\CT@color\cellcolor\CT@row@color\else
\@evenrowcolor\let\CT@color\cellcolor\CT@row@color\fi}
\newcolumntype{G}{>{\defcolor}l}
\makeatother
\newcommand\samecolor{\global\advance\rownum1}
\usepackage{cprotect}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment