From 93c92ac2361244a3ba78e523309517499950212a Mon Sep 17 00:00:00 2001 From: Petru Dimitriu Date: Mon, 1 Feb 2016 14:04:10 +0200 Subject: Fix tiny typo in LaTeX doc --- latex.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'latex.html.markdown') diff --git a/latex.html.markdown b/latex.html.markdown index 2492f226..d41f6b2f 100644 --- a/latex.html.markdown +++ b/latex.html.markdown @@ -205,7 +205,7 @@ environment. By now you're probably wondering how to compile this fabulous document and look at the glorious glory that is a LaTeX pdf. -(yes, this document actually does compiles). \\ +(yes, this document actually does compile). \\ Getting to the final document using LaTeX consists of the following steps: \begin{enumerate} \item Write the document in plain text (the "source code"). -- cgit v1.2.3 From 98651771ed1f2d3a9494271e2e9a7ee9ca1feb9a Mon Sep 17 00:00:00 2001 From: oliverpool Date: Sun, 20 Mar 2016 14:26:12 +0100 Subject: Typo: LaTeX table columns are separated by '&' --- latex.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'latex.html.markdown') diff --git a/latex.html.markdown b/latex.html.markdown index d41f6b2f..0c443c8a 100644 --- a/latex.html.markdown +++ b/latex.html.markdown @@ -178,7 +178,7 @@ We can also insert Tables in the same way as figures. % the {} arguments below describe how each row of the table is drawn. % Again, I have to look these up. Each. And. Every. Time. \begin{tabular}{c|cc} - Number & Last Name & First Name \\ % Column rows are separated by $ + Number & Last Name & First Name \\ % Column rows are separated by & \hline % a horizontal line 1 & Biggus & Dickus \\ 2 & Monty & Python -- cgit v1.2.3 From 6fe6a9b16bae20a0770bdfa78e67423e9b154d3b Mon Sep 17 00:00:00 2001 From: Maxim Berman Date: Thu, 31 Mar 2016 10:09:45 +0200 Subject: Replace invite sign $ by > in compilation example $ sign messes with syntax highlighting (it stays in math mode for the rest of the document). Using > fixes this easily. --- latex.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'latex.html.markdown') diff --git a/latex.html.markdown b/latex.html.markdown index 0c443c8a..81c0d24c 100644 --- a/latex.html.markdown +++ b/latex.html.markdown @@ -212,7 +212,7 @@ Getting to the final document using LaTeX consists of the following steps: \item Compile source code to produce a pdf. The compilation step looks something like this (in Linux): \\ \begin{verbatim} - $pdflatex learn-latex.tex learn-latex.pdf + > pdflatex learn-latex.tex learn-latex.pdf \end{verbatim} \end{enumerate} -- cgit v1.2.3 From 8fa91ffcb2b026ae02ae15d5f444fdf7af7b6e25 Mon Sep 17 00:00:00 2001 From: Strange Storyteller Date: Tue, 27 Sep 2016 18:41:45 +0400 Subject: Add Hyperlinks description (#2370) Also add small changes in style: - LaTeX -> \LaTeX - improve alignment for formulas in Math section Add table of contents --- latex.html.markdown | 94 +++++++++++++++++++++++++++++++++++------------------ 1 file changed, 63 insertions(+), 31 deletions(-) (limited to 'latex.html.markdown') diff --git a/latex.html.markdown b/latex.html.markdown index 81c0d24c..bb84a6d9 100644 --- a/latex.html.markdown +++ b/latex.html.markdown @@ -5,6 +5,7 @@ contributors: - ["Colton Kohnke", "http://github.com/voltnor"] - ["Sricharan Chiruvolu", "http://sricharan.xyz"] - ["Ramanan Balakrishnan", "https://github.com/ramananbalakrishnan"] + - ["Svetlana Golubeva", "https://attillax.github.io/"] filename: learn-latex.tex --- @@ -27,14 +28,17 @@ filename: learn-latex.tex % If you want to include graphics, colored text, or % source code from another language file into your document, % you need to enhance the capabilities of LaTeX. This is done by adding packages. -% I'm going to include the float and caption packages for figures. +% I'm going to include the float and caption packages for figures +% and hyperref package for hyperlinks \usepackage{caption} \usepackage{float} +\usepackage{hyperref} % We can define some other document properties too! -\author{Chaitanya Krishna Ande, Colton Kohnke \& Sricharan Chiruvolu} +\author{Chaitanya Krishna Ande, Colton Kohnke, Sricharan Chiruvolu \& \\ +Svetlana Golubeva} \date{\today} -\title{Learn LaTeX in Y Minutes!} +\title{Learn \LaTeX \hspace{1pt} in Y Minutes!} % Now we're ready to begin the document % Everything before this line is called "The Preamble" @@ -43,18 +47,28 @@ filename: learn-latex.tex % create a title page for us. \maketitle +% If we have sections, we can create table of contents. We have to compile our +% document twice to make it appear in right order. +% It is a good practice to separate the table of contents form the body of the +% document. To do so we use \newpage command +\newpage +\tableofcontents + +\newpage + % Most research papers have abstract, you can use the predefined commands for this. % This should appear in its logical order, therefore, after the top matter, % but before the main sections of the body. % This command is available in the document classes article and report. \begin{abstract} - LaTeX documentation written as LaTeX! How novel and totally not my idea! + \LaTeX \hspace{1pt} documentation written as \LaTeX! How novel and totally not + my idea! \end{abstract} % Section commands are intuitive. % All the titles of the sections are added automatically to the table of contents. \section{Introduction} -Hello, my name is Colton and together we're going to explore LaTeX! +Hello, my name is Colton and together we're going to explore \LaTeX! \section{Another section} This is the text for another section. I think it needs a subsection. @@ -72,12 +86,14 @@ Much better now. However not all sections have to be numbered! \section{Some Text notes} -LaTeX is generally pretty good about placing text where it should go. If -a line \\ needs \\ to \\ break \\ you add \textbackslash\textbackslash to -the source code. \\ +%\section{Spacing} % Need to add more information about space intervals +\LaTeX \hspace{1pt} is generally pretty good about placing text where it should +go. If +a line \\ needs \\ to \\ break \\ you add \textbackslash\textbackslash +\hspace{1pt} to the source code. \\ \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. \begin{enumerate} % This creates an "enumerate" environment. % \item tells the enumerate to increment @@ -93,8 +109,8 @@ tomorrow, so let's make a grocery list. \section{Math} -One of the primary uses for LaTeX is to produce academic articles or -technical papers. Usually in the realm of math and science. As such, +One of the primary uses for \LaTeX \hspace{1pt} is to produce academic articles +or technical papers. Usually in the realm of math and science. As such, we need to be able to add special symbols to our paper! \\ Math has many symbols, far beyond what you can find on a keyboard; @@ -112,25 +128,25 @@ Here's how you state all y that belong to X, $\forall$ x $\in$ X. \\ \[a^2 + b^2 = c^2 \] 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 \hspace{1pt} doesn't know +about! \\ Operators are essential parts of a mathematical document: trigonometric functions ($\sin$, $\cos$, $\tan$), logarithms and exponentials ($\log$, $\exp$), limits ($\lim$), etc. have per-defined LaTeX commands. -Let's write an equation to see how it's done: \\ - -$\cos(2\theta) = \cos^{2}(\theta) - \sin^{2}(\theta)$ +Let's write an equation to see how it's done: +$\cos(2\theta) = \cos^{2}(\theta) - \sin^{2}(\theta)$ \\ -Fractions(Numerator-denominators) can be written in these forms: +Fractions (Numerator-denominators) can be written in these forms: % 10 / 7 -$^{10}/_{7}$ +$$ ^{10}/_{7} $$ % Relatively complex fractions can be written as % \frac{numerator}{denominator} -$\frac{n!}{k!(n - k)!}$ \\ +$$ \frac{n!}{k!(n - k)!} $$ \\ We can also insert equations in an "equation environment". @@ -185,12 +201,10 @@ We can also insert Tables in the same way as figures. \end{tabular} \end{table} -% \section{Hyperlinks} % Coming soon - -\section{Getting LaTeX to not compile something (i.e. Source Code)} -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 -instead just print it to the document. We do this we a verbatim +\section{Getting \LaTeX \hspace{1pt} to not compile something (i.e. Source Code)} +Let's say we want to include some code into our \LaTeX \hspace{1pt} document, +we would then need \LaTeX \hspace{1pt} to not try and interpret that text and +instead just print it to the document. We do this with a verbatim environment. % There are other packages that exist (i.e. minty, lstlisting, etc.) @@ -204,26 +218,43 @@ environment. \section{Compiling} 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 \hspace{1pt} pdf. (yes, this document actually does compile). \\ -Getting to the final document using LaTeX consists of the following steps: +Getting to the final document using \LaTeX \hspace{1pt} consists of the following +steps: \begin{enumerate} \item Write the document in plain text (the "source code"). \item Compile source code to produce a pdf. - The compilation step looks something like this (in Linux): \\ + The compilation step looks like this (in Linux): \\ \begin{verbatim} - > pdflatex learn-latex.tex learn-latex.pdf + > pdflatex learn-latex.tex \end{verbatim} \end{enumerate} -A number of LaTeX editors combine both Step 1 and Step 2 in the same piece of -software. So, you get to see Step 1, but not Step 2 completely. +A number of \LaTeX \hspace{1pt}editors combine both Step 1 and Step 2 in the +same piece of software. So, you get to see Step 1, but not Step 2 completely. Step 2 is still happening behind the scenes. You write all your formatting information in plain text in Step 1. The compilation part in Step 2 takes care of producing the document in the format you defined in Step 1. +\section{Hyperlinks} +We can also insert hyperlinks in our document. To do so we need to include the +package hyperref into preamble with the command: +\begin{verbatim} + \usepackage{hyperref} +\end{verbatim} + +There exists two main types of links: visible URL \\ +\url{https://learnxinyminutes.com/docs/latex/}, or +\href{https://learnxinyminutes.com/docs/latex/}{shadowed by text} +% You can not add extra-spaces or special symbols into shadowing text since it +% will cause mistakes during the compilation + +This package also produces list of tumbnails in the output pdf document and +active links in the table of contents. + \section{End} That's all for now! @@ -233,7 +264,8 @@ That's all for now! \begin{thebibliography}{1} % similar to other lists, the \bibitem command can be used to list items % each entry can then be cited directly in the body of the text - \bibitem{latexwiki} The amazing LaTeX wikibook: {\em https://en.wikibooks.org/wiki/LaTeX} + \bibitem{latexwiki} The amazing \LaTeX \hspace{1pt} wikibook: {\em +https://en.wikibooks.org/wiki/LaTeX} \bibitem{latextutorial} An actual tutorial: {\em http://www.latex-tutorial.com} \end{thebibliography} -- cgit v1.2.3 From 0659107a78bddd722df816daa01ee622fb4508d1 Mon Sep 17 00:00:00 2001 From: Ramanan Balakrishnan Date: Sat, 22 Oct 2016 02:04:23 +0530 Subject: [latex/en] minor typo fixes (#2481) --- latex.html.markdown | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'latex.html.markdown') diff --git a/latex.html.markdown b/latex.html.markdown index bb84a6d9..a3866892 100644 --- a/latex.html.markdown +++ b/latex.html.markdown @@ -117,7 +117,7 @@ Math has many symbols, far beyond what you can find on a keyboard; Set and relation symbols, arrows, operators, and Greek letters to name a few.\\ Sets and relations play a vital role in many mathematical research papers. -Here's how you state all y that belong to X, $\forall$ x $\in$ X. \\ +Here's how you state all x that belong to X, $\forall$ x $\in$ X. \\ % Notice how I needed to add $ signs before and after the symbols. This is % because when writing, we are in text-mode. % However, the math symbols only exist in math-mode. @@ -128,7 +128,7 @@ Here's how you state all y that belong to X, $\forall$ x $\in$ X. \\ \[a^2 + b^2 = c^2 \] My favorite Greek letter is $\xi$. I also like $\beta$, $\gamma$ and $\sigma$. -I haven't found a Greek letter that yet that \LaTeX \hspace{1pt} doesn't know +I haven't found a Greek letter yet that \LaTeX \hspace{1pt} doesn't know about! \\ Operators are essential parts of a mathematical document: @@ -148,7 +148,7 @@ $$ ^{10}/_{7} $$ % \frac{numerator}{denominator} $$ \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' \begin{equation} % enters math-mode @@ -223,7 +223,7 @@ and look at the glorious glory that is a \LaTeX \hspace{1pt} pdf. Getting to the final document using \LaTeX \hspace{1pt} consists of the following steps: \begin{enumerate} - \item Write the document in plain text (the "source code"). + \item Write the document in plain text (the ``source code''). \item Compile source code to produce a pdf. The compilation step looks like this (in Linux): \\ \begin{verbatim} @@ -233,7 +233,10 @@ steps: A number of \LaTeX \hspace{1pt}editors combine both Step 1 and Step 2 in the same piece of software. So, you get to see Step 1, but not Step 2 completely. -Step 2 is still happening behind the scenes. +Step 2 is still happening behind the scenes\footnote{In cases, where you use +references (like Eqn.~\ref{eq:pythagoras}), you may need to run Step 2 +multiple times, to generate an intermediary *.aux file.}. +% Also, this is how you add footnotes to your document! You write all your formatting information in plain text in Step 1. The compilation part in Step 2 takes care of producing the document in the -- cgit v1.2.3