User Tools

Site Tools


tanszek:oktatas:techcomm:mathematical_expressions_in_tex_language

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tanszek:oktatas:techcomm:mathematical_expressions_in_tex_language [2024/09/10 08:54] – [1. Introduction to LaTeX] kissatanszek:oktatas:techcomm:mathematical_expressions_in_tex_language [2026/08/30 16:50] (current) kissa
Line 19: Line 19:
 **Getting Started:** **Getting Started:**
  
-  - **Overleaf**: We will use Overleaf, a free online LaTeX editor, which allows you to write and compile LaTeX documents directly in your browser. +  - **Papeeria**: We will use Papeeria, a browser-based LaTeX editor that runs document compilation in the cloud: [[https://www.papeeria.com/]]
-    - Sign up at [[https://www.overleaf.com/|Overleaf]]+
-    - Overleaf offers collaborative features, version control, and a vast library of LaTeX templates.+
  
 **Basic Document Structure:** **Basic Document Structure:**
Line 55: Line 53:
 </code> </code>
  
-This code will became:+This code will become:
  
 {{:tanszek:oktatas:techcomm:pasted:20240902-141219.png}} {{:tanszek:oktatas:techcomm:pasted:20240902-141219.png}}
Line 90: Line 88:
 {{:tanszek:oktatas:techcomm:pasted:20240902-141644.png}} {{:tanszek:oktatas:techcomm:pasted:20240902-141644.png}}
  
-==== 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 ''\textbf{...}'' command:   
 +  - Example: ''\textbf{This is bold}'' → **This is bold** 
 + 
 +**Italic text** 
 + 
 +Use the ''\textit{...}'' command:   
 +  - Example: ''\textit{This is italic}'' → //This is italic// 
 + 
 +**Underline text** 
 + 
 +Use the ''\underline{...}'' command:   
 +  - Example: ''\underline{This is underlined}'' → __This is underlined__ 
 + 
 +**Combining formats** 
 + 
 +You can even combine them:   
 +  - Example: ''\textbf{\textit{Bold and italic}}'' → **//Bold and italic//** 
 +  - 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} 
 +</code> 
 + 
 +This will become: 
 + 
 +{{:tanszek:oktatas:techcomm:pasted:20250904-122112.png}} 
 + 
 +==== 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}**: The `amsmathpackage is required for advanced mathematical typesetting features, including the `alignenvironment. +  - **\usepackage{amsmath}**: The ''amsmath'' package is required for advanced mathematical typesetting features, including the ''align'' environment. 
-  - **&**: 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 176: Line 214:
  
  
-==== 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 188: Line 226:
 Proof: √2 is Irrational Proof: √2 is Irrational
  
-Assume, for contradiction, that 2 is rational. Then it can be expressed as a fraction a/b, where a and b are coprime integers.+Assume, for contradiction, that 2 is rational. Then it can be expressed as a fraction a/b, where a and b are coprime integers.
  
 Then: Then:
Line 209: Line 247:
 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, 2 must be irrational.+But if both a and b are even, they are not coprime, which contradicts our original assumption. Therefore, 2 must be irrational.
 </code> </code>
  
tanszek/oktatas/techcomm/mathematical_expressions_in_tex_language.1725958488.txt.gz · Last modified: 2024/09/10 08:54 by kissa