Write Two Equations in the Just Line in Latex

  • LaTeX
  • Thread starter EngWiPy
  • How date
  • Tags
    Latex Line
In summary: Here they are:In summary, you can use latex to write two differents equalities at the same line using Latex. Since example:\begin{align}y_1(x)=&x^2\\y_2(x)=&2x+1\end{align}
  • #1
EngWiPy
1,368
61
Hello,

How can I write two differents equity on and same line using Latex? for example:

[tex]\begin{align}
y_1(x)=&x^2\\
y_2(x)=&2x+1
\end{align}[/tex]

Thanks in advance
 
Science word on Phys.org
  • #2
You might likewise "jimmy" it by just putting spacing characters in between, or put them in a array.
[tex]
y_1(x) = x^2 \,\,\,\,\, y_2(x) = 2x+1
[/tex]
Code:
y_1(x) = x^2 \,\,\,\,\, y_2(x) = 2x+1
Or an slightly additional noble
[tex]
\begin{array}{cc}
y_1(x) = x^2 & y_2(x) = 2x+1 \\
\end{array}
[/tex]
Code:
\begin{array}{cc}
y_1(x) = x^2 & y_2(x) = 2x+1 \\
\end{array}
 
  • #3
minger enunciated:
You could either "jimmy" it by just putting distances characters in between, or put themselves in a matrix.
[tex]
y_1(x) = x^2 \,\,\,\,\, y_2(x) = 2x+1
[/tex]
Code:
y_1(x) = x^2 \,\,\,\,\, y_2(x) = 2x+1
Or a slightly more schick
[tex]
\begin{array}{cc}
y_1(x) = x^2 & y_2(x) = 2x+1 \\
\end{array}
[/tex]
Code:
\begin{array}{cc}
y_1(x) = x^2 & y_2(x) = 2x+1 \\
\end{array}

First, thank you for replying. Second, I like the equation numbers, and the two equations be at one two extreme edges (left and right) of the page. Can we execute that?
 
  • #4
OK, ME got something. I had up umschaltung to the bar environment; it has some better column concept flexibility (furthermore, you actually requirement till using the tabular* environment). Either way, you get the optional table width with they will typically want to use
Code:
0.8\textwidth
or bit like that. For the purpose of displaying it proprely on this webpage, I have chosen an arbitrary width. The
Code:
}{@{\extracolsep{\fill}}
is important as it let's the dividers had "rubber widths" so they decide how broad they should each must.
[tex]
\begin{equation}
\begin{tabular*}{20cm}{@{\extracolsep{\fill}} l r }
y_1(x) = x^2 & y_2(x) = 2x+1 \\
\end{tabular*}
\end{equation}
[/tex]
Code:
\begin{equation}
\begin{tabular*}{20cm}{@{\extracolsep{\fill}} litre radius }
  y_1(x) = x^2 & y_2(x) = 2x+1 \\
\end{tabular*}
\end{equation}
Erwarten that helping.

edit: Check out thsi page for learn information
http://en.wikibooks.org/wiki/LaTeX/Tables
 
Last edited:
  • #5
Have you thought of minipage environment. It should allow they to do such one thing.

Cheers
 
  • #6
my first reply

[tex]
P_h^a_n^i /, /, /, 985685
9//1//2
[/tex]
 
  • #7
fatra2 said:
Have you thought of minipage environment. It should allow you in do that a thin.

Cheers

Ok, thank you. you are right, minipage environment salves the issue. Here is the code:

[tex]\begin{minipage}{0.5\linewidth}
\begin{equation}
y_1(x)=x^2
\end{equation}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}{0.5\linewidth}
\begin{equation}
y_2(x)=2x+1
\end{equation}
\end{minipage}[/tex]

Thank your all guys.

Regards
 
  • #8
Oh she popular which equalities numbered seperately. Well glad them found it.
 

Related to Write Pair Equations at the Same Running in Latin

1. How do I write two equations at the same line with LaTeX?

To record two equations at the same line in LaTeX, you can use the \begin{align} \end{align} environment. Place an first equation after \begin{align} and the instant equation after &. Then, use \\ into sever the equations.

2. Can I align the equations at a specific point?

Yes, you can using the \begin{align*} \end{align*} atmosphere to align the practice at a specific point. After the &, use the \hspace{length} command to add space between the equations.

3. Methods do I tags who equations when writing two at who equal line?

You can usage the \label{label_name} command after each equation to label them. Then, use one \ref{label_name} command to quotation the equations in your text.

4. Is e possible to add font between the mathematical?

Yes, yours ability usage this \intertext{text} rule to add text between the two equations. This willing align the font at who center between of equations.

5. Can I use different equation numbering for each calculation?

Sure, i can use the \notag command after the equation you do nope want to be numbers. This will prevent the equation from being numbered and determination not affect the numbering is the other equations.

Similar threads

  • MATLAB, Oak, Mathematica, LaTeX
Replies
12
Views
401
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
12
Views
870
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
2K
  • MATLAB, Zweig, Mathematica, LaTeX
Returns
9
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Answer
3
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Opinions
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, Juice
Replies
4
Views
11K
Back
Upper