Jump to content

User:Wwoods/math alignment

From Wikipedia, the free encyclopedia
                   f [epsilon]
 M = V [rho]_0 - S |          ([rho]_0 - [rho]) d[nu]            (2)
                   j 0
M = V ρ0 - S∫0ε0 - ρ) dν

[1]


Vertical:

[edit]

Old:

-90%:......xxx
xxx........

:-90%:......xxx<div style="vertical-align:-90%;display:inline;"> <math> xxx \ldots \; \int \; \ldots xxx \,</math></div>xxx........

New:

10%:......xxx
xxx........

: 10%:......xxx<div style="vertical-align: 10%;display:inline;"> <math> xxx \ldots \; \int \; \ldots xxx \,</math></div>xxx........


Horizontal:

[edit]
     1. works, but any following text is in tt

2.

math> |r| \qquad\qquad\qquad\qquad\qquad   </math> 2.

3.

math> \qquad\qquad\qquad\qquad\qquad |r| \;</math> 3.

leading and trailing math spaces absorbed.

. 4. This sort of works

.                               math> |r| \;</math> 4. 
5.
 : math> |r| \;</math>                               5. 

This, of course, works for single lines.

     6.
 nbsp; +nbsp;  math> |r| \;</math> 6.
     7.
+nbsp;+nbsp;+nbsp;+nbsp; math> |r| \;</math> 7.

These seem work, on my browser.

            8.
 :  nbsp; +nbsp; +nbsp; +nbsp; +nbsp;  math> |r| \;</math> 8.
             9.
 : nbsp;+nbsp;+nbsp;+nbsp;+nbsp;+nbsp;+nbsp;+nbsp;+nbsp;+nbsp; math> |r| \;</math> 9.

These don't work, leading spaces get absorbed back to the : indent.

. 10. This sort of works.
 :.                               math> |r| \;</math> 10.
[|
|  math> |r| \;</math> ||  math> = \sqrt{x^2 + y^2 + z^2} </math> 11.
|-
|
| math> = \sqrt{x'^2 + y'^2 } </math>   
|-
|
| math> = 42 \;</math>
|] 

This is not indented, "="s aligned, right side left-aligned.

12.
 : math> |r| = \sqrt{x^2 + y^2 + z^2} \;</math>   12.
 ::    math> = \sqrt{x'^2 + y'^2 } \;</math>  
 :: math> = 42 \;</math> 

This is indented, "="s ~aligned, right side left-aligned.

13.
 : math> \begin{matrix}
  |r| &=& \sqrt{x^2 + y^2 + z^2} \\
      &=& \sqrt{x'^2 + y'^2 } \\
      &=& 42 \\
      &=& 42 \qquad\qquad\quad \end{matrix} </math>   13.

This is indented, "="s aligned, right side centered. Too much space around the "="?


         
[|
| +nbsp; +nbsp; +nbsp; +nbsp; +nbsp;  math> |r| \;\!</math>   14.
|  math> = \sqrt{x^2 + y^2 + z^2} \;</math>
|-
|
| math> = \sqrt{x'^2 + y'^2 } \;</math>   
|-
|
| math> = 42 \;</math>
|]

This is indented, "="s aligned, right side left-aligned. ...Um, it was indented.