Additional work to LaTeX section
This commit is contained in:
parent
786a5ceb52
commit
ab377f3c8c
@ -100,6 +100,7 @@
|
|||||||
\usepackage{musixtex}
|
\usepackage{musixtex}
|
||||||
\usepackage[generate,ps2eps]{abc}
|
\usepackage[generate,ps2eps]{abc}
|
||||||
\usepackage{mathptmx} %Necessary for abc package to work?
|
\usepackage{mathptmx} %Necessary for abc package to work?
|
||||||
|
\usepackage{mathtools}
|
||||||
|
|
||||||
% Do we want to include URLs?
|
% Do we want to include URLs?
|
||||||
% Yes, but we also want to hide the big red box it puts around them in the pdf. Thanks /u/0b0101011001001011
|
% Yes, but we also want to hide the big red box it puts around them in the pdf. Thanks /u/0b0101011001001011
|
||||||
@ -351,6 +352,8 @@ I realized that even though I've mentioned that the reason I created this zine w
|
|||||||
|
|
||||||
\paragraph{A Caveat} First, I am far from an expert in these matters. What follows is pretty much a listing of what I've gleaned from hours spent searching the internet and trying things out myself. Second, some things will look differently and behave differently for you depending on variables such as the document class (see below) you are using and which other packages you have loaded. As I always say in such matters, \textit{your mileage may vary} \textit{practice doesn't make perfect, but it does make it less shitty}. A willingness to experiment is your best guide.
|
\paragraph{A Caveat} First, I am far from an expert in these matters. What follows is pretty much a listing of what I've gleaned from hours spent searching the internet and trying things out myself. Second, some things will look differently and behave differently for you depending on variables such as the document class (see below) you are using and which other packages you have loaded. As I always say in such matters, \textit{your mileage may vary} \textit{practice doesn't make perfect, but it does make it less shitty}. A willingness to experiment is your best guide.
|
||||||
|
|
||||||
|
Also, if you have access to the source code so you can see how other people have done things, so much the better. You can view the source code for this zine at \href{https://git.kjodle.net/kjodle/the-codex}{\texttt{https://git.kjodle.net/kjodle/the-codex}}.
|
||||||
|
|
||||||
\section{Files}
|
\section{Files}
|
||||||
|
|
||||||
\LaTeX{} uses plain files with a file extension of \texttt{.tex}. That's it! They contain plain text only and no binary codes or hidden formatting extensions. (Try opening any word processing document in a text editor and see what I mean here.) You can use any text editor, although a GUI is available for most operating systems.
|
\LaTeX{} uses plain files with a file extension of \texttt{.tex}. That's it! They contain plain text only and no binary codes or hidden formatting extensions. (Try opening any word processing document in a text editor and see what I mean here.) You can use any text editor, although a GUI is available for most operating systems.
|
||||||
@ -558,7 +561,7 @@ As an example, we'll use the above example, but in a bulleted list:
|
|||||||
|
|
||||||
\subsection{Math in \LaTeX{}}
|
\subsection{Math in \LaTeX{}}
|
||||||
|
|
||||||
\LaTeX{} has a couple of different environments that are useful for typesetting math (\texttt{align} and \texttt{array}, but they get a little beyond what I want to cover here.\footnote{Maybe in a later issue? I can, if there is interest.}
|
\LaTeX{} has a couple of different environments that are useful for typesetting math (\texttt{align} and \texttt{array}, but they get a little beyond what I want to cover here.\footnote{Maybe in a later issue? I can, if there is interest.} In addition, there are other packages (in particular \texttt{amsmath} and \texttt{mathtools}) that greatly extend the power of LaTeX to handle mathematical typesettings, but again, they are beyond the scope of this zine.
|
||||||
|
|
||||||
There are two types of \textit{entry modes} for math in LaTeX. The first is in-line mode, which begins and ends with a dollar sign, and renders the math in the same line of text as the rest of the paragraph.
|
There are two types of \textit{entry modes} for math in LaTeX. The first is in-line mode, which begins and ends with a dollar sign, and renders the math in the same line of text as the rest of the paragraph.
|
||||||
|
|
||||||
@ -570,6 +573,8 @@ The Pythagorean Theorem is $x^2 + y^2 = z^2$.
|
|||||||
|
|
||||||
\noindent{} The Pythagorean Theorem is $x^2 + y^2 = z^2$. \\
|
\noindent{} The Pythagorean Theorem is $x^2 + y^2 = z^2$. \\
|
||||||
|
|
||||||
|
This is particularly useful if you want to include Greek characters in your text, because the code for the letter is simply the letter itself. For example, \verb+&\alpha$+ renders as $\alpha$. Need capital letters?\footnote{At least for the characters where the Greek and Latin alphabets \textit{don't} share a common character} Just capitalize it: \verb+$\Gamma+ $\rightarrow \, \Gamma$
|
||||||
|
|
||||||
Math in \LaTeX{} can also be shown in display mode, which renders the mathematics on a separate line. The entry mode begins with \verb+\[+ and ends with \verb+\]+. If we change our example up above to this:
|
Math in \LaTeX{} can also be shown in display mode, which renders the mathematics on a separate line. The entry mode begins with \verb+\[+ and ends with \verb+\]+. If we change our example up above to this:
|
||||||
|
|
||||||
\begin{Verbatim}[frame=lines, label=Display Mode Math Example, framesep=3mm]
|
\begin{Verbatim}[frame=lines, label=Display Mode Math Example, framesep=3mm]
|
||||||
|
Loading…
Reference in New Issue
Block a user