----- Original Message ----- From: "Robert Neumann" <[EMAIL PROTECTED]>
To: <lyx-users@lists.lyx.org>
Sent: Thursday, August 11, 2005 11:22 AM
Subject: vertical alignment (center text vertically)



Hello,
I'm looking for a way to center a multiline text horizontally and vertically on a page.
(I'm planing to write something like vocabulary cards). The horizontal
alignment is no problem but how to center the text vertically?
thanks
Robert


In ERT put

\vspace*{\fill}

before and after you text and it will align it centrally.

Just so you understand the ERT and for future reference. On a page you can use \vfill to provide a space on a page between objects such that they fill the page. However if you put \vfill as the first of last thing on a page it is removed.

However \vspace* is not removed and the \fill command makes it equivalent to \vfill

Obviously you could also set it to a length if you didn't want it centred.

e.g. \vspace*{2cm}

Hope this helps

Geoff

Reply via email to