19

I have a \block containing a \itemize:

\begin{block}{title}
  % \scalebox{0.8}{
  \begin{itemize}
      \item 1...
      \item 2...
  \end{itemize}
  % }  
\end{block}

I try to use \scaleboxand resizebox to scale it, but I got an error ERROR: LaTeX Error: Something's wrong--perhaps a missing \item. Could anyone help?

1
  • 2
    use a smaller font size ...
    – user2478
    Aug 19, 2012 at 20:16

1 Answer 1

38

The problem is that the scalebox command needs to operate on a box, and the itemize environment is not in one.

Perhaps the easiest way to fix this is to put it in a vbox

\scalebox{0.8}{%
\vbox{%
    \begin{itemize}
      \item 1...
      \item 2...
     \end{itemize}
 }}  

Or you might prefer a minipage

\scalebox{0.8}{%
\begin{minipage}{\textwidth}
\begin{itemize}
      \item 1...
      \item 2...
  \end{itemize}
\end{minipage}%
}  
4
  • 2
    unsung hero anyone? :P
    – percusse
    Aug 19, 2012 at 20:43
  • @percusse you're right- every cloud has a silver lining :) I don't think anyone would get that badge on tex exchange though- the voting is too good :)
    – cmhughes
    Aug 19, 2012 at 20:51
  • 1
    Don't worry with an upvote, I'm here! :) Aug 20, 2012 at 1:04
  • 1
    Ah.... those totally unintuitive, arbitrary details that make Tex such a painless language to work with...
    – luchonacho
    Mar 17, 2022 at 19:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .