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

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

Re: lilypond-book ou comment automatiser la cré ation d'un répertoire ?


From: Remy Palezis
Subject: Re: lilypond-book ou comment automatiser la cré ation d'un répertoire ?
Date: Sat, 13 Jun 2009 14:52:25 -0700 (PDT)

Merci !

   J'avais effectivement déniché sort, mais sans me rendre compte que je
pouvais l'intégrer entre find et sed (les pipe, c'est un peu inédit pour
moi). Ton post me permet de simplifier mon script, qui devient :


#!/bin/bash
cd ../Northumberland
find -type f -name "*.ly" | sed -e 's/^..//g' | sort | sed -e
's/.*/\\lilypondfile[noindent,line-width=18\\cm]{..\/Northumberland\/&}\n/'
> ../Lilybook/listeNorthumberland.txt
cd ../Irish
find -type f -name "*.ly" | sed -e 's/^..//g' | sort | sed -e
's/.*/\\lilypondfile[noindent,line-width=18\\cm]{..\/Irish\/&}\n/' >
../Lilybook/listeIreland.txt
cd ../Lilybook
cat repdebut.tex listeNorthumberland.txt listeIreland.txt repfin.tex >
repertoire_nsp.lytex
lilypond-book --output=out repertoire_nsp.lytex
#lilypond-book --output=out --pdf repertoire_nsp.lytex
cd out
sed -i 's/{%/&\n\\begin{figure}\[htbp\]/g' repertoire_nsp.tex
sed -i '/\\postLilyPondExample%/,/\\fi%/ s/\\fi%/\\fi%\n\\end{figure}/g'
repertoire_nsp.tex
latex repertoire_nsp.tex
dvips repertoire_nsp.dvi
ps2pdf repertoire_nsp.ps
#evince repertoire_nsp.ps
#pdflatex repertoire_nsp.tex
evince repertoire_nsp.pdf &


J'ai ajouté un autre répertoire (musique irlandaise). Ça marche nickel. Il
faut maintenant que je demande sur un forum LaTeX comment s'occuper des
"figure".
   Ce qui serait fantastique, ce serait de pouvoir capter le nom de chaque
morceau et de nommer la figure avec (sans que ça apparaisse dans le
répertoire), pour pouvoir obtenir une liste grâce à \listoffigures.
-- 
View this message in context: 
http://n2.nabble.com/lilypond-book-ou-comment-automatiser-la-cr%C3%A9ation-d%27un-r%C3%A9pertoire---tp3045254p3073703.html
Sent from the LilyPond French Users mailing list archive at Nabble.com.





reply via email to

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