Any number of InsetLayouts can be placed in a module. You will want to
make sure that you define a new macro, however.
Cheers,
Rob
Sent from Rob's Palm
On Jan 15, 2010, at 3:16 PM, "stephen's mailinglist account" <stephen4mailingli...@googlemail.com
> wrote:
Can more than one inset layout be placed in a module? Or does this
(landscape longtable) have to be a second module?
2010/1/15 stephen's mailinglist account <stephen4mailingli...@googlemail.com
>:
2010/1/15 Rob Oakes <lyx-de...@oak-tree.us>:
Dear Daniel, Liviu and Other LyX Users,
Daniel and Liviu, thank you very much for the recommendations and
for the link. I've been experimenting with the \afterpage package
all morning, and I am very happy to report that it works
famously. I am able to exactly the type of behavior that I wanted
by using the \afterpage{\clearpage LongTable} macro.
Because I've never been a huge fan of using ERT in LyX documents
(at least no more than is necessary), I decided to create a custom
inset that would automatically place long tables at the top of a
new page, while maintaining the wrapping of the text.
The attached module is a first run at that inset. I've been
testing it on a couple of rather complicated documents, and it
works exactly like I want it to. I'm relatively sure that I'll
come across bugs and other such stuff, so I'm sure that it will
get posted to my website at some point.
I am forwarding it to the group in the hope that others will find
it useful.
Cheers,
Rob Oakes
that seems to work very well thank you very much. Float the long
table to the top of a page. Table breaks and text continues after
table finishes on second page.
module can also be modified for putting longtables sideways on a page
change preamble to this
\usepackage{afterpage}
\usepackage{pdflscape}
\newcommand{\longtablelandscapepage}[1]{%
\afterpage{\clearpage\begin{landscape}
{#1}\end{landscape}}}
--
Stephen
--
Stephen