lilypond-user-fr
[Top][All Lists]
Advanced

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

Re: lilypond et latex


From: Philippe Hezaine
Subject: Re: lilypond et latex
Date: Thu, 29 Nov 2007 12:41:38 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20071026)

Jean-Yves Baudais a écrit :
> Bonjour,
>
>
>   Soit l'exemple suivant (un ECM ?)
>
> \version "2.8.7"
> \header {
>   title = "Partition de test"
>   copyright = ""
>   tagline = "Première édition"
> }
>
> \score {
>   { c'4 d' e'2 }
> }
>
> Philippe Hezaine a écrit :
> > 1) lilypond-book  --psfonts   --output  /home/...
>
>   Soit la commande `lilypond-book --psfonts test.lytex` exécutée dans
> le répertoire de travail.
>
> >      (on peut avoir renommé le fichier.ly en fichier.lytex avant de
> > faire la commande)
>
>   C'est même nécessaire car `lilypond-book --psfonts test.ly`  renvoie
> "lilypond-book: ERREUR : can't determine format for: test.ly".
>
> > Cela a créé un fichier .tex
>
>   Oui mais c'est complètement du n'importe quoi ça n'a pas la
> structure d'un fichier compilable par LaTeX. Voici ce fichier test.tex
>
> \version "2.8.7"
> \header {
>   title = "Partition de test"
>   copyright = ""
>   tagline = "Première édition"
> }
>
> \score {
>   { c'4 d' e'2 }
> }
>
>> 3)latex  /home/.../.../le fichier.tex
>
>   C'est clair ça marche pas, la prévision était bonne :-(
>
>> Cela a créé un dvi et un fichier .psfonts
>
>   Non LaTeX ne crée par de fichier .psfonts, seulement du DVI voire du
> PDF avec le moteur pdfTeX, c'est fait avant par lilypond-book.
>   Pour moi la question reste entière...
>
> --Jyb
>
>
Yes yes yes! Pardon.

Le lytex est effectivement déja écrit pour latex. Voici un extrait:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[a4paper,12pt,openany,ps2pdf]{book}   % titlepage,twoside

\usepackage[headheight=9mm, headsep=11mm, left=2.3cm, right=2cm,
top=4cm, bottom=2.5cm, heightrounded]{geometry} 
                    % top=3.5cm,

\usepackage[dvips]{graphicx}
\usepackage[francais]{babel}
\usepackage[utf-8]{inputenc}
\usepackage[colorlinks=true]{hyperref}
\usepackage{xcolor}   %[dvipsnames] [svgnames]  ou [x11names]
\usepackage{chngpage}

\definecolor{fond}{rgb}{0.99, 0.98, 0.94}


\begin{document}

\pagecolor{fond}   % puis \pagecolor{white}

\newcommand \go {\Huge}


%% Title page.

\title{ \resizebox{\linewidth}{40mm}{\color{red}%
 {\Huge \textbf {\color{orange}S \color{red}U \color{yellow}P
\color{green}E \color{blue}R \color{cyan}B \color{green}O
\color{yellow}N \color{red}U \color{orange}S
    }
    }
    } % fin de resizebox
    }


\author{}
\date{}


\maketitle

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newpage
%\markboth{\uppercase{Editors'\ Note}}{}

\chapter*{Note d'édition}

\large
\textsf
{ Voici donc mon premier essai avec lilypond-book et Latex.
\newline
Il s'agit bien sûr d'une édition temporaire de Superbonus.
\newline
Je le considère plutôt comme un cahier de travail, qui présente
l'avantage de regrouper tout le projet en un seul recueil.
\newline
Ayez du bonheur. }


\tableofcontents

\newpage


%\begin{adjustwidth}[]{leftmargin}{rightmargin}
\begin{adjustwidth}[]{-0.8cm}{0.4cm}

\newcommand{\betweenLilyPondSystem}[1]{\linebreak \vspace{128pt}}
\lilypondfile[staffsize=20,indent=2\cm,line-width=500\pt]{/home/phil/Latex-Superbonus/01-je-deambule.ly}

\end{adjustwidth}
%\pagebreak

\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

En adaptant les répertoires est-ce que cela marche?
-- 
Phil.
http://superbonus.project.free.fr




reply via email to

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