-
Notifications
You must be signed in to change notification settings - Fork 1
LaTeX
Torstein Husebø edited this page Nov 15, 2019
·
18 revisions
Tobi Oetiker not so short intro to LaTeX
% preamble
\usepackage{amsmath}
\newcommand{\nvec}[1]{\boldsymbol{#1}}
\newcommand{\ihat}{\boldsymbol{\hat{\textbf{\i}}}}
\newcommand{\jhat}{\boldsymbol{\hat{\textbf{\j}}}}
\newcommand{\hhat}{\boldsymbol{\hat{\textbf{k}}}}
% test
\begin{align*}
\nvec{v} &= x \ihat + y \jhat + z \hhat \\
\vec{v} &= x \ihat + y \jhat + z \hhat
\end{align*}
% preamble
\newcommand{\nvec}[1]{\boldsymbol{#1}}
\newcommand{\vect}[1]{\vec {\mathbf #1}}
\newcommand{\vecsymb}[1]{\vec {\nvec{#1}}}
% i bruk
$$ \vecsymb{\tau} = \vect{r} \times \vect{F}$$
% i preamble
\usepackage{mathrsfs}
% i bruk
$$\mathscr{V}_0 = \mathscr{V} \sqrt{\frac{v^2}{c^2}}$$
I preamble
\usepackage[natbib=true]{biblatex}
\addbibresource{references.bib}
Hvor du vil printe ut
\begingroup
\raggedright
\sloppy
\printbibliography
\endgroup