lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lilypond-book, snippet inside tabular


From: dl . mcnamara
Subject: lilypond-book, snippet inside tabular
Date: Sat, 4 Apr 2015 21:28:31 +0000 (UTC)

I'm trying to put lilypond snippets inside a tabular environment in LaTeX, but
running lilypond-book on the file seems to ignore the lilypond blocks.
I'm guessing that lilypond-book just ignores the tabular environment as a whole.

Anyone have a workaround for using lilypond-book? otherwise I'll revert to my initial thought:
running lilypond (to produce the snippets) and latex (to produce the doc) separately.

Here's the file (many of the usepackages are not needed)
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{enumerate}
\usepackage{units}
\usepackage[section]{placeins}
\usepackage{hyperref}
\usepackage[cm]{fullpage}
\usepackage{parcolumns}
\usepackage[table]{xcolor}

\begin{document}

\def\arraystretch{5.0}
\arrayrulecolor{gray!20}
\begin{tabular}[h]{ p{0.2\textwidth}  p{0.75\textwidth}  }
    %\vfill \huge\textbf{Intro} & \vfill \\
    \huge\textbf{ Intro \vfill }  & \begin{lilypond} \relative c' { c4 d e f g} \end{lilypond} \\
    \hline
    \huge\textbf{ Verse \vfill }  & B \\
    \hline
    \huge\textbf{ Chorus \vfill }  & B \\
    \hline
    \huge\textbf{ Verse \vfill }  & B \\
    \hline
    \huge\textbf{ Chorus \vfill }  & B \\
    \hline
\end{tabular}
\def\arraystretch{1.0}
\end{document}


reply via email to

[Prev in Thread] Current Thread [Next in Thread]