# How can I remove the border of \fbox?

I don't want to change the colors, I want to remove.

Part of my code:

\fboxsep=0pt
\noindent\fbox{%

\begin{minipage}{0.48\linewidth}
\scalefont{1.1}
\centering
\includegraphics[width=6cm]{png/assinatura}\\[-25pt]
\rule{9cm}{1pt}\\[5pt]
Prof. Dr. Another Example\\
\end{minipage}}%
\hfill%
\fbox{
\begin{minipage}{0.48\linewidth}
\scalefont{1.1}
\centering
\includegraphics[height=3cm]{png/assinatura_mateus.png}\\[-56pt]
\rule{9cm}{1pt}\\[5pt]
Prof. Dr. Example\\
Professor na University  \\
\end{minipage}}%


What I have:

Or, there is another way to do it?

• Welcome to TeX.SX! \fbox is framed box: it's sole purpose is to add a frame around something. It looks to me that your code should work fine if you remove them (and the blank line after the first one). Nov 16 '20 at 22:02
• Have you tried removing the \fbox completely? It seems that you don't want them... (or substitute with an \mbox)... Nov 16 '20 at 22:03
• @PhelypeOleinik and @Rmano, thanks for the suggestions! But when I remove \fbox, the images and signatures goes one under another, instead of side by side. But \mbox solve this problem! Thanks a lot!
– RxT
Nov 16 '20 at 22:07
• @RxT minipages are positioned exactly like letters, they come side by side by default if they fit on the line. Probably you had a blank line in between, which puts them in different paragraphs? Nov 16 '20 at 22:32

Beside minipage you not need any boxes:

\documentclass{article}
\usepackage{graphicx}

\usepackage{lipsum}

\begin{document}
\lipsum[11]

\vspace{2\baselineskip}
\begin{minipage}[t]{0.45\linewidth}
\large
\centering
\includegraphics[height=24mm,width=0.8\linewidth]{example-image-duck}\\[-12mm] %{png/assinatura}
\rule{\linewidth}{1pt}\\[8mm]
Prof. Dr. Another Example\\
\end{minipage}
\hfill
\begin{minipage}[t]{0.45\linewidth}
\large
\centering
\includegraphics[height=24mm,width=0.8\linewidth]{example-image-duck}\\ [-12mm] %{png/assinatura_mateus.png}
\rule{\linewidth}{1pt}\\[8mm]
Prof. Dr. Example\\
Professor na University  \\
\end{minipage}
\end{document}


• +1, but I think the % should go after the \end{minipage}  above the \hfill (where it has no effect) Nov 16 '20 at 22:34
• Thanks alot! Now everything is working fine!
– RxT
Nov 16 '20 at 22:59
• @Rmano, presence or absence of % after end of minipage or \hfill is due to size of space between minipage's not so important. So in this particular case is after \hfill superfluous. Nov 16 '20 at 23:31
• @RxT, you are welcome! Nov 16 '20 at 23:31
• @Zarko yes, in this case, it doesn't matter --- you have a space after the first minipage + an infinity stretchable space. It would matter if you try to make the two minipages equal to exactly half the size of the line. Nov 17 '20 at 6:55