Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

FAQ /

FramedBox

Please categorize this page.
<< | Page list | >>

How could I make an itemized list with a frame around it?

See what you think of a table (with one cell and one row), where you a minipage. Then in the minipage you type your list as normal. Here's an example.

Or, you can try the code below, adapted from ShadedBox works (but it's really a hack since the gray-level is set as white as possible. Maybe the \fbox or \framedbox could be used somehow?

Anyway, put this in the preamble:

  \usepackage{color,calc}
\definecolor{shade}{gray}{0.984}
\newenvironment{myFramedBox}[1][]%
        {
        %\setlength{\fboxsep}{-\fboxrule}
        % \footnotesize\normalfont\ttfamily\raggedright
        \setlength{\rightmargin}{\leftmargin}
        \setlength{\itemsep}{-12pt}
        \setlength{\parsep}{20pt}
        \begin{lrbox}{\@tempboxa}%
        \begin{minipage}{\linewidth-2\fboxsep}
        }%
        {
        \end{minipage}%
        \end{lrbox}%
        \fcolorbox{black}{shade}{\usebox{\@tempboxa}}\newline\newline
        }%   

And then put som ERT with \begin{myFramedBox} and start writing your itemized list as normal. Then add another ERT with \end{myFramedBox}

/Christian


CategoryLyx? 

<< | FAQ.PageList | >>

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2006-04-11 09:56 UTC