What do I need to do to make LyX preview LilyPond scores inserted by means of the lyLuaTeX package?

2020-02-09 Thread Georger Araujo
Hi,
I would like to have LyX preview LilyPond scores inserted by means of the 
lyLuaTeX package [1], much the same way we can already do with the LilyPond 
Book module [2], i.e. I would like LyX to display scores like the one present 
in p.6 of the lyLuaTeX documentation [3].

I wrote a module (attached) that allows me to insert a LilyPond environment as 
provided by lyLuaTeX (see the attached example -- one needs to enable Document, 
Settings..., Formats, Allow running external programs for it to work) that 
generates a correct PDF, but I don't know how to make LyX preview the score.

Thanks for any help. Best regards,

Georger

[1] https://ctan.org/pkg/lyluatex
[2] https://wiki.lyx.org/LyX/NewInLyX20#lb
[3] http://linorg.usp.br/CTAN/support/lyluatex/lyluatex.pdf


lyluatex.module
Description: Binary data


lyLuaTeX.lyx
Description: Binary data
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


LyX and the algorithm2e package

2011-02-14 Thread Georger Araujo
Hello everybody,
I'm a novice LyX/TeX user. Did any of you manage to get the algorithm2e
package to work in LyX? I tried to copy the module and follow the
instructions in [1], but it didn't work at first; I did a few changes to the
module, which now looks like this:

-
#\DeclareLyXModule[algorithm2e.sty]{algorithm2e float}
#DescriptionBegin
# Wrapper for the algorithm2e environment
#DescriptionEnd
#Requires
#Excludes
#Author: phbaer (many thanks to Chris)

Format 11

Requires algorithm2e

AddToPreamble
\usepackage[algo2e,portuguese]{algorithm2e}
EndPreamble

Float
Type algorithm
GuiName Algorithm2e
Placement tbp
Extension loa
NumberWithin none
Style plain
ListName "List of Algorithms"
LaTeXBuiltin false
End
-

But now my algorithms have the string "Algorithm2e 1" prepended to the
caption, instead of "Algoritmo 1" (my native language is Portuguese).
I am interested in using this package because it can generate a localized
list of algorithms and also localized captions.
Would anybody happen to have a working module? I'm running LyX 1.6.8 with
MiKTeX 2.9 on Windows.

[1] http://phbaer.net/2009/09/09/algorithm2e-module-for-lyx

Regards,

Georger