[OS X TeX] LaTeX question
Gary L. Gray
glgray at me.com
Sun Aug 12 15:11:55 EDT 2012
On Aug 9, 2012, at 11:05 PM, Michael Sharpe <msharpe at ucsd.edu> wrote:
> On Aug 9, 2012, at 7:11 PM, Gary L. Gray wrote:
>
>> Hi All,
>>
>> After trying everything I could think of and searching the web, I have been unable to solve a formatting problem.
>>
>> I would like to create a list for which each entry is a displayed equation. As you can see in the following simple example (the last item is commented out -- more on that soon), LaTeX pushes the baseline of the equation well below the baseline of the bullet. If I wrap the displayed equation environment in a \raisebox and raise it zero length, the baselines align perfectly.
>>
>> \documentclass[12pt,fleqn]{article}
>> \usepackage{amsmath}
>>
>> \begin{document}
>>
>> \begin{itemize}
>> \item
>> \begin{equation*}
>> y = \int \sin x \,dx + x^{2}
>> \end{equation*}
>> \item
>> \raisebox{0pt}{
>> \begin{equation*}
>> y = \int \sin x \,dx + x^{2}
>> \end{equation*}
>> }
>> %\item
>> %\raisebox{0pt}{
>> %\begin{align*}
>> %y &= \int \sin x \,dx \\
>> %&\qquad{} + x^{2}
>> %\end{align*}
>> %}
>> \end{itemize}
>>
>> \end{document}
>>
>> If you now uncomment the content of the last item, it fails to typeset. This happens for every multiline displayed equation (e.g., align, multline, gather, etc.). Does anyone know how to raise multiline displayed equations in the same way I have done for the equation* equation?
>>
>
> I don't know the answer to your question, but the following workaround may be close enough.
>
> \documentclass[12pt,fleqn]{amsart}
> %\usepackage{amsmath}
> \makeatletter
> \def\tagform@#1{\maketag@@@{\ignorespaces#1\unskip\@@italiccorr}}
> \makeatother
>
> \begin{document}
>
>
> \[
> y = \int \sin x \,dx + x^{2}\tag{$\bullet$}
> \]
>
> \begin{align*}
> y &= \int \sin x \,dx \tag{$\bullet$}\\
> &\qquad{} + x^{2}
> \end{align*}
>
>
> \end{document}
Thanks Michael. Unfortunately, I am using some other things behind the scenes (in particular, several thousand lines worth of macros) that prevent me from switching to amsart.
Thank you again.
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20120812/a9fa45b8/attachment.html>
More information about the MacOSX-TeX
mailing list