Writing LaTeX Documents

Requirements

Xelatex or Lualatex vs. utf8 inputenc

look for “document convertion” in the ubuntu desktop guide and install those few packages.

Getting started

here’s a MWE with no feature what-so-ever

vi no-feature.tex

\documentclass[a4paper]{article}
\begin{document}

\title{some title}
\author{some author}
\maketitle

some text

\end{document}

the geometry package is implicit as the a4paper option gets passed to it.

build the document

xelatex no-feature.tex # create aux
xelatex no-feature.tex
evince no-feature.pdf &

and in case you got bib, do that before

xelatex codeblock.tex
biber codeblock.tex

Languages

the last defined language becomes the default (here english)

\usepackage[russian,english]{babel}
% ngerman frenchb

Layout

\usepackage[labelformat=empty]{caption}
\usepackage[cm]{fullpage}
\usepackage{url}

ToC

% remove section numbers and keep the toc
\renewcommand{\thesection}{}
\renewcommand{\thesubsection}{}
\renewcommand{\thesubsubsection}{}

here’s a MWE with a table of content

xelatex toc.tex # create aux
xelatex toc.tex
evince toc.pdf &

UTF8 fonts

\usepackage{fontspec}
\setmainfont{FreeSerif}
\setsansfont{FreeSans}
\setmonofont{FreeMono}

Resources

install

Install LaTeX on Ubuntu or Debian http://milq.github.io/install-latex-ubuntu-debian/

get started

a4paper, where should I declare it? In document class or geometry? https://tex.stackexchange.com/questions/62311/a4paper-where-should-i-declare-it-in-document-class-or-geometry

Getting started with XeLaTeX https://robjhyndman.com/hyndsight/xelatex/

Section numbering without numbers https://tex.stackexchange.com/questions/136527/section-numbering-without-numbers

How do I remove the numbers from section headings? https://www.overleaf.com/learn/latex/Questions/How_do_I_remove_the_numbers_from_section_headings%3F

“write section without number latex” Code Answer https://www.codegrepper.com/code-examples/whatever/write+section+without+number+latex

basic usage

LaTeX Line and Page Breaking http://www.personal.ceu.hu/tex/breaking.htm

layout

How to remove figure label? https://tex.stackexchange.com/questions/21795/how-to-remove-figure-label

Margins https://en.wikibooks.org/wiki/LaTeX/Page_Layout#Margins ==> narrow margins

toc

Generate table of contents when \section* (sections without numbering) has been used https://tex.stackexchange.com/questions/30122/generate-table-of-contents-when-section-sections-without-numbering-has-been

languages

biblatex autolang=other breaks authortitle layout http://tex.stackexchange.com/questions/223909/biblatex-autolang-other-breaks-authortitle-layout/223974

utf8 fonts

utf8x vs. utf8 (inputenc) https://tex.stackexchange.com/questions/13067/utf8x-vs-utf8-inputenc

Encoding remarks https://groups.google.com/forum/?fromgroups=#!msg/comp.text.tex/4LC-xODb-LU/1Bd5UZOMNM4J

Cyrillic in (La)TeX https://tex.stackexchange.com/questions/816/cyrillic-in-latex

pdflatex and some fonts https://gist.github.com/rain1024/98dd5e2c6c8c28f9ea9d

Changing the font size in LaTeX https://texblog.org/2012/08/29/changing-the-font-size-in-latex/

Font sizes, families, and styles https://www.overleaf.com/learn/latex/Font_sizes%2C_families%2C_and_styles

UNSCII http://viznut.fi/unscii/ ==> …

troubles

Tips and Tricks for Troubleshooting LaTeX https://www.overleaf.com/learn/latex/Questions/Tips_and_Tricks_for_Troubleshooting_LaTeX

font size

https://texblog.org/2012/08/29/changing-the-font-size-in-latex/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun