-
Notifications
You must be signed in to change notification settings - Fork 2
/
01-latex.Rmd
21 lines (14 loc) · 3.42 KB
/
01-latex.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# What is LaTeX? {#latex}
LaTeX is a document preparation system for high-quality typesetting. [@latexproject] It is part of a mature and established toolchain that has been around since 1980's. [@knuth] Originally written by [Leslie Lamport](https://en.wikipedia.org/wiki/Leslie_Lamport), a computer scientist
now working at Microsoft Research, its development has long been taken over by the open-source LaTeX community around the world. [LaTeX](https://en.wikipedia.org/wiki/LaTeX) is actually built on top of another system called [TeX](https://en.wikipedia.org/wiki/TeX), a computer typesetting system designed by another influential Computer Scientist, [Donald Knuth](https://en.wikipedia.org/wiki/Donald_Knuth) of Stanford University. Lamport and Knuth are shown in Figure \@ref(fig:knuthport-fig).
```{r knuthport-fig, echo = FALSE, fig.show = "hold", out.width = "47%", fig.cap = "(ref:captionknuth)"}
knitr::include_graphics(rep(c("images/Leslie_Lamport.jpg","images/KnuthAtOpenContentAlliance.jpg"),1))
```
(ref:captionknuth) [Turing award](https://en.wikipedia.org/wiki/Turing_Award) winners Leslie Lamport and Donald Knuth created TeX and LaTeX during the 1980's. Lamport portrait by Leslie Lamport, GFDL via Wikimedia Commons [w.wiki/3Daz](https://w.wiki/3Daz), Knuth portrait by Jacob Appelbaum CC BY-SA via Wikimedia Commons [w.wiki/3Day](https://w.wiki/3Day). Is Donald Knuth the [The Yoda of Silicon Valley](https://www.nytimes.com/2018/12/17/science/donald-knuth-computers-algorithms-programming.html)? [@yoda]
LaTeX is typically used for technical documents but it can be used for almost any form of publishing, including writing CVs, letters, books, posters, presentations and much more. Whatever you create with LaTeX, one of its key strengths is making documents look professional in portable document format (pdf) using industrial-strength typesetting.
## LaTeX is NOT a word processor {#notword}
By itself, LaTeX is *not* a word processor! Instead, LaTeX encourages you to concentrate on the *content* of your documents, while it takes care of the details of its presentation. This is similar to the approach you've been using for creating web pages in COMP1010 where the style (in your cascading style-sheet: `*.css`) should be cleanly separated from the raw content (in your `*.html`). This is a classic abstraction technique in computing by [separation of concerns](https://en.wikipedia.org/wiki/Separation_of_concerns) (SoC). If you're reading this page in a web browser, view the source of this page `latex.html` as an example, the html only describes the content and says very little about its presentation, that is described separately in the cascading style sheet.
LaTeX is **not** a what you see is what you get ([WYSIWYG](https://en.wikipedia.org/wiki/WYSIWYG)) system either. The raw document you edit (a `*.tex` file input) is not your final result (usually a `*.pdf` file output). LaTeX doesn't even come with a spell-checker, though there are many plug-ins you can use for that, they are not built in.
## So what is LaTeX then?
LaTeX is a professional typesetting software system. It can produce documents with a much higher standard of [typography](https://en.wikipedia.org/wiki/Typography) than your average Word processor is capable of. It also has some useful features to help you write scientific and technical documentation, as we will see.
The best way to understand LaTeX is to create some simple documents which we'll do in the next chapter.