Informatika1-2013/Gyakorlat12
A MathWikiből
A lap korábbi változatát látod, amilyen Rpalovics (vitalap | szerkesztései) 2013. december 5., 11:04-kor történt szerkesztése után volt.
A szokásos google doc codes in the clouds
Tartalomjegyzék |
Ismétlés
Egy képlet:
$\displaystyle\lim_{n \rightarrow \infty} \left ( 1 + \frac{1}{n} \right ) ^ {n+1} = \mathrm{e}$
Címoldal:
\begin{document} ... \title{Cím} \author{Szerző} \maketitle \tableofcontents \thispagestyle{empty} \pagestyle{plain} \newpage \setcounter{page}{1} \section{Bevezetés} ...
Képletekről
- Ismételjük meg az előadáson elhangzottakat.
- próbáljuk ki az alábbi forráskódot
\begin{equation} \begin{split} 100 &= 1+8+27+64 = {}\\ &= 1+3+5+7+9+{}\\ &\quad+11+13+15+17+19 \end{split} \end{equation}
- Próbáljuk ki az amsmath további képlet tördelő utasításait
- Jelentísünk meg egy több-soros egyenletrendszert.
- Használjuk a gather parancsot, hivatkozzunk egy egyenlet két sorára külön-külön!
- Próbáljuk ki a \mathbb és \mathbf parancsokat.
- Írjunk be egy esetszétválasztás példát (Andai Analízis 15 / 3)
f: \mathbb{R} \textbackslash \lbrace 0 \rbrace \rightarrow \mathbb{R} \hspace{0.2 cm} x \rightarrow {} \begin{cases} \frac{\arcsin 2x}{\sin x} + c & \text{ha} x<0,\\ x^2 \log x, & \text{ha} x>0. \end{cases} <\latex> * Jelenítsünk meg egy 3x3-as mátrixot, majd annak a determinánsát. ===Képek=== * [http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions#Figures képek] <latex> \usepackage{graphicx} \usepackage[centerlast]{subfigure} \usepackage{wrapfig} ...
\begin{figure}[h] \begin{center} \includegraphics[width=10cm]{Picture.png} \end{center} \caption{This is beautiful.} \label{roc} \end{figure}
- Subfigure enviroment:
\begin{figure}[H] \centering \subfigure[Degree distribution of the downloaded network (here we used linear binning).]{ \includegraphics[width=7.5cm]{dist_deg.pdf} \label{deg_dist_0} } \subfigure[Age distribution showing only available age values.]{ \includegraphics[width=7.5cm]{dist_age_2.pdf} \label{age} } \caption{Degree and age distributions.} \label{figd} \end{figure}
Táblázatok
\begin{center} \begin{tabular}{| l | c || r |} \hline 1 & 2 & 3 \\ \hline 4 & 5 & 6 \\ \hline 7 & 8 & 9 \\ \hline \end{tabular} \end{center}
- Bonyolultabb mezők definiálása
... \usepackage{multirow} ... \begin{tabular}{|l|l|l|} \hline \multicolumn{3}{|c|}{Team sheet} \\ \hline Goalkeeper & GK & Paul Robinson \\ \hline \multirow{4}{*}{Defenders} & LB & Lucus Radebe \\ & DC & Michael Duberry \\ & DC & Dominic Matteo \\ & RB & Didier Domi \\ \hline \multirow{3}{*}{Midfielders} & MC & David Batty \\ & MC & Eirik Bakke \\ & MC & Jody Morris \\ \hline Forward & FW & Jamie McMaster \\ \hline \multirow{2}{*}{Strikers} & ST & Alan Smith \\ & ST & Mark Viduka \\ \hline \end{tabular}
Verbatim
\begin{verbatim} def main(): userNumber=getNumber() print "Ennel eggyel kisebbet mondtal: ", str(userNumber+1) def getNumber(): num = input("Mondj egy szamot:") return num main() \end{verbatim}
Hivatkozások
- Hivatkozáslista:
\begin{thebibliography}{99} \bibitem {digg} Lerman, K., and Ghosh, R. ``Information contagion: an empirical study of the spread of news on Digg and Twitter social networks'' \textit{Proceedings ...} (2010). \bibitem {leskovec} Leskovec, J., McGlohon, M., Faloutsos, C., Glance, N., and Hurst, M. ``Cascading behavior in large blog graphs.'' \textit{Proceedings of SIAM ...} (2007). \end{thebibliography}
- Egy hivatkozás a szövegen belül:
\cite{digg}
vagy
\cite{digg,leskovec}
Egyéb
Szövegméretek:
Feladatok
- Reprodukáljunk megadott részeket a következő dokumentumból: példa
- Írjunk példát hivatkozásra.