Using LuaLaTex with Mac TeXLive 2020 and LilyPond 2.20 (was: Spacing of systems while using lyluatex)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Using LuaLaTex with Mac TeXLive 2020 and LilyPond 2.20 (was: Spacing of systems while using lyluatex)

Jacques Menu Muzhic
Hello folks,

Thanks to Samuel and Fernando, I’ve been able to set these two Lua*TeX+se.engine files on Mac OS Mojave, taken from https://github.com/gregorio-project/gregorio/tree/master/contrib/TeXShop:

menu@macbookprojm: ~/Library/TeXShop/Engines > ls -sal
total 56
0 drwxr-xr-x  10 menu  admin   320 Aug 26 18:05 .
0 drwxr-xr-x  20 menu  admin   640 Nov 26  2019 ..
0 drwxr-xr-x  29 menu  admin   928 Nov 26  2019 Inactive
8 -rwxr-xr-x   1 menu  admin  2526 May 19  2008 Lilypond-LaTeX.engine
8 -rwxr-xr-x   1 menu  admin  1390 May 19  2008 Lilypond.engine
8 -rwxr-xr-x   1 menu  admin   200 Aug 26 17:58 LuaLaTeX+se.engine
8 -rwxr-xr-x   1 menu  admin   198 Aug 26 18:05 LuaTeX+se.engine
8 -rwxr-xr-x   1 menu  admin    72 Aug 20  2007 XeLaTeX.engine
8 -rwxr-xr-x   1 menu  admin    69 Aug 20  2007 XeTeX.engine
8 -rwxr-xr-x   1 menu  admin  1282 May 19  2008 convert-ly.engine


menu@macbookprojm: ~/Library/TeXShop/Engines > cat LuaTeX+se.engine
#!/bin/bash

if [[ -n ${2:+x} ]]; then
    echo "I will add $2 to the input path"
    export TEXINPUTS="$2//:"
    export LUAINPUTS="$2//:"
fi
luatex --shell-escape -file-line-error -synctex=1 "$1"


menu@macbookprojm: ~/Library/TeXShop/Engines > cat LuaLaTeX+se.engine
#!/bin/bash

if [[ -n ${2:+x} ]]; then
    echo "I will add $2 to the input path"
    export TEXINPUTS="$2//:"
    export LUAINPUTS="$2//:"
fi
lualatex --shell-escape -file-line-error -synctex=1 "$1"


Then my test file, attached, is handled alright - see below.

Hope this helps others!

JM

--









try_lyluatex_result.png (1M) Download Attachment
try_lyluatex.tex (934 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Using LuaLaTex with Mac TeXLive 2020 and LilyPond 2.20 (was: Spacing of systems while using lyluatex)

Jacques Menu Muzhic
Ooops, sorry Claire, forgot to credit you for thanks too!

JM

> Le 26 août 2020 à 18:36, Jacques Menu <[hidden email]> a écrit :
>
> Hello folks,
>
> Thanks to Samuel and Fernando, I’ve been able to set these two Lua*TeX+se.engine files on Mac OS Mojave, taken from https://github.com/gregorio-project/gregorio/tree/master/contrib/TeXShop:
>
> menu@macbookprojm: ~/Library/TeXShop/Engines > ls -sal
> total 56
> 0 drwxr-xr-x  10 menu  admin   320 Aug 26 18:05 .
> 0 drwxr-xr-x  20 menu  admin   640 Nov 26  2019 ..
> 0 drwxr-xr-x  29 menu  admin   928 Nov 26  2019 Inactive
> 8 -rwxr-xr-x   1 menu  admin  2526 May 19  2008 Lilypond-LaTeX.engine
> 8 -rwxr-xr-x   1 menu  admin  1390 May 19  2008 Lilypond.engine
> 8 -rwxr-xr-x   1 menu  admin   200 Aug 26 17:58 LuaLaTeX+se.engine
> 8 -rwxr-xr-x   1 menu  admin   198 Aug 26 18:05 LuaTeX+se.engine
> 8 -rwxr-xr-x   1 menu  admin    72 Aug 20  2007 XeLaTeX.engine
> 8 -rwxr-xr-x   1 menu  admin    69 Aug 20  2007 XeTeX.engine
> 8 -rwxr-xr-x   1 menu  admin  1282 May 19  2008 convert-ly.engine
>
>
> menu@macbookprojm: ~/Library/TeXShop/Engines > cat LuaTeX+se.engine
> #!/bin/bash
>
> if [[ -n ${2:+x} ]]; then
>    echo "I will add $2 to the input path"
>    export TEXINPUTS="$2//:"
>    export LUAINPUTS="$2//:"
> fi
> luatex --shell-escape -file-line-error -synctex=1 "$1"
>
>
> menu@macbookprojm: ~/Library/TeXShop/Engines > cat LuaLaTeX+se.engine
> #!/bin/bash
>
> if [[ -n ${2:+x} ]]; then
>    echo "I will add $2 to the input path"
>    export TEXINPUTS="$2//:"
>    export LUAINPUTS="$2//:"
> fi
> lualatex --shell-escape -file-line-error -synctex=1 "$1"
>
>
> Then my test file, attached, is handled alright - see below.
>
> Hope this helps others!
>
> JM
>
> --
>
> <try_lyluatex_result.png>
>
>
> <try_lyluatex.tex>
>