2

I'm using default settings in Lyx for document class etc., and use several small shaded boxes (via Insert -> Box -> Shaded Background). How do I decrease the amount of vertical space above and below these boxes? It is much more than for a Simple Frame box. Thanks!

1

You can control the space above and below a box individually by inserting this TeX code

\vspace{-0.2cm}

or whatever distance you like better.

| improve this answer | |
  • Great, that works. Is there a way to re-define \begin{shaded} or \parbox so that it always includes a \vspace{-0.5cm}% before the normal TeX code? – Des Nov 9 '13 at 2:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.