[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lilypond-book
From: |
Jacques Menu |
Subject: |
Re: lilypond-book |
Date: |
Mon, 10 Aug 2015 20:56:06 +0200 |
Hello Marek,
I use a custom « lilyb » script defined as follows, that takes care of the
subdirectory for the intermediate files generated by lilypond-book:
address@hidden:~/Documents/LaTeX/PartitionsLilypond > which lilyb
/Users/menu/bin/lilyb
address@hidden:~/Documents/LaTeX/PartitionsLilypond > ll /Users/menu/bin/lilyb
8 -rwxr-xr-x@ 1 menu staff 1657 May 16 22:54:18 2014 /Users/menu/bin/lilyb*
address@hidden:~/Documents/LaTeX/PartitionsLilypond > cat /Users/menu/bin/lilyb
#!/bin/bash
USAGE="--> Usage: $0 filename[.lytex]"
if [ $# -ne 1 ]; then
echo "$USAGE"
exit 1
fi
FILENAME=$1
echo "--> env"
env | grep -i lilypond
echo
echo
FILENAME_RADIX=${FILENAME%.lytex}
FILENAME_SUFFIX=${FILENAME#${FILENAME_RADIX}}
if [ ${FILENAME_RADIX} == ${FILENAME} ]; then
FILENAME_SUFFIX=".lytex"
fi
echo "--> FILENAME = ${FILENAME}"
echo "--> FILENAME_RADIX = ${FILENAME_RADIX}"
echo "--> FILENAME_SUFFIX = ${FILENAME_SUFFIX}"
echo
OUTPUT_DIR=out-lilypond-book
echo "--> OUTPUT_DIR = ${OUTPUT_DIR}"
echo
echo
"----------------------------------------------------------------------------"
echo "--> Launching lilypondbook..."
lilypond-book --output=${OUTPUT_DIR} --pdf ${FILENAME_RADIX}${FILENAME_SUFFIX}
echo
ls -sal ${OUTPUT_DIR}/${FILENAME_RADIX}.tex
echo
echo
"----------------------------------------------------------------------------"
cd ${OUTPUT_DIR}
echo "--> Current directory: ${PWD}"
echo
echo
"----------------------------------------------------------------------------"
echo "--> Launching LaTeX..."
pdflatex ${FILENAME_RADIX}
ls -sal ${FILENAME_RADIX}.tex ${FILENAME_RADIX}.pdf
echo
cp -p ${FILENAME_RADIX}.pdf ..
echo
"----------------------------------------------------------------------------"
cd ..
echo "--> Current directory: ${PWD}"
echo
ls -sal ${FILENAME_RADIX}.pdf
echo
open ${FILENAME_RADIX}.pdf
exit # enlever pour interagir...
echo
"----------------------------------------------------------------------------"
read -p "==> Do you want to open ${FILENAME_RADIX}.pdf right now? [*/n] "
DO_OPEN
case ${DO_OPEN} in
[nN] )
;;
* )
open ${FILENAME_RADIX}.pdf
;;
esac
echo
> Le 10 août 2015 à 19:24, Kevin Barry <address@hidden> a écrit :
>
> Hi Marek,
>
> Instead of creating a link to the lilypond-book script, could you try
> following the instructions here:
> http://lilypond.org/macos-x.html
> to create executables, and see if that fixes the problem.
>
> Kevin
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user