diff --git a/test/test_compilation/datadir.tex.control b/test/test_compilation/datadir.tex.control index 0e37b1e7..a003cd42 100644 --- a/test/test_compilation/datadir.tex.control +++ b/test/test_compilation/datadir.tex.control @@ -114,13 +114,6 @@ Chordpro}[ \image{img/datadir.png} - -\ifchorded -\begin{verse*} - \musicnote {\nolyrics \[Am C{\shrp}m]} -\end{verse*} -\fi - \endsong %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/test/test_compilation/datadir_datadir/songs/datadir.sgc b/test/test_compilation/datadir_datadir/songs/datadir.sgc index 11bb1f54..73a6a15f 100644 --- a/test/test_compilation/datadir_datadir/songs/datadir.sgc +++ b/test/test_compilation/datadir_datadir/songs/datadir.sgc @@ -5,5 +5,3 @@ {partition: datadir.ly} {image: datadir.png} - -[Am C#m] diff --git a/test/test_compilation/syntax.sb b/test/test_compilation/syntax.sb new file mode 100644 index 00000000..fb16ce10 --- /dev/null +++ b/test/test_compilation/syntax.sb @@ -0,0 +1,4 @@ +{ +"datadir": ["syntax_datadir"], +"lang": "en" +} diff --git a/test/test_compilation/syntax.tex.control b/test/test_compilation/syntax.tex.control new file mode 100644 index 00000000..2794e2fa --- /dev/null +++ b/test/test_compilation/syntax.tex.control @@ -0,0 +1,116 @@ + + + + + + +%% Automatically generated document. +%% You may edit this file but all changes will be overwritten. +%% If you want to change this document, have a look at +%% the templating system. +%% +%% Generated using Songbook + +\makeatletter +\def\input@path{ % + {@TEST_FOLDER@/syntax_datadir/latex/} % + {@TEST_FOLDER@/latex/} % + {@DATA_FOLDER@/latex/} % +} +\makeatother + +\documentclass[ + ]{article} + +\usepackage[ + chorded, +diagram, +pictures, +guitar, + ]{patacrep} + +\usepackage{lmodern} + + +\PassOptionsToPackage{english}{babel} +\usepackage[english]{babel} +\lang{english} + +\usepackage{graphicx} +\graphicspath{ % + {@TEST_FOLDER@/syntax_datadir/} % + {@TEST_FOLDER@/} % + {@DATA_FOLDER@/} % +} + + +\makeatletter +\@ifpackageloaded{hyperref}{}{ + \usepackage{url} + \newcommand{\phantomsection}{} + \newcommand{\hyperlink}[2]{#2} + \newcommand{\href}[2]{\expandafter\url\expandafter{#1}} +} +\makeatother + + +\usepackage{chords} + +\title{Guitar songbook} +\author{The Patacrep Team} + +\newindex{titleidx}{syntax_title} +\newauthorindex{authidx}{syntax_auth} + + +\notenamesout{A}{B}{C}{D}{E}{F}{G} + + +\begin{document} + +\maketitle + + +\showindex{\songindexname}{titleidx} +\showindex{\authorindexname}{authidx} + +% list of chords +\ifchorded + \ifdiagram + \phantomsection + \addcontentsline{toc}{section}{\chordlistname} + \chords + \fi +\fi + +\phantomsection +\addcontentsline{toc}{section}{\songlistname} + +\begin{songs}{titleidx,authidx} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% songs/./musicnote.sgc + +\selectlanguage{english} + +\beginsong{Song with Sharp in musicnote}[ + by={ + }, +] + + + + +\ifchorded +\begin{verse*} + \musicnote {\nolyrics \[Am C{\shrp}m]} +\end{verse*} +\fi + +\endsong + +\end{songs} + + + + +\end{document} \ No newline at end of file diff --git a/test/test_compilation/syntax_datadir/songs/musicnote.sgc b/test/test_compilation/syntax_datadir/songs/musicnote.sgc new file mode 100644 index 00000000..830f14d9 --- /dev/null +++ b/test/test_compilation/syntax_datadir/songs/musicnote.sgc @@ -0,0 +1,4 @@ +{title : Song with Sharp in musicnote} +{lang: en} + +[Am C#m]