I would like to display a single equation in the format
(equation -- centered) (a>1)
That is, the equation is centered as usual, but there is
a second bit of math presented so that its right edge aligns
with the right edge of text on the page.
Any suggestions?
Thanks!
jj
[Added later: thanks for the solution! Incidentally, I had to add [-baselineskip] after the second \\ to get the desired effect.]
Math & Science ⇒ centered equation with constraints at right edge
centered equation with constraints at right edge
Last edited by jj39 on Sun Aug 29, 2010 5:46 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

centered equation with constraints at right edge
Hi,
it's a rather unusual layout, but you can try something like this:
it's a rather unusual layout, but you can try something like this:
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
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 text
{\setlength\multlinegap{0pt}
\begin{multline*}
\phantom{\ }\\[-\baselineskip]
a=b+c\\
\shoveright{+d+e+f.}\\
\end{multline*}}
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
-
- Posts: 351
- Joined: Sat Aug 02, 2008 8:47 am
centered equation with constraints at right edge
jj39 wrote:I would like to display a single equation in the format
(equation -- centered) (a>1)
That is, the equation is centered as usual, but there is
a second bit of math presented so that its right edge aligns
with the right edge of text on the page.
Any suggestions?
Thanks!
jj
[Added later: thanks for the solution! Incidentally, I had to add [-baselineskip] after the second \\ to get the desired effect.]
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\usepackage[T1]{fontenc}
\parindent=0pt
\begin{document}
\rule{\linewidth}{1pt}
\begin{align}
(equation & centered) \tag{a>1}
\end{align}
\end{document}
centered equation with constraints at right edge
Yes: I don't know why I assumed that the OP wanted the non-centered expression to appear on a different line.CrazyHorse wrote:HerbertCode: Select all
\documentclass{article} \usepackage{amsmath} \usepackage[T1]{fontenc} \parindent=0pt \begin{document} \rule{\linewidth}{1pt} \begin{align} (equation & centered) \tag{a>1} \end{align} \end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...