algorithm in beamer slide?
Neal Becker
ndbecker2 at gmail.com
Thu Oct 10 12:56:28 UTC 2024
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 <jspitzm at 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 at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
--
*Those who don't understand recursion are doomed to repeat it*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20241010/0f905a77/attachment-0001.html>
More information about the lyx-users
mailing list