User:Jahobr/TeX Examples

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

TeX Examples - feel free to add

[edit]

Temporarily stored I my user page as a sandbox. The aim is to public this in the Help-Namespace. So far no evaluation has been done to see, if this would be appreciated.


TeX help pages are best hosted in the language specific Wikis. Examples however are language neutral and are therefore best hosted on commons. The aim is to provide a diverse set of samples users can use as templates. It is highly unlikely to find the specific formula needed, but there is a real chance to find an example of similar structure that is usefull as a starting point. This is especially important for complex, non obvious constructions that may require a spark of inspiration.

Classics

[edit]
 <math>E=mc^2</math>
 <math>x_{1,2}=\frac {-b\pm {\sqrt {\Delta } } }{2a}</math>

Matrix

[edit]
<math>\begin{pmatrix}
  A_{11} & A_{12} \\
  A_{21} & A_{22}
  \end{pmatrix} \cdot
 \begin{pmatrix}
  B_{11} & B_{12} \\
  B_{21} & B_{22}
  \end{pmatrix} = 
\begin{pmatrix}
  A_{11}B_{11}+A_{12}B_{21} & A_{11}B_{12}+A_{12}B_{22} \\
  A_{21}B_{11}+A_{22}B_{21} & A_{21}B_{12}+A_{22}B_{22}
\end{pmatrix}</math>

 <math>I_4 = \begin{pmatrix}
  1 & 0 & 0 & 0\\
  0 & 1 & 0 & 0\\
  0 & 0 & 1 & 0\\
  0 & 0 & 0 & 1 \end{pmatrix}</math>

Miscellaneous

[edit]
<math>\tan(z)= \cfrac{z}
{1-\cfrac{z^2}
{3-\cfrac{z^2}
{5-\cfrac{z^2}
{7-\cfrac{z^2}{\ddots} } } } }</math>
 <math>\begin{array}{c}
  E_1 \xrightarrow{\quad f \quad} E_2\\
  {}_{\pi_1}\!\!\!\searrow \quad \swarrow_{\!\!\pi_2}\\
  X 
\end{array}</math>

 <math>\begin{array}{r}
  X \;\; \\
  \;{}^f\!\!\!\nearrow \;\; \downarrow^{\pi_i} \\
  Y \xrightarrow[\ f_i \ ]{} X_i \; 
\end{array}</math>

 <math> \begin{matrix}
  T(\alpha)         & \xrightarrow{T(g)}   & T(\alpha')\\
  f \Bigg\downarrow &                      & \Bigg\downarrow f'\\
  S(\beta)          & \xrightarrow[S(h)]{} & S(\beta')
\end{matrix} </math>

<math>\begin{array}{c}
1 \\
1 \quad 1 \\
1 \quad 2 \quad 1 \\
1 \quad 3 \quad 3 \quad 1 \\
1 \quad 4 \quad 6 \quad 4 \quad 1 \\
1 \quad 5 \quad 10\quad 10\quad 5 \quad 1 \\
1 \quad 6 \quad 15\quad 20\quad 15\quad 6 \quad 1 \\
1 \quad 7 \quad 21\quad 35\quad 35\quad 21\quad 7 \quad 1 \\
\end{array}</math>

Chemistry

[edit]
<chem> H-
\overset{\displaystyle H \atop | }{\underset{ | \atop \displaystyle H}{C} }- 
\overset{\displaystyle H \atop | }{\underset{ | \atop \displaystyle H}{C} }- 
\overset{\displaystyle H \atop | }{\underset{ | \atop \displaystyle H}{C} }- 
\overset{\displaystyle H \atop | }{\underset{ | \atop \displaystyle H}{C} }- H
</chem>

 <chem>C6H5-\overset{+}N{\equiv}N \quad Cl^-</chem>
 <math chem>\underset{\color{Red}\ce{<->[][109.76 \text{ pm}]} }{\ce{N{\equiv}N} }</math>
 <math chem>\ce{CH3C \underset{ | \atop \displaystyle{\quad CH3} }{H2C=C} H2}</math>