Doesn't seem to work. I added the local layout as you suggested. Then I tried insert float/algorithm. I'm guessing this is how I use the algorithm? This gives an error: not in outer par mode. Am I missing something?
On Thu, Oct 10, 2024 at 3:09 AM Jürgen Spitzmüller <jspi...@gmail.com> wrote: > Am Mittwoch, dem 09.10.2024 um 09:25 -0400 schrieb Neal Becker: > > How do I write an algorithm in a LyX beamer slide? > > tl;dr > > Put the following in Document > Settings > Local Layout: > > Float > Type algorithm > GuiName Algorithm > Placement tbp > AllowedPlacement H > AllowsSideways 0 > Extension loa > NumberWithin none > Style plain > ListName "List of Algorithms" > IsPredefined true > UsesFloatPkg false > ListCommand listofalgorithms > RefPrefix alg > PrettyFormat "Algorithm ##" > Requires algorithm2e > End > > > Actual issue: > > It works with the algorithm2e package if "H" placement is used, but our > algorithm2e module for some reason does not offer H. So the local > layout code above creates an algorithm2e float with only H placement > for your use case. > > Longer term, we should add this placement option to the module. > > HTH > -- > Jürgen > -- > lyx-users mailing list > lyx-users@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-users > -- *Those who don't understand recursion are doomed to repeat it*
-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users