[OS X TeX] Item align

David Arnold dwarnold45 at suddenlink.net
Tue Jun 21 18:44:08 EDT 2011


Got an error on that:

./Untitled.tex:20: Undefined control sequence.
l.20 \hspace{.5cm}\xy
                     *!D(.125)\xybox{\xymatrix @R=0pt @C=0pt {
? 

D.

On Jun 21, 2011, at 3:40 PM, Ross Moore wrote:

> 
> On 22/06/2011, at 8:12 AM, David Arnold wrote:
> 
>> All,
>> 
>> I am looking for a way to align the baseline of the first equation with the baseline of the item number.
>> 
>> \documentclass{article}
>> \usepackage{amsmath}
>> \begin{document}
>> 
>> \begin{enumerate}
>> 
>> \item
>> \begin{align*}
>> 2x+3y&=4\\
>> 3x-4y&=12 
>> \end{align*}
>> 
>> \end{enumerate}
>> \end{document}
>> 
>> I don't necessarily need to use the align environment.
> 
> Most certainly you do not want it, since it is an outer displayed-math environment.
> AMSmath provides other methods for inner alignment, but you many have to fiddle with 
> the exact vertical placement.
> 
> e.g. here are 3 different solutions using sets of parameters to adjust the spacing:
> 
> \begin{enumerate}
> 
> \item
> \begin{align*}
> 2x+3y&=4\\
> 3x-4y&=12 
> \end{align*}
> 
> \item
> \hspace{.5cm}\lower.65\baselineskip\hbox{$\begin{aligned}
> 2x+3y&=4\\
> 3x-4y&=12 
> \end{aligned}$}
> 
> \item
> \hspace{.5cm}\xy*!D(.125)\xybox{\xymatrix @R=0pt @C=0pt {
> 2x+3y&=&4\\
> 3x-4y&=&12 
> }}\endxy
> 
> \item
> \hspace{.5cm}\xy*+!U(2.75)\xybox{$\begin{aligned}
> 2x+3y&=4\\
> 3x-4y&=12 
> \end{aligned}$}\endxy
> 
> \end{enumerate}
> 
> <texshop_image.jpeg>
>> In fact, I don't need the system to be centered. It could be indented a bit away from the item number.
>> 
>> Any thoughts or suggestions are welcome.
>> 
>> Thanks.
>> 
>> David
> 
> 
> Hope this helps,
> 
> 	Ross
> 
> ------------------------------------------------------------------------
> Ross Moore                                       ross.moore at mq.edu.au 
> Mathematics Department                           office: E7A-419      
> Macquarie University                             tel: +61 (0)2 9850 8955
> Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
> ------------------------------------------------------------------------
> 
> 
> 
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20110621/d64fdbab/attachment.html>


More information about the MacOSX-TeX mailing list