Browse Source

Nettoyage et finalisation de la page de titre

pull/31/head
Luthaf 11 years ago
parent
commit
12f4063139
  1. 19
      songbook_core/data/latex/crepbook.sty
  2. 2
      songbook_core/data/templates/default.tex

19
songbook_core/data/latex/crepbook.sty

@ -59,10 +59,11 @@
\def\picturecopyright#1{\def\@picturecopyright{#1}} \def\picturecopyright#1{\def\@picturecopyright{#1}}
\def\footer#1{\def\@footer{#1}} \def\footer#1{\def\@footer{#1}}
\long\def\author#1{\long\def\@author{#1}}
\def\clearheadinfo{ \def\clearheadinfo{
\author{No Author Given}% \author{}%
\title{No Title Given}% \title{No title}%
\subtitle{}% \subtitle{}%
\version{}% \version{}%
\web{}% \web{}%
@ -90,19 +91,19 @@
\def\@maketitle{ \def\@maketitle{
\begin{titlepage} \begin{titlepage}
\thispagestyle{empty} \thispagestyle{empty}
\hfil% \begin{center}
{\rule{\textwidth}{1mm}} {\rule{\textwidth}{1mm}}
{\@titlefont\@title\par} {\@titlefont\@title\par}
\if!\@subtitle!\else \if!\@subtitle!\else
{\hfil\@subtitlefont\@subtitle\par} {\hfil\@subtitlefont\@subtitle\par}
\fi \fi
{\rule{\textwidth}{1mm}} {\rule{\textwidth}{1mm}}
\hfil% \end{center}
\vfil \vfil
\begin{flushleft} \begin{flushleft}
\begin{tabular}{l l} \begin{tabular}{l l}
\if!\@version!\else{\textbf{\labelversionname}} & \@version \\ \fi \if!\@version!\else{\textbf{\labelversionname}} & \@version \\ \fi
\if!\@date!\else{\textbf{\labeldatename}} & \@date \\ \fi \if!\@date!\else{\textbf{\labeldatename}} & \@date \\ \fi
\if!\@author!\else{\textbf{\labelauthorname}} & \@author \\ \fi \if!\@author!\else{\textbf{\labelauthorname}} & \@author \\ \fi
\if!\@web!\else{\textbf{\labelwebname}} & \url{\@web} \\ \fi \if!\@web!\else{\textbf{\labelwebname}} & \url{\@web} \\ \fi
\if!\@mail!\else{\textbf{\labelmailname}} & \url{\@mail} \\ \fi \if!\@mail!\else{\textbf{\labelmailname}} & \url{\@mail} \\ \fi
@ -111,10 +112,16 @@
\vfil \vfil
\begin{center} \begin{center}
\includegraphics[keepaspectratio=true, width=12cm, height=12cm]{\@picture} \includegraphics[keepaspectratio=true, width=12cm, height=12cm]{\@picture}
{\hfil \small \@picturecopyright} \vskip1em
{\hfil\hbox{\small \@picturecopyright}}
\end{center} \end{center}
\begin{flushright}
\vfil
{\hfil\rule{.4\textwidth}{.75pt}\par}
\@footer \@footer
\end{flushright}
\end{titlepage} \end{titlepage}
\newpage
} }
% Fancy capo % Fancy capo

2
songbook_core/data/templates/default.tex

@ -49,7 +49,7 @@
"default": {"default": "Dbolton \\url{http://commons.wikimedia.org/wiki/User:Dbolton}"} "default": {"default": "Dbolton \\url{http://commons.wikimedia.org/wiki/User:Dbolton}"}
}, },
"footer": {"description": {"english": "Footer", "french": "Pied de page"}, "footer": {"description": {"english": "Footer", "french": "Pied de page"},
"default": {"default": "\\begin{flushright}Generated using Songbook (\\url{http://www.patacrep.com})\\end{flushright}"} "default": {"default": "Generated using Songbook (\\url{http://www.patacrep.com})"}
}, },
"titleprefixwords": {"description": {"english": "Ignore some words in the beginning of song titles", "titleprefixwords": {"description": {"english": "Ignore some words in the beginning of song titles",
"french": "Ignore des mots dans le classement des chansons"}, "french": "Ignore des mots dans le classement des chansons"},

Loading…
Cancel
Save