mirror of https://github.com/patacrep/patacrep.git
Louis
9 years ago
9 changed files with 305 additions and 12 deletions
@ -0,0 +1,3 @@ |
|||
{ |
|||
"datadir": ["languages_datadir"] |
|||
} |
@ -0,0 +1,193 @@ |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
%% 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@/languages_datadir/latex/} % |
|||
{@TEST_FOLDER@/latex/} % |
|||
{@DATA_FOLDER@/latex/} % |
|||
} |
|||
\makeatother |
|||
|
|||
\documentclass[ |
|||
]{article} |
|||
|
|||
\usepackage[ |
|||
chorded, |
|||
diagram, |
|||
pictures, |
|||
guitar, |
|||
]{patacrep} |
|||
|
|||
\usepackage{lmodern} |
|||
|
|||
|
|||
\PassOptionsToPackage{english}{babel} |
|||
\PassOptionsToPackage{spanish}{babel} |
|||
\PassOptionsToPackage{french}{babel} |
|||
\PassOptionsToPackage{english}{babel} |
|||
\usepackage[english]{babel} |
|||
\lang{english} |
|||
|
|||
\usepackage{graphicx} |
|||
\graphicspath{ % |
|||
{@TEST_FOLDER@/languages_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}{languages_title} |
|||
\newauthorindex{authidx}{languages_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/./language.sgc |
|||
|
|||
\selectlanguage{english} |
|||
|
|||
\beginsong{Language only}[ |
|||
by={ |
|||
}, |
|||
] |
|||
|
|||
|
|||
|
|||
|
|||
\begin{verse} |
|||
Foo |
|||
\end{verse} |
|||
|
|||
\endsong |
|||
|
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|||
%% songs/./language_location.sgc |
|||
|
|||
\selectlanguage{french} |
|||
|
|||
\beginsong{Full language specification}[ |
|||
by={ |
|||
}, |
|||
] |
|||
|
|||
|
|||
|
|||
|
|||
\begin{verse} |
|||
Foo |
|||
\end{verse} |
|||
|
|||
\endsong |
|||
|
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|||
%% songs/./no_language.sgc |
|||
|
|||
\selectlanguage{english} |
|||
|
|||
\beginsong{No language}[ |
|||
by={ |
|||
}, |
|||
] |
|||
|
|||
|
|||
|
|||
|
|||
\begin{verse} |
|||
Foo |
|||
\end{verse} |
|||
|
|||
\endsong |
|||
|
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|||
%% songs/./wrong_language.sgc |
|||
|
|||
\selectlanguage{english} |
|||
|
|||
\beginsong{Wrong language}[ |
|||
by={ |
|||
}, |
|||
] |
|||
|
|||
|
|||
|
|||
|
|||
\begin{verse} |
|||
Foo |
|||
\end{verse} |
|||
|
|||
\endsong |
|||
|
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|||
%% songs/./wrong_location.sgc |
|||
|
|||
\selectlanguage{spanish} |
|||
|
|||
\beginsong{Wrong location}[ |
|||
by={ |
|||
}, |
|||
] |
|||
|
|||
|
|||
|
|||
|
|||
\begin{verse} |
|||
Foo |
|||
\end{verse} |
|||
|
|||
\endsong |
|||
|
|||
\end{songs} |
|||
|
|||
|
|||
|
|||
|
|||
\end{document} |
@ -0,0 +1,4 @@ |
|||
{title : Language only} |
|||
{lang: en} |
|||
|
|||
Foo |
@ -0,0 +1,4 @@ |
|||
{title : Full language specification} |
|||
{lang: fr_FR} |
|||
|
|||
Foo |
@ -0,0 +1,3 @@ |
|||
{title : No language} |
|||
|
|||
Foo |
@ -0,0 +1,4 @@ |
|||
{title : Wrong language} |
|||
{lang: xx_XX} |
|||
|
|||
Foo |
@ -0,0 +1,4 @@ |
|||
{title : Wrong location} |
|||
{lang: es_XX} |
|||
|
|||
Foo |
Loading…
Reference in new issue