Skip to content
Torstein Husebø edited this page Oct 7, 2019 · 18 revisions

Tips og triks

FYS 100 i LaTeX

% preamble
\usepackage{amsmath}
\newcommand{\ihat}{\boldsymbol{\hat{\textbf{\i}}}}
\newcommand{\jhat}{\boldsymbol{\hat{\textbf{\j}}}}
\newcommand{\hhat}{\boldsymbol{\hat{\textbf{k}}}}

% test

$$ \vec{v} = x \ihat + y \jhat + z \hhat$$

Formelle versjoner av de latinske bokstavene

\usepackage{mathrsfs}
% etter begin{document}
$$\mathscr{V}_0 = \mathscr{V} \sqrt{\frac{v^2}{c^2}}$$

Inkludere bibtex med natbibstil og linjebryte fornuftig

I preamble

\usepackage[natbib=true]{biblatex}
\addbibresource{references.bib}

Hvor du vil printe ut

\begingroup
\raggedright
\sloppy
\printbibliography
\endgroup
Clone this wiki locally