Informatics1-2017/Practice7

A MathWikiből
(Változatok közti eltérés)
1. sor: 1. sor:
 
== Latex mathematical formulas ==
 
== Latex mathematical formulas ==
 +
 +
=== Formulas ===
 +
 +
Reproduce the following in latex:
 +
 +
<math>
 +
\begin{align}
 +
a_{11}x_1 + a_{12}x_2 + \ldots + a_{1n}x_n &\leq b_1\\
 +
a_{21}x_1 + a_{22}x_2 + \ldots + a_{2n}x_n &\leq b_2\\
 +
&\vdots\\
 +
a_{m1}x_1 + a_{m2}x_2 + \ldots + a_{mn}x_n &\leq b_m
 +
\end{align}
 +
</math>
 +
 +
where <math>x_i \geq 0 \, \forall i=1,2,\ldots,n</math>. The form of the objective function:
 +
 +
<math>
 +
z = c_1x_1 + c_2x_2 + \ldots + c_nx_n \Rightarrow \mathop{max} \text{ or } \mathop{min}
 +
</math>
 +
 
=== Matrices, tables ===
 
=== Matrices, tables ===
 
Try the tabular environment with different aligns! Create a 3x3 matrix with all kinds of brackets. Try to do an nxn matrix as well for example, try to create this formula from wikipedia: [https://en.wikipedia.org/wiki/Matrix_(mathematics)#Notation matrix].
 
Try the tabular environment with different aligns! Create a 3x3 matrix with all kinds of brackets. Try to do an nxn matrix as well for example, try to create this formula from wikipedia: [https://en.wikipedia.org/wiki/Matrix_(mathematics)#Notation matrix].

A lap 2017. október 16., 13:08-kori változata

Tartalomjegyzék

Latex mathematical formulas

Formulas

Reproduce the following in latex:


\begin{align}
a_{11}x_1 + a_{12}x_2 + \ldots + a_{1n}x_n &\leq b_1\\
a_{21}x_1 + a_{22}x_2 + \ldots + a_{2n}x_n &\leq b_2\\
&\vdots\\
a_{m1}x_1 + a_{m2}x_2 + \ldots + a_{mn}x_n &\leq b_m
\end{align}

where x_i \geq 0 \, \forall i=1,2,\ldots,n. The form of the objective function:


z = c_1x_1 + c_2x_2 + \ldots + c_nx_n \Rightarrow \mathop{max} \text{ or } \mathop{min}

Matrices, tables

Try the tabular environment with different aligns! Create a 3x3 matrix with all kinds of brackets. Try to do an nxn matrix as well for example, try to create this formula from wikipedia: matrix.

Theorems, definitions

Let's do some theorems. For that append this to the preamble:

\newtheorem{mydef}{Definition}
  • Create a new threorem style environment!
  • Try the different styles (remark, theorem, definition)!

Labels, references

Create references to your theorems:

\begin{theorem}\label{thm:sample_thm}
Theorem text
\end{theorem}
 
In Theorem \ref{thm:sample_thm} we...

Floating pictures

\begin{figure}[p]
    \centering
    \includegraphics[width=0.8\textwidth]{image.png}
    \caption{Awesome Image}
    \label{fig:awesome_image}
\end{figure}

Change the placement (h,t,p,b,!,H)!

BibTeX

BibTeX is a package to create nice looking bibliographies. Create a test bibliography using these sites: http://www.bibtex.org/Using/, https://en.wikibooks.org/wiki/LaTeX/Bibliography_Management.

Személyes eszközök