LaTeX, which is pronounced «Lah-tech» or «Lay-tech», is a document preparation system for high-quality typesetting. It is most often used for medium-to-large technical or scientific documents but it can be used for almost any form of publishing.
Installation
When installing LaTex, two following options are given to users:
- Install MacTeX with builtin editor (TexLive) - (3.2GB)
- Install BasicTeX only (100MB) + your personal LaTeX editor
Apple: Where are tex /mactex binaries after brew install mactexHelpful? Please support me on Patreon: thanks & pra. Brew cask install -appdir= ' /Applications ' handbrake # brew cask install -appdir='/Applications' gimp # brew cask install -appdir='/Applications' inkscape # Remove comment to install LaTeX distribution MacTeX # brew cask install -appdir='/Applications' mactex # Link cask apps to Alfred # brew cask alfred link # Install Docker, which.
MacTeX vs BasicTeX
MacTeX includes additional programs such as an editor and a BibTeX reference manager that help users to work with TeX outside of the command line. BasicTeX does not include these GUI programs. The trade-off that comes with using BasicTeX is that you will have to download and install additional packages and programs as the need arises- and BasicTeX is so basic that the need will arise. So, after installing BasicTeX you will be faced with the tasks of installing additional programs and installing missing packages.
MacTex
Download MacTex, or use brew install --cask mactex
.You can read more about MacTex in What is installed (pdf).
Since MacTex installs a LaTex editor (TexMaker) already, installing another LaTeX editor is unnecessary.
BasicTeX
Download BasicTeX, or use brew install --cask basictex
. You can read more about BasicTex in BasicTeX (pdf).
You may use tlmgr
to install tools/packages that you need.
Note: You may find CLI tool tlmgr
cumbersome to use, in that case install GUI for tlmgr
- TeX Live Utility - brew install --cask tex-live-utility
.
Now you should pick a LaTeX editor, here are some to choose from:
Note: You may want to use a PDF reader that watches your PDF files, like Skim (can be installed by brew install --cask skim
and Sync feature can be enabled in Preferences -> Sync).
How to print this book?
Let’s say you don’t want to navigate or interact with the examples and you just want a good old fashion text book which you can read on the beach or on your commute to the city. In that case you can print this book.
Installing glslViewer
For printing this book you need first to parse it. For that you will need glslViewer
a console shader tool that will compile and transform the shader examples into images.
In MacOSX get sure to have homebrew installed and then on your terminal do:
On Raspberry Pi you need to get Raspbian, a Debian-based Linux distribution made for Raspberry Pi and then do:
Installing Python 3, Latex Engine and Pandoc
For parsing the Markdown chapters into Latex and then into a PDF file we will use Xetex Latex Engine and Pandoc.
In MacOSX:
Download and Install MacTeX by:
and then install Pandoc and Python 3 by:
On Raspberry Pi (Raspbian):
Mactex Brewer
Compile the book into a pdf and print it
Now that you have all you need, it is time to clone the repository of this book and compile the book.
For that open your terminal once again and type:
Mac Brew Mactex
If everything goes well, you will see a book.pdf
Bluestacks for mac os x 10 9 5. file which you can read on your favorite device or print.
Compile the book into an epub for use with an e-reader
Brew Mactex Path
The generated book.epub
can be used directly, or converted to a .mobi
file for use with Kindle by using a converter, for example Calibre.