f

#### vertical align of minipages in enumerate environment

I'm trying to align the top of two minipages in an enumerate environment,
where the second minipages contains an array in math mode. The brace
obtained by \left\{ does not have the right height and I'm not able to
align both  minipages. Here is a code sample (compiled with teTeX)

\documentclass[a4paper,10pt]{article}
\usepackage{enumerate}
\begin{document}
Text
\begin{enumerate}[\bf 1.]
\item \begin{minipage}[t]{0.5\linewidth}
Text
\end{minipage}
\hfill
\begin{minipage}[t]{0.5\linewidth} $\left\{ \begin{array}[t]{lcl} a &=& b\\ c &=& d\\ e &=& f\\ \end{array}\right.$
\end{minipage}
\item Deuxi\eme items.
\end{enumerate}
\end{document}

Any suggestion would be appreciated

Regards

 0
2/11/2006 12:08:55 AM
comp.text.tex 39029 articles. 3 followers.

3 Replies
663 Views

Similar Articles

[PageSpeed] 21

pirouz djoharian wrote:
> I'm trying to align the top of two minipages in an enumerate environment,
> where the second minipages contains an array in math mode. The brace
> obtained by \left\{ does not have the right height and I'm not able to
> align both  minipages. Here is a code sample (compiled with teTeX)
>
> \documentclass[a4paper,10pt]{article}
> \usepackage{enumerate}
> \begin{document}
> Text
> \begin{enumerate}[\bf 1.]
> \item \begin{minipage}[t]{0.5\linewidth}
> Text
> \end{minipage}
> \hfill
> \begin{minipage}[t]{0.5\linewidth} $> \left\{ > \begin{array}[t]{lcl} > a &=& b\\ > c &=& d\\ > e &=& f\\ > \end{array}\right.$
> \end{minipage}
> \item Deuxi\eme items.
> \end{enumerate}
> \end{document}
>
> Any suggestion would be appreciated

I have wrote a (very long) suggestion in fctt.  Why do you post in ctt
and fctt at the same time?  Do you know that $\textrm{ctt} \cap \textrm{ctt} \neq \emptyset$ ?

Well. Read the answer in fctt and post the translation in ctt!

Jean-C�me Charpentier

 0
2/11/2006 11:16:05 AM
> $\textrm{ctt} \cap \textrm{ctt} \neq \emptyset$ ?

you're absolutely right ;-) It's not very empty

/daleif

 0
daleif (791)
2/11/2006 12:04:33 PM
pirouz djoharian wrote:

> I'm trying to align the top of two minipages in an enumerate
> environment, where the second minipages contains an array in math
> mode. The brace obtained by \left\{ does not have the right height
> and I'm not able to align both  minipages. Here is a code sample
> (compiled with teTeX)
>
> \documentclass[a4paper,10pt]{article}
> \usepackage{enumerate}
> \begin{document}
> Text
> \begin{enumerate}[\bf 1.]
> \item \begin{minipage}[t]{0.5\linewidth}
> Text
> \end{minipage}
> \hfill
> \begin{minipage}[t]{0.5\linewidth} $> \left\{ > \begin{array}[t]{lcl} > a &=& b\\ > c &=& d\\ > e &=& f\\ > \end{array}\right.$
> \end{minipage}
> \item Deuxi\eme items.
> \end{enumerate}
> \end{document}
>
> Any suggestion would be appreciated
>
> Regards

The vertical alignment for minipages is not always very clear.
Sometimes it seems to behave a little strange, for more details see
e.g. LaTeX Companion. But in this case I think it behaves just as it is
supposed to. The problem is that inter-line math consists of an array
that makes it too high. Consider

Text text text text text text text text text text text text text text
text text text text text text text text text text text text text text
$\left\{ \begin{array}{@{}l@{}c@{}l} a &=& b\\ c &=& d\\ e &=& f\\ \end{array}\right.$
text text text text text text text text text text text text text text
text text text text text text text text text text text text text text

to see the problem that the baseline is approximately half a row below
the centre. That means that the second minipage aligns at the baseline
of the first row, as it is supposed to.

I see two ways of fixing it. The first starts the minipage with an
empty line and then moves back up:

\item \begin{minipage}[t]{0.5\linewidth}
Text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text
\end{minipage}%
\begin{minipage}[t]{0.5\linewidth}
\strut\par\vspace*{-\baselineskip}
$\left\{ \begin{array}{@{}l@{}c@{}l} a &=& b\\ c &=& d\\ e &=& f\\ \end{array}\right.$
\end{minipage}

The second tries to fix the position of the minipage with use of
\raisebox. For this solution you also need the calc.sty:

\item \begin{minipage}[t]{0.5\linewidth}
Text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text
\end{minipage}%
\raisebox{0.5em-0.5\totalheight}{%
\begin{minipage}[t]{0.5\linewidth}
$\left\{ \begin{array}{@{}l@{}c@{}l} a &=& b\\ c &=& d\\ e &=& f\\ \end{array}\right.$
\end{minipage}}

(Personally I like the second best)

/Stefan

--

`
 0
2/15/2006 8:19:54 PM

Similar Artilces:

vertical text alignment across a row in tabular environment
Synopsis: --------- I need help aligning text of each cell across a row to the bottom of that row. Elaboration: ------------ (best viewed in fixed-length font) Consider the following CME: \documentclass{paper} \begin{document} \begin{tabular}{p{2cm}l} selected item name & description \\\hline rope & a long flexible object made of intertwined threads\\ \end{tabular} \end{document} it will produce the following output: selected item description name ----------------------------------------------------------------- rope a long flexible object made of intertwined threads However, I want to "push down" the text of each cell to the bottom of the first row to touch the \hline, achieving the following effect: selected item name description ----------------------------------------------------------------- rope a long flexible object made of intertwined threads How can I do that? Regards, -- George \documentclass{paper} \usepackage{array} \begin{document} \begin{tabular}{b{2cm}l} selected item name & description \\\hline rope & a long flexible object made of intertwined threads\\ \end{tabular} \end{document} % Martin Tried it, MikTeX didn't like "b" in the arguments. Moreover, I want that "feature" to hold for the first line only and even if that worked it wouldn't solve my problem (because it would set the alignment for all rows). Any suggestions? Well, ...

Vertical Align text in text uicontrol
All, How can I vertically align (vertically center) text in a text uicontrol? hEditXmin=uicontrol(... 'Style','Edit',... 'Parent',hPanelWindow,... 'Units','Pixels',... 'Position',[70,400,50,20],... 'String','Xmin') In article <ef5398e.-1@webcrossing.raydaftYaTP>, David Arnold <dwarnold45@suddenlink.net> wrote: >How can I vertically align (vertically center) text in a text >uicontrol? >hEditXmin=uicontrol(... > 'Style','Edit',... > 'Parent',hPanelWind...

Text vertical alignment
Hello I'm trying to rotate some text using the updir and baseline settings but nothing seems to be happening. I've tried plenty of different perpendicular (and non-perpendicular) vectors but there doesn't seem to be any change whatsoever in the orientation of the text., so I was wondering if anyone here could spot the problem with it? The point is to have a piece of text vertical along the side of a printed page with an identifier number on. I tried doing it using an IDLgraxis and that worked, but it put the index number closer to the plot than the proper axis label (whi...

vertical alignment of text?
Hi, I am experimenting with a roll-over but am struggling to get the text to align, vertically, in the middle: #sidebar a:link, #sidebar a:visited { border: 1px solid #7A95CA; display: block; height: 30px; text-decoration: none; color: #7A95CA; padding: 0px 6px 0px 14px; } #sidebar a:hover, #sidebar a:active { border: 1px solid #7A95CA; height: 30px; text-decoration: underline; color: #FFFFFF; padding: 0px 6px 0px 14px; background-color: #7A95CA; } I have set the height to 30px, but the text appears to be aligning to the "top&q...

vertically aligned text
I am using the option to vertically align text. When I press "enter" to start a new line the text appears to the left of the first line. Seems to me it should be on the right side of the previous line. Is there a setting/control for this? -- Mahalo and Aloha from the Big Island of Hawaii, Gene Check the justification. Aloha wrote: > I am using the option to vertically align text. When I press "enter" to > start a new line the text appears to the left of the first line. Seems to > me it should be on the right side of the previous line. Is there a > ...

Static text
Here comes the next chapter in my struggles with static text labels. I have two static text labels, and which are both placed in a uipanel which serves as the background. I would like the (vertical) center of the text on both labels to be aligned to each other - which I've accomplished - and to the center of the uipanel. However, the text in the static text label is not necessarily (even when I set the height to the minimum as calculated by the Extent property) the same as the center of the uicontrol. Is there any way to set the vertical alignment of the string inside the uicontrol rect...

Different vertical alignment of the text
To my surprise i noticed that the text on even pages is vertically placed lower than on the odd sides. The total height of text seems to be the same but the positioning that differs. I've heard that for even/odd sides, one can specify differently wide marigins and different horizontal placement. Is this true for vertical dimension as well? Why would anybody want that?! How can one resolve this issue? -- V�nligen Konrad --------------------------------------------------- Sleep - thing used by ineffective people as a substitute for coffee Ambition - a poor excuse for not having enough sence to be lazy --------------------------------------------------- Am Tue, 15 May 2007 12:22:19 +0200 schrieb Konrad Viltersten: > To my surprise i noticed that the text on even pages is > vertically placed lower than on the odd sides. The total > height of text seems to be the same but the positioning > that differs. > > I've heard that for even/odd sides, one can specify > differently wide marigins and different horizontal > placement. Is this true for vertical dimension as well? It is certainly not the default. > Why would anybody want that?! How can one resolve > this issue? Make a complete minimal example. -- Ulrike Fischer Ulrike Fischer wrote/skrev/kaita/popisal/schreibt : > Am Tue, 15 May 2007 12:22:19 +0200 schrieb Konrad Viltersten: > >> To my surprise i noticed that the text on even pages i...

Vertical text alignment in postscript
The digital media boom may not be over just yet. Bustle, a media startup focused on creating content for millennial women, has raised \$11.5 ...

Republican Presidential Frontrunners Extremely Anti-Environment/Health
The top contenders for the Republican presidential nomination have repeatedly indicated extreme anti-environmental policy preferences, demonstrating ...

Resources last updated: 3/11/2016 1:05:46 PM