LaTeX
“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.”
What is the difference between TeX and LaTeX?
Get LaTeX
Manually Package Management
On *nix systems tlmgr
can be used to install and update packages from the command line.
Install Package
If you're on macOS and have opted for the smaller BasicTeX
instead of the full install you won't have access to the \author
or \affil
commands provided by the authblk
package. You'll need to install it manually.
The CTAN page for authblk
states “The package is part of the preprint bundle.”.
To get access to authblk
we need to install the preprint
bundle via: sudo tlmgr install preprint
Update Packages
Executing sudo tlmgr update –list
will display which packages need to be updated.
Executing sudo tlmgr update –all
will actually update them.
Compiling Tex to PDF
MacOS, Linux and Windows
cd
Into the directory containing your .tex and .bib files and run:
pdflatex whitepaper.tex
To build your Bibliography run:
pdflatex whitepaper.tex
bibtex whitepaper.aux
pdflatex whitepaper.tex
To build your Glossary run:
pdflatex whitepaper.tex
makeglossaries whitepaper
pdflatex whitepaper.tex
Shit You Might Encounter While Compiling
When using the
glossaries
package the\printglossaries
command wont print your Glossary if you've suppressed page numbers with\pagenumbering{gobble}
Editors
gummi “Simple LaTeX editor” [Linux & Windows]
Referencing
From September 2017, Abertay adopted the Cite Them Right version of Harvard
When referencing a website the references page entry should look like:
The in-text citation should look like:
The natbib
package can be used to achieve this referencing style. The following should be in your preamble:
The following should be placed wherever you want your References page rendered:
The following entry in your .bib
file will produce the correct reference page entry:
Credit to Rory for putting in most of the leg work on this.
Formatting
Tilde
Usage: Cost \customtilde \$10,000
Page Breaks
In situations like a chapter start it is advisable to end the previous chapter with a
\clearpage
to flush out all floats, but in other situations this might result fairly empty pages with only floats on them which may or may not be desired.A second difference is
\clearpage
actually always starts a new “page” while\newpage
really only ends the current column.
Templates
Template for 4th year dissertation proposal (two-column) – Two column proposal template
Template for 4th year dissertation (one column, 1.5 line spaced with special documentation pages and title page) – Dissertation Template with Bibliography and LoT and LoF
Syntax Highlighting
Then use
Packages
textcomp
Enables support for Text Companion fonts such as legal, currency and mathematical symbols.
Resources
tablesgenerator.com Create pretty tables and paste in auto generated Tex
Arbitrary LaTeX Reference “Many problems in LaTeX requires some research, so I started to record my findings.”
Last updated