El lun, 5 jun 2023 a las 16:25, Doug Martin (<martinr...@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@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-users >
-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users