diff --git a/LilyPond_CheatSheet.pdf b/LilyPond_CheatSheet.pdf index 8f717fedc9e34c0979a67d969a0fb59cf787b56c..d7d7c2c9d51f1555c50215fc9c5e30a0e449bd16 100644 Binary files a/LilyPond_CheatSheet.pdf and b/LilyPond_CheatSheet.pdf differ diff --git a/LilyPond_CheatSheet.tex b/LilyPond_CheatSheet.tex index fd447e75ec58893593b02825bb47f46b7b41de34..fb12855d4497519ebb2fd1790fc2f549c9432e40 100644 --- a/LilyPond_CheatSheet.tex +++ b/LilyPond_CheatSheet.tex @@ -1,21 +1,19 @@ -\documentclass[a4paper,portrait,fontscale=1,margin=1cm]{baposter} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Crop marks for printing -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\usepackage[width=215truemm,height=302truemm,center,cam]{crop} - +\documentclass[a4paper,portrait,fontscale=1,margin=1cm,table]{baposter} \input{LilyPond_CheatSheet_Definitions.itex} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Begin of Document %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\hypersetup{ + pdftitle={LilyPond Cheatsheet Basic}, +} \begin{document} -\sf\smaller % smaller, sans-serif font by default +\sffamily\smaller % smaller, sans-serif font by default \pagecolor{posterBackground} \input{LilyPond_CheatSheet_BasicPage.itex} +% \input{LilyPond_CheatSheet_AdvancedPage.itex} \end{document} diff --git a/LilyPond_CheatSheet_Advanced.tex b/LilyPond_CheatSheet_Advanced.tex index 3c2a0146c912725eb8cd06ef3b2ec80314f4adf7..fad6e94416a2752e9f6a7ba4678e21108bebd319 100644 --- a/LilyPond_CheatSheet_Advanced.tex +++ b/LilyPond_CheatSheet_Advanced.tex @@ -1,19 +1,16 @@ -\documentclass[a4paper,portrait,fontscale=1,margin=1cm]{baposter} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Crop marks for printing -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\usepackage[width=215truemm,height=302truemm,center,cam]{crop} - +\documentclass[a4paper,portrait,fontscale=1,margin=1cm,table]{baposter} \input{LilyPond_CheatSheet_Definitions.itex} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Begin of Document %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\hypersetup{ + pdftitle={LilyPond Cheatsheet Advanced}, +} \begin{document} -\sf\smaller % smaller, sans-serif font by default +\sffamily\smaller % smaller, sans-serif font by default \pagecolor{posterBackground} % \input{LilyPond_CheatSheet_BasicPage.itex} diff --git a/LilyPond_CheatSheet_AdvancedPage.itex b/LilyPond_CheatSheet_AdvancedPage.itex index 9f1c71579fa7f92121f6f82f4a19f272b9a4cdcf..875ef4dac06a6e70db22cebdb2abffd02cf03585 100644 --- a/LilyPond_CheatSheet_AdvancedPage.itex +++ b/LilyPond_CheatSheet_AdvancedPage.itex @@ -42,6 +42,7 @@ {\includegraphics[height=6em]{images/double-lily-modified3}} \thispagestyle{empty} +\fvset{commandchars=@<>,commentchar=none} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Now define the boxes that make up the poster @@ -72,230 +73,218 @@ \colorlet{dynamics}{lime!80!blue!30!} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Structure of a note}{name=note,column=0}{ -\colorbox{white}{ -\begin{minipage}{0.93\linewidth} +\begin{posterbox}[name=note,column=0]{Structure of a note} + +\begin{whitebox}{0.96\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{}<} \\ +\cellcolor{note}\verb+c+ & +\cellcolor{alteration}\verb+is+ & +\cellcolor{octave}\verb+'+ & +\cellcolor{duration}\verb+4.+ & +\cellcolor{durationmult}\verb+*3+ & +\cellcolor{tie}\verb+~+ & +\cellcolor{slur}\verb+(+ & +\cellcolor{beam}\verb+[+ & +\cellcolor{articulations}\verb+->-3+ & +\cellcolor{scripts}\verb+^"text"+ & +\cellcolor{dynamics}\verb+\f\<+ \\ \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 \\ +\cellcolor{note}\verb+c+ & Note name or \verb+q+, REQUIRED \\ +\cellcolor{alteration}\verb+is+ & Alteration \\ +\cellcolor{octave}\verb+'+ & Octave indication \\ +\cellcolor{duration}\verb+4.+ & Duration, repeated if not given \\ +\cellcolor{durationmult}\verb+*3+ & Duration multiplier \\ +\cellcolor{tie}\verb+~+ & Tie \\ +\cellcolor{slur}\verb+(+ & Slur \\ +\cellcolor{beam}\verb+[+ & Beam \\ +\cellcolor{articulations}\verb+->-3+ & Articulations, fingerings, etc. \\ +\cellcolor{scripts}\verb+^"text"+ & Text and other scripts \\ +\cellcolor{dynamics}\verb+\f\<+ & Dynamics \\ \end{tabular} -\end{minipage} -} -} +\end{whitebox} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Figured bass structure}{name=figurebasse,column=0,below=note}{ -\colorbox{white}{ -\begin{minipage}{0.93\linewidth} +\begin{posterbox}[name=figurebasse,column=0,below=auto]{Figured bass structure} +\begin{whitebox}{0.99\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.} - +\cellcolor{articulations}\verb+<+ & +\cellcolor{beam}\verb+[+ & +\cellcolor{note}\verb+6+ & +\cellcolor{alteration}\verb+\\+ & +\cellcolor{beam}\verb+]+ & +\cellcolor{white}\verb+ + & +\cellcolor{note}\verb+_+ & +\cellcolor{alteration}\verb|+| & +\cellcolor{articulations}\verb+>+ & +\cellcolor{duration}\verb+4.+ \end{tabular} +\end{whitebox} - -\end{minipage} -} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Markup commands}{name=markup,column=0,below=note}{ +\begin{posterbox}[name=markup,column=0,below=auto]{Markup commands} \begin{tabular}{p{0.96\linewidth}} \rowcolor{row1} \\ \end{tabular} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Pitch commands}{name=pitch,column=0,below=markup}{ +\begin{posterbox}[name=pitch,column=0,below=auto]{Pitch commands} + \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})}\\ + \Verb+\transpose @textit<from> @textit<to> @textit<music>+\\ + \Verb+\ottava #@textit<(-2|-1|0|1|2)>+\\ + \Verb+\transposition @textit<pitch-for-written-c'>+\\ + \Verb+#(set-accidental-style '@textit<style> '@textit<ctxt>)+\\ \end{tabular} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Rhythmic concerns}{name=rhythmic,column=0,below=pitch}{ +\begin{posterbox}[name=rhythmic,column=0,below=auto]{Rhythmic concerns} + \begin{tabular}{p{0.96\linewidth}} -Durations: \texttt{\textbackslash{}longa~\textbackslash{}breve~1~2~4~8~16~32..}\\ +Durations: \verb+\longa \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}]}\\ +\verb+\autoBeam[On|Off]+\\ +\verb+\cadenza[On|Off]+\\ +\Verb+\barNumberCheck #@textit<Nr>+\\ +\Verb+\tempo [@textit<"Text">] [@textit<duration> = @textit<count>]+\\ \end{tabular} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Grobs and Grob Properties}{name=grobs,column=0,below=rhythmic}{ -\begin{tabular}{|p{0.96\textwidth}|}\hline +\begin{posterbox}[name=grobs,column=0,below=auto]{Grobs and Grob Properties} +\begin{tabular}{p{0.96\textwidth}} \rowcolor{row1} NoteHead\\ -\rowcolor{row2} \#'style = \#'(cross|harmonic|slash|default|...)\\ -\rowcolor{row2} \\ -\hline +\rowcolor{row2} \verb+#'style = #'(cross|harmonic|slash| default|...)+\\\hline \rowcolor{row1} Other grob\\ - -\hline - \end{tabular} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Vertical spacing}{name=vspacing,column=0,below=grobs}{ +\begin{posterbox}[name=vspacing,column=0,below=auto]{Vertical spacing} V spacing -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Useful Context properties}{name=contextprops,column=0,below=vspacing}{ +\begin{posterbox}[name=contextprops,column=0,below=auto]{Useful Context properties} -\begin{tabular}{|p{2cm}l|}\hline - \texttt{} & \\ - \texttt{} & -\end{tabular} +Context props -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Multiple voices}{name=multiplevoices,column=1}{ +\begin{posterbox}[name=multiplevoices,column=1]{Multiple voices} \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 + \verb+<< {...} \\ {...} >>+ \tn + \verb+<< {...} \new Voice {...} >>+ \tn + \verb+\oneVoice+ \tn + \verb+\voice(One|Two|Three|Four|..)+ \tn \end{tabular} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Quoting other voices, Cue notes}{name=quoting,column=1,below=contextprops}{ +\begin{posterbox}[name=quoting,column=1,below=auto]{Quoting other voices, Cue notes} Quoting -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Header fields}{name=header,column=2}{ +\begin{posterbox}[name=header,column=2]{Header fields} + \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 +\verb+title+ & printed at very top\tn +\Verb+<@smaller(sub)>subtitle+ & below title, smaller\tn +\verb+dedication+ & above title\tn +\verb+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 +\verb+composer+ & below title, on the right\tn +\verb+arranger+ & below Composer\tn +\verb+poet+ & below title, on the left\tn +\verb+meter+ & below poet\tn -\texttt{tagline} & at very end of score\tn -\texttt{copyright} & bottom of first page\tn +\verb+tagline+ & at very end of score\tn +\verb+copyright+ & bottom of first page\tn -\texttt{piece} & below meter (left), per score\tn -\texttt{opus} & below arranger (right)\tn +\verb+piece+ & below meter (left), per score\tn +\verb+opus+ & below arranger (right)\tn \end{tabular} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Paper fields}{name=quoting,column=2,below=header}{ +\begin{posterbox}[name=quoting,column=2,below=auto]{Paper fields} \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 +\verb+(book|score)TitleMarkup+ & title markup \tn +\verb+print-all-headers+ & bookTitleMarkup for each score\tn +\verb+(even|odd)HeaderMarkup+ & header markup \tn +\verb+(even|odd)FooterMarkup+ & footer markup \tn +\verb+#(set-paper-size "..")+ & paper size\tn +\verb+line-width+ & \tn +\verb+(left|right)-margin+ \verb+(top|bottom)-margin+ & margins\tn +\verb+paper-height+ & page height \tn -\texttt{ragged-(right|last)} & ragged systems \samecolor\tn -% \addtocounter{rownum}{-1} -\texttt{ragged-(last-)bottom)} & ragged pages\tn +\verb+ragged-(right|last)+ & ragged systems \samecolor\tn +\verb+ragged-(last-)bottom)+ & ragged pages\tn -\texttt{...-...-spacing} & Vertical spacing\tn +\Verb+@textit<[...]>-@textit<[...]>-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 +\spverb+two-sided (inner|outer)-margin binding-offset+ & Two-sided printing \tn -\texttt{(short-)indent} & all/first systems \tn +\verb+(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 +\verb+(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 +\verb+first-page-number+ & Nr. of first page \tn +\verb+print-page-number+ & Show page nrs. \tn -\texttt{system-separator-markup} & markup between systems \tn +\verb+system-separator-markup+ & markup between systems \tn \end{tabular} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\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{posterbox}[name=notenames,column=1,span=2,above=bottom]{Note names in the most common languages} +Select with: \Verb+\language "@textit<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 @@ -314,5 +303,5 @@ italiano & do re mi fa sol la sib si & -d -b -dd -bb \tn \hline \end{tabular} -} +\end{posterbox} \end{poster} diff --git a/LilyPond_CheatSheet_BasicPage.itex b/LilyPond_CheatSheet_BasicPage.itex index c26cc1352dd7167fd718df316ac48588348077bb..8c3413e426f7b1f484c1d3746729ffad4ddbe824 100644 --- a/LilyPond_CheatSheet_BasicPage.itex +++ b/LilyPond_CheatSheet_BasicPage.itex @@ -21,6 +21,7 @@ % Box contents boxshade=none, % boxshade=plain, boxColorOne=boxBackground, +% boxheaderheight=1.5em, } {\includegraphics[height=6em]{images/double-lily-modified3}} % eyecatcher {\Huge LilyPond - Music Typesetting} % Title @@ -44,8 +45,8 @@ \newcommand{\imgw}{0.485} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \headerbox{Command-line usage}{name=cmdline,column=0,row=0,span=2}{ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{posterbox}[name=cmdline,column=0,span=2]{Command-line usage} + \colorbox{white}{\texttt{lilypond [-l LOGLEVEL] [-dSCMOPTIONS] [-o OUTPUT] [-V] FILE.ly [FILE2.ly]}} \vspace{0.5em} @@ -57,94 +58,94 @@ Common options:\vspace{-1.5em} \> -dbackend=eps \> Use different backend\\ \> -l LOGLEVEL \> ERR/WARN/PROG/DEBUG\\ \> -o OUTDIR \> Name of output dir/file\\ -\> -V \> Verbose output +\> -V \> Verbose output\\ +\> -dhelp \> Help on options \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\\ +\> -djob-count=NR \> Process files in parallel\\ \> -dpixmap-format=pngalpha \> \hspace{3.5em}Transparent PNG\\ \> -dno-delete-intermediate-files \> \hspace{3.5em}Keep .ps files\\ \end{tabbing} \end{multicols}\vspace{-2em} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \headerbox{Basic Notation}{name=basic,column=0,span=2,below=cmdline}{ +\begin{posterbox}[name=basic,column=0,span=2,below=auto]{Basic Notation} % \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: +\includegraphics[scale=\imgw]{out/notenames} & \verb+c d e f g a b+ & Note names (Dutch) \tn +\includegraphics[scale=\imgw]{out/alterations.preview.pdf} & \verb+cis bes as cisis beses b b! b?+ & Alterations: \verb+-is/-es+ for sharp/flat, \verb+-isis/-eses+ for double, \verb+!+ forces, \break\verb+?+ shows cautionary accidental \tn +\includegraphics[scale=\imgw]{out/relative} & \verb+\relative c' {c f d' c,}+ & Relative mode (change less than a fifth), raise/lower one octave \tn +\includegraphics[scale=\imgw]{out/durations.preview} & \verb+g1 g2 g4 g8 g16 g4. g4..+ & durations (1, 2, 4, 8, 16, ...); \break append ``\verb+.+'' for dotted note \tn +\includegraphics[scale=\imgw]{out/beaming} &\verb+g8 g8 g8[ g g] g8[ g16 g16]+ & Automatic and manual beaming \tn +\includegraphics[scale=\imgw]{out/rest.preview.pdf} & \verb+r2 r4 r4.. r16 s4 r4+ & rests: \begin{tabular}{l}% \rowcolor{white}\rowcolors{5}{}{} -\texttt{r} (like a note name)\\ +\verb+r+ (like a note name)\\ \rowcolor{white} -\texttt{s} for invisible rests +\verb+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/clefs} & \verb+\clef "treble" \clef "bass"+ \verb+\clef "tenor" \clef "treble_8"+ & Clefs \tn +\includegraphics[scale=\imgw]{out/time} & \verb+\time 4/4 \time 2/2+ \verb+\time 3/4 \time 3/8+ & Time signature \tn +\includegraphics[scale=\imgw]{out/keys} & \verb+\key c \minor \key b \dorian+ \verb+\key c \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/chords} & \verb+<c e g>4 <f c'> q2+ & Chords, repeated chord \tn +\includegraphics[scale=\imgw]{out/ties} & \verb+c4~ c c2~ c4 <c a f>~ c+ & Tie \tn +\includegraphics[scale=\imgw]{out/slurs} & \verb+c( a) c\( b( a) g f\)+ & 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/dynamics} & \verb+g\p\< a b c\f\cresc d e\!+ & 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/articulations} & \verb$c4-> c-. c^| c^-_+ c\trill$ \verb+c\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/bars} & \verb+\partial 8 c8 | c1 | c+ \verb+\bar"||" c \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/mmrest.preview.pdf} & \verb+R1 | R1*3 | \time 3/4 R2.*4+ & Full-/Multimeasure rests: \verb+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/repeats} & \verb+c1 \repeat volta 2 { d }+ \verb+\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/tempo-text}$\!$ & \verb+\tempo "Adagio" 4=60 c1 c c+ \verb+\mark \default c \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/grace} & \verb+\grace d8 c4\appoggiatura d8+ \verb+c4\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/tuplet} & \verb+\times 2/3 {c8 d e}+ \verb+\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 +\includegraphics[scale=\imgw]{out/parallel} & \verb+<<{a2 c4 a}\\{f4 g4 f2>>+ & Parallel music \tn % \hline \end{tabular} -} + +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{General Syntax}{name=syntax,column=2,aligned=cmdline,bottomaligned=cmdline}{ +\begin{posterbox}[name=syntax,column=2,aligned=cmdline,bottomaligned=cmdline]{General Syntax} \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.$\!\!\!$ +\verb+\xxxx+ & function or variable\tn +\verb+{ ... }+ & Code grouping\tn +\verb+var = {...}+ & Variable assignment\tn +\verb+\version "2.14.0"+$\!\!$ & LilyPond version\tn +\verb+% dots+ & Comment\tn +\verb+%{ ... %}+ & Block comment\tn +\verb+c\...+ & Postfix-notation (notes)\tn +\verb+#'(..)+, \verb+##t+, \verb+#'sym+ & Scheme list, true, symb.$\!\!\!$\tn +\verb+x-..+, \verb+x^..+, \verb+x_..+ & Directions % \tn\hline \end{tabular} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Creating Staves, Voices and Groups}{name=hierarchy,column=2,below=syntax}{ +\begin{posterbox}[name=hierarchy,column=2,aligned=basic]{Creating Staves, Voices and Groups} \begin{tabular}{x{0.96\textwidth}}%\hline \rowcolor{row2} @@ -152,51 +153,51 @@ Common options:\vspace{-1.5em} \begin{center} -\vspace{-2.1em} +\vspace{-2.5em} \includegraphics[scale=0.5]{out/hierarchy} \vspace{-1.2em}${}$ \end{center} % \\\hline \end{tabular} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Useful Contexts}{name=contexts,column=2,below=hierarchy,bottomaligned=basic}{ +\begin{posterbox}[name=contexts,column=2,below=auto,bottomaligned=basic]{Useful Contexts} % \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 + \rowcolor{row1}\verb+Score+ & The whole score \\ + \rowcolor{row2}\verb+<< ... >>+ & Staves in parallel \\ + \rowcolor{row1}\verb+StaffGroup+ & Staffgroup with bracket \\ + \rowcolor{row1}\verb+GrandStaff+ & Staffgroup with brace \\ + \rowcolor{row1}\verb+ChoirStaff+ & Staffgroup with bracket \\ + \rowcolor{row1}\verb+PianoStaff+ & Staffgroup with brace\\ + \rowcolor{row2}\verb+Staff+ & One single staff \\ + \rowcolor{row1}\verb+Voice+ & A voice inside a staff \\ + \rowcolor{row1}\verb+CueVoice+ & Smaller voice for cues \\ + \rowcolor{row2}\verb+Lyrics+ & Lyrics inside staff/voice \\ +% \rowcolor{row1}\verb+FiguredBass+ & Bass figures (separate) \\ + \rowcolor{row2}\verb+ChordNames+ & Chords (lead sheet) \\ + \rowcolor{row1}\verb+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}, ... +\smaller Also: \verb+Dynamics+, \verb+FiguredBass+, \verb+Tab(Staff|Voice)+,\\ +\verb+Drum(Staff|Voice)+, \verb+RhythmicStaff+, \verb+FretBoards+, ... \end{flushleft} \begin{center} \vspace{-1.2em} - \includegraphics[width=4.5cm]{images/context-example} + \includegraphics[width=4.3cm]{images/context-example} \end{center} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Adding Lyrics}{name=lyrics,column=0,below=basic,above=bottom}{ +\begin{posterbox}[name=lyrics,column=0,below=basic,above=bottom]{Adding Lyrics} \begin{tabular}{x{0.96\textwidth}}%\hline \rowcolor{row2} @@ -209,27 +210,28 @@ Common options:\vspace{-1.5em} \end{center} % \\\hline \end{tabular} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Writing text and markup}{name=simple_markup,column=1,below=basic,above=bottom}{ +\begin{posterbox}[name=simple_markup,column=1,below=basic,above=bottom]{Writing text and markup} + \begin{tabular}{x{0.96\textwidth}}%\hline \rowcolor{row2} {\smaller \VerbatimInput[firstline=2,lastline=9]{examples/writing_text.ly} } \begin{center} -\vspace{-1.9em} +\vspace{-2em} \includegraphics[scale=0.55]{out/writing_text} \vspace{-1.2em}${}$ \end{center} % \\\hline \end{tabular} -} +\end{posterbox} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\headerbox{Links}{name=links,column=2,below=contexts,above=bottom}{ +\begin{posterbox}[name=links,column=2,below=contexts,above=bottom]{Links} \begin{list}{}{\leftmargin=0.em} \item LilyPond Homepage:\\ ${}$\qquad\url{http://www.lilypond.org/} @@ -241,7 +243,9 @@ Common options:\vspace{-1.5em} \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] +\smaller Cheatsheet by R. Kainhofer, License: \href{http://creativecommons.org/licenses/by-nc/3.0/}{\raisebox{1.7ex-\height}{\includegraphics[width=1.5cm]{images/cc-by-nc}}}\\[-0.2em] Creative Commons Attribution-NonCommercial 3.0 -} +\end{posterbox} + + \end{poster} diff --git a/LilyPond_CheatSheet_Definitions.itex b/LilyPond_CheatSheet_Definitions.itex index e682dc59e6c91f8053a59106f168948a0283f342..cfd91024f1d829577ed19ef417afed8481bae890 100644 --- a/LilyPond_CheatSheet_Definitions.itex +++ b/LilyPond_CheatSheet_Definitions.itex @@ -1,17 +1,16 @@ -\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{spverbatim} % \spverb+..+ to break at spaces +\usepackage{xstring} % for \IfSubStr -% \usepackage{listings} -% \usepackage{fancyvrb} % to allow Verbatim inside headerbox -\usepackage[pdfborderstyle=\@empty]{hyperref} +\usepackage[pdfborder={0 0 0}]{hyperref} +\usepackage{fancyvrb} % to allow Verbatim inside headerbox \pagestyle{empty} @@ -21,6 +20,15 @@ \catcode`~=13 % revert back to treating tilde (~) as an active character +\hypersetup{ + pdftitle={LilyPond Cheatsheet}, + pdfauthor={Reinhold Kainhofer - Edition Kainhofer}, + pdfkeywords={LilyPond, cheatsheet, music typesetting, music notation, engraving} +} + + + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Table formatting %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -65,10 +73,14 @@ \definecolor{row1}{rgb}{0.8,0.8,0.8} \definecolor{row2}{rgb}{1,1,1} +% \definecolor{shadecolor}{named}{white} +\colorlet{shadecolor}{white} + \newlength{\leftimgwidth} \rowcolors{1}{row1}{row2} % color table rows in alternating colors automatically +% Make multicolumn table cells use the row color, too: \makeatletter \newcommand\defcolor{% \ifodd\rownum\@oddrowcolor\let\CT@color\cellcolor\CT@row@color\else @@ -76,4 +88,19 @@ \newcolumntype{G}{>{\defcolor}l} \makeatother \newcommand\samecolor{\global\advance\rownum1} -\usepackage{cprotect} + +% whitebox environment to print the contents on white background +\makeatletter\newenvironment{whitebox}[1]{% + \begin{lrbox}{\@tempboxa}\begin{minipage}{#1}}{\end{minipage}\end{lrbox}% + \colorbox{white}{\usebox{\@tempboxa}}% +}\makeatother + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Crop marks for printing (depending on -jobname cmd line arg) +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\IfEndWith*{\jobname}{_Crop}{ + \typeout{Jobname ends with _Crop, creating cropped pdf with printing marks} + \usepackage[width=230truemm,height=317truemm,center,cam]{crop} +}{} + diff --git a/Makefile b/Makefile index af9367c05bc06b56f78248dc5936d41d08370779..29458caef4011990315ac66c1bf52a3320626ef6 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ IN=examples OUT=out -sheets = LilyPond_CheatSheet.pdf +sheets = LilyPond_CheatSheet.pdf LilyPond_CheatSheet_Advanced.pdf scores = $(wildcard $(IN)/*.ly) outfiles = $(scores:$(IN)/%.ly=$(OUT)/%.pdf) @@ -21,6 +21,7 @@ $(outfiles): $(OUT)/%.pdf: $(IN)/%.ly LILYPOND_LOGLEVEL=BASIC lilypond -drelative-includes -dbackend=eps -dpreview -dno-aux-files --pdf -o $(basename $@) $< $(sheets): %.pdf: %.tex $(outfiles) + pdflatex -jobname $(basename $@)_Crop $< pdflatex $< webshop: $(distfiles)