mirror of https://github.com/patacrep/patacrep.git
Engine for LaTeX songbooks
http://www.patacrep.com
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
133 lines
2.1 KiB
133 lines
2.1 KiB
|
|
|
|
|
|
|
|
|
|
|
|
%% 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 <http://www.patacrep.com>
|
|
|
|
\makeatletter
|
|
\def\input@path{ %
|
|
{@TEST_FOLDER@/onthefly/../content_datadir/latex/} %
|
|
{@DATA_FOLDER@/latex/} %
|
|
}
|
|
\makeatother
|
|
|
|
\documentclass[
|
|
]{article}
|
|
|
|
\usepackage[
|
|
chorded,
|
|
pictures,
|
|
diagram,
|
|
guitar,
|
|
]{patacrep}
|
|
|
|
\usepackage{lmodern}
|
|
|
|
|
|
\PassOptionsToPackage{english}{babel}
|
|
\PassOptionsToPackage{english}{babel}
|
|
\usepackage[english]{babel}
|
|
\lang{english}
|
|
|
|
\usepackage{graphicx}
|
|
\graphicspath{ %
|
|
{@TEST_FOLDER@/onthefly/../content_datadir/} %
|
|
{@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}{content.onthefly_title}
|
|
\newauthorindex{authidx}{content.onthefly_auth}
|
|
|
|
\authignoreword{unknown}
|
|
\authbyword{by}
|
|
\authsepword{and}
|
|
|
|
\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}
|
|
|
|
|
|
\section{Test of section}
|
|
|
|
\begin{songs}{titleidx,authidx}
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
%% songs/./song.csg
|
|
|
|
\selectlanguage{english}
|
|
|
|
\beginsong{This is a song}[
|
|
by={
|
|
},
|
|
]
|
|
|
|
|
|
|
|
|
|
\begin{verse}
|
|
Foo
|
|
\end{verse}
|
|
|
|
\endsong
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
%% songs/./song.tsg
|
|
|
|
\import{@TEST_FOLDER@/content_datadir/songs/}{song.tsg}
|
|
|
|
\end{songs}
|
|
|
|
\songsection{Test of song section}
|
|
|
|
|
|
\input{@TEST_FOLDER@/content_datadir/content/foo.tex}
|
|
|
|
|
|
\section{This is an included section}
|
|
|
|
|
|
|
|
|
|
|
|
\end{document}
|
|
|