tanszek:oktatas:techcomm:mathematical_expressions_in_tex_language
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tanszek:oktatas:techcomm:mathematical_expressions_in_tex_language [2024/09/10 08:54] – [1. Introduction to LaTeX] kissa | tanszek:oktatas:techcomm:mathematical_expressions_in_tex_language [2026/09/02 09:14] (current) – [7. Exercise] kissa | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| **Getting Started:** | **Getting Started:** | ||
| - | - **Overleaf**: We will use Overleaf, a free online | + | - **Papeeria**: We will use Papeeria, a browser-based |
| - | - Sign up at [[https:// | + | |
| - | - Overleaf offers collaborative features, version control, and a vast library of LaTeX templates. | + | |
| **Basic Document Structure: | **Basic Document Structure: | ||
| Line 55: | Line 53: | ||
| </ | </ | ||
| - | This code will became: | + | This code will become: |
| {{: | {{: | ||
| Line 90: | Line 88: | ||
| {{: | {{: | ||
| - | ==== 3. Special Mathematical Symbols in LaTeX ==== | + | ==== 3. Basic Text Formatting in LaTeX ==== |
| + | |||
| + | LaTeX also allows you to format text, which is useful for emphasizing certain parts of your documents. | ||
| + | |||
| + | **Bold text** | ||
| + | |||
| + | Use the '' | ||
| + | - Example: '' | ||
| + | |||
| + | **Italic text** | ||
| + | |||
| + | Use the '' | ||
| + | - Example: '' | ||
| + | |||
| + | **Underline text** | ||
| + | |||
| + | Use the '' | ||
| + | - Example: '' | ||
| + | |||
| + | **Combining formats** | ||
| + | |||
| + | You can even combine them: | ||
| + | - Example: '' | ||
| + | - Example: | ||
| + | |||
| + | <code LaTeX> | ||
| + | \documentclass{article} | ||
| + | \begin{document} | ||
| + | |||
| + | Here is some \textbf{bold text}, some \textit{italic text}, and some \underline{underlined text}. | ||
| + | |||
| + | You can also combine them, like \textbf{\textit{bold and italic}}. | ||
| + | |||
| + | \end{document} | ||
| + | </ | ||
| + | |||
| + | This will become: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ==== 4. Special Mathematical Symbols in LaTeX ==== | ||
| LaTeX provides a variety of symbols to accurately represent mathematical expressions. | LaTeX provides a variety of symbols to accurately represent mathematical expressions. | ||
| Line 134: | Line 172: | ||
| This represents the definite integral of $x \sin(x)$ with respect to $x$ from $a$ to $b$. | This represents the definite integral of $x \sin(x)$ with respect to $x$ from $a$ to $b$. | ||
| - | ==== 4. Aligning Equations ==== | + | ==== 5. Aligning Equations ==== |
| === Align Environment === | === Align Environment === | ||
| Line 160: | Line 198: | ||
| **Explanation: | **Explanation: | ||
| - | - **\usepackage{amsmath}**: | + | - **\usepackage{amsmath}**: |
| - | - **&**: This symbol is used to align equations at the specified point, usually before an operator like `=`. | + | - **&**: This symbol is used to align equations at the specified point, usually before an operator like '' |
| **Tips:** | **Tips:** | ||
| Line 175: | Line 213: | ||
| To refer to this equation later, use '' | To refer to this equation later, use '' | ||
| + | ==== 6. Lists ==== | ||
| + | |||
| + | LaTeX provides environments for creating both unordered and ordered lists. | ||
| + | |||
| + | === Unordered Lists === | ||
| + | |||
| + | Use the '' | ||
| + | |||
| + | <code LaTeX> | ||
| + | \begin{itemize} | ||
| + | \item apple | ||
| + | \item banana | ||
| + | \item raspberry | ||
| + | \end{itemize} | ||
| + | </ | ||
| + | |||
| + | {{: | ||
| + | |||
| + | === Ordered Lists === | ||
| + | |||
| + | Use the '' | ||
| + | |||
| + | <code LaTeX> | ||
| + | \begin{enumerate} | ||
| + | \item Denver Broncos | ||
| + | \item Buffalo Bills | ||
| + | \item Dallas Cowboys | ||
| + | \end{enumerate} | ||
| + | </ | ||
| + | |||
| + | {{: | ||
| - | ==== 5. Exercise ==== | + | ==== 7. Exercise ==== |
| Reproduce the following mathematical proof in LaTeX. Use inline and display math, as well as basic and special symbols! Save the result in PDF format! | Reproduce the following mathematical proof in LaTeX. Use inline and display math, as well as basic and special symbols! Save the result in PDF format! | ||
| - | {{: | + | {{: |
| Line 186: | Line 255: | ||
| < | < | ||
| - | Proof: | + | Proof: 2 is Irrational |
| - | Assume, for contradiction, | + | Assumptions: |
| + | Assume, for contradiction, | ||
| + | It can therefore | ||
| + | a and b are coprime integers. | ||
| - | Then: | + | We can write: |
| - | HERE COMES AN EQUATION. | + | EQUATION |
| Squaring both sides: | Squaring both sides: | ||
| - | HERE COMES AN EQUATION. | + | EQUATION |
| Multiplying both sides by b2: | Multiplying both sides by b2: | ||
| - | HERE COMES AN EQUATION. | + | EQUATION |
| This implies that a2 is even, so a must also be even. Let a = 2k for some integer k. | This implies that a2 is even, so a must also be even. Let a = 2k for some integer k. | ||
| - | Substituting into the equation: | + | Substituting |
| - | HERE COMES AN EQUATION. | + | EQUATION |
| Dividing by 2: | Dividing by 2: | ||
| - | HERE COMES AN EQUATION. | + | EQUATION |
| This implies that b2 is even, so b must also be even. | This implies that b2 is even, so b must also be even. | ||
| - | But if both a and b are even, they are not coprime, which contradicts our original assumption. Therefore, | + | Conclusion: If both a and b are even, then they are not coprime. |
| + | This contradicts our original assumption. Therefore, 2 is irrational. | ||
| </ | </ | ||
tanszek/oktatas/techcomm/mathematical_expressions_in_tex_language.1725958488.txt.gz · Last modified: by kissa
