On Thu, 2 Jan 2014 05:28:17 +0000 (UTC)
Premanshu Bhushan  <drpreman...@gmail.com> wrote:

> Hi,
> I have been writing a book in lyx. I am using a lot of shaded boxes
> to highlight information. Is there a way to redesign all of them by
> redefinig them in preamble. For example, can i write a code to reduce
> the width to 0.8 of text width and make them all centered. otherwise
> i will have to manually select all more than 100 boxes and declare
> its property. it defeats the purpose of using styles rather than
> manually formatting. I have been experimenting with renewcommand and
> renewenvironment codes but without much success.
> Sincerely hoping for a reply

What I do is I make a style, named after its purpose, exclusively for
situations conforming to that purpose, that defines the appearance.

If all 100 of your boxes have a single purpose, you need only one
style. I have styles for Tip, Note, Warning and Danger. Often they look
the same, but I have the option of making them look different by
modifying the applicable style. I think what I do is similar to what
you're asking.

If you're wanting to modify boxes applied directly, that's harder, but
probably doable. Unless, of course, in each box, you used specific
commands and numbers.

HTH

SteveT

Steve Litt                *  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance

Reply via email to