Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vertical alignment of graphics and minipages

2,663 views
Skip to first unread message

Mats Granskog

unread,
May 12, 2000, 3:00:00 AM5/12/00
to

I am trying to make an page with two minipages beside
each other (landscape, article)

____ ____
| || |
| || |
---- ----

inside the left minipage I would like to put three eps
files side by side, with the top of the eps files aligned
on the same level. How can I vertically align the eps
in this manner?

However, at the moment I get the bottoms of the eps files
aligned on the same level (at the bottom of the minipage),
and the minipage which should be on the right hand side jumps
to a new page. I'm using the following

\begin{minipage}{0.5\textwidth}
\includegraphics[width=2cm]{file1.eps}
\hfill
\includegraphics[width=2cm]{file2.eps}
\hfill
\includegraphics[width=2cm]{file2.eps}
\end{minipage}


\begin{minipage}{0.5\textwidth}

text

\end{minipage}

How to solve this? and how to align the top of the minipages to the
same level?

thanks,

-- mats


Xiaotian Sun

unread,
May 12, 2000, 3:00:00 AM5/12/00
to
Mats Granskog <ma...@iki.fi> wrote:

> ____ ____
> | || |
> | || |
> ---- ----


> \begin{minipage}{0.5\textwidth}

> text

> \end{minipage}

try this

\begin{minipage}[t]{.5\textwidth}
blah blah blah ...
\end{minipage}%
\begin{minipage}[t]{.5\textwidth}
blah blah blah ...
\end{minipage}

Xiaotian

> thanks,

> -- mats

>
>

Donald Arseneau

unread,
May 12, 2000, 3:00:00 AM5/12/00
to
Mats Granskog <ma...@iki.fi> writes:

> inside the left minipage I would like to put three eps
> files side by side, with the top of the eps files aligned
> on the same level. How can I vertically align the eps
> in this manner?

Put each eps in a top-aligned minipage or tabular. (Or
is there an \includegraphics option to specify reference
point? "origin" isn't it, although it would be useful.)
Just specifying [t] isn't enough because that uses the
first *baseline*; you have to put something above the eps.

\begin{minipage}[t]{0.5\textwidth}
\parbox[t]{2cm}{\vspace{0pt}\includegraphics[width=2cm]{file1.eps}}
\hfill
\parbox[t]{2cm}{\vspace{0pt}\includegraphics[width=2cm]{file2.eps}}
\hfill
\parbox[t]{2cm}{\vspace{0pt}\includegraphics[width=2cm]{file3.eps}}
\end{minipage}

Donald Arseneau as...@triumf.ca

Mats Granskog

unread,
May 12, 2000, 3:00:00 AM5/12/00
to
thanks Donald,

that helped with the vertical alignment in the left hand side
minipage. BUT, why does the second minipage, with just text
in it, jump to a new page? Can it be forced to stay on the same
page?

the next minipage looks like

\begin{minipage}{0.5\textwidth}
\begin{itemize}
\itemsep 1cm
\item text1
\item text2
\end{itemize}
\end{minipage}

however when running latex the following is outputted

Overfull \hbox (18.94064pt too wide) in paragraph at lines 89--113
[]$[]$ $[]$
[4] [5] <file1.eps> <file2.eps> <file3.eps> [6] [7]
(file.aux) )


-mats-


Donald Arseneau <as...@triumf.ca> wrote:

: Put each eps in a top-aligned minipage or tabular. (Or

: is there an \includegraphics option to specify reference
: point? "origin" isn't it, although it would be useful.)
: Just specifying [t] isn't enough because that uses the
: first *baseline*; you have to put something above the eps.

: \begin{minipage}[t]{0.5\textwidth}
: \parbox[t]{2cm}{\vspace{0pt}\includegraphics[width=2cm]{file1.eps}}
: \hfill
: \parbox[t]{2cm}{\vspace{0pt}\includegraphics[width=2cm]{file2.eps}}
: \hfill
: \parbox[t]{2cm}{\vspace{0pt}\includegraphics[width=2cm]{file3.eps}}
: \end{minipage}

: Donald Arseneau as...@triumf.ca

--



Xiaotian Sun

unread,
May 12, 2000, 3:00:00 AM5/12/00
to
i replied in my post.

you need put a % after the first \end{minipage} like this

......
\end{minipage}%
\begin{minipage}{.5\textwidth}
......

and remember don't put an empty line between the two minipages. otherwise
LaTeX will put a space or regard them as two paragraphes.

Xiaotian

0 new messages