Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have the following code, in which I fit three logos into a box:

  \setlength\fboxsep{0pt}
  \setlength\fboxrule{0.5pt}
    \fbox{
        \begin{minipage}{14em}
            \includegraphics[height=4em]{images/logo1.png} \\
            \includegraphics[height=4em]{images/logo2.png} 
            \includegraphics[height=4em]{images/logo3.jpg}
        \end{minipage}
    }
  }

Now, I don't want the borders/margins of this box to appear. Is there an option somewhere to do this?

Thanks.

share|improve this question
1  
It's a FrameBOX instead you can use an \mbox. See this : tex.stackexchange.com/questions/83930/… –  percusse Nov 29 '12 at 18:22
1  
Just drop the use of \fbox, or set \fboxrule to 0pt (not 0.5pt). –  Werner Nov 29 '12 at 18:26
    
Setting it to 0pt worked, thank you! –  Ricky Robinson Nov 29 '12 at 18:27
1  
why use fbox with 0pt rules? that just causes TeX to do a lot of work for no visible effect? just use \mbox instead as in the first comment. (Note that your box has a word space either side of the minipage, which you may want to omit by putting % as in \mbox{% –  David Carlisle Nov 29 '12 at 18:35
add comment

2 Answers

up vote 7 down vote accepted

You should simply write

\begin{minipage}{14em}
  \includegraphics[height=4em]{images/logo1.png} \\
  \includegraphics[height=4em]{images/logo2.png}
  \includegraphics[height=4em]{images/logo3.jpg}
\end{minipage}

There is no need to enclose the minipage into an \fbox (which by default draws the borders) nor to set parameters. A minipage environment by itself forms a box (without drawing the borders).

share|improve this answer
add comment

Here's an example which illustrates one way to achieve this effect.

\documentclass{article}
\begin{document}
{\setlength{\fboxsep}{0pt}%
\fbox{\begin{minipage}{14em}
    \rule{14em}{0.4pt}\rule{0.4pt}{4em} \\
    \rule{14em}{0.4pt}\rule{0.4pt}{4em}
    \rule{14em}{0.4pt}\rule{0.4pt}{4em}
\end{minipage}}}
\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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