Skip to content

Latest commit

 

History

History
449 lines (391 loc) · 8.12 KB

latex.md

File metadata and controls

449 lines (391 loc) · 8.12 KB

LaTeX

Resources

Document

What is the common method to write a document as a beginner?

Description

Using online tex compiler: https://overleaf.com


Resources


References

What is the best practice in naming tex files?

Description

Do not use spaces in naming of tex files. Use hyphens or dots instead.


Resources


References

How many document classes are available?

Description

  • article
  • exam

Resources


References

Create an empty article document?

Description

Documents should have at least one line of text to compile.

\documentclass{article}

\begin{document} Sample text. \end{document}


---
**Resources**
- https://www.youtube.com - https://www.youtube.com/watch?v=0ivLZh9xK1Q&list=PL1D4EAB31D3EBC449&index=1
- https://www.youtube.com - https://www.youtube.com/watch?v=cnEXgHFOxMU&list=PLLybgCU6QCGU2Hh8R3oCwZnVZry-ICY5R&index=2
---
**References**
---
Set default font for document?

Description

\documentclass[11pt]{article}

\begin{document}
Sample Text
\end{document}

Resources


References

Make a title in document?

Description

\documentclass{article}

\title{Sample Document}
\author{Brian Salehi}
\date{\today}

\begin{document}
\maketitle
\end{document}

Resources


References

Package

Which packages come with latex setup?

Common Packages

What are the common necessary packages to be used?

What features does the blindtext package present?

Description

\documentclass{article}
\usepackage(blindtext)

\begin{document}
\blindtext
\end{document}

Resources


References

Unicode Text

What package should be used when UTF8 characters are written in text?

Description

\documentclass{article}
\usepackage[utf8]{inputenc}

\begin{document}
Groß Text.
\end{document}

Resources


References

New Line

What is best method to separate consequent lines in tex document?

Description

Newline \\ can be at the end of the line we want to break.

Sample text.\\
Next line of text.

Resources


References

Text Format

Bold a text?

Description

\textbf{Bold text}

Resources


References

Italic a text?

Description

\textit{Italic text}

Resources


References

Underline a text?

Description

\underline{Underline text}

Resources


References

Underline a text with double line?

Description

usepackage(ulem)

\underline{\underline{Double underline text}}
\uuline{Double underline text}}

Resources


References

Underline a text with wavy line?

Description

usepackage(ulem)

\uwave{Wavy Underline text}

Resources


References

Strikethrough a text?

Description

usepackage(ulem)

\sout{Strikethrough text}

Resources


References

Slash through a text?

Description

usepackage(ulem)

\xout{Slashed out text}

Resources


References

Underline text with dashed line?

Description

usepackage(ulem)

\dashuline{Dash underline text}

Resources


References

Underline text with dotted line?

Description

usepackage(ulem)

\dotuline{Dotted underline text}

Resources


References

Text Color

Color text?

Description

\documentclass[11pt]{article} \usepackage{xcolor}

\begin{document} \color{red}Colored Text \end{document}


---
**Resources**
- https://www.youtube.com - https://www.youtube.com/watch?v=0ivLZh9xK1Q&list=PL1D4EAB31D3EBC449&index=1
---
**References**
---

Inline Math

What symbol is used to create an inline math block?

Description

A rectangle has side lengths of $(x+1)$ and $(x+3)$.
The equation $A(x) = x^2 + 4x + 3$ gives the area of the rectangle.

Resources


References

Protect a piece of inline math block from breaking into two lines?

Description

Surround the math block with curly braces ${ equation }$ to protect it from breakage.

A rectangle has side lengths of $(x+1)$ and $(x+3)$.
The equation ${A(x) = x^2 + 4x + 3}$ gives the area of the rectangle.

Resources


References

Block Math

Write a math equation to be shown in a new separate line?

Description

The equation $${A(x) = x^2 + 4x + 3}$$ gives the area of the rectangle.

Resources


References