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:53] – [Introduction to LaTeX for Mathematical Expressions] kissa | tanszek:oktatas:techcomm:mathematical_expressions_in_tex_language [2025/09/04 12:45] (current) – [5. Aligning Equations] kissa | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| **What is LaTeX?** | **What is LaTeX?** | ||
| - | - LaTeX is a high-quality typesetting system, primarily used for technical and scientific documents. It is particularly powerful for formatting complex mathematical equations and formulas, making it a preferred choice in academia and research. | + | LaTeX is a high-quality typesetting system, primarily used for technical and scientific documents. It is particularly powerful for formatting complex mathematical equations and formulas, making it a preferred choice in academia and research. |
| **What are the advantages of LaTeX?** | **What are the advantages of LaTeX?** | ||
| - | | + | * **Handling Complex Documents**: |
| - | | + | * **Consistent Layout**: Automatically ensures a uniform, professional design by separating content from formatting. |
| - | - **Professional Quality**: Documents created | + | * **Scalability**: Suitable for large projects, allowing version control |
| + | | ||
| + | | ||
| **Getting Started:** | **Getting Started:** | ||
| Line 33: | Line 35: | ||
| - **\begin{document}** and **\end{document}**: | - **\begin{document}** and **\end{document}**: | ||
| - | ---- | ||
| ==== 2. Writing Basic Mathematical Expressions ==== | ==== 2. Writing Basic Mathematical Expressions ==== | ||
| Line 54: | Line 55: | ||
| </ | </ | ||
| - | This code will became: | + | This code will become: |
| {{: | {{: | ||
| Line 89: | Line 90: | ||
| {{: | {{: | ||
| - | ==== 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 133: | Line 174: | ||
| 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 159: | Line 200: | ||
| **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 216: | ||
| - | ==== 5. Exercise ==== | + | ==== 6. 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 187: | Line 228: | ||
| Proof: √2 is Irrational | Proof: √2 is Irrational | ||
| - | Assume, for contradiction, | + | Assume, for contradiction, |
| Then: | Then: | ||
| Line 208: | Line 249: | ||
| 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, | + | But if both a and b are even, they are not coprime, which contradicts our original assumption. Therefore, 2 must be irrational. |
| </ | </ | ||
tanszek/oktatas/techcomm/mathematical_expressions_in_tex_language.1725958389.txt.gz · Last modified: 2024/09/10 08:53 by kissa
