mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-08 07:46:46 +02:00
Fix some typos in LaTeX article
This commit is contained in:
@@ -12,7 +12,7 @@ filename: learn-latex.tex
|
|||||||
% LaTeX is NOT a "What You See Is What You Get" word processing software like
|
% LaTeX is NOT a "What You See Is What You Get" word processing software like
|
||||||
% MS Word, or OpenOffice Writer
|
% MS Word, or OpenOffice Writer
|
||||||
|
|
||||||
% Every Latex command starts with a backslash (\)
|
% Every LaTeX command starts with a backslash (\)
|
||||||
|
|
||||||
% LaTeX documents start with a defining the type of document it's compiling
|
% LaTeX documents start with a defining the type of document it's compiling
|
||||||
% Other document types include book, report, presentations, etc.
|
% Other document types include book, report, presentations, etc.
|
||||||
@@ -45,7 +45,7 @@ filename: learn-latex.tex
|
|||||||
% but before the main sections of the body.
|
% but before the main sections of the body.
|
||||||
% This command is available in the document classes article and report.
|
% This command is available in the document classes article and report.
|
||||||
\begin{abstract}
|
\begin{abstract}
|
||||||
LaTex documentation written as LaTex! How novel and totally not my idea!
|
LaTeX documentation written as LaTeX! How novel and totally not my idea!
|
||||||
\end{abstract}
|
\end{abstract}
|
||||||
|
|
||||||
% Section commands are intuitive.
|
% Section commands are intuitive.
|
||||||
@@ -63,8 +63,8 @@ I think we need another one
|
|||||||
Much better now.
|
Much better now.
|
||||||
\label{subsec:pythagoras}
|
\label{subsec:pythagoras}
|
||||||
|
|
||||||
% By using the asterisk we can suppress Latex's inbuilt numbering.
|
% By using the asterisk we can suppress LaTeX's inbuilt numbering.
|
||||||
% This works for other Latex commands as well.
|
% This works for other LaTeX commands as well.
|
||||||
\section*{This is an unnumbered section}
|
\section*{This is an unnumbered section}
|
||||||
However not all sections have to be numbered!
|
However not all sections have to be numbered!
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ a line \\ needs \\ to \\ break \\ you add \textbackslash\textbackslash to
|
|||||||
the source code. \\
|
the source code. \\
|
||||||
|
|
||||||
\section{Lists}
|
\section{Lists}
|
||||||
Lists are one of the easiest things to create in Latex! I need to go shopping
|
Lists are one of the easiest things to create in LaTeX! I need to go shopping
|
||||||
tomorrow, so let's make a grocery list.
|
tomorrow, so let's make a grocery list.
|
||||||
\begin{enumerate} % This creates an "enumerate" environment.
|
\begin{enumerate} % This creates an "enumerate" environment.
|
||||||
% \item tells the enumerate to increment
|
% \item tells the enumerate to increment
|
||||||
@@ -106,7 +106,7 @@ Here's how you state all y that belong to X, $\forall$ x $\in$ X. \\
|
|||||||
% The opposite also holds true. Variable can also be rendered in math-mode.
|
% The opposite also holds true. Variable can also be rendered in math-mode.
|
||||||
|
|
||||||
My favorite Greek letter is $\xi$. I also like $\beta$, $\gamma$ and $\sigma$.
|
My favorite Greek letter is $\xi$. I also like $\beta$, $\gamma$ and $\sigma$.
|
||||||
I haven't found a Greek letter that yet that Latex doesn't know about!
|
I haven't found a Greek letter that yet that LaTeX doesn't know about!
|
||||||
|
|
||||||
Operators are essential parts of a mathematical document:
|
Operators are essential parts of a mathematical document:
|
||||||
trigonometric functions ($\sin$, $\cos$, $\tan$),
|
trigonometric functions ($\sin$, $\cos$, $\tan$),
|
||||||
@@ -126,7 +126,7 @@ $^{10}/_{7}$
|
|||||||
% \frac{numerator}{denominator}
|
% \frac{numerator}{denominator}
|
||||||
$\frac{n!}{k!(n - k)!}$ \\
|
$\frac{n!}{k!(n - k)!}$ \\
|
||||||
|
|
||||||
We can also insert equations in an "equation environment."
|
We can also insert equations in an "equation environment".
|
||||||
|
|
||||||
% Display math with the equation 'environment'
|
% Display math with the equation 'environment'
|
||||||
\begin{equation} % enters math-mode
|
\begin{equation} % enters math-mode
|
||||||
@@ -141,7 +141,7 @@ figures, equations, sections, etc.
|
|||||||
|
|
||||||
Summations and Integrals are written with sum and int commands:
|
Summations and Integrals are written with sum and int commands:
|
||||||
|
|
||||||
% Some latex compilers will complain if there are blank lines
|
% Some LaTeX compilers will complain if there are blank lines
|
||||||
% In an equation environment.
|
% In an equation environment.
|
||||||
\begin{equation}
|
\begin{equation}
|
||||||
\sum_{i=0}^{5} f_{i}
|
\sum_{i=0}^{5} f_{i}
|
||||||
@@ -181,9 +181,9 @@ We can also insert Tables in the same way as figures.
|
|||||||
|
|
||||||
% \section{Hyperlinks} % Coming soon
|
% \section{Hyperlinks} % Coming soon
|
||||||
|
|
||||||
\section{Getting Latex to not compile something (i,e, Source Code)}
|
\section{Getting LaTeX to not compile something (i.e. Source Code)}
|
||||||
Let's say we want to include some code into our Latex document,
|
Let's say we want to include some code into our LaTeX document,
|
||||||
we would then need Latex to not try and interpret that text and
|
we would then need LaTeX to not try and interpret that text and
|
||||||
instead just print it to the document. We do this we a verbatim
|
instead just print it to the document. We do this we a verbatim
|
||||||
environment.
|
environment.
|
||||||
|
|
||||||
@@ -198,7 +198,7 @@ environment.
|
|||||||
\section{Compiling}
|
\section{Compiling}
|
||||||
|
|
||||||
By now you're probably wondering how to compile this fabulous document
|
By now you're probably wondering how to compile this fabulous document
|
||||||
and look at the glorious glory that is a Latex pdf.
|
and look at the glorious glory that is a LaTeX pdf.
|
||||||
(yes, this document actually does compiles). \\
|
(yes, this document actually does compiles). \\
|
||||||
Getting to the final document using LaTeX consists of the following steps:
|
Getting to the final document using LaTeX consists of the following steps:
|
||||||
\begin{enumerate}
|
\begin{enumerate}
|
||||||
@@ -206,7 +206,7 @@ Getting to the final document using LaTeX consists of the following steps:
|
|||||||
\item Compile source code to produce a pdf.
|
\item Compile source code to produce a pdf.
|
||||||
The compilation step looks something like this (in Linux): \\
|
The compilation step looks something like this (in Linux): \\
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
$pdflatex learn-latex.tex learn-latex.pdf
|
$pdfLaTeX learn-LaTeX.tex learn-LaTeX.pdf
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
|
|
||||||
@@ -228,4 +228,4 @@ That's all for now!
|
|||||||
## More on LaTeX
|
## More on LaTeX
|
||||||
|
|
||||||
* The amazing LaTeX wikibook: [https://en.wikibooks.org/wiki/LaTeX](https://en.wikibooks.org/wiki/LaTeX)
|
* The amazing LaTeX wikibook: [https://en.wikibooks.org/wiki/LaTeX](https://en.wikibooks.org/wiki/LaTeX)
|
||||||
* An actual tutorial: [http://www.latex-tutorial.com/](http://www.latex-tutorial.com/)
|
* An actual tutorial: [http://www.LaTeX-tutorial.com/](http://www.LaTeX-tutorial.com/)
|
||||||
|
Reference in New Issue
Block a user