[LyX/master] Amend [7efdbeaddf226/lyxgit]

Jürgen Spitzmüller spitz at lyx.org
Mon Jun 13 19:27:59 UTC 2022


Am Montag, dem 13.06.2022 um 20:10 +0200 schrieb Daniel:
> I am curious, where does one get the 'Non-Floating Figures and
> Tables' 
> module? (It might be relevant to
> https://www.lyx.org/trac/ticket/11734.)

I seem to have written it myself. But it's not a good approach. It
doesn't use Caption InsetLayout, but InsetFlex (see attachment). A
better model are the special captions in the KOMA classes.

-- 
Jürgen
-------------- next part --------------
#\DeclareLyXModule{Non-floating Figures and Tables}
#DescriptionBegin
#Insert captions to figures and tables that do not float.
#DescriptionEnd

# Author: Jürgen Spitzmüller <spitz at lyx.org>

Format 66


InsetLayout Flex:NonFloatingFigure
	LyxType		     custom
	LabelString          non-floating
	LaTeXType	     command
	LatexName            figcaption
	NeedProtect	     1
	MultiPar             false
	Argument 1
		LabelString   "Short Title|S"
		Tooltip       "The caption as it appears in the list of figures/tables"
		InsertCotext  1
	EndArgument
	Preamble
	\usepackage{nonfloat}
	EndPreamble
End

InsetLayout Flex:NonFloatingTable
	CopyStyle            Flex:NonFloatingFigure
	LabelString          non-floating
	LatexName            tabcaption
End

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220613/95ff3d34/attachment.asc>


More information about the lyx-devel mailing list