How to Insert a Custom Float
Ricardo Berlasso
rgb.mldc at gmail.com
Mon Jun 5 14:47:44 UTC 2023
El lun, 5 jun 2023 a las 16:25, Doug Martin (<martinrd3d at gmail.com>)
escribió:
> Stoyan Stoyanov and I have a paper accepted by a Journal that does not
> use Figures or Tables,
> and instead uses Exhibits for both. Stoyan points out the following:
>
> We can load the newfloat package and define a custom Exhibit float
> environment trivially in the preamble in this way:
>
> \usepackage{newfloat}
> \DeclareFloatingEnvironment{exhibit}
>
> Then, in latex one use it the usual way:
> \begin{exhibit}
> ...
> \end{exhibit}
>
> Although we can include those two lines in the preamble in LyX, the menu
> in Inset -> Float does not have a "custom" option.
> How can we insert a custom float in LyX?
>
> Any guidance that anyone can provide would be very much appreciated.
>
You need to define a new local layout (Documents → Settings → Local
layout). The following example uses the photo package, but you can adapt it
to your needs. Once set, you'll have the a new inset under Insert → Float.
Format 66
AddToPreamble
\usepackage[]{photo}
\usepackage[english]{babel}
\addto\captionsenglish{
\def\photoname{Photograph}
\def\listphotoname{Index of Photographs}
}
EndPreamble
Float
Type photo
GuiName "Photo"
Placement tbp
Extension loscf
NumberWithin none
Style plain
ListCommand listofphotos
ListName "Index of Photographs"
RefPrefix Photo
IsPredefined 1
UsesFloatPkg 0
End
Regards,
Ricardo
>
> Doug Martin
>
> --
> lyx-users mailing list
> lyx-users at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20230605/0f4807f1/attachment-0001.html>
More information about the lyx-users
mailing list