## LaTeX forum ⇒ Math & Science ⇒ New at LaTeX coding Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Philosophaie
Posts: 17
Joined: Sat Mar 21, 2015 8:59 pm

### New at LaTeX coding

I am new at LaTeX.

Could someone fix my code so it works.

\documentclass[10pt,a4paper]{article}\usepackage[utf8]{inputenc}\usepackage{amsmath}\usepackage{amsfonts}\usepackage{amssymb}\begin{document}Some text here.         $C_x = R1\timesR2 = \begin{array}{\hat{i} \hat{j} \hat{k}\\X1 Y1 Z1\\X2 Y2 Z2} \end{array}$         $C_{x_{12}} = (Y1 * Z2 - Z1 * Y2)$         $C_{y_{12}} = (Z1 * X2 - X1 * Z2)$         $C_{z_{12}} = (X1 * Y2 - Y1 * X2))$ \end{document}

Johannes_B
Site Moderator
Posts: 3639
Joined: Thu Nov 01, 2012 4:08 pm
It would be better to state explicit errors problemm constructs. That means a meaningful title as well. For example, i have no idea how the output is supposed to look like.

\documentclass[10pt,a4paper]{article}\usepackage[utf8]{inputenc}\usepackage{amsmath}\usepackage{amsfonts}\usepackage{amssymb}\begin{document}Some text here.\begin{align*}	C_x &= R1\times R2 = \begin{array}{c}%		\hat{i} \hat{j} \hat{k}\\		X1 Y1 Z1\\		X2 Y2 Z2\\	\end{array}\\	C_{x_{12}} &= (Y1 * Z2 - Z1 * Y2)\\	C_{y_{12}} &= (Z1 * X2 - X1 * Z2)\\	C_{z_{12}} &= (X1 * Y2 - Y1 * X2))\end{align*} \end{document}