# equation center, quantifier push right

I am looking for an environment that align equations as the following example (from the book by Dunford & Schwartz) I mean main equation content is centered and variable, quantifier push to the right. note that align with a single equation does not give me the desired result since $f\in F$ is not completely pushed to the right and the integral is not centered.

Well, any idea?

Thanks.

Replay

You can do it with flalign, but I consider it quite bad style. I suggest other two possibilities, the final one is what I'd prefer.

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath}

\begin{document}

\noindent % just for emulating the original
conditions guaranteeing that
\begin{flalign*}
&& \int_{0}^{1} f(s)\phi_{n}(s)\,ds \to 0, &&& f\in F.
\end{flalign*}
Where the functions $f$ and $\phi_{n}$ are taken to be
in certain preassigned blah blah blah blah blah

\bigskip

\noindent % just for emulating the original
conditions guaranteeing that
\begin{equation*}
\int_{0}^{1} f(s)\phi_{n}(s)\,ds \to 0,\qquad f\in F,
\end{equation*}
where the functions $f$ and $\phi_{n}$ are taken to be
in certain preassigned blah blah blah blah blah

\bigskip

\noindent % just for emulating the original
conditions guaranteeing that, for $f\in F$,
\begin{equation*}
\int_{0}^{1} f(s)\phi_{n}(s)\,ds \to 0,
\end{equation*}
where the functions $f$ and $\phi_{n}$ are taken to be
in certain preassigned blah blah blah blah blah

\end{document}



I fixed the obvious typo (dx should clearly be ds) and, in the final two examples, removed the grammatically wrong period before “where”.

The main formula can be centered by making the condition to have zero width (but this wouldn't work with wider main formulas).

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,mathtools}

\begin{document}

\noindent % just for emulating the original
conditions guaranteeing that
\begin{flalign*}
&& \int_{0}^{1} f(s)\phi_{n}(s)\,ds \to 0{,} &&& \mathllap{f\in F}.
\end{flalign*}
Where the functions $f$ and $\phi_{n}$ are taken to be
in certain preassigned blah blah blah blah blah

\bigskip

\noindent % just for emulating the original
conditions guaranteeing that
\begin{equation*}
\int_{0}^{1} f(s)\phi_{n}(s)\,ds \to 0{,}\mathrlap{\qquad f\in F,}
\end{equation*}
where the functions $f$ and $\phi_{n}$ are taken to be
in certain preassigned blah blah blah blah blah

\bigskip

\noindent % just for emulating the original
conditions guaranteeing that, for $f\in F$,
\begin{equation*}
\int_{0}^{1} f(s)\phi_{n}(s)\,ds \to 0,
\end{equation*}
where the functions $f$ and $\phi_{n}$ are taken to be
in certain preassigned blah blah blah blah blah

\end{document}



These variants allow to have the main equation centred between the margins.

The last solution, in case of consecutive equations with quantifiers towards the right margin,lets all quantifiers begin at the same point on the page, the widest ending exactly at the right margin:

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[lf]{MinionPro}
\usepackage[showframe]{geometry}
\usepackage{mathtools, eqparbox}

\begin{document}

\noindent
conditions guaranteeing that
\begin{align*}
&   & ∫_0¹f(s)\phi_n(s)\,d\mkern1mu s & \to 0 &   & \mathrlap{f ∈ F. }
\end{align*}
\begin{align*}
&   & ∫_0¹f(s)g(s)\phi_n(s)\,d\mkern1mu s & \to 0 &   & \mathrlap{f,  g ∈ F. }
\end{align*}
where the functions  $f, g$  and  $\{\phi_n\}$    are  taken to be in certain preassigned
\vskip 5ex

\noindent
conditions guaranteeing that
\begin{flalign*}
&     & ∫_0¹f(s)\phi_n(s)\,d\mkern1mu s &\to 0 && \mathllap{f ∈ F. }
\end{flalign*}
\begin{flalign*}
&     & ∫_0¹f(s)g(s)\phi_n(s)\,d\mkern1mu s &\to 0 & \mathllap{f,  g ∈ F. }&
\end{flalign*}
where the functions  $f, g$  and  $\{\phi_n\}$    are  taken to be in certain preassigned
\vskip 5ex

\noindent
conditions guaranteeing that
\begin{flalign*}
&     & ∫_0¹f(s)\phi_n(s)\,d\mkern1mu s &\to 0 && \llap{\eqparbox{Q}{$f ∈ F.$} }
\end{flalign*}
\begin{flalign*}
&     & ∫_0¹f(s)g(s)\phi_n(s)\,d\mkern1mu s &\to 0 & \llap{\eqparbox{Q}{$f, g ∈ F.$ }}&
\end{flalign*}
where the functions  $f, g$  and  $\{\phi_n\}$    are  taken to be in certain preassigned

\end{document}


Category: horizontal alignment Time: 2016-07-30 Views: 1

## Related post

• Force equation number to be right aligned 2014-03-12

I'm trying to typeset some basic equations with proper numbering. I simply want a single equation to have a right aligned number in the two column environment that I'm using. I tried three approaches, but none was satisfactory. I tried the regular eq

• Can Application Center send push notification to Windows devices when an update is availble? 2016-01-18

According to the below link, Application Center can send push notification when an update is available. It says that Application Center can send for iOS and Android mobile client,but not for blackberry. But it didn't mention about windows devices. Pu

• How to typeset multiple equations center aligned but with single eq. number? 2013-01-15

I want to typeset several equations with only one equation number vertically centered, and every equation horizontally center. I know two options. One is aligned environment within equation, which handles equation number nicely, but the default align

• Center align formula, right align text 2013-08-28

I am trying to write a formula and then number it (5). The formula is meant to be center aligned and the numbering should be right aligned on the same line. This was my best attempt at doing that but when the flushright environment begins it starts a

• Why do these aligned equations pop to the right? 2013-11-26

\documentclass[a4paper]{article} \usepackage{mathtools} \usepackage{amssymb,amsmath} \usepackage{mathtools}%voor Aboxed \usepackage{bm} \begin{document} \begin{align*} \overrightarrow{a_{G'_1}} = \overrightarrow{a_{G'_2}} = \overrightarrow{a_{G'}}\\

• Aligning equations with left and right comment 2014-10-29

I'd like to align multiple equations below each other such that the central operator is always centered, but have a column for commenting on the right and a column for \iff-arrows and \Rightarrow-arrows on the left. This is as far as I got: \begin{al

• Placing equation numbers on the right 2011-10-26

I am new to TeX and am using scribtex to write a maths paper. When I put the followng code, the equation number is automatically displayed on the left, instead of in the right as is usually done. What is the problem and how do I fix it? \documentclas

• Long equation with left and right justified 2012-07-21

Good day to all, I have below equation, the first equation exceeds my margin if written in one line. So I want it appear in two lines which the first line is justified at the left side and the second line is justified at the right. Is this is a good

• How to get OSX Notification Center messages pushed to iPhone? 2014-08-24

Is there a way for all or select Mac OSX Notifation Center entries to be pushed to an iOS device?

• Wrapping lines of an equation with \left and \right parentheses 2014-10-15

I am having trouble formatting the following mathematical expression: \begin{align*} A &= \left(\left(\frac{1}{2},\frac{1}{2}\right) + \sqrt{2}Rot_{-\pi/4}\left\langle 0, \frac{1}{2} \right\rangle, \sqrt{2}Rot_{\pi/4}\left\langle 0, \frac{1}{2} \righ

• Equation number at the right of first line with multline 2015-02-03

This is very similar to A vertically centered equation number on a multline environment, but the answers won't apply to my case it seems. I have \begin{multline} X = \\ LOOOOOOOOOOOOOOOOOOOOOOOOOOONG \end{multline} and like how the output looks witho

• How to indent the equation number to the right? 2015-05-15

\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl} \usepackage{mathtools} \usepackage{amsmath} \begin{document} \begin{equation} \delta{\mathbf{E_e} = \sum \limits_{I=1}^{M} \emph{B}_{LI} \eta_I \label{eq:fortythree} \end{equation} I have couple

• Game Center handling push notifications 2016-01-29

I am building a GKMatch game center game, and already have all the code up to sending the invite to another player, and I have it showing up as a push notification, but when the person clicks on the notification, it just brings them to the main scree

• How to prevent the label of a long equation running into the right margin? 2016-02-01

I have an equation of the form \begin{equation}\label{eq:master} f(x) = E \end{equation} where E is a long expression. The problem is that the label runs into the right margin. What is the proper way to fix this? --------------Solutions-------------

• How to make the div at the screen center not lower right corner? 2016-02-02

The following is want i wanted. Here is my css code: <html> <header> <style type="text/css"> *{margin:0 0 0 0;padding:0 0 0 0} div.block{width:400px;height:121px;border:1px solid red;position:absolute;top:50%;left:50%;} div.box

• How do I center a \Large equation in display mode? 2015-12-08

I have an equation in display mode and would like to make it bigger using \Large, but the equation runs off the right side of the page while there is much room on the left side of the page. The equation would fit if I could just center it. How can I

• How to make text aligned left/center/right in the same line? 2012-05-12

I am trying to align some text to left/center/right in the same line. For example, I want to put my phone number on the left, my name in the center, and my email on the right, how do I do that? --------------Solutions------------- Using \hfill won't

• Left/Center/Right references to subfigures 2012-09-18

I have a figure with three subfigures shown in the code sample below. How can I change the reference to a subfigure so that I have Figure 1 (left), Figure 1 (center), and Figure 1 (right) instead of figure 1.1, 1.2, and 1.3? Also, in the caption I wo

• Move right-aligned paragraph more to the center 2013-12-03

So I am typesetting a little songbook for our Christmas get-together. To make better use of the limited space, I am using the multicol package; no issues there. What I'd like to do is move a whole paragraph horizontally an arbitrary amount of space.