Elsevier's cas layouts

Marco Morandini marco.morandini at polimi.it
Fri Jul 3 15:09:07 UTC 2026


I hereby grant permission to license my contributions to LyX under the GNU General Public License, version 2 or later.

Marco Morandini


________________________________________
From: Jürgen Spitzmüller <jspitzm at gmail.com>
Sent: Friday, July 3, 2026 5:03 PM
To: Marco Morandini; lyx-devel at lists.lyx.org
Subject: Re: Elsevier's cas layouts

Am Mittwoch, dem 20.05.2026 um 16:15 +0200 schrieb Marco Morandini:
> 1) is required because otherwise the table caption is not aligned
> with the table.
> However, if one sets any option (e.g. table placement) by right-click
> onto the Table inset
> then the Argument trick does not work.
>
> Is there a better way to deal with this?

Yes:

InsetLayout Flex:Table_Options
        LyXType                 custom
        Decoration              classic
        LabelString             "Table Options"
        MenuString              "Table Options|O"
        PassThru                1
        LatexType               command
        LatexName               SetKeys[cas/tbl]
        LabelFont
          Family                Roman
          Color                 red
        EndFont
        ResetsFont              0
        MultiPar                0
End

With this you can specify the options (outside the float) via
\SetKeys[cas/tbl]{<options>} (which is what the class internally does
as well, only with global effect)

I have (after a while, sorry for that) had a closer look at the layout
and only did a couple of polishments and minor fixes. See attachments.

I can include this in LyX (master) if you provide us with a license
agreement message to this list similar to this one:
https://marc.info/?l=lyx-devel&m=174757439207494

--
Jürgen


More information about the lyx-devel mailing list