http://wiki.math.bme.hu/history/Informatics1-2018/Lab07?feed=atom&
Informatics1-2018/Lab07 - Laptörténet
2024-03-28T21:28:47Z
Az oldal laptörténete a wikiben
MediaWiki 1.18.1
http://wiki.math.bme.hu/index.php?title=Informatics1-2018/Lab07&diff=13745&oldid=prev
Gaebor: /* LaTeX practice */
2018-11-05T13:15:38Z
<p><span class="autocomment">LaTeX practice</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">←Régebbi változat</td>
<td colspan='2' style="background-color: white; color:black;">A lap 2018. november 5., 13:15-kori változata</td>
</tr><tr><td colspan="2" class="diff-lineno">63. sor:</td>
<td colspan="2" class="diff-lineno">63. sor:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== LaTeX practice ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== LaTeX practice ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* Try the different font styles (<del class="diffchange diffchange-inline">textt</del>, textsf, uppercase, textbf, textit, emph, textsl, etc.)! Change the size of the text: tiny, normalsize, large etc.!</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* Try the different font styles (<ins class="diffchange diffchange-inline">texttt</ins>, textsf, uppercase, textbf, textit, emph, textsl, etc.)! Change the size of the text: tiny, normalsize, large etc.!</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Create lists (enumerate, itemize, description, nested)! Change the numbering of enumerate to roman numerals!</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Create lists (enumerate, itemize, description, nested)! Change the numbering of enumerate to roman numerals!</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Create a table with the tabular environment. Try to aligh the text left/right/center! Use the \hline and \vline commands!</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Create a table with the tabular environment. Try to aligh the text left/right/center! Use the \hline and \vline commands!</div></td></tr>
</table>
Gaebor
http://wiki.math.bme.hu/index.php?title=Informatics1-2018/Lab07&diff=13740&oldid=prev
Gaebor: /* Help yourself */
2018-10-29T15:13:31Z
<p><span class="autocomment">Help yourself</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">←Régebbi változat</td>
<td colspan='2' style="background-color: white; color:black;">A lap 2018. október 29., 15:13-kori változata</td>
</tr><tr><td colspan="2" class="diff-lineno">75. sor:</td>
<td colspan="2" class="diff-lineno">75. sor:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Help yourself ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Help yourself ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* https://tex.stackexchange.com/</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* https://tex.stackexchange.com/</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* [http://www.math.bme.hu/~morap/informatika1-2009/latex/2ea.pdf Hungarian demo 1]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* [http://sandbox.hlt.bme.hu/~gaebor/ea_anyag/Info1/LaTeX/ Hungarian demo 2] (you have to compile it yourself)</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* Differential d symbol:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> \def\dd{\,mathrm{d}}</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Informatics1-2018/Lab06|Previous]] - [[Informatics1-2018#Labs|Up]] - [[Informatics1-2018/Lab08|Next]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Informatics1-2018/Lab06|Previous]] - [[Informatics1-2018#Labs|Up]] - [[Informatics1-2018/Lab08|Next]]</div></td></tr>
</table>
Gaebor
http://wiki.math.bme.hu/index.php?title=Informatics1-2018/Lab07&diff=13739&oldid=prev
Gaebor, 2018. október 29., 15:07-n
2018-10-29T15:07:24Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">←Régebbi változat</td>
<td colspan='2' style="background-color: white; color:black;">A lap 2018. október 29., 15:07-kori változata</td>
</tr><tr><td colspan="2" class="diff-lineno">3. sor:</td>
<td colspan="2" class="diff-lineno">3. sor:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Latex =</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Latex =</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">== Install ==</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* Windows</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">** First install [https://miktex.org/download MikTeX]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">** Then install [http://www.xm1math.net/texmaker/download.html TeXMaker]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* Mac</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">** First install [http://www.tug.org/mactex/mactex-download.html MacTeX]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">** Then install [http://www.xm1math.net/texmaker/download.html TeXMaker]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* Linux</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> sudo apt-get install texlive</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">** Then install [http://www.xm1math.net/texmaker/download.html TeXMaker]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== First LaTeX file ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== First LaTeX file ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
</table>
Gaebor
http://wiki.math.bme.hu/index.php?title=Informatics1-2018/Lab07&diff=13734&oldid=prev
Gaebor: /* First LaTeX file */
2018-10-28T18:05:10Z
<p><span class="autocomment">First LaTeX file</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">←Régebbi változat</td>
<td colspan='2' style="background-color: white; color:black;">A lap 2018. október 28., 18:05-kori változata</td>
</tr><tr><td colspan="2" class="diff-lineno">12. sor:</td>
<td colspan="2" class="diff-lineno">12. sor:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>\usepackage[T1]{fontenc}    % internal encoding</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>\usepackage[T1]{fontenc}    % internal encoding</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>\usepackage[utf8]{inputenc}  % input encoding</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>\usepackage[utf8]{inputenc}  % input encoding</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>\usepackage[english]{babel} <del class="diffchange diffchange-inline">  </del>% language</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>\usepackage[english]{babel} <ins class="diffchange diffchange-inline"> </ins>% language</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>\usepackage{lmodern}</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>\usepackage{lmodern} <ins class="diffchange diffchange-inline">        % font, even if you use the default one</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>\usepackage{amsmath,amssymb} % math packages</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>\usepackage{amsmath,amssymb} % math packages</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">\usepackage{amsthm}          % theorem-like environments</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>\usepackage{graphicx}        % for embedding pictures</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>\usepackage{graphicx}        % for embedding pictures</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">  </del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>\title{}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>\title{}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>\author{}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>\author{}</div></td></tr>
</table>
Gaebor
http://wiki.math.bme.hu/index.php?title=Informatics1-2018/Lab07&diff=13733&oldid=prev
Gaebor: Új oldal, tartalma: „Previous - Up - Next = Latex = == First LaTeX file == * Copy the following code in…”
2018-10-28T18:03:33Z
<p>Új oldal, tartalma: „<a href="/view/Informatics1-2018/Lab06" title="Informatics1-2018/Lab06">Previous</a> - <a href="/view/Informatics1-2018#Labs" title="Informatics1-2018">Up</a> - <a href="/view/Informatics1-2018/Lab08" title="Informatics1-2018/Lab08">Next</a> = Latex = == First LaTeX file == * Copy the following code in…”</p>
<p><b>Új lap</b></p><div>[[Informatics1-2018/Lab06|Previous]] - [[Informatics1-2018#Labs|Up]] - [[Informatics1-2018/Lab08|Next]]<br />
<br />
= Latex =<br />
<br />
== First LaTeX file ==<br />
<br />
* Copy the following code into an empty file! Save it as '''template1.tex'''! It's important to have the file in '''utf-8''' encoding, since we specify that it in the <tt>\usepackage[utf8]{inputenc}</tt> line.<br />
<br />
<latex><br />
\documentclass{article}<br />
<br />
\usepackage[T1]{fontenc} % internal encoding<br />
\usepackage[utf8]{inputenc} % input encoding<br />
\usepackage[english]{babel} % language<br />
\usepackage{lmodern}<br />
<br />
\usepackage{amsmath,amssymb} % math packages<br />
\usepackage{graphicx} % for embedding pictures<br />
<br />
\title{}<br />
\author{}<br />
\date{} % this can be left empty<br />
<br />
\begin{document}<br />
<br />
\maketitle<br />
<br />
\tableofcontents<br />
<br />
\section{}<br />
<br />
\subsection{}<br />
<br />
\end{document}<br />
</latex><br />
<br />
* Duplicate the '''template1.tex''' into another file named '''latex1.tex''' and in this new one fill the empty blocks ([http://www.lipsum.com/ Lorem Ipsum], if you have no inspiration), compile the code, and then view it with the following command:<br />
<br />
pdflatex latex1<br />
xpdf latex1.pdf &<br />
<br />
=== TexMaker ===<br />
<br />
* We highly recommend using a latex editor from now on. [http://www.xm1math.net/texmaker/ TexMaker] is a platform independent editor, you can compile the edited file with the F1 button.<br />
<br />
* If everything went smoothly up until this point, then put a few errors in the code and then try to compile it again. (You'll see red error messages at the bottom of TexMaker.)<br />
<br />
* Try to write a few formulas, you can use the [http://www.math.bme.hu/~morap/informatika1-2009/latex/2ea.pdf help] here, it's in hungarian, but the formulas are universal.<br />
<br />
* Reproduce your current or last week's homework in latex.<br />
<br />
== LaTeX practice ==<br />
<br />
* Try the different font styles (textt, textsf, uppercase, textbf, textit, emph, textsl, etc.)! Change the size of the text: tiny, normalsize, large etc.!<br />
* Create lists (enumerate, itemize, description, nested)! Change the numbering of enumerate to roman numerals!<br />
* Create a table with the tabular environment. Try to aligh the text left/right/center! Use the \hline and \vline commands!<br />
* Math environments:<br />
** Try inline and display style environments as well<br />
** Fractions, roots, superscripts, subscripts (\left és \right)<br />
** Equations (equation, eqnarray, align)<br />
** Theorem, definition, lemma (numbering, reference)<br />
* References<br />
<br />
== Help yourself ==<br />
* https://tex.stackexchange.com/<br />
<br />
[[Informatics1-2018/Lab06|Previous]] - [[Informatics1-2018#Labs|Up]] - [[Informatics1-2018/Lab08|Next]]</div>
Gaebor