Advertisement
makispaiktis

Document 3 - Basics (7-9)

Sep 15th, 2021 (edited)
790
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 3.80 KB | None | 0 0
  1. \documentclass{article}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage{amsmath}
  4. \usepackage{amssymb}
  5. \usepackage{amsthm}
  6. \usepackage{graphicx}
  7. \usepackage{hyperref}
  8.  
  9.  
  10. \title{Document 3 - Basics}
  11. \author{Thomas Boufikos}
  12. \date{September 2021}
  13.  
  14. \begin{document}
  15.  
  16. \maketitle
  17.  
  18. \section{\LaTeX \, environments} \\ \\ \\
  19. \subsection{Itemize}
  20. \begin{center}
  21.    \begin{itemize}
  22.        \item Item 1
  23.        \item[$\rightarrow$] Item 2
  24.        \item Item 3
  25.        \item[$\implies$] Item 4
  26.    \end{itemize}
  27. \end{center} \\ \\ \\
  28.  
  29. \subsection{Enumerate}
  30. \begin{center}
  31.    \begin{enumerate}
  32.        \item Item 1
  33.        \item[$\rightarrow$] Item 2
  34.        \item Item 3
  35.        \item[$\implies$] Item 4
  36.    \end{enumerate}
  37. \end{center} \\ \\ \\
  38.  
  39. \subsection{Theorems} \\ \\ \\
  40.  
  41. \newtheorem{thm}{Thomas Theorem} \\ \\
  42. \begin{thm}
  43.    This theorem is about Calculus! It says: $\frac{\sqrt{a}}{\sqrt{b}}
  44.    = \sqrt{\frac{a}{b}}$.
  45. \end{thm} \\ \\
  46. \begin{thm}
  47.    That theorem is also about Calculus! It says: \\
  48. \[
  49.    \int _a^b f(x) \, dx
  50.    = F(x) \bigg\vert _a ^b
  51. \]
  52. \end{thm} \\ \\ \\
  53.  
  54. \newtheorem*{Pyth}{The Pythagorean Theorem}
  55. \begin{Pyth}
  56.    That theorem is about triangles with one angle $a = 90$ degrees: \\
  57.    \[
  58.        a^2 + b^2 = c^2
  59.    \] \\
  60.    ,where $a, b$ are the small angles and $c$ is the big angle.
  61. \end{Pyth}
  62. \\ \\ \\
  63. \textbf{And now we will see new theorem environments with names:
  64. "My Lemma", "Thomas Proposition" and "Nice proof"} \\ \\
  65. \newtheorem{lem}{My Lemma}
  66. \begin{lem}
  67.    The first one.
  68. \end{lem} \\ \\
  69. \begin{lem}
  70.    The second one.
  71. \end{lem} \\ \\
  72. \begin{lem}
  73.    The third one.
  74. \end{lem}
  75. \\ \\
  76. \newtheorem{prop}{Thomas Proposition}
  77. \begin{prop}
  78.    The first one.
  79. \end{prop} \\ \\
  80. \begin{prop}
  81.    The second one.
  82. \end{prop} \\ \\
  83. \begin{prop}
  84.    The third one.
  85. \end{prop}
  86. \\ \\
  87. \begin{proof}
  88.    There is nothing here!
  89. \end{proof} \\ \\ \\ \\
  90.  
  91. \section{Random other things} \\ \\
  92. \subsection{Hyphenation}
  93. When someone says a big word like this: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa there is a possibility to have bad notation. \\
  94. But with hyphenation we can do the following one:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.
  95. \\
  96. \subsection{Spaces} \\ \\
  97. \textbf{Horizontal Space: } \\ \\
  98. Instead of writing $ x = 1000 $ and $ y = 1000 $, we can do this: \\ \\
  99. We can create bigger space: $ x = 1000 $ \hspace{2cm} and
  100. \hspace{2cm} $ y = 1000 $. \\ \\ \\
  101. \begin{center}
  102.    \textbf{Test}
  103. \end{center}
  104. Name: \underline{\hspace{6cm}} \\
  105. Age: \underline{\hspace{2cm}} \\
  106. School: \underline{\hspace{8 cm}} \\ \\
  107. Summation: \dotfill \\
  108. \phantom{Phantom} Phantom \phantom{Phantom} Phantom \phantom{Phantom} Phantom \phantom{Phantom} Phantom \phantom{Phantom} Phantom \phantom{Phantom} Phantom \phantom{Phantom} Phantom \\
  109. Again dotfill: \dotfill \\ \\ \\
  110. \textbf{\textit{Black box with rule}} \\ \\
  111. \begin{center}
  112.    \rule{3cm}{3cm}
  113. \end{center} \\ \\ \\
  114. \section{Images} \\ \\ \\
  115. \subsection{Image original}
  116. \begin{center}
  117.    \includegraphics{lena} \\ \\
  118. \end{center}
  119. \subsection{Image with new height = 6cm}
  120. \begin{center}
  121.    \includegraphics[height = 6cm]{lena} \\ \\
  122. \end{center}
  123. \subsection{Image with new width = 2cm}
  124. \begin{center}
  125.    \includegraphics[width = 2cm]{lena} \\ \\
  126. \end{center}
  127. \subsection{Image with new scale = 0.5}
  128. \begin{center}
  129.    \includegraphics[scale = 0.5]{lena} \\ \\
  130. \end{center}
  131. \subsection{Image (distorted) with new height = 6cm and width = 2cm}
  132. \begin{center}
  133.    \includegraphics[height = 6cm, width = 2cm]{lena} \\ \\
  134. \end{center} \\ \\ \\ \\
  135. \textbf{Internet hyperlink of the video about \LaTeX:}:
  136. \begin{center}
  137.    \href{https://www.youtube.com/watch?v=fCzF5gDy60g&ab_channel=AcademicLesson}{Click here}
  138. \end{center}
  139.  
  140.  
  141. \end{document}
  142.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement