____ ____
| || |
| || |
---- ----
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
> ____ ____
> | || |
> | || |
> ---- ----
> \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
>
>
> 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
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
--
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