From db8101bf10dd7955323e82eb97d5e32d9af65b21 Mon Sep 17 00:00:00 2001 From: Pranav Dev Date: Tue, 27 Jun 2023 17:23:04 +0000 Subject: [PATCH 1/6] added latex.md --- LaTeX2e.md | 147 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 LaTeX2e.md diff --git a/LaTeX2e.md b/LaTeX2e.md new file mode 100644 index 00000000000..dc37ce4bcdc --- /dev/null +++ b/LaTeX2e.md @@ -0,0 +1,147 @@ +--- +title: Vim +category: Vim +layout: 2017/sheet +tags: [Featured] +updated: 2020-07-05 +weight: -10 +intro: | + [Latex](https://www.latex-project.org/) LaTeX is a high-quality typesetting system; + This reference was made for LaTeX2e +--- + +# LaTeX Cheat Sheet + +## Document Structure + +### Document Class +- `\documentclass{}` - Specifies the type of document. Common document classes include: + - `article` - For articles in journals, short reports, and documentation. + - `report` - For longer reports, theses, and dissertations. + - `book` - For books. + - `letter` - For letters. + - `beamer` - For presentations. + +### Packages +- `\usepackage{}` - Loads additional packages for extended functionality. Packages add features such as including images, formatting tables, adding code listings, and more. + +### Document Structure +- `\begin{document}` - Begins the document. All content should be placed after this command. +- `\end{document}` - Ends the document. Nothing should be placed after this command. + +### Sections +- `\section{}` - Creates a new section with a heading. Sections are numbered by default. +- `\subsection{}` - Creates a new subsection within a section. +- `\subsubsection{}` - Creates a new subsubsection within a subsection. + +### Table of Contents +- `\tableofcontents` - Generates a table of contents based on the section headings in the document. + +## Formatting Text + +### Font Styles +- `\textbf{}` - Formats text in bold. +- `\textit{}` - Formats text in italics. +- `\underline{}` - Underlines text. + +### Font Size +Font sizes can be changed using commands such as: +- `\tiny` +- `\scriptsize` +- `\footnotesize` +- `\small` +- `\normalsize` +- `\large` +- `\Large` +- `\LARGE` +- `\huge` +- `\Huge` + +### Lists +- `\begin{itemize}` - Begins a bulleted list. +- `\item` - Adds an item to the bulleted list. +- `\end{itemize}` - Ends the bulleted list. + +- `\begin{enumerate}` - Begins a numbered list. +- `\item` - Adds an item to the numbered list. +- `\end{enumerate}` - Ends the numbered list. + +## Mathematical Equations + +### Inline Math +- `$ equation $` - Inserts an equation within the text using inline math mode. The equation is surrounded by `$` symbols. + +### Display Math +- `\[ equation \]` - Displays an equation on its own line using display math mode. The equation is surrounded by `\[` and `\]` symbols. + +### Superscripts and Subscripts +- `x^2` - Formats `x` as a superscript. +- `x_1` - Formats `x` as a subscript. + +### Fractions +- `\frac{numerator}{denominator}` - Creates a fraction with the specified numerator and denominator. + +### Greek Letters +- Greek letters can be inserted using their respective LaTeX commands, such as: + - `\alpha` - Alpha + - `\beta` - Beta + - `\gamma` - Gamma + - ... + +### Sum and Integral +- `\sum` - Inserts a summation symbol. +- `\int` - Inserts an integral symbol. + +### Matrices +- Various matrix environments are available: + - `\begin{matrix} ... \end{matrix}` - Basic matrix. + - `\begin{pmatrix} ... \end{pmatrix}` - Matrix enclosed in parentheses. + - `\begin{bmatrix} ... \end{bmatrix}` - Matrix enclosed in square brackets. + - `\begin{vmatrix} ... \end{vmatrix}` - Matrix enclosed in vertical bars. + +## Figures and Tables + +### Figures +- `\begin{figure} ... \end{figure}` - Creates a figure environment for inserting images. +- `\includegraphics[options]{image_file}` - Inserts an image with specified options. + +### Tables +- `\begin{table} ... \end{table}` - Creates a table environment for creating tables. +- `\begin{tabular}{columns} ... \end{tabular}` - Defines the table structure with the specified number of columns. +- `&` - Separates table columns. +- `\\` - Starts a new row in the table. + +## References and Citations + +### Labels and References +- `\label{label_name}` - Defines a label for a section, equation, figure, or table. Labels are used to refer to specific sections, equations, figures, or tables. +- `\ref{label_name}` - Refers to the labeled section, equation, figure, or table. + +### Bibliography and Citations +- LaTeX supports bibliographies and citations using the BibTeX system. To include a bibliography and citations in your document: + - Define the bibliography style using `\bibliographystyle{style}`. + - Include the bibliography file using `\bibliography{bibfile}`. + - Cite references using `\cite{citation_key}`. + +## Miscellaneous + +### Comments +- `% comment` - Inserts a comment. Comments are ignored by the LaTeX compiler and are useful for adding notes to your code. + +### Horizontal Line +- `\hrule` - Inserts a horizontal line. + +### Page Break +- `\newpage` - Starts a new page. + +### Special Characters +- Certain characters have special meaning in LaTeX. To typeset these characters, you need to use the corresponding LaTeX command: + - `\$` - Dollar sign + - `\%` - Percent sign + - `\&` - Ampersand + - `\_` - Underscore + - `\{ \}` - Curly braces + +## Conclusion + +This cheat sheet provides a quick reference for LaTeX commands and syntax. For more detailed information, consult the official LaTeX documentation or visit the [LaTeX Documentation](https://www.latex-project.org/help/documentation/) From a3eaa90c8e787755c570bda58df359fd561b4d0a Mon Sep 17 00:00:00 2001 From: Pranav Dev Date: Tue, 27 Jun 2023 17:29:36 +0000 Subject: [PATCH 2/6] minor changes in latex file --- LaTeX2e.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LaTeX2e.md b/LaTeX2e.md index dc37ce4bcdc..a7368c9e3bb 100644 --- a/LaTeX2e.md +++ b/LaTeX2e.md @@ -1,9 +1,9 @@ --- -title: Vim -category: Vim +title: LaTeX2e +category: LaTeX layout: 2017/sheet tags: [Featured] -updated: 2020-07-05 +updated: 2023-06-27 weight: -10 intro: | [Latex](https://www.latex-project.org/) LaTeX is a high-quality typesetting system; @@ -144,4 +144,4 @@ Font sizes can be changed using commands such as: ## Conclusion -This cheat sheet provides a quick reference for LaTeX commands and syntax. For more detailed information, consult the official LaTeX documentation or visit the [LaTeX Documentation](https://www.latex-project.org/help/documentation/) +This cheat sheet provides a quick reference for LaTeX commands and syntax. For more detailed information, consult the official LaTeX documentation or visit the [LaTeX Documentation](https://www.latex-project.org/help/documentation/) on devinhints.io. From cefc5c669205f12c671a75158ba47897a358aba9 Mon Sep 17 00:00:00 2001 From: Pranav Date: Tue, 27 Jun 2023 23:12:22 +0530 Subject: [PATCH 3/6] Create LaTeX2e.md --- LaTeX2e | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 LaTeX2e diff --git a/LaTeX2e b/LaTeX2e new file mode 100644 index 00000000000..a7368c9e3bb --- /dev/null +++ b/LaTeX2e @@ -0,0 +1,147 @@ +--- +title: LaTeX2e +category: LaTeX +layout: 2017/sheet +tags: [Featured] +updated: 2023-06-27 +weight: -10 +intro: | + [Latex](https://www.latex-project.org/) LaTeX is a high-quality typesetting system; + This reference was made for LaTeX2e +--- + +# LaTeX Cheat Sheet + +## Document Structure + +### Document Class +- `\documentclass{}` - Specifies the type of document. Common document classes include: + - `article` - For articles in journals, short reports, and documentation. + - `report` - For longer reports, theses, and dissertations. + - `book` - For books. + - `letter` - For letters. + - `beamer` - For presentations. + +### Packages +- `\usepackage{}` - Loads additional packages for extended functionality. Packages add features such as including images, formatting tables, adding code listings, and more. + +### Document Structure +- `\begin{document}` - Begins the document. All content should be placed after this command. +- `\end{document}` - Ends the document. Nothing should be placed after this command. + +### Sections +- `\section{}` - Creates a new section with a heading. Sections are numbered by default. +- `\subsection{}` - Creates a new subsection within a section. +- `\subsubsection{}` - Creates a new subsubsection within a subsection. + +### Table of Contents +- `\tableofcontents` - Generates a table of contents based on the section headings in the document. + +## Formatting Text + +### Font Styles +- `\textbf{}` - Formats text in bold. +- `\textit{}` - Formats text in italics. +- `\underline{}` - Underlines text. + +### Font Size +Font sizes can be changed using commands such as: +- `\tiny` +- `\scriptsize` +- `\footnotesize` +- `\small` +- `\normalsize` +- `\large` +- `\Large` +- `\LARGE` +- `\huge` +- `\Huge` + +### Lists +- `\begin{itemize}` - Begins a bulleted list. +- `\item` - Adds an item to the bulleted list. +- `\end{itemize}` - Ends the bulleted list. + +- `\begin{enumerate}` - Begins a numbered list. +- `\item` - Adds an item to the numbered list. +- `\end{enumerate}` - Ends the numbered list. + +## Mathematical Equations + +### Inline Math +- `$ equation $` - Inserts an equation within the text using inline math mode. The equation is surrounded by `$` symbols. + +### Display Math +- `\[ equation \]` - Displays an equation on its own line using display math mode. The equation is surrounded by `\[` and `\]` symbols. + +### Superscripts and Subscripts +- `x^2` - Formats `x` as a superscript. +- `x_1` - Formats `x` as a subscript. + +### Fractions +- `\frac{numerator}{denominator}` - Creates a fraction with the specified numerator and denominator. + +### Greek Letters +- Greek letters can be inserted using their respective LaTeX commands, such as: + - `\alpha` - Alpha + - `\beta` - Beta + - `\gamma` - Gamma + - ... + +### Sum and Integral +- `\sum` - Inserts a summation symbol. +- `\int` - Inserts an integral symbol. + +### Matrices +- Various matrix environments are available: + - `\begin{matrix} ... \end{matrix}` - Basic matrix. + - `\begin{pmatrix} ... \end{pmatrix}` - Matrix enclosed in parentheses. + - `\begin{bmatrix} ... \end{bmatrix}` - Matrix enclosed in square brackets. + - `\begin{vmatrix} ... \end{vmatrix}` - Matrix enclosed in vertical bars. + +## Figures and Tables + +### Figures +- `\begin{figure} ... \end{figure}` - Creates a figure environment for inserting images. +- `\includegraphics[options]{image_file}` - Inserts an image with specified options. + +### Tables +- `\begin{table} ... \end{table}` - Creates a table environment for creating tables. +- `\begin{tabular}{columns} ... \end{tabular}` - Defines the table structure with the specified number of columns. +- `&` - Separates table columns. +- `\\` - Starts a new row in the table. + +## References and Citations + +### Labels and References +- `\label{label_name}` - Defines a label for a section, equation, figure, or table. Labels are used to refer to specific sections, equations, figures, or tables. +- `\ref{label_name}` - Refers to the labeled section, equation, figure, or table. + +### Bibliography and Citations +- LaTeX supports bibliographies and citations using the BibTeX system. To include a bibliography and citations in your document: + - Define the bibliography style using `\bibliographystyle{style}`. + - Include the bibliography file using `\bibliography{bibfile}`. + - Cite references using `\cite{citation_key}`. + +## Miscellaneous + +### Comments +- `% comment` - Inserts a comment. Comments are ignored by the LaTeX compiler and are useful for adding notes to your code. + +### Horizontal Line +- `\hrule` - Inserts a horizontal line. + +### Page Break +- `\newpage` - Starts a new page. + +### Special Characters +- Certain characters have special meaning in LaTeX. To typeset these characters, you need to use the corresponding LaTeX command: + - `\$` - Dollar sign + - `\%` - Percent sign + - `\&` - Ampersand + - `\_` - Underscore + - `\{ \}` - Curly braces + +## Conclusion + +This cheat sheet provides a quick reference for LaTeX commands and syntax. For more detailed information, consult the official LaTeX documentation or visit the [LaTeX Documentation](https://www.latex-project.org/help/documentation/) on devinhints.io. From 2bab1d8b4d1a3873442b261f99a2709d4de7eb45 Mon Sep 17 00:00:00 2001 From: Pranav Date: Tue, 27 Jun 2023 23:24:19 +0530 Subject: [PATCH 4/6] Delete LaTeX2e --- LaTeX2e | 147 -------------------------------------------------------- 1 file changed, 147 deletions(-) delete mode 100644 LaTeX2e diff --git a/LaTeX2e b/LaTeX2e deleted file mode 100644 index a7368c9e3bb..00000000000 --- a/LaTeX2e +++ /dev/null @@ -1,147 +0,0 @@ ---- -title: LaTeX2e -category: LaTeX -layout: 2017/sheet -tags: [Featured] -updated: 2023-06-27 -weight: -10 -intro: | - [Latex](https://www.latex-project.org/) LaTeX is a high-quality typesetting system; - This reference was made for LaTeX2e ---- - -# LaTeX Cheat Sheet - -## Document Structure - -### Document Class -- `\documentclass{}` - Specifies the type of document. Common document classes include: - - `article` - For articles in journals, short reports, and documentation. - - `report` - For longer reports, theses, and dissertations. - - `book` - For books. - - `letter` - For letters. - - `beamer` - For presentations. - -### Packages -- `\usepackage{}` - Loads additional packages for extended functionality. Packages add features such as including images, formatting tables, adding code listings, and more. - -### Document Structure -- `\begin{document}` - Begins the document. All content should be placed after this command. -- `\end{document}` - Ends the document. Nothing should be placed after this command. - -### Sections -- `\section{}` - Creates a new section with a heading. Sections are numbered by default. -- `\subsection{}` - Creates a new subsection within a section. -- `\subsubsection{}` - Creates a new subsubsection within a subsection. - -### Table of Contents -- `\tableofcontents` - Generates a table of contents based on the section headings in the document. - -## Formatting Text - -### Font Styles -- `\textbf{}` - Formats text in bold. -- `\textit{}` - Formats text in italics. -- `\underline{}` - Underlines text. - -### Font Size -Font sizes can be changed using commands such as: -- `\tiny` -- `\scriptsize` -- `\footnotesize` -- `\small` -- `\normalsize` -- `\large` -- `\Large` -- `\LARGE` -- `\huge` -- `\Huge` - -### Lists -- `\begin{itemize}` - Begins a bulleted list. -- `\item` - Adds an item to the bulleted list. -- `\end{itemize}` - Ends the bulleted list. - -- `\begin{enumerate}` - Begins a numbered list. -- `\item` - Adds an item to the numbered list. -- `\end{enumerate}` - Ends the numbered list. - -## Mathematical Equations - -### Inline Math -- `$ equation $` - Inserts an equation within the text using inline math mode. The equation is surrounded by `$` symbols. - -### Display Math -- `\[ equation \]` - Displays an equation on its own line using display math mode. The equation is surrounded by `\[` and `\]` symbols. - -### Superscripts and Subscripts -- `x^2` - Formats `x` as a superscript. -- `x_1` - Formats `x` as a subscript. - -### Fractions -- `\frac{numerator}{denominator}` - Creates a fraction with the specified numerator and denominator. - -### Greek Letters -- Greek letters can be inserted using their respective LaTeX commands, such as: - - `\alpha` - Alpha - - `\beta` - Beta - - `\gamma` - Gamma - - ... - -### Sum and Integral -- `\sum` - Inserts a summation symbol. -- `\int` - Inserts an integral symbol. - -### Matrices -- Various matrix environments are available: - - `\begin{matrix} ... \end{matrix}` - Basic matrix. - - `\begin{pmatrix} ... \end{pmatrix}` - Matrix enclosed in parentheses. - - `\begin{bmatrix} ... \end{bmatrix}` - Matrix enclosed in square brackets. - - `\begin{vmatrix} ... \end{vmatrix}` - Matrix enclosed in vertical bars. - -## Figures and Tables - -### Figures -- `\begin{figure} ... \end{figure}` - Creates a figure environment for inserting images. -- `\includegraphics[options]{image_file}` - Inserts an image with specified options. - -### Tables -- `\begin{table} ... \end{table}` - Creates a table environment for creating tables. -- `\begin{tabular}{columns} ... \end{tabular}` - Defines the table structure with the specified number of columns. -- `&` - Separates table columns. -- `\\` - Starts a new row in the table. - -## References and Citations - -### Labels and References -- `\label{label_name}` - Defines a label for a section, equation, figure, or table. Labels are used to refer to specific sections, equations, figures, or tables. -- `\ref{label_name}` - Refers to the labeled section, equation, figure, or table. - -### Bibliography and Citations -- LaTeX supports bibliographies and citations using the BibTeX system. To include a bibliography and citations in your document: - - Define the bibliography style using `\bibliographystyle{style}`. - - Include the bibliography file using `\bibliography{bibfile}`. - - Cite references using `\cite{citation_key}`. - -## Miscellaneous - -### Comments -- `% comment` - Inserts a comment. Comments are ignored by the LaTeX compiler and are useful for adding notes to your code. - -### Horizontal Line -- `\hrule` - Inserts a horizontal line. - -### Page Break -- `\newpage` - Starts a new page. - -### Special Characters -- Certain characters have special meaning in LaTeX. To typeset these characters, you need to use the corresponding LaTeX command: - - `\$` - Dollar sign - - `\%` - Percent sign - - `\&` - Ampersand - - `\_` - Underscore - - `\{ \}` - Curly braces - -## Conclusion - -This cheat sheet provides a quick reference for LaTeX commands and syntax. For more detailed information, consult the official LaTeX documentation or visit the [LaTeX Documentation](https://www.latex-project.org/help/documentation/) on devinhints.io. From 4f69b9f24fe07fbecf6481abd803479a910c8728 Mon Sep 17 00:00:00 2001 From: Pranav Dev Date: Tue, 27 Jun 2023 17:59:58 +0000 Subject: [PATCH 5/6] idk --- LaTeX2e.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LaTeX2e.md b/LaTeX2e.md index a7368c9e3bb..f6ca36541d6 100644 --- a/LaTeX2e.md +++ b/LaTeX2e.md @@ -1,6 +1,6 @@ --- title: LaTeX2e -category: LaTeX +category: LaTeX2e layout: 2017/sheet tags: [Featured] updated: 2023-06-27 From 2713a25d5c8b7767ec98822d5da9e78068143343 Mon Sep 17 00:00:00 2001 From: Pranav Date: Thu, 29 Jun 2023 11:32:41 +0530 Subject: [PATCH 6/6] Fixed some text --- LaTeX2e.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LaTeX2e.md b/LaTeX2e.md index f6ca36541d6..9de43eefdd8 100644 --- a/LaTeX2e.md +++ b/LaTeX2e.md @@ -6,7 +6,7 @@ tags: [Featured] updated: 2023-06-27 weight: -10 intro: | - [Latex](https://www.latex-project.org/) LaTeX is a high-quality typesetting system; + [Latex](https://www.latex-project.org/) is a high-quality typesetting system; This reference was made for LaTeX2e --- @@ -144,4 +144,4 @@ Font sizes can be changed using commands such as: ## Conclusion -This cheat sheet provides a quick reference for LaTeX commands and syntax. For more detailed information, consult the official LaTeX documentation or visit the [LaTeX Documentation](https://www.latex-project.org/help/documentation/) on devinhints.io. +This cheat sheet provides a quick reference for LaTeX commands and syntax. For more detailed information, consult the official LaTeX documentation or visit the [LaTeX Documentation](https://www.latex-project.org/help/documentation/).